The Adafruit USB LiPoly Charger is a compact and efficient charging solution for single-cell lithium polymer (LiPo) batteries. This component is designed to charge LiPo batteries through a standard USB connection, making it ideal for portable electronics, DIY projects, and any application where reliable battery charging is required. Its ease of use and integration into existing projects make it a popular choice among hobbyists and professionals alike.
Pin Number | Name | Description |
---|---|---|
1 | BAT | Battery connection to LiPo positive terminal |
2 | GND | Ground connection |
3 | USB+ | USB power positive |
4 | USB- | USB power negative |
Connect the Battery:
BAT
pin.GND
pin.Power the Charger:
USB+
and USB-
pins to a 5V USB power source.Select Charge Current:
Monitor Charging:
Red LED does not illuminate when charging:
Green LED does not illuminate when expected:
Can I charge batteries with a capacity higher than 500mAh?
Is it safe to leave the battery connected to the charger after charging is complete?
Can I power the charger from a non-USB 5V source?
// No specific code is required for the Adafruit USB LiPoly Charger as it is a standalone charger.
// However, you can monitor the charging status using an Arduino by reading the status LEDs.
const int CHARGING_PIN = 2; // Connect to the charging LED pin on the charger
const int CHARGED_PIN = 3; // Connect to the charged LED pin on the charger
void setup() {
pinMode(CHARGING_PIN, INPUT);
pinMode(CHARGED_PIN, INPUT);
Serial.begin(9600);
}
void loop() {
bool isCharging = digitalRead(CHARGING_PIN);
bool isCharged = digitalRead(CHARGED_PIN);
if (isCharging) {
Serial.println("Battery is charging...");
} else if (isCharged) {
Serial.println("Battery is fully charged.");
} else {
Serial.println("Battery is not charging.");
}
delay(1000); // Wait for 1 second before checking again
}
Remember to connect the Arduino GND to the charger GND when making the LED connections. This code snippet is a simple way to integrate the charging status into an Arduino project for monitoring purposes.