This is a modified library for the INA219 that can handle a 0.01 ohm resistor instead of a 0.1 Ohm resistor. This allows it to read up to 32A instead of 3.2A.

Dependents:   Hybrid_Supercapacitor_Car_Battery_Monitoring

Fork of INA219 by Components

Revision:
1:8ccc8e47e3d5
Parent:
0:eee9c8ba72ff
--- a/INA219.hpp	Thu Aug 28 10:32:20 2014 +0000
+++ b/INA219.hpp	Tue Dec 26 21:28:13 2017 +0000
@@ -59,7 +59,7 @@
      *  @returns
      *      A value between -32768 and +32768. Depending on the calibration and configuration register values, the actual power can be calculated.
      */
-    //int16_t read_power_raw();
+    int16_t read_power_raw();
     /** Reads the power from the INA219 and calculates the actual value in mW.
      *
      *  @see read_power_raw
@@ -67,7 +67,7 @@
      *  @returns
      *      A floating point value corresponding to the power being used in the circuit, in mW.
      */
-    //float read_power_mW();
+    float read_power_mW();
 
     /** Reads the raw shunt voltage value from the INA219.
      *
@@ -76,7 +76,7 @@
      *  @returns
      *      A value between -32768 and +32768. Depending on the calibration and configuration register values, the actual shunt voltage can be calculated.
      */
-    //int16_t read_shunt_voltage_raw();
+    int16_t read_shunt_voltage_raw();
     /** Reads the shunt voltage from the INA219 and calculates the actual value in mV.
      *
      *  @see read_shunt_voltage_raw
@@ -84,7 +84,7 @@
      *  @returns
      *      A floating point value corresponding to the potential difference across the current shunt, in mV.
      */
-    //float read_shunt_voltage_mV();
+    float read_shunt_voltage_mV();
 
     /** Reads the raw bus voltage.
      *
@@ -93,7 +93,7 @@
      *  @returns
      *      A value between -32768 and +32768 corresponding to the bus voltage.
      */
-    //int16_t read_bus_voltage_raw();
+    int16_t read_bus_voltage_raw();
     /** Reads the bus voltage and uses it to calculate the actual bus voltage.
      *
      *  @see read_bus_voltage_raw
@@ -101,7 +101,7 @@
      *  @returns
      *      A floating point value corresponding to the voltage of V+ (in V).
      */
-    //float read_bus_voltage();
+    float read_bus_voltage();
 
     /** Sets the calibration register.
      *