Today one of my readers emailed me a photo and a schematic of an iPhone 3G charger that he built himself. It is also based on a voltage divider network providing a set voltage reference for the data pins of the USB port. Although the values of the resistors are different from my own iPhone charger design, the reference voltage still triggers the iPhone to start charging.

iphone3g
Thanks petteri for the photo! That's an iPhone 3G charging by the way. Original image: http://www.wintoosa.com/files/iphone3g.jpg

I mentioned in my post How to Charge an iPhone that I did not exactly know why the iPhone only charges when reference voltages are applied to the data pins. I designed the charger by mimicking exactly what the original iPhone charger does, which is by supplying reference voltages to the data pins. Recently, I did a search on the charging circuit of the iPhone and found this:

43
The IC in the red box is the Linear Technology LTC 4066 USB Power Controller and Li-Ion Linear Charger with Low Loss Ideal Diode. Logic board of the iPhone shown.

I went and dug up the datasheet for the LTC 4066 and it describes the operation of the IC. And now the answer to why the iPhone charges with a reference voltage to the data pins is revealed.

The LTC 4066 is a device that controls the power going to the iPhone's circuits. It determines if the iPhone should use battery power or USB power. Obviously, USB power can only be available if the USB plug is connected. But USB power will only be used if 500mA is given by the USB supply (computer/charger). To get 500mA from a computer, negotiation needs to be done between the device and the computer.

For a USB charger however, 500mA is already present but we need to tell the iPhone that it is available. We do this by pulling up both HPWR and WALL pins to above 1.25v:

hpwr

wallpin

So we can now assume that the above two pins are connected to the data pins of the USB port although I cannot confirm that with 100% confidence. Anyhow, as long as the pins are pulled above 1.25V, the iPhone should start charging and using power from the charger.

This charger design has also been tested and found working on Sony MP3 players. Due to the relatively low currents involved, it should be relatively safe to test this circuit in any device that charges through the USB port. But just in case, I will not be responsible for what ever that you do with the information contained here. I can guarantee that it works on an iPhone and an iPhone 3G.

UPDATE: Petteri has told me that a Celly charger advertised to work on an iPhone DOES NOT work on the iPhone 3G. Below are photos from him:

celly
Celly charger.

charge_not
iPhone 3G not charging.

So when you buy a charger for your iPhone 3G (for whatever reason since a travel charger is already included), make sure it works first. Thanks Petteri for the tip.

Also, John Baxendale has written an excellent guide on how to modify a car USB charger to charge the iPhone.