Go Down

Topic: Using Multiple ina219 sensors (Read 2722 times) previous topic - next topic

ThePineapple

I'm trying to use three Adafruit ina219 sensors with an Arduino 101 to test solar panel efficiency. How do these need to be wired up and how should the code look in order to do this?

Wawa

Adafruit has a learning page for the INA219.
Everything is in there, including using multiple boards.
Leo..

josephchrzempiec

Hello i wanted to do a update on the INA219. I also saw the Adafruit site and was wondering if it is possible to do more then four INA219 modules?

robtillaart

Yes, use an I2C multiplexer and you can "reuse" I2C addresses

https://www.adafruit.com/?q=tca9548

8x multiplexer ==> 8 x 4 channels = 32 channels

And yes in theory you can daisy chain these multiplexers giving you many more channels.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Wawa

Solder a wire to one of the address pins of the INA (solder bridge), and use that as ChipSelect pin.
Then you can change the address of the INA 'on the fly'.
Set all INA chips to one address (that you don't read), except for the one that you read.
No I2C selector needed, and as many INA boards as you have digital pins left.
Leo..

Sprotty

Looking at the data sheet you may be able to set a bit address
http://www.ti.com/lit/ds/symlink/ina219.pdf

A1 A0 SLAVE ADDRESS
GND GND 1000000
GND VS+ 1000001
GND SDA 1000010
GND SCL 1000011
VS+ GND 1000100
VS+ VS+ 1000101
VS+ SDA 1000110
VS+ SCL 1000111
SDA GND 1001000
SDA VS+ 1001001
SDA SDA 1001010
SDA SCL 1001011
SCL GND 1001100
SCL VS+ 1001101
SCL SDA 1001110
SCL SCL 1001111

Go Up