There's another thread here discussing charging an iPhone through an AC converter. And there was a thread on the old forum about making a 5v adapter for a camcorder. This thread touches on both. I installed a BMW style power socket on my ZX14 about a year ago, and made up three cords to plug into it, one for a regular automotive cigarette lighter socket, another for a two-prong power cord for a small air compressor, and another to charge my iPhone. The BMW plugs are significantly smaller than your standard DC cigarette lighter plug, and the socket side looks much cleaner on the bike. Both plugs and adapters are available from Aerostitch.
Since the iPhone wants 5 volts to charge, I had to build a small voltage regulator circuit into the plug itself. The iPhone cord started life as a Griffin mobile charge cord. I lopped off the cigarette lighter plug, figured out which wire was ground and which one was live, and just wired her up to my little regulator circuit.
The adapter creates some heat, so the plug gets hot, but after running it at least 10 hours straight, and for over 60 hours last week, I think it will handle the fine.
As posted on the old forum, here's the regulator circuit. The bypass capacitor on the input side isn't absolutely necessary, and I left it out of the circuit I actually built to save a bit of room, and it works fine. The capacitor on the output of the regulator is there to reduce the chance of self-oscillation in the regulator, which wouldn't be good. If your device needs 6 volts, use a 7806 regulator chip instead. If you need 9v, use a 7809. For 12 volts, a 7812.
In the schematic, the input side of the 7805 regulator would be connected to the hot (center) pin of the BMW plug. The output side is where the hot side of the iPhone cord is wired to.
I ran a separate 10 gauge line from the battery to the power socket. It has an inline fuse which is replaceable by removing the plastic panel that hides the battery. I tapped the same line to power a big horn. So far so good. My only real caution is that the metal part of the air hose on those little compressors get REALLY hot when the thing runs for a few minutes.
-Matt
* Last updated by: MattTheHat on 7/6/2009 @ 7:34 PM *