Test and Develop arduino energy measurement for Ina 159
For INA159 or whatever we bought, let's get it hooked up to a phone so we can get energy readings from it.
- wiring - figure out how to wire the INA159 to the arduino and to the phone power. Remember it will produce an analog signal so you'll need to employ arduino analog read. 1.1 Make a diagram of the wiring.
- Measure how fast you can read from the analog pin. Goal is 2000 measurements per second or more.
- Investigate tuning. Are the numbers constant or do we need to measure a load to get some idea. Is it always the same fixed analog value?
- Can we communitcate all the measurement back over the serial port. At 2000 measurements per second sent as binary over the serial port we should be able to achieve 4000 16 bit samples per second over a 115200 baud serial line.
- Write a wattlogger to calculate the watts and joules from the measurements
- write the traces to greenminer appropriately
These tasks might need to be broken into seperate bug reports.
Comments (10)
-
reporter -
repo owner We can read about 2400 measurements per second over a 57600 baud serial line (and about 4800 measurements over a 115200 baud serial line).
-
repo owner Since the measured value is not proportional to the supply value, there may be a problem around the measuring circuit
-
repo owner We solved the problem. The connection of circuit was unstable, so we reconnected the circuit and it is stable now.
-
reporter Are these done?
- Write a wattlogger to calculate the watts and joules from the measurements
- write the traces to greenminer appropriately
-
reporter Make sure we can still use INA219 with your fork. I should be able to merge your code into greenminer mainline and have it work.
-
repo owner We want to make sure, but some problems happen. So we add the issue.
-
reporter OK good.
-
repo owner We wrote wattlogger and the traces to greenminer appropriately. If there are no more problems, please close this issue.
-
reporter - changed status to resolved
Good work
- Log in to comment
Feel free to track progress here