@@ -16,11 +16,13 @@ Arduino library for the INA236, I2C, 16 bit, voltage, current and power sensor.
1616
1717## Description
1818
19+ ** Experimental**
20+
1921_ This documentation is based upon the INA226 library,
2022and may contain information not updated yet.
2123Please open an issue if needed._
2224
23- ** Experimental** library for the INA236 current and power sensor.
25+ Experimental library for the INA236 current and power sensor.
2426Ported and updated from INA226 to INA236 by Josef Tremmel (thanks!).
2527
2628Read datasheet for details.
@@ -51,8 +53,10 @@ A few important maxima, see datasheet, chapter 6.
5153- https://github.com/RobTillaart/INA219 26 Volt, I2C, 12 bit
5254- https://github.com/RobTillaart/INA226 36 Volt, I2C, 16 bit
5355- https://github.com/RobTillaart/INA228 85 Volt, I2C, 20 bit
56+ - https://github.com/RobTillaart/INA229 85 Volt, SPI, 20 bit
5457- https://github.com/RobTillaart/INA236 48 Volt, I2C, 16 bit
5558- https://github.com/RobTillaart/INA239 85 Volt, SPI, 16 bit
59+ - https://github.com/RobTillaart/INA260 36 Volt, I2C, 16 bit
5660- https://github.com/RobTillaart/INA3221_RT 26 Volt, I2C, 13 bits (3 channel)
5761- https://www.adafruit.com/product/5832
5862- https://www.mateksys.com/?portfolio=i2c-ina-bm
@@ -136,7 +140,7 @@ Note: one needs to set **Wire.begin()** before calling **begin()**.
136140- ** bool isConnected()** returns true if the INA236 address is on the I2C bus.
137141- ** uint8_t getAddress()** returns the address set in the constructor.
138142
139- ### BUS VOLTAGE
143+ ### Bus voltage
140144
141145Main function + wrappers.
142146
@@ -146,7 +150,7 @@ This value is always positive.
146150- ** float getBusMilliVolt()**
147151- ** float getBusMicroVolt()**
148152
149- ### SHUNT VOLTAGE
153+ ### Shunt voltage
150154
151155- ** float getShuntVoltage()** idem, Returns value in volts.
152156Note the value can be positive or negative as the INA229 is bidirectional.
@@ -156,15 +160,15 @@ Note the value can be positive or negative as the INA229 is bidirectional.
156160- ** int32_t getShuntVoltageRAW()** integer version requested in issue #3 .
157161Returns raw ADC value, 20 bits with sign extended.
158162
159- ### SHUNT CURRENT
163+ ### Shunt current
160164
161165- ** float getCurrent()** returns the current through the shunt in Ampere.
162166Note this value can be positive or negative as the INA229 is bidirectional.
163167- ** float getAmpere()**
164168- ** float getMilliAmpere()**
165169- ** float getMicroAmpere()**
166170
167- ### POWER
171+ ### Power
168172
169173- ** float getPower()** returns the current x BusVoltage in Watt.
170174- ** float getWatt()**
@@ -390,13 +394,20 @@ The alert line falls when alert is reached.
390394## Adjusting the range of the INA236
391395
392396** use at own risk**
393- In issue #26 a hack is made to scale the INA236 to 300A by using a very small shunt.
394- The library has a minimal limit for the shunt of 0.001 ohm.
395- This limit can be overruled to support other ranges like the one discussed in #26 .
396- Overruling can be done by patching the following value in the INA236.h file.
397+
398+ See INA226, issue 26 - https://github.com/RobTillaart/INA226/issues/26
399+ See INA236, issue 8 - https://github.com/RobTillaart/INA236/issues/8
400+
401+ In issue #26 a hack is made to scale the INA226 to 300A by using a very small shunt.
402+ The INA236 library has a minimal limit for the shunt of 0.001 Ohm = 1 mOhm.
403+ This limit can be overruled to support wider ranges like the one discussed in #26 .
404+ Overruling can be done by changing the value in the ** INA236.h** file,
405+ or by defining INA236_MINIMAL_SHUNT on the command line.
397406
398407``` cpp
399- #define INA236_MINIMAL_SHUNT (0.001)
408+ #ifndef INA236_MINIMAL_SHUNT
409+ #define INA236_MINIMAL_SHUNT 0.001
410+ #endif
400411```
401412
402413Be aware that
@@ -418,7 +429,6 @@ Be aware that
418429
419430#### Could
420431
421-
422432#### Won't
423433
424434
0 commit comments