OpenMarine
INA3221 - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: INA3221 (/showthread.php?tid=1142)



INA3221 - cepicscepics - 2018-05-03

Hi all,
I'm trying to install INA3221 to monitor two 12v battery, 

following this tread I connected...

             CH1  +    -------------------  + BATT1
             CH1  -     -------------------   GRD (RPI)
INA3221 CH2 + .  -------------------   + BATT2
              CH2 -     -------------------   GRD (RPI)
              CH3+    -------------------     NC
              CH3 -     -------------------     NC

.. and the I2C

sk diagnostic is like this:

   

but the sensor give the same value for the 3 channels.... (a battery connected on CH1)
   

and if I connect also a second battery (12v) to CH2...
   

12v wins...

whats wrong?!?!?

ciao


RE: INA3221 - Opie91 - 2018-05-03

cepicscepics,

Ok a few things. Do not connect the CH1, Ch2 or CH3 (-) on the INA3221 to the raspberry pi or anything else. They should not be used and will cause problems. Only connect to the (+) from the voltage sources on the INA3221.

Second, make sure the common ground of all the batteries is connected to the negative bus on your pi.

If you change those things everything should work fine.

By the way you can go into the code and change the signal k labels to anything that is not being used by OP or Signal K

Example

voltagekey1 = "electrical.batteries.house.voltage"

to

voltagekey1 = "electrical.batteries.emergency.voltage"


Good luck Smile


RE: INA3221 - e-sailing - 2018-05-03

AfaIk some INA3221 boards can only measure one Voltage and 3 currents


RE: INA3221 - Opie91 - 2018-05-04

(2018-05-03, 10:12 PM)e-sailing Wrote: AfaIk some INA3221 boards can only measure one Voltage and 3 currents

Thanks for the info, I do not doubt it at all.

What he was seeing is exactly what I saw in the beginning before reading the manual a bit more. Smile  I had the CH (x) (-) hooked up to the battery (-) and it gave me all kinds of erroneous readings. Once changed over it has been extremely accurate.

Ill post a wiring diagram in the next few days to try to clear things up.


RE: INA3221 - cepicscepics - 2018-05-06

(2018-05-03, 09:22 PM)Opie91 Wrote: cepicscepics,

Ok a few things. Do not connect the CH1, Ch2 or CH3 (-) on the INA3221 to the raspberry pi or anything else. They should not be used and will cause problems. Only connect to the (+) from the voltage sources on the INA3221.

Second, make sure the common ground of all the batteries is connected to the negative bus on your pi.

If you change those things everything should work fine.

By the way you can go into the code and change the signal k labels to anything that is not being used by OP or Signal K

Example

voltagekey1 = "electrical.batteries.house.voltage"

to

voltagekey1 = "electrical.batteries.emergency.voltage"


Good luck Smile

tnks a lot I will try