USB Li-ion Battery Charger





Introduction: USB Li-ion Battery Charger

This is a charger for lithium ion batteries which takes its power from the USB port of a computer.

It uses the MCP73861 or MCP73863 Li-ion battery charger chip manufactured by Microchip.

Step 1: The USB Power Connector

A piece of edge connector hacked off an ancient ethernet board serves as the power connector. To make it, cut off a piece that includes four edge fingers, and then file to make it fit inside the USB connector on the PC.

Step 2: The Circuit Board

The circuit board is a piece of single sided copper clad board. A hole is cut inside it so that it will accommodate the integrated circuit.

The MCP73861 or MCP73863 (they are similiar, with only slight differences which do not affect the circuit connections) is available in a small leadless package.

The difficulty? There are no leads to solder to. The advantage? There are no leads to break!

The ic is placed so that its connection side (the side with solder pads) lines up with the copper side of the board and it is then fixed in position with epoxy or some such glue.

Step 3: Soldering the Integrated Circuit

The area around the ic is tinned and the solder pads joined to the board with bits of wire.

I find it helpful to flatten the wire with pliers before soldering, so that it stays in position without any tendency to roll about. Some of the leads go to the same node and these are conveniently placed together.

After the leads have all been soldered, the space in between the leads are cut out to form islands and the other components are soldered to these islands of copper.

Step 4: Soldering the Components

The various components, as detailed in the data sheet for the ic (available from the web site of Microchip Technology) was then soldered in position. The two LEDs are new. All the other components have been rescued from old hard disks.

The red led is supposed to light up to inform us about error conditions. The other green LED (the clear one in the picture) lights up to indicate that charging is taking place. At the end of charging, it will blink or go out, depending upon the last digit of the ic part number.

The board is complete, all that remains is for it to be connected to the battery and the charging source.

If the source voltage is much above 5V a heat sink might have to be soldered to the thermal pad of the chip for charging to take place without interruptions due to the chip overheating.

It has integral thermal overload protection. If needed, a thermistor in contact with the battery may be used to protect the battery as well. The battery overheat protection feature has not been included in my version of the circuit.

Step 5: The USB Connection

It is attached to the USB plug so that it can be plugged as a unit into the USB port of a computer, and the battery connected with wires. With a supply voltage of 5V and a maximum current of 500mA, overheating of the chip is not likely to be a problem.

Step 6: The Charger at Work

The charger is shown attempting to charge a mobile phone battery.

Li-ion batteries come in various flavours - single cell, double cell, coke anode, graphite anode etc. Each has to be charged to a specific voltage. Too low voltage leads to undercharging, with the result that the full capacity of the battery is not utilised.

Over charging the battery, even by as little as 0.1V, can lead to "spontaneous disassembly" of the battery, according to one manufacturer. That means it can explode, and catch fire, and potentially cause personal injury.

Use this circuit at your own risk.

The datasheets of the chip give information on configuring the chip to cope with different types of battery, and is an essential document in using the chip.



    • Trash to Treasure

      Trash to Treasure
    • Paper Contest 2018

      Paper Contest 2018
    • Pocket-Sized Contest

      Pocket-Sized Contest

    We have a be nice policy.
    Please be positive and constructive.




    hi dudes!

    just googled "5v 3.7v charger +diy" and was redirected here

    I was wondering whether a single resistor in series with a diode would do the trick as follow:

    when the batery is completely discharged the resistor will limit the current through the batery, and when the batery is full the current will drop to cero and the voltage in the batery terminals will be about 5V - 0.7V = 4.3V

    would it burn/deteriorate the batery?


    i suggest you google and read about proper chraging of li-ion cells. obviously no one would buy an IC to do what a resistor + diode "can" .
    there is little room for error. unless you have a bomb in mind :)

    Hello Ancient1, thanks, I think at last have got it up and running... Regards!

    Just a question about the temperature sensing.
    The datasheet states that "Applying a voltage equal to VTHREF/3 to the THERM
    input disables temperature monitoring."

    Am I correct that the resistor values used here are 1.03 and 4.72 (ohm? kOhm?)?
    Then how does this work? If I am correct, this would give an Therm on pin 7 of 2.05V, given the reference voltage of 2.5V from ThRef on pin 6.

    I just can't figure out what I should use, and what the best values/setup would be if I would want to use the internal thermistor that's inside most battery packs.

    Any advice?

    Is it possible to just use a Lithium ion battery of 3.6V, directly connecting it with two wires out from the battery and solder with the circuit?


    nice tip! flatten the bare connecting wires.. never thought of it this way.. =) I will try this method on my next upcoming TQFN proto projects... Thanks!

    when the battery is full charged.will it automatically stop charging?

    Some commenters say this is not a real instructable, and that this design is just taken straight from the datasheet. That may indeed be the case. One might argue that you have not submitted the actual circuit(for the one shown includes a thermistor).

    But I have to say - your method of soldering QFN ICs is awesome. Thank you.

    GOOD GOD! That's a LiPolimer battery! Never EVER charge a LiPo like this. Always check the temperature and adjust charging acordingly.