Modify a cheap USB charger to feed an iPod, iPhone or Samsung Galaxy

 by Caffeinomane
Featured
A couple of years ago I got an iPod touch as a gift and I decided to buy a USB charger for it. So I bought a really cheap one but it never worked. The iPod, once connected, did not like it and did not want to charge. Since it was so cheap I just let it sit in a drawer forgetting about it.

A little while ago then I stumbled on this very good article: http://www.ladyada.net/make/mintyboost/icharge.html
In which they decribe how they produced a battery powered USB charger. After reading that article I took my cheap USB charger and decided to modify it.

This will be a really, really easy modification and I think that anybody with a soldering iron could do it.

Step 1: A little Theory

A USB connector has 4 pins: +V, D-, D+, GND. The +V pin with the GND give the +5 V that aliments the phone; while the D- and D+ pins are used for communications. Old USB electronic devices did not care about D+/- pins as long as the other two did give nourishment.

Nowadays the iPhone expects a certain voltage on those two pins to decide how much current to absorb from the charger. Putting a 2.0 V voltage on both the pins the iPhone will absorb about 500 mA, while with 2.8 V on D- and 2.0 V on D+ it will absorb about 1000 mA.
The same behaviour I expected to be observed on my iPod.

On the images there are the schemes for the two configurations. As you can see, using an opportune couple of resistors it is possible to get the voltage required. Obviously the 1000 mA configuration is better if you want your phone charged quicker, but it is possible that your power supply can not support that much current.

Step 2: Opening and checking

20111004_150533.jpg
20111004_142715.jpg
20111004_142727.jpg
To see if the data pins of my USB charges were at the wrong voltage, I used a hobby knife to open the plastic case.
The cases were glued together so I had to break open them. The Car USB chargher, though, had the top that was screwed on.

I was happy to find fuses inside the two: my iPod should be safe!

As you can see on the pictures the data pins are floating and that is why my iPod did not want to charge.
The specifications of the stickers on the items say that the wall plug can provide no more that 500 mA while the car charger no more than 1000 mA. I decided to stick to 500 mA for both of them.

Step 4: Drilling holes

20111004_142727.jpg
20111004_152504.jpg
I drilled 4 holes on the wall plug board with my Dremel for my resistors. The holes are near the USB pins to make the soldering easier.
The car charger has pleny of space so I did not need to drill holes.

Step 5: Soldering

I then added the new resistors to the boards. I short-circuited the data pins with a little bit of solder, since I wanted both of them at 2.0 V. Unfortunately I am not a very skilled solderer, as you can see on the car charger pictures.

Step 6: Checking

When I finished the soldering I checked all the connections with a multimeter. Then I plugged the chargers and checked if the tension was good. I managed to get about 2.1 V on both of them. This was a really dangerous step because I had them powered and uncovered, touching them could lead to injuries.

Step 7: Testing

I then tested the chargers on my iPod, Samsung Galaxy and on some friends' iPods. They seem to charge just fine and do not complain.

While charging the Samsung Galaxy, though, the charger got really hot. I am not sure if it is good or not, since I have never used it without my "fix". I should measure the current that the Galaxy drains, to see if it is in the parameters of the charger.

My conclusion is that: It Works!
Comwiz99 says: May 31, 2013. 3:56 PM
Sorry, I meant the voltage over R1 in a voltage divider is V*R1(R1 + R2). Also English isn't my first language, so ignore my spelling and grammer errors :P
Comwiz99 says: May 31, 2013. 3:51 PM
I would advise against using 220 and 330 ohm resistors, as I believe they are a bit small. Essentially what this circuit is, is 2 simple voltage dividers. The formula for the voltage over a resistor R1 in a voltage devider is R1/(R1 + R2), so only the ratio of the resistors are important. By using 2 x (330 + 220) resistors in parallel you are essentially creating an equivalent resistance of 275 ohms which conducts a current of about 18mA between 5v and ground, and this current cannot be "used" for charging. However, I am making the assumption that the device charging does not require to sink a lot of current through the D lines. The original circuit uses resistors in the XX K range, which is more suitable.
dewsky61 says: Mar 2, 2013. 9:04 PM
I was thinking.....If you take your schematic, and to the wiring in the middle of two male and female USB connectors, wouldn't that just make a completely portable plug that you could insert into almost ANY USB port to charge the devices? I believe it would work best in Low Power mode, but would work I believe.
Simple breadboard and a small case......Just a thought.....I might make one......
jsaen33 in reply to dewsky61Apr 9, 2013. 7:03 AM
Hi! Yeah this idea does work. i made one a few months ago but I kept it to 500 mA so I can use the m/f dongle more safely on more chargers. Works great.
rmasip says: Mar 15, 2013. 10:56 AM
Good day,
I did the modification on a car charger rated at 2A with the following resistances (33k,33k,22k,27k)
When I plug the iPhone (4S) it works but the charger powers off intermittently (like 1sec on, 1/4sec off, and so on)
What have I done wrong? Any issue with the charger being of 2A?
NorthernOne says: Feb 13, 2013. 4:25 PM
Nice schematics, from MintyBoost? :)



Having chopped a USB cable, I have checked the voltages of the iPod 2.1A 5.1V charger. D+ is 2.8V, and D- is 2.0V.
kwang6 says: Mar 11, 2012. 7:21 PM
how many ohm i need for d+ and d-?
i have 100ohm and 150 ohm resistor
which one would you use?
(the voltage is 5 volt)
ojasvi1 says: Feb 12, 2012. 12:46 AM
please can you tell me that why did u choose 220 and 330 ohm resistors
i think 6ohm should have been chosen as
r=v/i
(5-2)/500mA
and that is definetly not 220 or 330 ohms
Caffeinomane (author) in reply to ojasvi1Feb 12, 2012. 5:46 AM
Your calculation is right, but you are missing the point that the current that charges the battery does not come from the data lines. That current is taken from the +5 V line.

The voltage divider is used only for setting the right voltage on the data lines, they should not drain much current. But unfortunately I do not know what current is required on that line so I used the approach of trial and error. I used those two values just because they were matching and those were the only ones that I had.
ojasvi1 in reply to CaffeinomaneFeb 12, 2012. 9:08 PM
i tried with 100k ohm, and it seems to work, but it charges slowly,
il try it a few more times, if it dont, then il try it your way
thanks alot btw
Caffeinomane (author) in reply to ojasvi1Feb 12, 2012. 10:42 PM
Well, if you put 2 V on the data lines you will limit the charging current to 500 mA, that is less than what official chargers provide. I think that the official charger provides about 1 A. So it will charge slower.

You could increase the current, changing the voltages on the data lines.
If you read the linked Web page on the introduction you can find the right voltages. But you must double check if the charger is able to provide that current.
ZaneChua says: Feb 1, 2012. 3:52 AM
Hey Caffeinomane,

I was wondering how to implement the schematics in real life. I have never read schematics before and i'm looking to repair an old ipod charger that i broke. I took out my multimeter and measured the two small resistors on the small chip board and it measure around 50k and 75k resistance as in your diagram.

However, what i don't understand about the schematic is where the end point goes to. For example Ground, do i solder the three ground points together or do i leave them alone? I just can't understand the ground part and i can't seem to find a definite answer. It would be a great help! Thanks and sorry for bothering you.

Zane
Caffeinomane (author) in reply to ZaneChuaFeb 1, 2012. 4:20 AM
Hello!

Do not worry, I am glad if I can help you.
Yes, as you guessed the three GND points should be connected together, as all the +5 V points.

That is the usual way to express where the power pins should be connected. Since power and GND pins are usually all around the schematics, you just put a tag that tells that they are all connected together, instead of having traces that pass all over the place making a mess.

Caffeinomane
ZaneChua in reply to CaffeinomaneFeb 1, 2012. 5:02 AM
Oh.

So in that case, i will be left with only two cables.
A +5 V Cable and a GND Cable right?

Zane
Caffeinomane (author) in reply to ZaneChuaFeb 1, 2012. 5:13 AM
Let me sum up what I understood from your post: you are trying to build the charger on a board by yourserlf. So you soldered a USB connector to the board, soldered the Data pins to the voltage divider, and the +5 V and GND to a couple of cables. Now you want to connect the two cables to a power supply that gives you 5 V.

Am I right? If so, yes that is right.
ZaneChua in reply to CaffeinomaneFeb 1, 2012. 5:16 AM
Ah. Alright. Thanks so much! :)

Zane
ZaneChua in reply to ZaneChuaFeb 1, 2012. 5:38 AM
Aha, i have yet another question. On Page 3 you said that you used the 220 and 330 ohm resistors to get 2.0v out of 5.0v. However, isn't Resistance Calculated by R=V/I ? If i followed that formula, i would get something vastly wrong. How did you calculate the amount of ohms needed?

Zane
Caffeinomane (author) in reply to ZaneChuaFeb 2, 2012. 7:56 AM
I am not sure what were your calculations but the choice of the resistors was based on the principle of the voltage divider. Given the Ohm formula:

V = i R

If you put a couple of resistors, say R1 and R2, in series:

GND |----/\/\/\(R1)----(A)----/\/\/\(R2)----| +5 V

you have:

V = i ( R1 + R2 ).

While the tension at point (A) is

VA = i R1.

Solving for i we get

V / ( R1 + R2 ) = VA / R1

VA = V R1 / ( R1 + R2 ).

So that is why I used 220 Ohm and 330 Ohm. If you are asking me why I used those two instead of 50 Ohm and 75 Ohm, the reason is that I did not have them while I had the other two. The difference between the two choices is the current that passes through the resistors. In fact, I did not know how much current was needed so I tested it and it worked fine.
ZaneChua in reply to CaffeinomaneFeb 4, 2012. 6:57 PM
Ah Okay.

Sorry, have been out of touch with Physics for awhile. Been like 2 years.

Thanks for the explanation. :)
Vermin says: Oct 6, 2011. 12:03 AM
Great instructable. The only addition you could possibly make would be to explain why you used 220/330R instead of the 49.9/75k shown in the schematic and the practical lower ohms limit (power dissipation) and upper ohms limit (sense current required) for resistor divider choice.
Caffeinomane (author) in reply to VerminOct 6, 2011. 12:23 AM
That is a good question. I used those resistors just because they were the only two kinds that I had that matched the tension that I needed. I do not know the limits of the current that the data pins will absorb, because I did not find the specifications of the iPod.

I could try to measure those currents but to do that I would have to destroy a USB extension cable, which I do not have, unfortunately.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!