Skip to content

Releases: wollewald/INA219_WE

Stop example sketches in case of no connection

06 Jul 13:54
a0c775a
Compare
Choose a tag to compare

I have added a "while(1)" in case there is no connection to the INA219.

Fixed: Correction factor was lost when changing gain factor

03 Dec 09:57
96d90f7
Compare
Choose a tag to compare

Correction factor was lost when changing gain factor. I fixed this now.

Corrected a typo in the function list

03 Mar 14:33
a4b62bb
Compare
Choose a tag to compare

No change to the code. Just corrected:

getBusPower_mW() --> getBusPower()

in the function list (pdf-file).

Remove unnecessary register read for triggered measurement & new function getConversionReady

31 Jan 22:20
9ac6dfb
Compare
Choose a tag to compare

Reading the INA219_BUS_REG did not clear the CNVR flag. Reading the INA219_PWR_REG instead will clear the CNVR flag. Since the INA219_CONF_REG is written afterwards anyways, even a read of the INA219_PWR_REG is unnecessary. Checked the behaviour with the Triggerd example and everything seems to be fine.

Also I added the function getConversionReady. It enables you to check if new values are available in continuous mode to then act accordingly. The CNVR flag is reset by calling readRegister(INA219_PWR_REG).

Syntax Highlighting of getBusVoltage_V did not work

29 Nov 19:48
b001a4a
Compare
Choose a tag to compare

Syntax Highlighting of getBusVoltage_V did not work due to a typo.

Replaced #define by constexpr

23 Oct 18:03
f67f08d
Compare
Choose a tag to compare

Various changes:

  • Replaced #define by constexpr
  • Replaced C-Cast by static_cast
  • Tidied constructors
  • Replaced private by protected

getShuntVoltage() did not include the offset

02 Oct 14:38
dcd66c2
Compare
Choose a tag to compare

getShuntSize() did not include the shunt offset. I have changed that.

Amended the ATtiny example sketch

28 Apr 17:03
27ed003
Compare
Choose a tag to compare

The update of the displayed values is nicer now.

Ability to run on ATtinys

06 Apr 14:48
66c25e2
Compare
Choose a tag to compare

I have added the option to use the library on an ATtiny. I have tested it on an ATtiny85. For this you need to change from Wire.h to TinyWireM.h from Adafruit. I added an example sketch.

Offset Function added

23 Jan 15:05
68c6634
Compare
Choose a tag to compare

People have reported offsets, that means shunt voltages that occur although there is no current (load device switched off). With the new function setShuntVoltOffset_mV(offset), you can correct this.