|
SMT Solder Paste SqueegeeGeneric
|
|
|
Soldering iron (generic) |
|
|
Solder Wire, Lead Free |
DIY XL4015 5V/5A USB Power Supply – Perfect for Raspberry Pi & More
DIY XL4015 5V/5A USB Power Supply – Perfect for Raspberry Pi & More

Building a reliable 5V power supply is one of the most useful DIY electronics projects. Whether you’re powering a Raspberry Pi, a development board, or USB gadgets, stable 5V at high current is essential.
In this project, I designed and built a 5V/5A USB power supply using the XL4015 buck converter IC. The design includes reverse polarity protection, USB output ports, and indicator LEDs – making it a compact and reliable module.
🔹 Features
Input voltage: 8V to 36V DC
Output voltage: 5V fixed
Maximum output current: 5A
USB-A port output for powering Raspberry Pi, ESP32, Arduino, or mobile devices
Reverse polarity protection (SS1045 diode)
Power indicator LED
Stable output with low ripple (330 µF capacitor + ceramic filters)
Compact PCB design
🔹 Why Use XL4015?
The XL4015 is a popular DC-DC buck converter IC rated up to 5A output current. It provides high efficiency, thermal protection, and works over a wide input range (up to 36V). It’s ideal for projects where you need stable 5V from a higher DC input source like a battery pack, adapter, or solar panel.

🔹 Circuit Design
The circuit is based on the XL4015 datasheet reference with some improvements:
Input Section
220 µF electrolytic capacitor for bulk filtering
1 µF ceramic capacitor for high-frequency noise suppression
XL4015 Regulator Core
Inductor: 47 µH rated ≥6A
Schottky diode: SS1045 (10A, low drop)
Output capacitor: 330 µF electrolytic + ceramic for stable regulation
Feedback resistors set to fixed 5V output
USB Output Section
Standard USB-A connector
5V on VBUS, GND connected
Optional: resistor divider on D+/D– for fast charging detection
Reverse Polarity Protection
SS1045 diode in series with input to protect against wrong connections
Power LED
LED with 330 Ω resistor across 5V output
🔹 Bill of Materials (BOM)
Here are the key components used:
U1 – XL4015E1 buck converter IC
C1 – 220 µF input capacitor
C2, C3 – 1 µF ceramics
C5 – 330 µF output capacitor
L1 – 47 µH inductor (≥6A rating)
D1/U3 – SS1045 Schottky diode (10A)
R1, R2 – Feedback resistors (3.3k & 10k) for 5V output
USB1 – USB-A female connector
LED1 + R3 – Power indicator (330 Ω resistor)
U4 – SS1045 for reverse protection
(Fully detailed BOM table available above in Excel format)
🔹 PCB Design
The PCB was laid out with wide copper pours for the high current paths (input, diode, inductor, output).
Output traces ≥3.5 mm wide for 1 oz copper (safe for 5A).
Large copper pad under XL4015 (TO-263 package) for heat dissipation.
USB port mounted at the edge for easy access.
🔹 Use Case – Powering Raspberry Pi
A Raspberry Pi 4 typically needs 5V at up to 3A with peaks near 3.5A.
This module easily delivers 5V/5A, making it perfect for powering a Raspberry Pi plus some USB accessories.
It can also power:
ESP32/Arduino projects
LED strips (5V)
USB-powered gadgets
Small routers and SBCs
🔹 Future Improvements
Add a USB fast charging circuit (resistor dividers on D+/D–).
Upgrade to P-MOSFET reverse protection for higher efficiency instead of diode.
Optional polyfuse on USB output for extra protection.
🔹 Conclusion
This DIY XL4015 5V/5A USB power supply is a simple but powerful project. It’s stable, efficient, and versatile for many electronics applications. I’ve tested it with a Raspberry Pi, and it runs perfectly without undervoltage warnings.
DIY XL4015 5V/5A USB Power Supply – Perfect for Raspberry Pi & More
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(1)
- Likes(8)
-
Brian Yap
Nov 18,2025
-
PRIYANSHI DAS
Sep 08,2025
-
Engineer
Sep 08,2025
-
DIBYA LOCHAN
Sep 08,2025
-
CHANDAN JENA
Sep 08,2025
-
BB RAKESH
Sep 08,2025
-
RichardV31
Sep 02,2025
-
MANORANJAN DAS
Sep 02,2025
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
10usability
-
10creativity
-
10content
More by MANORANJAN DAS
-
EasyArduino
EasyArduino by ElectroIoTThe ultimate beginner’s board to learn, build, and master Arduino the easy ...
-
🚀 ESP & Arduino Universal USB Flasher (CH340C Based)
OverviewThis project is a universal USB-to-Serial flasher board based on the CH340C USB-UART bridge....
-
Advanced 4-Channel 5V Relay Module with Onboard LM2596 Power Supply
IntroductionRelay modules are essential in home automation and electronics projects, allowing microc...
-
DIY XL4015 5V/5A USB Power Supply – Perfect for Raspberry Pi & More
DIY XL4015 5V/5A USB Power Supply – Perfect for Raspberry Pi & MoreBuilding a reliable 5V power ...
-
7805 Voltage Regulator SMD
Story️ Project DetailsName: 7805 Voltage RegulatorType: Linear Voltage RegulatorInput Voltage: 7V to...
-
Multi-Voltage-Regulator-PCB-(12V-9V-5V-3.3V)
Multi-Voltage Regulator PCB (12V, 9V, 5V, 3.3V) Project OverviewThis project demonstrates the design...
-
7805 Voltage Regulator
Project OverviewThis project demonstrates how to build a simple Voltage Regulator using the 7805 int...
-
🔌 ESP32-C3-Based 8-Channel Smart Home Automation Relay Board
Detailed Project DescriptionThis project is a compact, powerful, and cost-effective 8-channel smart ...
-
ESP8266 NTP Clock with 16x2 I2C LCD Display
This project uses an ESP8266 NodeMCU to create a 12-hour format NTP clock with AM/PM, date, and day ...
-
ESP8266 Nodemcu 4 Ch Relay Module For IoT Project
OverviewThis project allows you to control four relays using an ESP8266 (NodeMCU) via the Arduino Io...
-
ESP32 Water Level Monitor And Automictic Motor Control 30A relay
ESP32 Water Level Monitor And Automictic Motor Control 30A relayUsed ESP32 ModuleOled DisplayUltraso...
-
4 CH Relay Module With ESP32 For Home Automation ,Alexa,Google Home
Hello All My FriendThis is Simple Easy To USE 4 Ch Relay Module With ESP32 SupportUse This Board For...
-
8Ch Relay With ESP8266 Wemos D1 Mini Work With Amazon Alexa And Google Home
This Project8Ch Relay With ESP8266 Wemos D1 Mini Work With Amazon Alexa And Google HomeSimple parts ...
-
PiTrezor : A DIY bitcoin hardware wallet based on trezor and raspberry pi zero
Hello Everyone This is One Of Best Project Who Want To Make OWN hardware wallet At low Cost or Make ...
-
100mm X 50nn DIY Universal Board
100mm X 50nn DIY Universal Board
-
Simple Internet Clock Using ESP8266 DHT11
Hello Everyone This Project is Simple Internet Clock Using Esp8266 And DHT11 Upload Video And More T...
-
Micro USB FTDI Board With Dual Header
Micro USB FTDI Board With Dual Header
-
Micro USB FTDI Module FT232RL
Hello Everyone All FTDi Module In Market is Mini USB Version And Its Little Complicated To Find Mini...
-
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
1504 0 5 -
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
2019 3 7 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
2049 2 0 -
-
-
-
ESP32-C3 BLE Keyboard - Battery Powered with USB-C Charging
2211 0 1 -







