This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenPlotter I2C 3.x.x - INA219 settings
#8
Figured out a little more by RTFM.

When I started asking questions is the previous thread (Announcing the release of I2C 3.2.0) i asked why I was getting null values.

Answering my own question:

Bus voltage, power and shunt voltage default to 0 (null) because the Calibration register defaults to 0 on powerup. These outputs will not output meaningful information until settings have been written to the Calibration register. (per Texas Instrument documentation)

Also, the INA219 doesn't know that Adafruit installed a 0.1 resister on the circuit board. So the shunt current value output is meaningless.

Another consideration:

If you are running any of the various INA219 SignalK plugins and are using the same I2C address in Open Plotter there isn't anything to prevent SignalK and OpenPlotter competing with each other to change the calibration register. Actually, there isn't anything to prevent the various SignalK plugins from competing with each other. This is one reason I would prefer to use OpenPlotter I2C because all of the addresses are managed in one place.

I learned this when I was trying various SignalK INA2i9 plugins and forgot to disable one before enabling the other.

I think most of the software (at least with my limited understanding of the code) uses the Adafruit drivers that reset the calibration register just before reading the data. I haven't figured out what effect this reset has on the internal resolution/averaging of the shunt voltage and bus voltage. Maybe, I should stop RTFM.[Image: smile.png]
Reply


Messages In This Thread
RE: I2C INA 3.1.0 Settings - by tobias.e - 2022-11-12, 08:03 PM
RE: I2C INA 3.1.0 Settings - by Sailoog - 2022-11-12, 08:23 PM
RE: I2C INA 3.1.0 Settings - by tobias.e - 2022-11-12, 09:55 PM
RE: I2C INA 3.1.0 Settings - by RichFind - 2022-11-14, 03:31 AM
RE: OpenPlotter I2C 3.x.x - INA219 settings - by RichFind - 2022-11-15, 02:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)