A compact and powerful USB power supply based on the XL4015 buck converter IC.
Designed to deliver stable 5V up to 5A β perfect for powering Raspberry Pi, ESP32, Arduino, and USB gadgets.
- π Input Voltage: 8V β 36V DC
- β‘ Output Voltage: Fixed 5V
- π Maximum Current: 5A continuous
- π Reverse Polarity Protection (SS1045 Schottky)
- π Stable Output with 330 Β΅F electrolytic + ceramic capacitors
- π’ Power LED Indicator
- π₯οΈ USB-A Output Port (5V)
- π§ Tested with Raspberry Pi 4 β no undervoltage warnings
| No. | Quantity | Component | Value / Part No. | Package | Notes |
|---|---|---|---|---|---|
| 1 | 1 | IC | XL4015E1 | TO-263-5 | Buck regulator |
| 2 | 1 | Inductor | 47 Β΅H / 6A | SMMS1360 | Power inductor |
| 3 | 1 | Diode | SS1045 | SMC | Schottky rectifier |
| 4 | 1 | Capacitor | 220 Β΅F / 50V | Electrolytic | Input filter |
| 5 | 1 | Capacitor | 330 Β΅F / 25V | Electrolytic | Output filter |
| 6 | 3 | Capacitors | 1 Β΅F | 1206 SMD | Ceramic |
| 7 | 1 | Capacitor | 33 nF | 1206 SMD | Loop compensation |
| 8 | 2 | Resistors | 3.3k, 10k | 1206 SMD | Voltage feedback |
| 9 | 1 | Resistor | 330 Ξ© | 1206 SMD | LED current limit |
| 10 | 1 | LED | Green SMD | 1205 | Power indicator |
| 11 | 1 | USB Connector | USB-A Female | Through-hole | Output port |
| 12 | 1 | DC Jack | 5.5mm barrel | Through-hole | Input connector |
π· Schematic (EasyEDA)

3D render of the finished board:
PCB layout (top copper):
- π§ Power Raspberry Pi 3/4 (stable 5V/5A supply)
- β‘ Supply ESP32, Arduino, STM32 projects
- π‘ Power 5V LED strips
- π± Charge USB-powered gadgets (phones, tablets)
- π‘ Use with routers, SBCs, or dev kits
- π Add USB D+/Dβ resistor divider for fast charging (up to 2A)
- π Replace Schottky diode with P-MOSFET reverse polarity protection for higher efficiency
- π₯ Add a polyfuse on USB output for overcurrent protection
- π Optional: make a multi-output version (5V/9V/12V) with multiple XL4015s
This project is open-source hardware π οΈ.
Youβre free to use, modify, and improve it β just give credit when sharing β€οΈ.
Designed by ElectroI.T.in
π Website | π GitHub | π Instructables
β¨ If you like this project, donβt forget to β star the repo and share it with fellow makers! β¨

