Wooden battery

How to wire and run an old smartphone without a battery


I have an old Samsung Galaxy S5 that I wanted to use to run my 3D printer. There is a great project called octo4a that runs OctoPrint on Android devices.


Using an old smartphone for OctoPrint is a perfect fit - it has USB OTG support to connect to the printer, WiFi to access the controls and upload models, and a camera to monitor the print progress. The only, yet critical, issue is that the kernel for Galaxy S5 does not support charging while it's connected to a USB device. The battery is old and worn, and cannot last through several hours of printing.

The approach I took was to build a "fake battery" circuit that emulates the battery, but is powered by 5V via USB.


First, I removed the battery. Luckily, this smartphone is old enough to have user-serviceable battery compartment.

Older batteries might have only two terminals, (+) and (-). Newer batteries might have three or four terminals. I measured voltage and resistance between all terminals to find out what they might be.

These are the results:

So what I need my "fake battery" circuit to do is:

Since I am still powering the smartphone from a 5V USB power supply, I can add a single silicon diode between the power supply's +5V and (+) battery terminal to drop the incoming voltage by ~0.7V down to ~4.3V, which is within the range that the smartphone can expect.

IMPORTANT: Voltage drop across the silicone diode depends on the current, and multimeter measurements might not be accurate. See "Diode voltage drop" at the bottom of the page.

To get ~2350ohms, I connected a 2200ohm and a 150ohm in series. A variable resistor of appropriate range might work too.

This setup works, and the smartphone powers up. However, it can draw plenty of current and needs a fairly powerful power supply. Basic phone charger <1A USB power supply was not enough to even finish booting, but a ~2A was enough to boot and launch octo4a. Even after booting, if the smartphone is under higher load (initializing the USB connection, using the camera), it draws more current, and will abruptly power off if the current draw exceeds what power supply can provide.

To help address these issues:



  |          silicon diode
  |        +---[2350ohm]---(T)
  | 1000uF |

As an image:


I cut and sanded a piece of flooring to fit into the battery compartment, hence the "wooden battery". Then, built and soldered the circuit on a through-hole prototype board and mounted it on top of that with double-sided tape. The 4 pins on the top are bent inward, fit into small grooves in the base and make good contact with the springy terminals of the battery compartment. (I could have just soldered the wires directly to the terminals, but wanted to make this device removable just in case I would ever need the battery again). Power comes through the JST connector at the bottom. (I salvaged a long USB cable with a broken micro-USB plug, so I decided to use JST connectors instead of USB for power).

3D printer (old RepRapPro) in its enclosure (storage box) and its brain (Samsung Galaxy S5) in a 3D-printed holder. Super modern and high-tech, I know.

This setup has been working fairly well for me for a few weeks now.

Additional info

Diode voltage drop

Voltage drop across the diode depends on the current. If you connect the diode, but do not connect the circuit to anything, and try to measure the "final" voltage (after the diode) with a multimeter, you will get somewhere around ~4.8V, because the current running through the multimeter is miniscule. You might think you need 4 diodes to bring the voltage down sufficiently, but you do not, one is enough.


Circuit without load, measured with a multimeter:

  |  diode
  +---|>|---+ <--+
          [multimeter: 4.8V]
  +---------+ <--+

Circuit with load (connected to the smartphone):

  |  diode
  +---|>|---+ <-------------+
            |               |
       [smartphone]  [multimeter: 4.2V]
            |               |
  +---------+ <-------------+


It might be possible to use a lower-current power supply by replacing the 1000uF capacitor with several "supercapacitors" (5F and above). The only issue I see is that the initial power-up will stress the power supply since empty capacitors are essentially a short circuit.


Adafruit - about Li-ion and LiPoly batteries