Low Power Current Sensor

 

In this article we will see how realize a current sensor circuit in a device using Arduino or more in general the ATmega328P CPU. The current sensor will leverage the built-in ADC of ATmega328P and few external components. The current sensor will have a good level of accuracy and low power consumption, making the solution applicable even to battery powered devices. Specifically, I realized this solution to measure the charging and discharging current flowing to and from the backup battery used in the remote sensor which is part of the Solar Thermal Controller project (see ref. [1]). The backup battery is connected to an UPS module to provide continuos power to the the circuit. The UPS module receives input power from a solar cell and provides a 5v regulated power to the output. When the input power is above the load power the backup battery is kept under charge. Charging power is the difference between the available input power and the load power. When the input power is below the load power, the backup battery is used to source the missing power (see Figure 1).

Figure 1. UPS module and backup battery.
...