You have 5 V from USB or 3.7 V from a lithium cell, and need 12 V for an LED strip or a small motor? Or 5 V for an Arduino from a single lithium cell? A boost module raises the voltage. But nothing comes for free: the energy has to come from the input, and the current drawn from the battery is bigger than you'd expect.
How does it work?
An inductor charges from the input, then a fast switch disconnects it, so the inductor produces a higher voltage that passes through a diode and charges the output capacitor. This repeats hundreds of thousands of times a second. The same family as the buck, but in reverse.
The fraction of time the switch is on (the duty cycle) sets how much it boosts:
D ≈ 1 − (Vin ÷ Vout)
From 5 V to 12 V → D is about 58%. And from 3.7 V to 12 V → about 69%. The bigger the boost, the closer the duty cycle gets to 100%, the lower the efficiency, and the higher the current in the inductor and switch. That's why a large boost (such as 3 V to 24 V) is hard for small modules.
The most important calculation: input current
P_out = V_out × I_out
I_in = P_out ÷ (V_in × efficiency)
Example: from 5 V to 12 V at 0.5 A, with about 85% efficiency:
- P_out = 12 × 0.5 = 6 W.
- I_in = 6 ÷ (5 × 0.85) ≈ 1.4 A.
So an ordinary USB port won't be enough, and a 3.7 V battery would need more than 1.9 A. Calculate it with the buck and boost calculator.
Example: an Arduino and sensors from an 18650 cell
The project draws 5 V at 0.5 A (2.5 W), with about 88% efficiency:
- Battery charged (4.1 V): input current ≈ 2.5 ÷ (4.1 × 0.88) ≈ 0.7 A.
- Battery nearly empty (3.2 V): ≈ 2.5 ÷ (3.2 × 0.88) ≈ 0.9 A.
So the emptier the battery gets, the more the module draws from it. That leads to the most important problem below.
Popular modules
| Module | Input | Frequency | Notes |
|---|---|---|---|
| MT3608 | about 2–24 V | 1.2 MHz | Small and cheap. The 2 A rating is the switch limit, not the output current. In practice much less, especially with a large boost |
| XL6009 | about 5–32 V | 400 kHz | Bigger, with a 4 A switch, and handles more power |
The rule: the big number in the listing is usually the internal switch limit. Take half or less as a comfortable output current, and check the heat.
Approximate comfortable output current
| Case | MT3608 | XL6009 |
|---|---|---|
| 5 V to 9 V | about 0.6 A | about 1.2 A |
| 5 V to 12 V | about 0.4 A | about 0.9 A |
| 3.7 V to 5 V | about 0.8 A | not suitable (its input starts at about 5 V) |
| 12 V to 24 V | about 0.4 A | about 0.8 A |
These figures are approximate for a module without extra cooling, and vary from one version to another. Test your module with the real load for a quarter of an hour.
Setting it up
- Connect the input with no load.
- Measure the output with a multimeter and turn the small trimmer (often many turns).
- Set the voltage, then connect the load.
On many modules the trimmer needs many turns before the voltage starts to change. The module sets its voltage with a divider on the feedback pin, like the LM2596: the MT3608 tries to hold 0.6 V on that pin, and the XL6009 about 1.25 V.
Things you need to know
- There's no real "off": if the chip stops, the input passes through the inductor and diode to the output, so the output is ≈ the input, not zero. A boost can't go below its input voltage, and if you really want to disconnect the load you need a MOSFET or a switch.
- No short-circuit protection: a short on the output = a short on the input through the diode. Fit a fuse.
- The battery sags: the high input current makes the battery voltage drop, so the current rises further, until the protection cuts out.
- Ripple: the output has pulses, so add an extra capacitor if you're powering something sensitive. See the filter capacitor.
- Inrush: at the moment of connection, the output capacitor is empty and draws a large current from the input. That can dip the battery voltage momentarily, and a sensitive protection circuit may cut out.
The most common problem with batteries
A lithium battery under a heavy load sags because of its internal resistance, and a cheap battery holder with thin leads adds more resistance. Example: 2 A through a path of 0.15 Ω = 0.3 V lost before the module. So a "4 V" battery reaches the module as 3.7 V, the module draws more current, and the voltage drops further. The fixes:
- Shorter, thicker wires, and solder instead of a battery holder if the current is high.
- A high-drain battery. See the battery types article.
- A large capacitor (say 470 µF) on the module's input, close to it.
- Two cells in parallel, so the current is shared.
Ready-made USB modules
There are small modules made specifically for a lithium cell → 5 V USB (like the ones inside power banks), some with a charger, protection and a USB socket all in one. If your goal is 5 V from one cell, these are usually easier and more efficient than the MT3608. Note that some switch off by themselves if the load is very small (to save the battery), so a project drawing 20 mA may find the power cutting out every so often.
Need a voltage above and below the battery?
A lithium battery goes from 4.2 V to 3.0 V, and you need a steady 3.3 V all the time? Neither a boost alone nor a buck alone will do. You need a buck-boost: there are small modules with chips that switch between the two modes by themselves, outputting a steady 3.3 V whether the battery is above or below it. Or use an LDO with a very small dropout, accepting that the last part of the battery won't be used.
FAQ
The module gets very hot with a small load? Usually the boost is too large (low input, high output), the module is counterfeit, or there's a slight short on the output. Measure the input current.
The output drops when I connect the load? The input can't supply the required current (a weak battery or USB), or the load exceeds the module's capacity. Calculate the input current from the equation and compare.