Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit USB LiPoly Charger: Examples, Pinouts, and Specs

Image of Adafruit USB LiPoly ChargerDesign with Adafruit USB LiPoly Charger in Cirkit Designer

Introduction

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.

Explore Projects Built with Adafruit USB LiPoly Charger

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Based USB and Battery-Powered Circuit: A project utilizing Adafruit USB LiPoly Charger in a practical application
ESP32-Based USB and Battery-Powered Circuit

This circuit features an ESP32 microcontroller powered by a 3.3V regulator, which in turn is powered by a 18650 lithium-ion battery through a charger module. The charger module is designed to charge the battery via a USB connection and also provides power to the regulator. Ground connections are shared among the ESP32, regulator, charger, and USB interfaces, establishing a common reference point for all components.

Open Project in Cirkit Designer
Image of Arduino Nano Battery-Powered Base Circuit: A project utilizing Adafruit USB LiPoly Charger in a practical application
Arduino Nano Battery-Powered Base Circuit

This circuit features an Arduino Nano connected to a battery charger, which in turn is connected to an 18650 Li-ion battery. The Arduino Nano is powered by the battery charger's output, and the battery provides the input voltage to the charger. There is no specific functionality implemented in the provided microcontroller code, indicating that the circuit is currently set up for power supply without any programmed behavior.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the Component in a Circuit

  1. Connect the Battery:

    • Connect the positive terminal of the LiPo battery to the BAT pin.
    • Connect the negative terminal of the LiPo battery to the GND pin.
  2. Power the Charger:

    • Connect the USB+ and USB- pins to a 5V USB power source.
  3. Select Charge Current:

    • The charger comes with a default setting of 100mA charge current.
    • To select a higher charge current of 500mA, solder the closed jumper on the back of the PCB.
  4. Monitor Charging:

    • The red LED will illuminate to indicate that charging is in progress.
    • Once the battery is fully charged, the green LED will light up, and the charger will automatically stop charging.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Example Code for Arduino UNO

// 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.