Introduction: Altoids USB Battery/Solar Charger for IPhone and IPod

Picture of Altoids USB Battery/Solar Charger for IPhone and IPod

I know there are plenty of USB chargers out there for you to build.  But here's one that doesn't use a voltage regulator or an IC chip to power it.  The basic concept is to use 4 - AAA rechargeable batteries (1.2V a piece) to power the USB and a couple of solar cells to charge the batteries.  If you've done the basic math you're probably wondering how 4.8V (4 x 1.2) is going to power a USB device which requires 5VDC.  Well that's actually how I came up with the idea.  I have another charger I made using a 9V battery and a 5V regulator.  It will charge my iPod until the battery runs low.  When I test the voltage output at the USB with a spent 9V, it will be spitting out 4.7V.  So that's the cut off point.  4.8V is still within the tolerance for a USB device to charge.  So I tried a 4-cell setup on my breadboard and it worked!  I tested the voltage at the USB socket and (to my surprise) it was at 5.2V.  I put my voltmeter on each battery and they were cranking out 1.3V at full charge.  This is great!  The tolerance of a USB happens to be just right for these four cells.  So the solar part was sort of an afterthought for charging the batteries (they are rechargeable anyway).

If you'd like to try to make one yourself, here's what you need:

4 - AAA Battery Holder

USB Socket (female)

Solar Panel (3V output minimum, around 5V max)

Blocking Diode (not LED)

Some resistors (This is somewhat optional.  You need them if you want your iPod/iPhone to recognize your charger.  I'll explain exactly which ones to use later.)

DPDT Toggle Switch

Small Perf Board (Also optional)

Soldering Iron

Step 1: Prepare the Tin

Picture of Prepare the Tin

I started with an easy step.  Paint the tin.  I just wanted to start with a blank canvas.  You do too... trust me.

Step 2: Rewire Your Battery Holder

Picture of Rewire Your Battery Holder

This step is necessary if you use a small enough solar panel to fit on top of the tin.  I rescued mine from some cheap solar landscaping lights.  They produce more than 3V each in direct sunlight, but that's not enough to charge all four batteries.  So I decided to make them charge two sets of two batteries.  This is possible with a DPDT (Double Pole - Double Throw) toggle switch.  You need to alter the battery holder to make this possible.  First, you need to remove the cover of the wire compartment.  This was done with a shop knife by cutting off the plastic connectors.  Then, just cut the connection between batteries 2 and 3 (Red arrow).  Lastly, solder a wire to each connection and run them out the same hole the other wires are coming out.  I also removed the switch from the holder because I won't be able to get at it once the holder is attached to the project tin... and you never know when you might need an extra switch anyway.

Step 3: Prepare Your USB Socket

Picture of Prepare Your USB Socket

You will have to prewire your USB socket.  This is how I decided to wire it.  Black and yellow are optional if you don't want to use this on Apple products.  They require you to wire these so that your USB emulates a typical Apple charger.

Red (1): +5VDC
Black (2): Data (~2.4VDC)
Yellow (3): Data (~1.8VDC)
White (4): Ground

Step 4: Wire the Switch

Picture of Wire the Switch

The point of you toggle switch is to change your batteries from four batteries in series to two sets of two batteries.  This is necessary because our solar panel won't produce enough voltage to charge all four batteries together.  So, you have to split them up.  The toggle will basically allow you to switch between charging the batteries or powering the USB.

How to wire:

1 gets connected to 2 via jumper (small piece of wire you solder to both).

3: Negative side of battery holder where it was split

4: Positive side of battery holder where it was split

5: Original negative wire from battery holder (black in most cases)

6: Original postive wire from battery holder (red in most cases)

Numbers 5 and 6 are going to needs extra wires soldered to them so that they can connect to the perf board.  I suggest using the same color wires to save on confusion.

Step 5: Solder Components to Board

Picture of Solder Components to Board

This schematic will help those who understand schematics.  The other pictures should help those who don't.  The smallest I could make this board without making it too complicated was 5 holes by 7 holes.  This is pretty small and will fit nicely in our tin.

Color codes:

Red: 1k resistors (these can actually be almost any kind of resistors you want as long as they are the same.)
Dark Blue: 33k resistor (also can be 3.3k or 330 as long as you change your 22k accordingly)
Purple: 22k resistor
Yellow: Wire from USB #1 pin (Red wire from "step 2")
Light Green: Wire from USB #2 pin (Black wire from "step 2")
Dark Green: Wire from USB #3 pin (Yellow wire from "step 2")
Pink: Wire from USB #4 pin (White wire from "step 2")
Light Blue: Positive lead from solar cells (use a blocking diode before this point)
Orange: Negative lead from solar cells
+ : Positive lead from the switch
- : Negative lead from the switch
Gray: this is just a way to indicate where you need to bridge these connections.

Step 6: Try It Out

Picture of Try It Out

After making all the connections and soldering them in place, it's now time to test it out.  I would suggest using a voltmeter before plugging in a device that may get fried.  The best way to do this is check the voltages across the USB connector.

Red to White should get from 4.8V to 5.2

Black to White should get around 2.5V

Yellow to white should get around 1.8V

There is some tolerance with these voltages.  I would try not to go more than .4 volts in any direction though.

The picture shows all the parts together outside of the tin.  There is an extra switch and LED in the picture that I haven't given instructions for.  It's a light meter.  If you turn on the switch it's in series with, it will light up if there's enough light hitting the photo cells to charge the batteries.  If you'd like to know how to add this, I can try to walk you through it in the comments or by email.

Step 7: Prepare the Tin

Picture of Prepare the Tin

I forgot to mention that you may need some tools for altering the tin (Dremel, tin snips, drill, etc.)  However you can do it, make the appropriate holes.  You may also need a hot glue gun to set everything in place.  I cut a slot for the USB socket and bent back the metal to use for a mount.  I also glued a nut underneath it to hold it down.

Step 8: Finishing Details

Picture of Finishing Details

Once all your componants are in the tin, you are done... so long as everything still works.  If you solder well this shouldn't be a problem. 

I hope you enjoy.  I've tried this out a couple of times and it will bring my iPod from 20% charge to 100% without trouble.  Once the batteries won't charge, just switch the toggle and set it in the sun.  Since I have such small solar cells, my charger takes about 6-8 hours to charge the AAAs to full.  But this is meant to be an emergency charger anyway.  Hope you enjoy.

This is my first instructable... please be nice.  =)


Starsword7 made it! (author)2016-06-03

Made this, but instead of the solar charging circuit, I used AA batteries.

Charges my phone about 60%

Best part is, if it runs out of charge, just pop in a spare set of rechargeable batteries.

Gadget93 (author)2016-05-29

I like this. Thankyou.
Is there a reason AAA is used vs AA? Can AA be used instead?

chibennett (author)2016-03-01

Has anyone tried using a usb car adapter plug for the usb female part?

bear8256 (author)2015-08-06

Why is there never a good video for ppl like me who more visual? I don't understand the way it was explained

txcoasty (author)2015-06-05

Could you please send me the walk through for the switch and light

ssingh163 (author)2015-01-22

I use 7805 votage regulater 2 100 ohm resistor to d+ or d- 8 aa rechargable cell 4 cell hav 1000 mah so 8 cell have 2000 mah but prblm is tht my iphone shw charging but not increase the battery persentage it decreased after few sec n min plz help me i use 2 cell holder 1 holder capacity is 4 cell i use cell series or parralel but not working

Sheppi (author)2015-01-03


great insructable but my iphone just shows the charging icon but doesnt actually charge

pooyathr (author)2013-03-11

It means that if we wana to charge an android device we don't need resestors?
Plz answer as soon as you can.

haikuordie (author)pooyathr2013-03-13

Yes. It means you don't need the resisters. Apple devices require voltage to the data pins but most others do not.

keithwd (author)haikuordie2014-04-05

I just read that:

The IEEE USB charger standard requires dumb chargers (those like yours without the extra electronics required to signal that they are a charger) have their data pins shorted to each other, so the phone will recognize that this is just a charger, not a USB port and start charging immediately otherwise it waits for the USB bus allocated address.

This was a post on a forum and I have not verified it by trying to find the IEEE specifications.

I want to make a battery pack charger that only uses batteries, their holder and a USB connection--I never travel without lots of rechargeable batteries and can recharge them during the stops with my standard charger for the camera.

Comments anyone

highwind001 (author)2014-03-21

just did this on a bread board. It worked! Thanks for posting this.

neemanee (author)2014-03-12

As quickly as possible would be nice. thanks again

neemanee (author)2014-03-11


neemanee (author)2014-03-05

Can you make a video? Please

haikuordie (author)neemanee2014-03-08

I'll see what I can do. I have to make another of these anyway.

CharlieFaciola (author)2014-01-31

why do you need a blocking diode?

JKPieGuy (author)2013-09-29

Wouldn't a voltage regulator work aswell?

levi_gatlin (author)2013-09-22

Okay where in the circuit would I put it?

haikuordie (author)2013-09-22

A 100k ohm pot. would work and be easy to find. The smaller the pot. the easier it would be to set it just right. If you don't know how to use a pot. for a voltage divider it would take me a lot more space to explain it then in this comment section. It's not difficult to do, it's just hard for me to explain without pics.

levi_gatlin (author)2013-09-18

And what kind would I get?

levi_gatlin (author)2013-09-18

If I was going to go the potentiometer route were would I put it at in the circuit?

haikuordie (author)2013-09-16

Regular 1.5volt batteries won't work. That gives you too much voltage. I used rechargeable for that very reason. NiMH rechargeable batteries are 1.2volts a piece. This is all on the i'ble. If you can't use rechargeable, you should use a potentiometer for a regulator. That would work.

levi_gatlin (author)2013-09-16

As far as I know I'm just using regular 1.5 alkaline AA batteries from SAMs (I wasn't going to get rechargeable till I got it to work) how do I get it down? Maybe another resistor?

haikuordie (author)2013-09-12

Levi: it looks like they are wired correctly and you are using the right resistors. That's a step in the right direction. Your voltages are all way off. You need to do something about the input voltage. How are you getting 6.37 VDC from four 1.3 volt batteries? Are you using NiCd instead of NiMH? The voltage from positive to ground needs to be very close to 5VDC. then your other voltages should come out fine when that happens.

If you have anymore questions you can write me at I can respond easier that way.

levi_gatlin (author)2013-09-12

Okay I have put it all on a perf board and I used a multi meter I have the settings on 20DCV and I'm reading ground to positive 6.37 ground to data + 3.18 ground to data - 2.53…sorry all I had was red and white cables

haikuordie (author)2013-09-11

Levi: It looks from the pics that you may have the pins backwards. It's hard to tell. The best way to diagnose the issue would be with a digital multimeter. Make sure you are getting the correct voltage to the correct pins.

One way to see if the wires are at least somewhat correct is to see if this will charge an android phone or other device. I don't suggest doing this with something you really care about unless you are sure it is pinned right. If it will charge something other than an iDevice, you can try switching the wires to the middle pins. If this doesn't work, you really need to find out what the voltages you're getting to the various pins. You may have a resistor working outside its tolerance or maybe your batteries are giving a strange voltage (more or less than required).

levi_gatlin (author)2013-09-10

Hey sorry I don't have any perf board and I'm kinda new can you tell me what I'm doing wrong? For some reason my iPhone wont recognize it. I just took off the switch till I get it recognizing

Please any info would help

austin2118ace (author)2013-08-15

When it says "blocking diode" will any diode work(other than LED)?
I Googled Blocking Diode, and they are a few dollars, But i have my own diodes, will they work as long as they are rated above the maximum output of the Panels?

haikuordie (author)austin2118ace2013-09-08

Yes. Any diode should work.

robo10302 (author)austin2118ace2013-08-16

hi austin i'm pretty sure that all diodes will work as they serve the same function.

Schmidty16 (author)2013-08-13

Why not 3 solars

haikuordie (author)Schmidty162013-09-08

I didn't have the room on the project box.

mmarcuzzo (author)2013-07-24

Would it work if i had 2 round solar panels that are about an inch in diameter? Or would they be to small

haikuordie (author)mmarcuzzo2013-07-27

That sounds a bit too small but it really depends on their output. I think the range can be found somewhere in this i'ble.

timrim (author)2013-07-18

Hey could u send pic of the front of the board thanks

haikuordie (author)timrim2013-07-27

I would if I still had this charger, but I do not. Please refer to step 5 where I gave a color-coded diagram of what this board should look like.

iliceras (author)2013-07-02

Thanks for this amazing project. Let me ask you some questions:
- I've seen similar projects with no switch, is that possible? I mean, can we chager the battery pack at the same time a device is being charged by the usb connection?
- 4AA or 4AAA battery pack would get 4.8v at fully charged, but it's getting lower they are draining, will it still work? why don't you place a DC-to/USB converter to get always 5v from 3v-4.8v output battery pack voltage?

Thanks in advance

haikuordie (author)iliceras2013-07-12

Thanks for your comment. First, you CAN do this without the switch (I'd guess you're referring to the series-to-parallel switch). I only used this to save the project from needing solar cells that are larger than the tin. You CAN charge the battery pack and a USB device at the same time. You would need a solar cell capable of doing this. My guess is you'd want to obtain a large one that puts out more voltage and amperage than is needed and add a regulator. This, of course, would complicate things by making it larger and less convenient... but to each his own. =)

I'm not sure I understand what you're asking about the battery pack. I chose to use 4 rechargeable batteries in order to make this as simple as possible... meaning without the need for a regulator or a charge-pump. There are a couple of projects out there that use these and I'm sure work well. If you want to modify my project and integrate a system from another project, I would love to see the results.


danielparedes (author)2013-06-27

Hey there great post just needed some help i'm basing a similar project and trying to fit it into an altoids smalls hopefully I can get it all together to share on here. But I have a question I made a similar setup and wanted you to check it I ran the circuit on a simulator and this was my result the numbers are a bit different than yours can you tell me if it would still be safe for my devices and would it work?

haikuordie (author)danielparedes2013-07-12

It looks like a pretty good schem. The only trouble I can see with it is the solar cell. If this is in full sun it will be producing 6vdc which is more than you want to power the usb with. It also might not be enough tto charge the batteries if your cell is the least bit shaded. If you plan on only plugging in devices when it's in the shade this should work out okay for you.

kaylee_ct (author)2013-05-31

I have no idea what kind of "board" you're talking about. It is not mentioned in the materials list. I am just so confused right now. If anyone can help, it would be greatly appreciated.

haikuordie (author)kaylee_ct2013-06-14

The materials list has a "Small perf board". It's the type you can buy at places like Radio Shack. They typically call it a "project board" but it is often call a perferrated board. I said that it was optional because you can always solder the parts together without any board if you're a well-seasoned solderer. I don't suggest this BTW. I only put it out there because I've done this a great many times myself when I was in a pinch and just wanted to try out a circuit (I use a breadboard for such endeavers nowadays). I hope this isn't your first project. I know I've messed up many a component trying to do a project I wasn't ready for. Message me if you have any other questions.


pmvinuelas (author)2013-04-28

if you wanted to remove the batteries and have the solar panels directly charge your iphone, how big would you need the panels to be?

I am looking to have something that can charge my phone while i am outside but want it as small and light as possible. I figured if i removed the batteries i would just need to make sure i had enough power from the solar panels to come in and some sort of charge regulator right?

Thanks for the help.

Anianna (author)pmvinuelas2013-05-09

You may be more interested in a build entirely without batteries, then, such as:

mattglas (author)2013-02-07

Can you take a picture of the top part of the Pref board? If you can that world be awesome becaus ei am having trouble using the skematic

Fashiondez (author)2013-02-05

I hooked mine up and the phone recognizes it is plugged in, but does not charge. Troubleshoot? Cut wires and re solder?

jpman (author)2013-01-05

Hey cool instructable i finished mine today and tested it out on my brothers Black Berry it ended up Discharging the phones battery it went from 85% to 80% what do you think?? oh and i put a Blocking Doide before going to the USB on the lead

Helpinghandsofhope (author)2012-11-10

Hello. I was wondering where you could find the colored data wires such as yellow , green,blue,dark blue, etc. I don't want to destroy my ipod charger to just get to the wires. The cord is $30 I'm sure your aware of the USB cables for iPods. Thanks help much appreciated.

Also what gauges are the wires you used just wondering and what voltages or amps? Thanks again.

The wires I used were (I believe) 18 gauge. They may have been 20, but I don't have anymore wire left to check. I think I purchased a 100ft roll of "round wire" at a local electronic supplier (very much like Radio Shack, but cheaper) for around $5 USD. It's great for projects and fits beautifully into a breadboard. I wouldn't suggest cutting into your charge/sync cord.

If you're paying $30 for an iPod cord, you haven't looked around much. I get them online for about $2.

try here:

I still wouldn't cut it unless it was broken anyway. If you need a female usb I found them somewhere for around $.25 a piece (+ shipping)

About This Instructable




Bio: We are a married couple who love to build things and photograph those things.
More by haikuordie:The Pleasant Blur: Tips For The Bokeh Effect With Any CameraDesign and Build Your Own Hnefatafl Game BoardThe Best iPod/iPhone Car Mount/Dock Ever
Add instructable to: