Keeping your portable project alive has never been easier with this combined fuel gauge and constant-current charger. Read battery voltage and estimated % Charge with the onboard i2c battery monitor. Safely charge most LiPo and Li-Ion batteries (3.7V nominal) with this current-controlled charger. Charges whenever your neoPLC uC is connected to USB. Includes an on/off switch to create low-profile, stand-alone micro-control systems.
- Single cell 12-bit ADC and 12-bit charge estimate using the Maxim ModelGauge algorithm
- Single cell 3.7V nominal (4.2V max) charger with 100mA current limiter
- Diode protected selection circuit
- Output current is limited by battery selection, protection diode will cause approx. 0.1V drop on output
BAT Quickstart Code
// ~~~ BAT ~~~ // include the neoPLC-BAT library #include <neoBAT.h> // create an instance of the BAT board neoBAT bat = neoBAT(); // --- SETUP --- // initialize the BAT fuel gage board: void bat.begin(); // --- METHODS --- // get new readings for battery voltage and State-of-Charge (SoC), returns SoC as a fraction (%) float SoC = bat.poll(); // In general this method is not recommended since the chip automatically resets when new battery is connected void bat.reset(); // --- VARIABLES --- float bat.soc; // Value of State-of-Charge at last poll float bat.vcell; // Battery voltage at last poll