Component guide · Beginner · 3 min read
XL4005 5A Adjustable Buck Converter (5-32V)

Setup, Limits and Wiring
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The XL4005 module is an adjustable step-down converter for 5 to 32 V inputs, rated up to 5 A with a heatsink. It is more efficient than a linear regulator, so it stays cooler when turning 12 or 24 V into 5 V for a Raspberry Pi, LED strips or servos. Set the output with the trimmer and a multimeter before connecting your load.
Key specs at a glance
- Input
- 5 to 32 V
- Output
- 0.8 to 30 V adjustable (at least 1.5 V below input)
- Current
- 5 A peak, about 3 to 4 A continuous with good cooling
- Efficiency
- Up to about 95 percent
- Frequency
- 300 kHz
- Controls
- Voltage trimmer (some versions add a current trimmer)
What the XL4005 5A buck converter is
The XL4005 module is a step-down (buck) DC-DC converter: it switches the input on and off quickly and smooths it with an inductor, so it lowers the voltage with little wasted heat.
Treat the 5 A figure as a peak. Above 3 A, add airflow or the chip and inductor overheat and the output sags.
For a Raspberry Pi at 5 V, set 5.1 to 5.2 V at the module so the voltage at the board stays above 4.9 V after wire losses.
XL4005 5A buck converter pinout
The pins on the XL4005 5A buck converter and what each one does.
| Pin | Function |
|---|---|
| IN+ / IN- | Input |
| OUT+ / OUT- | Output |
| Trimmer | Output voltage |
- IN+ / IN-
- Input
- OUT+ / OUT-
- Output
- Trimmer
- Output voltage
Wiring the XL4005 5A buck converter
Set the output with a multimeter before connecting any load. Turn the trimmer slowly; many need 10 or more turns before the voltage moves.
| XL4005 5A buck converter pin | Arduino Uno | ESP32 |
|---|---|---|
| IN+ / IN- | Supply or battery | Supply or battery |
| OUT+ / OUT- | Arduino VIN or 5V | ESP32 5V (VIN) |
| Ground | Common with the controller | Common |
- IN+ / IN-
- Arduino Uno:
- Supply or battery
- ESP32:
- Supply or battery
- OUT+ / OUT-
- Arduino Uno:
- Arduino VIN or 5V
- ESP32:
- ESP32 5V (VIN)
- Ground
- Arduino Uno:
- Common with the controller
- ESP32:
- Common
Example code
A minimal sketch to check the part works.
1. Power the module with nothing on the output.
2. Measure OUT+ to OUT- with a multimeter.
3. Turn the trimmer until the reading is correct.
4. Connect the load and measure again under load.Setup and tuning
connect only the input and a multimeter, turn the trimmer to the target voltage, then connect the load.
keep the input at least 1.5 to 2 V above the output, or the output sags under load.
keep the heatsink clear and add a small fan above about 3 A continuous.
use short, thick wires on the output for 3 A loads such as a Raspberry Pi or LED strip.
the module has no reverse protection, so check + and − twice or add a series diode.
What you need
Shop this list5 of 5 found in our store · ₹872
XL4005 5A Adjustable Buck Converter, 5-32V: the part this guide coversXL4005 5A Adjustable Buck Converter, 5-32V₹90
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
SMPS power supply in metal enclosure (5/12/24 V): a bench input supplySMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
INA219 current and power monitor module: to log voltage and current from the outputINA219 Current and Power Monitor Module₹249
LM2596 adjustable buck converter module: a cheaper buck for lighter loadsLM2596 Adjustable Buck Converter Module₹59
Alternatives and when to choose them
- XL4015 buck converter: similar, with current limit versions.
- LM2596 buck converter: smaller loads.
- Voltage regulators.
Common mistakes to avoid
- Connecting the load before setting the voltage, so 12 V or 24 V reaches a 5 V board.
- Expecting 5 A continuously without extra cooling.
- Running with the input too close to the output.
- Reversing the input wires.
Frequently asked questions
Can the XL4005 power a Raspberry Pi 4?
Yes. Set it to 5.1 V and use short, thick wires so the Pi does not see a voltage drop under load.
Does the XL4005 limit current?
The basic module only regulates voltage. Versions with a second trimmer add constant-current limiting.
Can I charge batteries with it?
Only the CC/CV versions with a current trimmer should be used for charging, and lithium packs still need a BMS.
Why does the output drop under load?
The chip is overheating or the input is too close to the output. Add cooling or raise the input voltage.
Is it protected against reverse polarity?
No. Reversed input usually destroys it, so add a diode or an ideal-diode module if wiring mistakes are likely.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
