Pages
Contributors: Alex the Giant

Introduction

The SparkFun Adjustable LiPo Charger is a single-cell lithium polymer (LiPo) and lithium ion battery charger. Because it's adjustable, this charger will be able to safely charge all of our single-cell batteries.

PRT-14380
\$11.95
2

Required Materials

The Adjustable LiPo Charger parts required depends on your input power supply for charging and the size of the LiPo battery used. At the bare minimum, all that's needed to charge a LiPo battery sufficiently is a micro-B USB cable to connect to either a computer USB port or a wall adapter. We also have 5V wall adapters with a USB cable attached.

TOL-13831
\$7.95
16

CAB-10215
\$4.95
12

TOL-11456
\$3.95
2

Wall Adapter Power Supply - 5V DC 2A (USB Micro-B)

TOL-12890
16 Retired

And one of the LiPo batteries with nominal 3.7V from our catalog:

PRT-13851
\$4.95
9

PRT-13854
\$9.95
2

PRT-13813
\$9.95
7

PRT-13853
\$4.95
2

Coin Cell Battery - 24.5mm (Rechargeable CR2450)

PRT-10319
Retired

For batteries smaller than 100mAh (i.e. 40mAh LiPo), you may also need to solder an assortment of resistors to set a custom charge rate.

COM-10969
\$7.95
157

Polymer Lithium Ion Battery - 40mAh

PRT-13852
\$4.50

If you aren't familiar with the following concepts, we recommend checking out these tutorials before continuing.

Battery Technologies

The basics behind the batteries used in portable electronic devices: LiPo, NiMH, coin cells, and alkaline.

Electric Power

An overview of electric power, the rate of energy transfer. We'll talk definition of power, watts, equations, and power ratings. 1.21 gigawatts of tutorial fun!

What is a Battery?

An overview of the inner workings of a battery and how it was invented.

Hardware Overview

For a quick reference, here is an annotated diagram of the parts used on the Adjustable LiPo Charger:

1 Charge Input - The input voltage for the MCP73831 charge IC is between 3.75V to 6V. To fully charge a LiPo battery, it is recommended to have a voltage of around 5V. The charge IC will regulate the voltage down to safely charge the LiPo battery. (Up to 500mA of current may be required depending on the charge rate). Power LED - When power is supplied, this red LED should turn on. Status LED - When a battery is connected, the blue status LED should turn on. When the battery is fully charged, the LED will turn off. Battery Input - Only one battery should be charged at a time. There are a total of 3 battery inputs: JST connector, PTH pins, 2450 coin cell holder (on the back). Charge Rate Select - Selects the maximum amount of current to charge the battery. For a detailed explaination, see the Battery Charging section of this guide.

Charge Status LED

The on-board blue STAT LED can be used to get an indication of the charge status of your battery. Below is a table of other status indicators depending on the state of the charge IC.

 Charge State LED status No Battery Floating (should be OFF, but may flicker) Shutdown Floating (should be OFF, but may flicker) Charging ON Charge Complete OFF

Hardware Assembly

Before connecting anything to the Adjustable LiPo Charger, it's important to make sure the board is configured properly.

The switches on the Adjustable LiPo Charger come shipped with all the switches in the ON position. Before configuring the board, all the switches should be moved to the OFF position.

Setting the Charge Rate

Regardless of the size of the battery, it's important to keep in mind the charge rate of the battery. Every time a battery is charged and discharged, it causes wear on the battery. As the battery starts to wear down, the capacity of the battery slowly decreases until it's unable to hold a charge. Setting the charge rate comes with the trade off of lifespan and charge time; the faster the battery is charged, the shorter the life of the battery.

Rechargeable lithium batteries have a maximum recommended charge and discharge rate measured in "C". All of the single cell LiPo/Li-Ion batteries we currently sell have a maximum recommended charge/discharge rate of 1C. Other battery chemistries allow for faster rates of 10C or even 40C. A 1000mAh battery with a 1C charge rate would charge the battery at 1000mA of current. The same 1000mAh battery charged at 500mA of current would be 0.5C.

To set the charge rate, move the appropriate DIP switch from the off position to the ON position by sliding it to the right as seen below:

As a general rule of thumb when selecting a charge rate on the DIP switches, select the charge rate that best matches the capacity of your battery (e.g. 440mAh battery should be charged at 440mA MAX).

Setting a Custom Charge Rate

If you want to charge a battery smaller than 100mAh, or have a battery thats in between the values on the switch and would like to have exactly a 1C charge rate, you'll need to set a custom charge rate. The MCP73831 charge rate controller sets the maximum charge current with a resistor. To calculate the resistor needed, you can use the following formula from the datasheet:

$R_PTH \left(k\Omega \right) = 1000V / I_set \left(mA\right)$

If you wanted to set the charge rate to 40mA for example, a 25kΩ resistor will need to be soldered into the unpopulated pins next to the micro-B USB connector. To use that charge rate, move all of the DIP switches to the OFF position and move the DIP switch labeled "PTH" to the ON position.

Battery Charging

Once the board is configured for the battery, you can connect power from either a micro USB cable or the pins below the USB connector labeled "GND" and "INPUT". To fully charge a LiPo battery, it is recommended to have a voltage of around 5V when connecting to those through hole pins. The charge IC will regulate the voltage down to safely charge the LiPo battery.

Once power is connected, you can then install a single LiPo battery to one of the three battery connectors outlined in the Hardware Overview section of this guide. If you're using the rechargeable coin cell battery, make sure the battery is installed in the correct orientation to avoid damaging the battery.

If using the coin cell battery holder, do NOT install any type of battery other than the rechargeable coin cell battery. Most other coin cell batteries are not rechargeable and will not work with this charger.

Once the battery is installed, the blue status LED should turn on as shown below:

Charging is complete when the status LED turns off.

Resources and Going Further

Now that you've successfully got your Adjustable LiPo Charger up and running, it's time to incorporate it into your own project!

For more on the Adjustable LiPo Charger, check out the links below:

Need some inspiration for your next project? Check out some of these tutorials:

Weather Station Wirelessly Connected to Wunderground

Build your own open-source, official Wunderground weather station that connects over WiFi via an Electric Imp.

Photon Remote Temperature Sensor

Learn how to build your own Internet-connect, solar-powered temperature collection station using the Photon from Particle.

Blynk Board Washer/Dryer Alarm

How to configure the Blynk Board and app to notify you when your washer or dryer is done shaking.

Sparcade: Edison as a Web Server for Browser Games

Turn the Intel® Edison into an access point that serves a simple browser-based game. High scores from the game are displayed on a character LCD.

In 2003, CU student Nate Seidle fried a power supply in his dorm room and, in lieu of a way to order easy replacements, decided to start his own company. Since then, SparkFun has been committed to sustainably helping our world achieve electronics literacy from our headquarters in Boulder, Colorado.

No matter your vision, SparkFun's products and resources are designed to make the world of electronics more accessible. In addition to over 2,000 open source components and widgets, SparkFun offers curriculum, training and online tutorials designed to help demystify the wonderful world of embedded electronics. We're here to help you start something.