A simple batter tester written for an Arduino
| battery_tester.ino | ||
| README.md | ||
Battery Tester
Code for running a NiMH/NiCd battery tester based on an Arduino Nano.
The battery is connected directly across a diode and a low side shunt resistor. The arduino ground is connected to the negative side of the battery. The shunt and battery voltage are monitored over time to calculate the mAh and mWh capacities of the battery. The capacities and the instantaneous voltage and current are displayed on a 4 digit 7 segment display.
The diode is there to prevent dropping the battery voltage much below 0.5V. Though I ended up connecting a 4.7Ohm resistor across the diode to spread the power dissipation a bit. The battery voltage will continue decaying slowly below the diode forward voltage.