Component guide · Beginner · 3 min read
XL6009 boost converter

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The XL6009 module steps a DC voltage up to an adjustable 5 to 35 V from a 3 to 32 V input. Its 4 A switch gives more output current than the MT3608, for example around 1 A at 12 V from a 5 V supply. Set the voltage with the trimmer before connecting the load, and keep the output above the input.
Key specs at a glance
- Input
- 3 to 32 V
- Output
- 5 to 35 V, adjustable
- Switch current
- 4 A
- Practical output
- About 1 A at 12 V from 5 V, less from a single cell
- Efficiency
- Up to about 94 percent
- Switching
- 400 kHz
What the XL6009 boost converter is
The XL6009 is a larger boost converter module. It suits loads that need a higher voltage than your battery: 12 V LED strips or fans from a 2S pack, 24 V sensors from 12 V, or 9 V for an Uno from a single cell.
Some versions are buck-boost (SEPIC) and can also step down; check the module markings if you need that.
XL6009 boost converter pinout
The pins on the XL6009 boost converter and what each one does.
| Pin | Function |
|---|---|
| IN+ / IN− | Input 3 to 32 V |
| OUT+ / OUT− | Boosted output 5 to 35 V |
| Trimmer | Sets the output voltage |
- IN+ / IN−
- Input 3 to 32 V
- OUT+ / OUT−
- Boosted output 5 to 35 V
- Trimmer
- Sets the output voltage
Wiring the XL6009 boost converter
Use the boosted output for loads that need it, and power 3.3 V or 5 V logic from a separate regulator.
| XL6009 boost converter pin | Arduino Uno | ESP32 |
|---|---|---|
| IN+ / IN− | 2S Li-ion pack (7.4 V) | 2S Li-ion pack (7.4 V) |
| OUT+ | Barrel jack / VIN (set 9 V) | Fan or 12 V load (set 12 V) |
| OUT− | GND | GND |
- IN+ / IN−
- Arduino Uno:
- 2S Li-ion pack (7.4 V)
- ESP32:
- 2S Li-ion pack (7.4 V)
- OUT+
- Arduino Uno:
- Barrel jack / VIN (set 9 V)
- ESP32:
- Fan or 12 V load (set 12 V)
- OUT−
- Arduino Uno:
- GND
- ESP32:
- GND
Example code
The converter needs no code. This example controls a 12 V load from the boosted rail with a MOSFET.
// fan on XL6009 OUT (12 V), switched by a logic-level MOSFET on pin 9
const int FAN = 9;
void setup() { pinMode(FAN, OUTPUT); }
void loop() {
analogWrite(FAN, 255); delay(5000); // full speed
analogWrite(FAN, 120); delay(5000); // slower
analogWrite(FAN, 0); delay(3000);
}Setup and tuning
input current ≈ output power ÷ 0.85 ÷ input voltage. Keep it under about 3 A.
the chip and diode get hot above 2 A input; add a heatsink.
like all boost modules, it keeps running until the battery is flat; protect Li-ion packs with a BMS.
the boost converter design tool estimates input current.
What you need
Shop this list4 of 5 found in our store · ₹318
XL6009 adjustable boost converter module: the converter this guide coversXL6009 Adjustable Boost Converter Module₹63
4-cell 18650 battery holder board V3: battery source18650 Battery Holder₹29
Digital multimeter: to set and check output voltageDigital Multimeter₹177- Uno R3 development board: the controller used in the wiring tableFind this part
Dupont jumper wires: for the signal connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- MT3608: smaller, cheaper, for loads under about 0.5 A.
- XL4015: to step down from a higher supply instead.
- Solar power: when the source voltage varies a lot.
Try it: Boost converter design calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Setting the output below the input.
- Drawing too much current from a single Li-ion cell.
- Forgetting a heatsink at high current.
- Assuming the boosted rail is safe for 3.3 V logic.
Frequently asked questions
What is the difference between XL6009 and MT3608?
The XL6009 has a 4 A switch and bigger parts, so it gives more output current. The MT3608 is smaller and cheaper.
Can it step down?
The standard boost version cannot. Buck-boost (SEPIC) versions can; check the module.
How much current at 12 V from 5 V?
About 1 A, depending on cooling and the source.
Can it power an Uno from one Li-ion cell?
Yes: set 7 to 9 V for the barrel jack or 5 V for the 5 V pin.
Why is it getting hot?
Input current is high. Lower the load or step up from a higher input voltage.
Is it safe for LED strips?
Yes for short 12 V strips. Check total power with the LED strip calculator.
Parts for this guide
Calculators
Terms in 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.


