Measuring V and I
Dec 2018 - Dec 2018
I thought this sensor will be very useful in the future when I am working on projects that are related to power and energy. If I want to measure the voltage and current of my device without interrupting it, it is a good idea to use a sensor.
I played with this when I was working on project MARCO.
The INA219 DC Current Sensor measures up to 26V and it has a 0.1Ohm current shunt resistor (on the picture it is labeled R100). The maximum current this sensor can measure with its default resistor is 3.2A because .32V/0,1Ohm=3.2A. It can be possible to measure more than 3.2A if the 0.1Ohm shunt is replaced with a lower value.
INA219 uses I2C communication protocol. Because it uses I2C, connecting it to the Raspberry Pi is very simple.
VCC pin->3.3V
Ground->Ground
SDA->SDA
SCL->SCL
Connecting multiple I2C devices to a single Raspberry Pi is possible. Only the hex address should be changed. The default hex address is 40 for INA219 sensors. Just a bit of unsoldering and soldering can change the hex address.