Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Power & Batteries
  4. ›XL4005 5A Adjustable Buck Converter (5-32V)

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the XL4005 5A buck converter isXL4005 5A buck converter pinoutWiring the XL4005 5A buck converterExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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)
01

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.

02

XL4005 5A buck converter pinout

The pins on the XL4005 5A buck converter and what each one does.

PinFunction
IN+ / IN-Input
OUT+ / OUT-Output
TrimmerOutput voltage
PinFunction
IN+ / IN-
Input
OUT+ / OUT-
Output
Trimmer
Output voltage
03

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 pinArduino UnoESP32
IN+ / IN-Supply or batterySupply or battery
OUT+ / OUT-Arduino VIN or 5VESP32 5V (VIN)
GroundCommon with the controllerCommon
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
04

Example code

A minimal sketch to check the part works.

No code: set it with a meter · text
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.
05

Setup and tuning

Set first

connect only the input and a multimeter, turn the trimmer to the target voltage, then connect the load.

Headroom

keep the input at least 1.5 to 2 V above the output, or the output sags under load.

Cooling

keep the heatsink clear and add a small fan above about 3 A continuous.

Wiring

use short, thick wires on the output for 3 A loads such as a Raspberry Pi or LED strip.

Polarity

the module has no reverse protection, so check + and − twice or add a series diode.

06

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
07

Alternatives and when to choose them

  • ✓XL4015 buck converter: similar, with current limit versions.
  • ✓LM2596 buck converter: smaller loads.
  • ✓Voltage regulators.
08

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.
09

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

  • XL4005 5A Adjustable Buck Converter, 5-32V
    ₹90View
  • Digital Multimeter
    ₹177View
  • SMPS Power Supply, Metal Enclosure (5V / 12V / 24V)
    ₹298View
  • INA219 Current and Power Monitor Module
    ₹249View
  • LM2596 Adjustable Buck Converter Module
    ₹59View
Shop DC-DC Converters

Keep learning

Component guideBeginnerXL4015 buck converterThe XL4015 is a step-down converter rated 5 A that turns 8 to 36 V into an adjustable 1.25 to 32 V.3 min read · Power & BatteriesComponent guideBeginnerLM2596 buck converterThe LM2596 module steps a higher DC voltage down to any voltage between about 1.25 V and 35 V, for example 12 V down to 5 V.4 min read · Power & BatteriesComparisonBeginnerVoltage RegulatorsA voltage regulator holds its output steady, such as 5 V or 3.3 V, while the input varies.4 min read · Power & BatteriesHow-toBeginnerHow to Power an Arduino or ESP32 from BatteriesFor an Arduino Uno or Nano, feed 7 to 12 V into VIN or the barrel jack (6 x AA works well), or regulated 5 V into the 5V pin or USB.4 min read · Power & Batteries

Sources

  • XLSEMI XL4005 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the XL4005 5A buck converter isXL4005 5A buck converter pinoutWiring the XL4005 5A buck converterExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹574

XL4005 5A Adjustable Buck Converter, 5-32V · Digital Multimeter · INA219 Current and Power Monitor Module · LM2596 Adjustable Buck Converter Module

Ask the Community

Ask a question