My daughter got toy flashlight. The flashlight was powered by five button batteries. Of cause batteries discharged quickly. I did not want all the time to replace the battery. But flashlight actually worked well, I did not want to throw it away and i decided to convert it to rechargeable flashlight.
Step 1: What You Need
1. Small LiPo battery. I used 130mAh battery because it fit inside flashlight.
2. LiPo Charger board. I used SparkFun LiPo Charger Basic
3. Resistor 100 Ohm
4. 2 pin JST connector with wires.
5. Hot glue gun
Step 2: Hole for Micro USB Connector
Create hole for Micto USB connector. I used Dremel Rotary Tool and Rotary File Burrs. But i suppose you can use hot nail :)
Step 3: Adjust Charging Current
Probably you will need to adjust charging current of LiPo Charger board. Default current of board I used is 500mA. It is way too much for 130mAh battery I used. Usually charging current should be below capacity of charged battery. I decided to charge battery with current less then 100mA. So I removed resistor marked by blue oval on photo and soldered 12 kOhm resistor instead. You can see relation between resistor and charging current on attached graph.
Step 4: Assembly
1. Solder LiPO battery to LiPo Charger board. Pay attention to polarity.
2. Insert LiPo Charger board into flashlight so that Micro USB connector will fit inside hole created in previous step and glue LiPo Charger board to flashlight.
3. Solder 100 Ohm resistor to one leg of LED
4. Solder JST connector to other leg of LED and to power switch. Pay attention to LED polarity.
5. Connect JST connector to LiPo Charger board
Step 5: Secure the Battery
Generally you can secure the battery with hot glue. But I wanted option to replace battery in future. So I used self-adhesive foam to secure the battery.
That is all. Assemble you flashlight and charge battery by connecting flashlight to computer or charger.