First wire up a ina219 to your board exactly as shown on the previous pages for arduino using an i2c interface. In addition connect some load to measure the current from in series to the sensors vin and vin pins as mentioned on the wiring page.
Gravity I2c Digital Wattmeter Sku Sen0291 Dfrobot
Ina219 wiring diagram. Wiring the i2c ina219 zero drift bidirectional currentpower monitor with mcu this is the ina219b breakout module to measure both high side voltage and dc current draw over i2c with 1 percent precision. Whats interesting is the voltage values seem to differ. And there a load that connect to the sensor. The image and table below detail some of module feature. Otherwise i had to switch the contacts of the ina219 move the wire from vin to the ina219 gnd to read the voltage. The device is readily available from the big name outlets.
It uses 4 pins only. This chip uses i2c to communicate. But the major difference is that using a common ground allowed me to read the voltage in real time as well. Ina219 arduino current and voltage sensor tutorial get the necessary library. The photo below shows an ina219 breakout board configured to measure the motor supply current on an adafruit motor shield. Ina219 current and voltage sensor module pin outs.
Looking at the circuit diagram at the bottom of texas instruments 3. Including the pin outs. Adafruit has some excellent tutorials on wiring up and working with the ina219 which is where i got the majority of my information. Is it possible you could provide a simple diagram or breadboard example that includes h bridge and acs712. To install use the arduino library manager and search for adafruit ina219 and install the library. Like usual i2c sensor can easily interfaced with arduino.
Connect a wire from the ground line of the board to a 2. Wiring diagram ina219 breakout you will also need the ina breakout board which contains the inab chip that we will use to measure the here is the final schematic. Each of the ina219 modules speak i2c to the rpi and the sdascl pins daisy chained with continuous jumpers back to the respective i2c pins on the rpi p3 and p5 to form an i2c bus. Check out the links above for our tutorials and wiring diagrams. This allows the sensor to measure the load voltage as well as the load current. In picture above that is the wiring diagram of ina219 and arduino.
How to get an ina219 arduino module. When using the common gnd i was reading voltages of about 615v. Finally connect a wire from the negative terminal of the power supply to gnd. The dc current sensor used in this project is an ina219 high side dc current sensor breakout and the hall effect sensor used is an acs712 low current sensor board.