
Type e
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards

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.
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.
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.
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.
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.
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.
The 250us soft-start allows the above mentioned 22uF C_IN to be charged. Has 6.1V OVP with 50ns response time.
I tried arranging the converter's pins similarly to as seen in the datasheet's Typical Application Circuit.

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.

| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 22uF | JLCImport:CL31A226KAHNNNE | C2, C4, C5 |
| 2 | 100k | JLCImport:0402WGF1003TCE | R3, R5 |
| 2 | 5.1k | JLCImport:0402WGF5101TCE | R1, R2 |
| 2 | TestPoint | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP1, TP2 |
| 1 | 100nF | JLCImport:CL05B104KB54PNC | C3 |
| 1 | 4.7uF | JLCImport:CL21A475KAQNNNE | C1 |
| 1 | 470nH | JLCImport:TMS252012ALM-R47MTAA | L1 |
| 1 | 549k | JLCImport:0402WGF5493TCE | R4 |
| 1 | CAX-TYPE-C-6PBS-IR6_8 | JLCImport:CAX-TYPE-C-6PBS-IR6_8 | USB1 |
| 1 | RT5788BGJ8F | JLCImport:RT5788BGJ8F | U2 |
| 1 | Y4203-ADJM6R | JLCImport:Y4203-ADJM6R | U1 |
It measures 25 × 9 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask tomjtoth before reusing the design.

google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards

conorpp/u2f-zero
U2F USB token optimized for physical security, affordability, and style

rusefi/rusefi
rusefi - GPL internal combustion engine control unit

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

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

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

