Introduction: Power Arduino With a Cellphone
Old cellphones are easy to acquire and they have built in lithium charging circuitry. What a wonderful base for a power supply for small mobile things. I hooked up a cellphone to the arduino with the ability to charge the cellphone when you plug the arduino into the usb port. Please note that this was just a quick rig and as i did not have the correct screwdrivers, does not involve taking apart the cellphone. I'm sure if you have access to the correct screwdriver you wouldn't have to cut the cellphone charging connector and could just solder wires directly to the charging terminals. Sorry about the image quality I made it in between college classes and so i took pictures with my laptop's webcam.
You will need:
an old cellphone (must use 5volts as its wall wart charging voltage)
some cellphone batteries (optional, minimum one)
wires and a diode
the cellphones wall wart charger
a connector of some sort to plug into the arduino (i cut a chip socket in half for mine.) Minimum of 3 pins
Step 1: Connecting Wires to the Battery
Open up the cellphone and remove the battery to reveal the battery connectors. I also removed the SIM card. Examine the battery to figure out what terminal connectors on the cellphone go to the positive and negative terminals on the battery. Solder wires to these terminals. Don't worry about any third terminal, this is just a temperature sensor or something and is for the cellphone to worry about.
Step 2: Connect the Cellphone to the Arduino
Get your socket to plug into your arduino and situate it on the power area of the arduino so that it has connectors going from gnd, 5v, and 3v3. These are the only pins you will need to connect to. Solder the ground wire from your cell phone to the terminal of the connector that goes into gnd.(remove it from the arduino first!!) Then solder the +battery wire from the cellphone to a diode and then to the connector terminal going to 3v3 on the arduino so that the diodes stripe is on the arduino side. This diode prevents the arduino from trying to charge the battery when its plugged in. Now there should be an open terminal on your connector between the connected ones that goes to 5v on the arduino. We will need that later to charge the cellphone. If you want, you can stop here and it will work fine. You just won't be able to charge the cellphone by plugging in the arduino, you'll have to charge it with its own separate charger.
Step 3: Connect the Charger
Cut of the connector off the wall wart. Check which wires are positive and negative by plugging in the wall wart and using an led to test. For me the wire with the white bad was positive and the other was negative. strip the connectors wires. Now you can either solder the negative wire to the gnd terminal on the connector or strip some insulation off the middle of the negative battery wire and solder it to that. I did the second choice. Then solder the positive wire to the empty terminal on the connector in between the 2 other wires. This one goes to 5v on the arduino.
Step 4: Test It
Put a charged battery into the cellphone. Plug the connector into the arduino. The arduino should run on its own fine. If arduino starts making funny noises and keeps resetting, and the cellphone keeps trying to charge itself; try a different battery or plug the arduino in to charge the cellphone for a while and see if that fixes it. If that still doesn't fix it, you'll just have to unplug the charging connector from the cellphone when running the arduino off the battery. You may also want to cut out a niche in the back panel of the cellphone to put the wires through so you can put that back on the cellphone. Congratulations you now have a poor mans lithium backpack. If you really want you might be able to connect all the extra batteries in parallel for more battery life. And if you're really ambitious you could probably figure out some way of connecting the arduino to the cellphone so the arduino can text you about its mood or make prank calls or something