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.
| Source | You need | Use |
|---|---|---|
| 12V adapter or car battery | 5V for Arduino, ESP32 or Raspberry Pi | Buck: LM2596 (up to about 2A continuous) or XL4015 (up to 5A) |
| 3S Li-ion pack (11.1-12.6V) | 5V or 9V | Buck |
| One 18650 cell (3.0-4.2V) | 5V for a board or USB | Boost: MT3608 (small loads) or XL6009 (higher current) |
| 5V USB power bank | 9V or 12V for a router, fan or LED strip | Boost: XL6009 |
| Small space, low current | 3.3V or 5V | Mini360 buck |
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.
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.
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.
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.
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.
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.
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.
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.