WattNWave
DIY projects › Stop buying batteries

Make any battery gadget rechargeable with USB-C

Remotes, toys, torches, game controllers: anything that eats AA or AAA batteries can get a built-in lithium battery that you charge with a phone cable. The trick is matching the voltage: a regulator for 1–2 batteries, a boost board for 3–4. Count the batteries, pick the way, and follow the drawing.

9V
Easy to mediumSoldering30–60 minutes
New to electronics? The words used on this page
AWG
A number for wire thickness. A smaller number means a thicker wire: 10 AWG is thicker than 14 AWG.
18650
A common lithium cell, a bit bigger than an AA battery, 3.6 to 3.7 V.
TP4056
A small, cheap board that charges one lithium cell from a USB charger.
Heat-shrink
A plastic tube that shrinks tight when heated. It covers and insulates a joint.
Multimeter
A hand-held meter that measures voltage. Use it to check before you connect anything.
Step-up (boost) board
A small board that raises a voltage, for example 3.7 V up to 5 V.
In parallel
Batteries joined + to + and − to −. The capacity adds up, the voltage stays the same.
Ah, mAh
How much a battery holds. 1 Ah = 1,000 mAh. Multiply Ah by volts to get watt-hours (Wh).

Which way is for you?

A1 or 2 batteries (1.5–3 V): regulator

Remotes, clocks, mice and small gadgets. A low-power regulator lowers the lithium battery's voltage. Soldering · about 45 minutes

inside the gadgetPhonechargerUSB-CCharging boardTP4056B+B−OUT+OUT−153.7 V lithiumbattery2Regulator1.5 V or 3.0 VINOUT31 µF1 µFcontacts+4+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

  • 3.7 V lithium batteryAn 18650 cell with holder, or a flat LiPo that fits the battery space
    View on Amazon
  • USB-C charging board (TP4056, with protection)Charges the lithium battery from a phone charger and protects it from running too low
    View on Amazon
  • RegulatorMCP1702-1502 (1.5 V) for one battery, MCP1702-3002 (3.0 V) for two; for more current the calculator suggests a bigger board
    View on Amazon
  • Two 1 µF capacitorsOne on each side of the regulator
    View on Amazon
  • Wire and heat-shrinkThin wire for the joints, heat-shrink to cover them
    View on Amazon
  • MultimeterTo check voltages before you connect anything
    View on Amazon

Tools

Soldering iron and solder, multimeter, craft knife or file.

Step by step

  1. 1

    Charge the lithium battery once on the charging board until the light shows full.

    Check: set the charging current for your battery size (the calculator gives the resistor).

  2. 2

    Solder the battery to the board: red to B+, black to B−.

  3. 3

    Solder the regulator: IN to OUT+, GND to OUT−, a capacitor from IN to GND and one from OUT to GND.

    Check: measure OUT to GND: 1.5 V (or 3.0 V for two batteries).

  4. 4

    Wire the regulator's OUT to the device's + battery contact and GND to the − spring.

  5. 5

    Make an opening for the USB-C socket and fix the parts with foam tape or hot glue. Close up and test.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
Battery red wireCharging board B+Red
Battery black wireCharging board B−Black
Charging board OUT+Regulator INRed
Charging board OUT−Regulator GNDBlack
Capacitor 1Between regulator IN and GNDIts own legs
Capacitor 2Between regulator OUT and GNDIts own legs
Regulator OUTDevice's + battery contactRed
Regulator GNDDevice's − springBlack

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

B3 or 4 batteries (4.5–6 V): boost board

Toys, torches and radios that take 3 or 4 batteries. A boost board raises the lithium battery's 3.7 V. Soldering · about 45 minutes

PhonechargerCharging boardTP4056B+B−OUT+OUT−+−18650 cell1switch2Boost boardMT3608IN+IN−OUT+OUT−turn to set4.503battery box+−45+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

  • 18650 lithium cell and holderOne cell is enough for most toys; two in parallel for longer play
    View on Amazon
  • USB-C charging board (TP4056, with protection)Charges the lithium battery from a phone charger and protects it from running too low
    View on Amazon
  • MT3608 boost boardRaises 3.7 V to 4.5 V or 6 V. For more than about 1 A use an XL6009 board
    View on Amazon
  • On/off switchA small rocker or slide switch
    View on Amazon
  • Wire and heat-shrinkThin wire for the joints, heat-shrink to cover them
    View on Amazon
  • MultimeterTo check voltages before you connect anything
    View on Amazon

Tools

Soldering iron and solder, multimeter, small screwdriver.

Step by step

  1. 1

    Charge the cell on the charging board until the light shows full. Solder the holder: + to B+, − to B−.

  2. 2

    Connect the charging board's OUT+ and OUT− to the boost board's IN+ and IN−. Put the on/off switch in the OUT+ wire.

  3. 3

    Switch on and turn the boost board's screw until the meter reads 4.5 V (3 batteries) or 6.0 V (4 batteries) at OUT+ and OUT−.

    Check: turning anticlockwise lowers the voltage; it may take many turns.

  4. 4

    Switch off. Wire OUT+ to the device's + contact and OUT− to its − spring.

    Check: red to +, black to −.

  5. 5

    Fit the parts where the batteries were, make an opening for USB-C and test.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
Cell holder +Charging board B+Red
Cell holder −Charging board B−Black
Charging board OUT+Switch, then boost board IN+Red
Charging board OUT−Boost board IN−Black
Boost board OUT+Device's + contactRed
Boost board OUT−Device's − springBlack

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

Size your build

Which regulator or boost board, how long a charge lasts, and the charging current.

An 18650 cell is about 2,600 mAh; flat LiPo packs are 500–3,000 mAh.
Our suggestion
—

How this is calculated

Method
Device voltage = cells × 1.5 V (9 V per 9 V battery). Average current = alkaline capacity ÷ how many hours a set lasts. From a lithium cell: hours per charge = cell mAh × 90% ÷ current taken from the cell. Through a boost board that current is device current × device V ÷ (3.7 V × 88%). Charge time follows the TP4056 current set by its PROG resistor.
Assumptions
Alkaline capacity in low-drain devices (clocks, remotes): AA 2,400, AAA 1,100, C 7,000, D 14,000, 9 V 550 mAh; about 60% of that in higher-drain devices. 90% of the lithium cell is usable. Low-dropout regulators pass the current straight through and use about 2 µA themselves. Peak current per device type is a typical estimate.
Sources
Alkaline maker datasheets (capacity versus drain); TP4056 datasheet (PROG resistor table); MCP1702, AMS1117 and MT3608 datasheets.

Stay safe

Stop at once if a cell or board smells, gets hot to the touch, swells, hisses or smokes. Unplug it, move it onto a non-flammable surface outdoors if you safely can, and keep away until it is cold.
  • Lithium cells need a charging board with protection; insulate every joint.
  • Set every regulator or boost board with a multimeter before connecting the device.
  • Don't convert smoke or CO alarms: use the battery type printed on the alarm.
  • Use a TP4056 board with protection (the version with the DW01 chip and two outputs, OUT+ and OUT−), or a proper BMS for packs.
  • Buy cells from a known brand and seller. Fake cells often hold a fraction of the label and can lack protection.
  • Do not leave lithium cells charging unattended, and charge them on a non-flammable surface.
  • Never use a swollen, dented or leaking cell. Recycle it.
  • Put a fuse close to the battery's + terminal.
  • While soldering or spot-welding, keep the cell ends covered so nothing can short them.
  • Low-voltage DC only. Never connect any part of these builds to mains power.

Questions people ask

Why not put the lithium cell straight in?

One lithium cell is 3.7 V (up to 4.2 V when full). That is too much for 1–2 battery devices and too little for 3–4. The regulator or boost board makes the right voltage.

Regulator or boost board: which wastes less?

A boost board raises the voltage efficiently. A regulator lowers it by turning the extra into heat, but for small currents (remotes, clocks) the loss is tiny and the regulator uses almost nothing while idle.

How long will one charge last?

The calculator works it out from how long your batteries last now and the lithium battery you fit.

Can I charge while using it?

Yes, for small loads. The charging board feeds the device and the battery together.

Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.