Power a battery device from USB: build a dummy battery
Radios, toys and gadgets that sit in one place can run from a USB charger instead of batteries. Make dummy batteries from a wooden dowel, add a small converter that gives the exact voltage, and plug in. Or fit a DC socket. Count the batteries: that sets the voltage.
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.
- 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-down (buck) board
- A small board that lowers a voltage, for example 12 V down to 5 V.
- Step-up (boost) board
- A small board that raises a voltage, for example 3.7 V up to 5 V.
- USB-C PD
- Power Delivery: fast USB-C charging that can give up to 100 W for laptops.
Which way is for you?
ADummy batteries and a converter
No opening the device. Wooden dummies drop into the battery box; one carries the wires. Soldering · about 1 hour
You will need
- Wooden dowel and small screwsDowel the size of the battery: about 14 mm for AA, 10 mm for AAA, 25 mm for C, 32 mm for DView on Amazon
- ConverterMini step-down (MP1584) for up to 3 V, boost (MT3608) for 6 V and above; 4.5 V runs straight from USBView on Amazon
- Old USB cableAny cable with a USB-A plugView on Amazon
- Wire and heat-shrinkThin wire for the joints, heat-shrink to cover themView on Amazon
- MultimeterTo check voltages before you connect anythingView on Amazon
Tools
Small saw, drill, screwdriver, soldering iron, multimeter.
Step by step
- 1
Cut one piece of dowel per battery, the same length as the battery (AA 50 mm, AAA 44 mm, C 50 mm, D 61 mm).
- 2
Make the "link" dummies (all but one): a screw in each end, with a bare wire joining the two screws along the side.
Check: these just connect the slot through, like a battery at 0 V.
- 3
Make the "feed" dummy: a screw in each end, but no link. Solder the converter's OUT+ wire to the screw at the + end and OUT− to the screw at the − end.
- 4
Wire the USB cable's red to the converter's IN+ and black to IN−. Set the converter to the voltage from the calculator with the meter.
Check: set it before the dummies go in the device.
- 5
Put the dummies in the box the right way round, lead the cable out of the battery door and plug into a USB charger.
Every connection, one by one
Tick each one as you make it. When every box is ticked, the wiring is complete.
| Done | From | To | Wire |
|---|---|---|---|
| USB cable red wire | Converter IN+ | Red | |
| USB cable black wire | Converter IN− | Black | |
| Converter OUT+ | Screw at the + end of the feed dummy | Red | |
| Converter OUT− | Screw at the − end of the feed dummy | Black | |
| Each link dummy: screw at one end | Screw at its other end | Bare wire along the side |
As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.
BAdd a DC socket
Your device opens easily. A small socket on the case, and a USB lead with a converter and plug. Soldering · about 1 hour
You will need
- DC socket and plug (5.5 × 2.1 mm)Panel socket for the case, plug for the leadView on Amazon
- ConverterStep-down or boost board as the calculator showsView on Amazon
- Old USB cableFor the leadView on Amazon
- Wire and heat-shrinkThin wire for the joints, heat-shrink to cover themView on Amazon
- MultimeterTo check voltages before you connect anythingView on Amazon
Tools
Drill, soldering iron, multimeter.
Step by step
- 1
Open the device and find the two wires from the battery box to the circuit board (red is usually +).
- 2
Drill a hole in the case and fit the DC socket. Wire its centre pin to the + battery wire and its outer contact to the − wire.
Check: centre positive is the common standard.
- 3
Build the lead: USB red and black to the converter's IN+ and IN−, converter OUT+ to the plug's centre, OUT− to the outer sleeve.
- 4
Set the converter to the voltage from the calculator with the meter, then plug in and test.
Check: take the batteries out whenever you use the lead.
Every connection, one by one
Tick each one as you make it. When every box is ticked, the wiring is complete.
| Done | From | To | Wire |
|---|---|---|---|
| DC socket centre pin | Device's + battery wire | Red | |
| DC socket outer contact | Device's − battery wire | Black | |
| USB cable red wire | Converter IN+ | Red | |
| USB cable black wire | Converter IN− | Black | |
| Converter OUT+ | DC plug centre | Red | |
| Converter OUT− | DC plug outer sleeve | Black |
As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.
Size your build
The voltage your device needs and the converter that makes it from USB.
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
- Match the voltage: too high damages the device.
- Never use batteries and the USB supply at the same time.
- Use a proper USB charger; never wire anything to mains voltage.
Questions people ask
Why only one "feed" dummy?
The battery box connects the slots in a chain. One dummy delivers the full voltage between its two ends; the others just link the chain through, like a wire.
Can I use a 5 V USB charger for a 4.5 V device?
Usually yes: three fresh alkaline batteries already give about 4.8 V. Add a 1N5817 diode in the + wire to drop it to about 4.6 V if you want to be gentle.
What about a 9 V battery?
Use a boost board set to 9 V from USB (fine for small currents), or a USB-C PD trigger board set to 9 V with a 9 V battery snap.
How much current can the converter give?
The calculator checks it. Small MT3608 boost boards give about 1 A at 6 V from USB; for more, use an XL6009 board.
Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.