Browse over 10,000 Electronics Projects using the Page Numbering provided at the bottom of each Page.

Portable USB Charger Circuit

Portable USB Charger Circuit

Build this portable USB charger circuit, and you’ll always have access to a charger.

Imagine a beautiful summer day. You’re on you way to meet friends for a picnic in the park. But, the park is huge and full of people. Since you don’t know where exactly your friends are, you pick up your phone to call them.

But as you dial the number, the battery on your phone dies…


With this portable USB charger circuit, there’s no need to worry. Just drop by a supermarket nearby and pick up some standard batteries to recharge your phone on-the-go.


Portable USB Charger Circuit Diagram

Here’s the circuit diagram:

Portable USB charger circuit diagram

Parts List

U17805Voltage Regulator
LEDStandard OutputLight-Emitting Diode
R1330 ΩResistor
R275 kΩResistor
R375 kΩResistor
R451 kΩResistor
R551 kΩResistor
D11N4001-4007Rectifier Diode
USBType A SocketSolderable
6xAA, 6xAAA or 9VBattery Connector


How The Circuit Works

The circuit is based around the LM7805 chip. It’s a voltage regulator that takes an input of between 7V to around 30V and gives out 5V with up to 1A of current.

To see if the charger is working or not, I’ve included an LED and a 330 Ω resistor between 5V and the minus of the battery. The circuit will work perfectly fine without these also.

The resistors R2 to R5 set the voltage levels on the data lines to specific voltages. These voltages ensure that the device knows what current to use for charging. I got the values for these resistors from an Adafruit article where they opened an iPhone charger to see how it worked. These values will make an iPhone and many other devices charge with 500 mA.

The rectifier diode D1 makes sure you don’t damage the circuit if you connect plus and minus the wrong way. It also reduces the voltage by 1V, which means you need at least 8V in for the charger to work.

It’s not really necessary to have this diode. If you’re going to solder the plus and minus leads to the board, I’m sure you’ll double-check the connection before testing. But, with 9V input it’s a good thing to reduce the voltage to the voltage regulator anyway to reduce the heat.

Also, it makes it possible to use a DC socket for connecting a range of different inputs without worrying about plus and minus being correct.

The voltage regulator can still get too hot and shut down, even with this diode. If you find that this happens a lot, you can solve it by adding a clip-on heatsink for TO-220.

The USB charger circuit works from 6 AA batteries, 6 AAA batteries, or a 9V battery. All these batteries are fairly simple to find in most super markets.

How To Build The Charger Circuit

This circuit is fairly easy to build. You only need 7 components. It’s perfect for soldering onto a stripboard.

I’ve created a PDF tutorial with step-by-step instructions for building this portable USB charger.

Click here to download the PDF tutorial.


If you want to use a different type of battery, just switch to a different battery connector. Or even better, use a standard DC input socket so that you can connect it to standard DC wall adapters. Then connect DC plugs to battery packs for AA, AAA and 9V batteries to have a whole range of charging possibilities.

You can also use solar panel chargers on a sunny day.

Portable USB charger with different power sources

Did You Build It?

Let Oyvind know how it went in the comment field in his blog below. Questions are welcome!

Copyright Build Electronic Circuits