Introduction: Lithium Battery Solar USB/ IPhone/ Arduino Charger

One of the most fun and useful projects on instructables is to create your very own solar USB/ iPhone charger. They're not overly difficult to make, nor are the parts overly expensive or hard to find. For the most part they do a rather good job of charging up small gadgets. Mostly.

The big flaw in the DIY solar charger world are the batteries. Nearly all the designs on instructables (including all of my designs) use standard NiMh rechargeable batteries. They're cheap, easy to find, and very safe to use. The problem is that their capacity and voltage are both low, and the gadgets we keep wanting to charge are getting bigger and better batteries.

For instance an iPhone 4 has a 2,000mAh battery inside of it. Now that isn't too tough to charge up decently with a well made solar charger using 2 or 4 AA batteries. On the other hand an iPad 2 has a 6,000mAh battery pack on it. Not so easy to charge up.

The solution for these problems is to ditch NiMh batteries and turn to Lithium batteries.

In this guide I will show you how to make your very own Lithium battery charger. One that is cheap to make, easy to build, and most importantly safe to use.

(Oh and help me win the Instructables Green Tech Contest by voting for this project! An iPad would be great for my classroom! Even better, I'll build a massive Lithium powered charger to run the iPad. It'll be 100% green in my classroom.)

Step 1: What You Need

Picture of What You Need

Electronics Parts:
5V (or greater) Solar Cell
3.7V Lithium Ion Battery: 2,600MAH, 4,400MAH, 6,600MAH
Lithium Battery Charge Controller
DC-DC USB Boosting Circuit
2.5mm Female Panel Mount Plug
2.5mm Male Jack with Wire
1N4001 Diode
Wire

Building Supplies:
Electrical Tape
Shrink Tubing
Double Sided Foam Tape
Solder
Altoids Tin (Or other enclosure)

Tools:
Soldering Ion
Hot Glue Gun
Drill
Dremel (Not necessary but good to have)
Wire Cutters
Wire Strippers
Helping Hand
Safety Goggles

This guide will show you how to make a Solar powered version of this charger. You can also easily ditch the Solar section completely and rely on USB to charge up the Lithium battery.

While many of the parts for this project can easily be found at most online electronics store, a few items like the "DC to DC Boosting Circuit" and the "Lithium Charge Controller Board" are more difficult to find. As this guide continues I'll provide you with several options on where to get most of the parts as well as a detailed rundown of what each one does. Then you can make an informed decision as to which one best meets your individual project needs.

As a disclaimer I will say that I do sell both finished versions of this charger, parts to make this charger, and complete kits on my website BrownDogGadgets.com. We currently have two kits available, a basic Solar USB Kit and an updated Lithium Heavy Duty Kit.

Step 2: What Are Lithium Batteries?

Picture of What Are Lithium Batteries?

Whether or not you know it, you've probably got a one in your pocket right now. And one on your desk. And one in your purse/ backpack. Lithium Ion batteries run most modern electronics. They provide a large capacity of power, a high voltage level, and a high number of recharges for their size. This as opposed to rechargeable AAs which are are most always NiMh in composition.

In case it's been a while since high school chemistry for you, the difference between your standard rechargeable AA battery and a Lithium Ion battery are the chemicals inside. Take a look at the Periodic Table and you'll see that Lithium is on the far left in the first column, where all the most reactive elements live. This as compared to Nickel which hangs out in the middle of the table with a lot of random nonreactive stuff. (And if you want to know why it's so reactive, that's because it only has one lonely valance electron. Which I'm sure at least one of my 8th grade science students probably still remembers. Sigh... teenagers.)

This is why Lithium often gets a bad rap. Since it's so darned reactive it can sometimes get out of control. A few years back Sony made a bad batch of laptop batteries, some of which started on fire randomly. (Did you know Sony makes a good chunk of the world's laptop batteries, for most major brands?)

This is why we must take certain precautions when dealing with Lithium Ion Batteries. In order to maintain a very precise voltage when charging. The 3.7V batteries we're using in this guide need to have a charging voltage of 4.2V. A volt high or a volt low can mean an out of control chemical reaction which can lead to danger.

This is why you must be careful when dealing with Lithium Batteries! While they are quite safe when handled with care, if you start doing things you shouldn't you can end up with big problems. Treat them with the respect they deserve.

Step 3: Choose a Lithium Charge Controller

Picture of Choose a Lithium Charge Controller

As reactive as Lithium batteries are all you really need to be safe is to have a circuit that controls the voltage going to your battery.

While you could make your own charge controlling circuit, it's far easier to just buy one that you know works. For this you have several options.

Adafruit is now on it's second generation of Lithium Charge Controllers that have several options for power input. They're very nice, but a bit on the large size. Not at all small enough for our Altoids tin sized enclosure.

I sell some small Lithium Charge Controller Modules on my site. These are the ones I use in my kit and in this guide. I like them because they're small, simple, and have status LEDs for charging and when the battery is full. Like the Adafruit charger you can also use the USB port on it to charge up the Lithium Battery if you lack sun. (Something that is very handy for any solar charger.)

No matter what you use, be sure that you know how to use it and what goes where.

Step 4: USB Circuit

Picture of USB Circuit

Most modern gadgets can charge via USB. It's become the standard world wide. So why do we need a special circuit for it? Can't I just wire up a generic USB port directly to the battery?

The problem is that USB operates at 5V of power. The Lithium Batteries you'd want to use with this project are only 3.7V of power. The USB Circuit I have in this project is a DC to DC Boosting Circuit. Meaning it bumps up the voltage so our gadgets can actually charge. (This as opposed to a lot of USB chargers on instructables that use 9V or 6V worth of batteries and then drop down the voltage, which makes using solar very difficult.)

The circuit I'm using, and sell on my website, is a surplus circuit from some random charger that I found after a lot of testing. It's more or less a clone of the Adafruit Minityboost Circuit. Except it's cheaper and already made for you.

So yes, you can find a cheap USB charger online and take it apart BUT listen up. What you want to find is one that goes from 3V (AKA 2 AA batteries) up to 5V (AKA USB). What you don't want to do is take apart a wall USB charger or a car USB charger. Those convert higher voltages to lower voltages, which is the exact opposite of what we're trying to do.

Also, keep in mind that while the USB Circuit I have and the Mintyboost both work with Apple Products, many USB chargers do not. Apple products check the data tabs on USB to see what they're plugged into. If they don't see any power flow over the data tabs, something no other gadget does, then they won't charge. Believe me, I've tried a lot of cheap circuits off eBay only to find that my iPhone 4 rejected them. You don't want this to happen.

Step 5: Choose a Battery

Picture of Choose a Battery

Do a quick google search and you'll find a wide array of batteries with different sizes, capacities, voltages, and prices. It can be a tad confusing at first.

For this charger we're going to be using a 3.7V Lithium Polymer (Li-po) Battery. One that is probably very similar to the one in your iPod or cell phone. For this project you really want to be using a 3.7V battery, as thats what our Charging Circuit is designed to charge.

While it should be a non issue, you need to get a battery with a built in Overcharge / Undercharge protection. Many sites will call this "PCB Protection." (Looking at you eBay.) This just means that there is a small circuit board and chip that makes sure the battery stops charging or stops discharging at the right time.

Since you can easily find many different batteries out there, your big concern should be the physical size of the battery along with it's capacity. The size really depends on your enclosure. In this guide I'll be using an Altoids tin for a case, so my size is rather limited. While I would have loved to fit a 4,400mAh battery inside an Altoids tin I instead have gone with a 2,000mAh battery instead.

Step 6: Wire Up the Solar Cell

Picture of Wire Up the Solar Cell

If you're not making a solar powered version of this kit, skip ahead.

In this guide I'm using a 5.5V 320mA solar cell which is encased in a hard plastic. Any large solar cell will do, but ideally for the Charge Controller you want your solar cell between 5-6V in power.

Take the end of the Male Jack Wire and split it in two. Then strip the ends a bit.

The wire with the white stripe is negative, the wire that is all black is positive.

Solder the wires to the appropriate tabs on the back of the solar cell.

Use either electrical tape or hot glue to cover the solder points. This protects them and helps relieve strain.

Step 7: Drill the Tin (or Case)

Picture of Drill the Tin (or Case)

Because I'm using an Altoids style tin I need to do some drill work. For this I'll be using a drill and a Dremel.

Before you do any work on the tin you should probably lay everything in the tin to see if it all fits. Figure out where everything goes before drilling. Use a marker to indicate where everything should go.

Once you have you spots picked out you can get to work.

For the USB Port you can do one of two things. You can use a large tin snip to cut straight down from the top of the tin, or you can drill out a USB sized hole in the side of your tin. I'll be drilling out a hole.

First, put the USB port up to the side of the tin. Mark along the outside.

Use a drill to drill two or more hole inside that circle.

Use your Dremel to file and cut the remaining space out. Using a large clamp to hold down the tin is advised. Holding it with your hand will probably cause you to lose a finger or two.

Once done check to make sure the USB port fits through the hole you made.

To make a hole for the 2.5mm female panel mount, just drill a hole. Use a Dremel to make it larger is need be. (If you're not doing the solar side of things, ignore the 2.5mm section all together.)

Step 8: Wire Up the Charge Controller

Picture of Wire Up the Charge Controller

One of the reasons I like using this little charge controller is that its hard to screw up. There are 4 solder points on it. In the front next to the mini-USB port are where we hook up the DC power, which in our case in solar, and the two spots in the rear are for the battery.

Lets first wire up the 2.5mm Female Plug to the Charge Controller. All we need to do is run two wires and a diode over from the Plug to the Controller. (You can also use your Shrink Tubing in this section as well if you want.)

Grab your 1N4001 Diode, 2.5mm Plug, and Charge Controller. Put the female plug down in front of you. Going from left to right the three prongs are such. The Left is negative, the middle is positive, and the right is not going to be used.

Take a wire and wrap it around the negative leg of the Plug, with the other end going to the negative "in" spot on the board. Solder and be happy. (You can cover up the leg of the Plug with some shrink tubing if you want.)

Now take another bit of wire and wrap it around the leg of the diode that has a bar on it. Wrap close to the base of the diode to ensure we can save as much space as possible. Wrap the other leg of the diode (the side without the bar) to the middle leg of the Plug. Again, as close to the base of the diode as you can. Lastly connect the wire to the positive "in" solder point on the board. Solder and rejoice. (Again, you can use shrink tubing to make the connection with the plug secure.)

Step 9: Wire Up the Battery & USB Circuit

Picture of Wire Up the Battery & USB Circuit

From this point on you only need to solder four additional points.

What we want to do is wire up both the battery and the USB circuit to the Charge Controller Board. For this you'll need to cut some wire.

Solder some wire onto the Positive and Negative points on the USB Circuit. They're on the underside of the board.

Once that is done twist those wires together with the wires coming off your Lithium Battery. Be sure you're hooking up the Positive wires together, and the Negative wires together. (Red is Positive and Black is Negative, in case you've forgotten.)

Once that twisting is done, just solder to the Battery points on the back of the charge controller board. I like to put the wires through the holes before soldering.

You're actually 100% done with the electrical aspect of this project. Take a deep breath and relax.

It's also a good idea to test out your circuit at this point. Everything is wired up and should work. Grab an iPod or anything USB and see if it works (if the battery is low or dead your gadget might not charge). You can also take it out in the sun and see if your solar cell starts charging up the battery. You should see the little red LED on the charging board turn on. You could also use a mini USB cable to charge up the battery as well.

Step 10: Insulate EVERYTHING

Picture of Insulate EVERYTHING

Before we jam everything into the tin, it's probably a good idea to make sure our tin doesn't cause a short. If you're using wood or plastic enclosures, ignore this.

Using Electrical Tape put down several strips along the bottom of your tin and the side of your tin. The areas where the USB circuit will be, and where the Charge Controller will be hanging out. (In my pictures you can see that I've left the Charge Controller free floating.)

You really don't want a short.

To make sure our solder points are secure you can apply either electrical tape to them, or a dab of hot glue.

Step 11: Jam It All In

Picture of Jam It All In

When putting everything in the tin, first start with the 2.5mm Plug. As you need to screw it into place it's kind of important that you put it in first.

Once in and secure try putting your USB circuit into place. If everything fits, start out by putting a small dab of hot glue down and working your circuit into place. Once into place cover it with hot glue.

(The USB Circuit I'm using has a switch on the side. If you're using my circuit make sure the switch is put all the way back. That sets the circuit to "charging" mode.")

Lastly you have your battery. You probably don't want to use hot glue on it. Some double sided tape or a loop of electrical tape will hold it down.

Step 12: Rejoice

Picture of Rejoice

Well thats about it actually.

You can now either charge up the battery via the mini USB port on the Charging Circuit or via Solar power. The red status LED on the Charge Controller board means the battery is charging, the blue pops on when the battery is full.

On a recent plane flight I was able to charge up my iPhone 4 over 80% (while in Airplane mode and listening to music). That was with a 2,000mAh battery. A 4,400mAh or 6,600mAh battery would do a heck of a lot more. Especially with an iPad or another tablet.

This is a great little project to get yourself started with Lithium batteries, something that I know a lot of people are hesitant to do. As Lithium and Controller prices fall hobbyists would be silly not to go that route, especially in the area of micro controller powered projects. Lithium batteries are particularly good for very small projects as they come in insanely small sizes. A great power source when you're trying to shrink down your death ray.

So if your'e looking to make a very high powered solar USB charger for your cell, tablet, iPad, iPod, iPhone, GPS, or Arduino project you really can't go wrong with this solution. Especially when you can put it in such a cute tin!

As I said before, you can find these parts from a variety of sources online or you can grab them off my own website BrownDogGadgets.com. All the money I make goes either to one cute brown dog, or to fund more projects. (We have an updated Lithium Heavy Duty 2.0 Kitavailable now. All around more powerful.)

If you're looking for straight camping gear, without building, you can grab a Folding USB Solar Cell. It's a whole lot easier than making one of these, and also cheaper.

Comments

sonnyp99 (author)2017-02-06

Is there a way to add a toggle switch to the USB circuit? (I know that there is a switch on the USB circuit, I want to be able to turn the USB circuit on/off from the outside rather than going in and having to open the whole casing up)

BrownDogGadgets (author)sonnyp992017-09-28

Yup, just put it between the battery and the USB circuit. Though you don't need one.

sonnyp99 (author)2016-11-28

The 2.5mm Male Jack with Wire and the 2.5mm Female Panel Mount Plug are only used if your doing this project with the solar panel, correct?

giantpair (author)2016-09-26

Can you link me to some info about doing this using wall power and having the phone/load run operational at the same time please? Here's my research efforts thus far.

https://forum.arduino.cc/index.php?topic=425890.0

kamhagh (author)2014-11-02

how can i charge & use the lipo to charge my phone at same time? (solar charging Lipo -> lipo charging phone -> )? at same time while walking :) (panel installed on my bag or something, or cars front window)

giantpair (author)kamhagh2016-09-26

Did you have any luck with this? I've done some research.

https://forum.arduino.cc/index.php?topic=425890.0

giantpair (author)giantpair2016-09-26

But with wall power instead of solar

RachitS5 (author)2016-07-22

Circuit diagram!!

RachitS5 (author)2016-07-22

Circuit diagram!!

RachitS5 (author)2016-07-22

Circuit diagram!!

MarkRoworth (author)2016-03-26

Really good instructable, but it would be very useful to have a circuit diagram - a picture is worth a thousand words, sometimes.

ccrew1 (author)2016-01-29

Will the 6V 80mA Solar Cell despite having a lower current (does the current affect the charge speed or something else?) work for something like an arduino as well? I am planning to use it intermittently on a low power demand project. So slow charge speed (if the low mA means that) is okay as long as the battery can slowly restore that power over a long period of time.

rsam00 (author)2015-11-15

Great instructable!

I am trying to build one but to charge a 5v li-ion battery. what modifications would you recommend I do in order to do so?

Ken wei (author)2015-11-07

Will the lithium ion battery exploded under the heat caused by the sun?

Ken wei (author)2015-11-07

Will the lithium ion battery exploded under the heat caused by the sun?

Malkaris (author)2015-10-30

how could this be modified to be a UPS?

mythodea (author)2015-10-04

Question: I have a 15watt solar panel with an output of max 18volt. How can i charge a 3,7V Lithium Ion battery. Most charge controller have an input voltage of 5V, could not found any charge controller with 18V input voltage. Any suggestions?

tomasvega (author)2015-03-16

Hi there! If I use NiMH batteries instead of Lithium batteries can I just do not use the Charge Controller, connecting the Solar Panel directly to the batterie?

RedstoneM (author)tomasvega2015-09-24

Eh you still need a NiMH controller

raceteam36 (author)2015-04-14

where would you put an analog volt meter in this project

RedstoneM (author)raceteam362015-09-24

+ and - battery

Ddarlington36 (author)2015-07-22

* Zener 1n4734 5.6v

Ddarlington36 (author)2015-07-22

I was wanting to ask about the blocking diode no-one really explains why you pick that diode say over zener diode 1n437 5.6v. The reason i ask is iam attempting to build my own solar charger still waiting on alot of the parts to arrive. the solar cell will be 5.5v 266ma going to 4x 18650 cells in parallel setup. Will the zener diode that i have choosen work for the solar cell that i have.

Avani Balaji (author)2015-05-26

colbtron (author)2014-09-30

Adafruit has some sweet Li-Poly batteries which work well. What I'd like is to be able to add a LED strip to show how charged the battery is.

Diy electric (author)colbtron2015-05-01

This worked very well for me. I simply just wired my battery up to it in parallel with the booster circuit.

http://www.ebay.ca/itm/Lithium-ion-battery-voltage...

BrownDogGadgets (author)colbtron2015-02-18

Unfortunately, you can't just add LEDs in and expect it to show a charge. You'd need the right kind of voltage meter or monitoring chip. You could easily wire in a small LED voltmeter (they're all of $4 on eBay) and that would give you a general idea of how charged it is. Otherwise the charge controller board shows when it's full.

linusrichter23 (author)2015-04-19

can you wire the lithium bateries in series???

raoul.ursum (author)2015-03-26

How did you prevent the lipo from discharging under 3 volt?

Mr_Rep (author)2014-08-27

sssoooo.... wheres the lithium kit from the video on the website? all i see is this massive and expensive unit that has dual charging ports. where can i buy a kit that uses a simple Li-ion battery, and one usb connection fairly cheaply?

BrownDogGadgets (author)Mr_Rep2015-02-18

The parts are all still on the website. The new version addresses several issues that customers had, and gives a higher output and better charging. (The old version couldn't charge a tablet due to low amperage output. The new version can.) The prices are about the same as well between the old and new version.

avelyn94 (author)2014-10-08

what if i wanted to put 2 output port how should i connect it?

BrownDogGadgets (author)avelyn942015-02-18

I actually have a 2 USB Port, higher output, circuit board on my website. IT works better with lithium batteries then the version I used in this write up years ago.

kamhagh (author)2014-11-02

how can i charge & use the lipo to charge my phone at same time? (solar charging Lipo -> lipo charging phone -> )? at same time while walking :) (panel installed on my bag or something, or cars front window)

BrownDogGadgets (author)kamhagh2015-02-18

That you can.

addisonday (author)2015-01-23

How would I add a switch on to this?

It depends, what would you like the switch to do?

edrisamiry (author)2015-01-17

hi plz answer me plz can I connect 3 or 4 AA batteries directly to the usb if not!can u please tell me what else can I use!I can't find charging controlers I cant access these things I m living in Afghanistan! can u plz plz help me make this stuff with easiest things!do you know I m talking resistors and other things from recycle electronics plz help me if one of u guys know! my email idris.amiry@hotmail.com BEST REGARDS: Edris

gluvit (author)2014-09-22

Great project

Mr_Rep (author)2014-08-27

rather than the DC-DC USB Boosting Circuit could i just use the guts from a cigarette lighter usb charger? since it contains the 5V regulator

Mr_Rep (author)2014-08-27

rather than using the DC-DC USB Boosting Circuit, could i just use the 5V regulator from a cheap cigarette lighter usb charger?

jjjacala (author)2014-08-03

where i can get a free battery charger contorler?

jdw1001 made it! (author)2014-07-10

I made this neat little charger but I need a little help. It works fine with my old Ipod but it won't charge my Iphone 5. I bought the booster from BrownDogGadgets and modified it by taking out the battery contacts. ( I may have bought the wrong booster) I am working on making another one. But anyhow I found that this circuit would charge my Iphone 5 as long as I had the circuit in line with my car battery as it charged the Lithium Battery and my phone. That tells me that everything is all right. I just need more power or current flowing. I am considering adding another battery to the circuit. Any advise is greatly appreciated.

Thanks,

Jeff

technicallyartistic (author)2013-01-10

Just wondering because I can't seem to find this directly answered anywhere. Is it ok to be charging up your batteries via usb or solar while using them to power whatever you have plugged into them?

Nothing bad will happen if you do both at the same time. It's not going to harm the battery.

Your'e just sucking power away before it even hits the battery.

Will this then confuse the charge controller?

Is it thus necessary to use another type if charger? Like this one: http://www.adafruit.com/products/259

callega (author)2014-01-21

Thanks for this great project! I'm going to try it!

I have two questions:

1. There is a problem if you have connect the USB input and the solar panel at the same time?

2. It's possible to have connected any input source and charging a device at the same time?

Thanks again

Bumsfallera (author)callega2014-07-09

1. I believe it is no problem as long as you protect your solar panel with a diode. However, the solar panel would only be able to contribute any power if the voltage is higher than the input USB power of 5V. Onto this the threshold voltage of the diode needs to be added too.

2. That is a good question. I found a forum post where the different possible szenarios for this setting are described: http://www.societyofrobots.com/robotforum/index.ph...

Moreover, there are special charge controllers which can connect batteries AND load together with a power source for charging: http://www.adafruit.com/products/259

Unfortunately, I haven't found any cheaper alternatives. Therefore I have a question too:

Is it possible to build such a thing as DIY so that it also works for higher charge currents?

LightningJimmy (author)2014-07-01

I found a cheaper way to get the items needed. I got a 12,000mAH battery and a lithium charge controller/3 to 5 volt Booster circuit and a case for $18 on Rakuten and I also got a 6 volt 320mA Solar panel on Ebay for $8.

lifeinbeats (author)2014-05-14

Hi there, not sure if you're responding to comments, but I am trying to reuse an old iphone 4 battery for this project, and the contacts are very confusing! I was wondering if you had any experience with this? Mr Google couldn't help me out this time...

About This Instructable

312,703views

647favorites

License:

Bio: I used to teach middle school science, but now I run my own online educational science website. I spend my days designing new projects for ... More »
More by BrownDogGadgets:Interactive NASA Shirt Using Crazy CircuitsGiant LEGO NES Controller LED Broken Heart Bracelet
Add instructable to: