Skip to the content
PCBKitNew board
2 layers25 × 9 mmBattery replacement, the printed circuit board in 3D

Battery replacement

tomjtoth/battery-replacement

I'd like to replace Li-ion cells from the battery package of mobile devices with this DC DC converter, which shall step 5V received from any USB port/charger down to 3.9V.

Size
25 × 9 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
11
Pads
48
Tracks, vias
42, 22
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
26 Sep 2026
Updated
7 Oct 2026

Overview

Battery replacement is an open-source printed circuit board by tomjtoth, from the tomjtoth/battery-replacement repository on GitHub. It is a 2-layer board of 25 × 9 mm with 16 parts on 11 nets, routed with 42 tracks and 22 vias.

It is built around the RT5788BGJ8F and Y4203-ADJM6R. Its parts include 5 capacitors, 5 resistors, 2 ICs and 1 inductor. It belongs with the power boards of this library.

Main components

2

README

README.md

3.9V battery replacement

I'd like to replace Li-ion cells from the battery package of mobile devices with this DC DC converter, which shall step 5V received from any USB port/charger down to 3.9V.

Conflict with charging via USB port

The devices USB port should not be used for charging after this integration. Special cables (with unconnected VBUS) should be used when connecting to computers.

Design choices

At 5V3A - a type-C DFP can provide without active negotiation - the ideal power budget is 15W. That should translate to about 3.84A at 3.9V.

As a worst case scenario I picked the largest transient as 3.8A and V_IN as 4.5V. Using the converter's formulas I got 272.6mV sag and 12.7mV soar on the output.

My calculations and links to datasheets can be found here.

I'd like to produce this via JLCPCB, so I'm using only their components. All components are imported via JLCImport. I minimized extended component usage, but I'm happy to pay extra for the 549k resistor, to keep the footprint smaller.

RT5788B converter

Has 7V absolute maximum input voltage and 100% maximum duty cycle, can provide 4A continuously. I'm not using the PGOOD leg of the converter to save space.

I found 2 revisions of its datasheet and proceeded with the earlier one where C_OUT = 2 x 22uF (vs 3 x 22uF on the newer revision). C_IN is 22uF which exceeds the 10uF allowed by USB standard on Upward Facing Ports.

Y4203 load switch

The 250us soft-start allows the above mentioned 22uF C_IN to be charged. Has 6.1V OVP with 50ns response time.

Schematics

I tried arranging the converter's pins similarly to as seen in the datasheet's Typical Application Circuit.

schematics

PCB

The board is 9 x 25mm sized. The minimum 5 pieces of 100x100mm panels (at JLCPCB) should yield 5x10x4 pieces (leaving 2x5mm strips on 2 sides for manufacturing holes). I'm using copper pours for GND on both sides. I placed vias under the converter in hopes of driving heat to the undivided bottom Cu plane.

F.Cu B.Cu No.Cu 3D-top 3D-bottom

Parts

16
QtyValueFootprintReferences
322uFJLCImport:CL31A226KAHNNNEC2, C4, C5
2100kJLCImport:0402WGF1003TCER3, R5
25.1kJLCImport:0402WGF5101TCER1, R2
2TestPointTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP1, TP2
1100nFJLCImport:CL05B104KB54PNCC3
14.7uFJLCImport:CL21A475KAQNNNEC1
1470nHJLCImport:TMS252012ALM-R47MTAAL1
1549kJLCImport:0402WGF5493TCER4
1CAX-TYPE-C-6PBS-IR6_8JLCImport:CAX-TYPE-C-6PBS-IR6_8USB1
1RT5788BGJ8FJLCImport:RT5788BGJ8FU2
1Y4203-ADJM6RJLCImport:Y4203-ADJM6RU1

Questions

How big is the Battery replacement PCB?

It measures 25 × 9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Battery replacement use?

16 parts, built around the RT5788BGJ8F and Y4203-ADJM6R. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Battery replacement KiCad files?

From the tomjtoth/battery-replacement repository on GitHub, at the commit this page was made from: the board is battery replacement.kicad_pcb and its schematic battery replacement.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Battery replacement design in my own project?

Its repository states no licence, so its author keeps all rights: ask tomjtoth before reusing the design.

Similar boards

  • 2 layers140.5 × 30 mmType e, the printed circuit board in 3D

    Type e

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    16 parts3kApache-2.0
  • 2 layers41.4 × 14.5 mmU2f zero, the printed circuit board in 3D

    U2f zero

    conorpp/u2f-zero

    U2F USB token optimized for physical security, affordability, and style

    16 parts2.4k
  • 2 layers122 × 37 mmV0-UmbilicalBoard, the printed circuit board in 3D

    V0-UmbilicalBoard

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    16 parts1.1kGPL-3.0
  • 2 layers152 × 57.6 mmVideoslotadapter, the printed circuit board in 3D

    Videoslotadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    16 parts1kGPL-3.0
  • 2 layers36 × 63.4 mmSmart ringfinal layout, the printed circuit board in 3D

    Smart ringfinal layout

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    16 parts915
  • 2 layers60 × 40 mmHASwitchPlate, the printed circuit board in 3D

    HASwitchPlate

    aderusha/HASwitchPlate

    LCD touchscreen for Home Automation

    16 parts738MIT
  • 2 layers21.1 × 26.9 mmDemo, the printed circuit board in 3D

    Demo

    easyw/kicadStepUpMod

    kicadStepUp: ECAD to MCAD FreeCAD WorkBench

    16 parts704