Buck vs Boost Converter: How to Choose a DC-DC Power Module

Buck converters lower voltage, boost converters raise it. How to pick the right DC-DC module (LM2596, XL4015, Mini360, MT3608, XL6009) for batteries, adapters, Raspberry Pi and LED projects in Pakistan.

Use a buck converter such as the LM2596 or XL4015 to lower a voltage, for example 12V to 5V, and a boost converter such as the MT3608 or XL6009 to raise it, for example one 3.7V cell to 5V or 12V. Choose a module rated above your load current and set its output with a multimeter before connecting.

A DC-DC converter changes one DC voltage into another. Use a buck (step-down) converter when you need a lower voltage than your source, and a boost (step-up) converter when you need a higher one. Both are switching converters, so they waste far less power as heat than a linear regulator like the LM7805.

Which one do you need?

SourceYou needUse
12V adapter or car battery5V for Arduino, ESP32 or Raspberry PiBuck: LM2596 (up to about 2A continuous) or XL4015 (up to 5A)
3S Li-ion pack (11.1-12.6V)5V or 9VBuck
One 18650 cell (3.0-4.2V)5V for a board or USBBoost: MT3608 (small loads) or XL6009 (higher current)
5V USB power bank9V or 12V for a router, fan or LED stripBoost: XL6009
Small space, low current3.3V or 5VMini360 buck

Step 1: check the voltages

A buck converter needs its input to stay at least about 1.5-2V above the output, even when your battery is nearly empty. A boost converter needs the output to stay above the input. If your battery voltage crosses your target voltage as it drains (for example a 2S pack powering a 7.5V device), use a buck-boost module.

Step 2: check the current

Add up the current your load draws and choose a module rated well above it. Module ratings are peak values: plan on about two-thirds of the headline figure for continuous use, or add a heatsink. Remember that boosting raises the current drawn from the battery: 5V at 1A from a 3.7V cell draws about 1.5A from the cell.

Step 3: set the output before you connect

Adjustable modules ship with a random output voltage. Power the input, connect a multimeter to the output, and turn the trim potentiometer until it reads your target. Only then connect your circuit. A 12V output on a 5V Raspberry Pi or ESP32 destroys it instantly.

Buck converter or LM7805 regulator?

A linear regulator burns the extra voltage as heat. Dropping 12V to 5V at 1A wastes 7W in an LM7805, which needs a large heatsink, while an LM2596 does the same job at around 80-90% efficiency and stays cool. Linear regulators still make sense for low currents and noise-sensitive analog circuits.

Powering from batteries safely

Charge single Li-ion cells with a TP4056 module and protect multi-cell packs with a BMS board before adding a converter. Put a fuse on the battery output, and use thick enough wire for the current.

Tell us your input voltage, output voltage and load on WhatsApp and we will suggest the right module.

Products in this guide

Frequently asked questions

Can I power a Raspberry Pi from a 12V battery?

Yes, through a buck converter set to 5.1V that can supply the Pi current, at least 3A for a Raspberry Pi 4 or 5. An XL4015 module suits this; the LM2596 is borderline for a Pi 4 under load.

Why is my boost converter output dropping under load?

The battery or module cannot supply the higher input current that boosting needs. Use a larger or fresher cell, thicker wires, a higher-rated module such as the XL6009, or reduce the load.

What is the difference between a buck and a boost converter?

A buck converter lowers the voltage (for example 12V to 5V) and a boost converter raises it (for example 3.7V to 5V or 12V). Both are efficient switching regulators with an adjustable output.

Shop the categories