All articles

    The LM2596 Module: Efficiently Stepping 12 V Down to 5 V

    A guide to the popular LM2596 buck module: the parts on it, input and output range, the required headroom, real output current and cooling, setting the voltage before connecting a load, calculating input current, ripple and smoothing it, reverse polarity and the failure that outputs the input voltage, display and constant-current versions, and fakes.

    Updated 6 min read

    You have a 12 V battery and need 5 V for an Arduino, sensors and a display? A linear regulator (like the 7805) will burn the whole difference as heat. The LM2596 module does the same job far more efficiently, and it's cheap and available everywhere. But there are a few things you need to know before connecting anything expensive to it.

    12 V in, 5 V and 2 A out, and the input current is lower than the output
    12 V in, 5 V and 2 A out, and the input current is lower than the output

    The general idea is in buck vs linear.

    What's on the module?

    • The LM2596 chip (or a copy of it): it contains the switch and the control, and runs at about 150 kHz.
    • The large inductor (usually 33 or 47 µH): stores energy between one pulse and the next.
    • A Schottky diode (usually an SS34): carries the current while the switch is off.
    • Two electrolytic capacitors: one on the input and one on the output.
    • A blue multi-turn trimmer: sets the voltage. It's part of a voltage divider that tells the chip what the output should be:
    Vout = 1.23 × (1 + R2 ÷ R1)

    So the chip tries to keep 1.23 V on its feedback pin, and the trimmer changes the ratio. The same idea as the LM317 and the voltage divider.

    Practical specifications

    • Input: up to about 40 V (on the common modules; check the capacitors on it: if they're rated 35 V, that's your real limit).
    • Output: from about 1.25 V upwards, set with the trimmer.
    • Headroom: the input must be at least about 1.5–2 V above the output.
    • Current: the chip is rated 3 A, but the small module without a heatsink is comfortable up to about 2 A in practice.
    • Efficiency: usually about 80–90% depending on voltage and current.

    Real current by use

    UseApprox. comfortable current
    Continuous, in a closed enclosure1–1.5 A
    Continuous, in open airabout 2 A
    With a small heatsink on the chip2.5 A
    Short peaks (a motor starting)3 A for seconds

    Input current: less than the output!

    I_in ≈ (V_out × I_out) ÷ (V_in × efficiency)

    Example: 5 V × 2 A = 10 W. From 12 V at 88% efficiency:

    • I_in ≈ 10 ÷ (12 × 0.88) ≈ 0.95 A.

    With a 7805 the input would be the full 2 A, with 14 W of heat. Calculate it with the buck and boost calculator.

    A real-life example: an ESP32 with a display and sensors draws an average of 150 mA at 5 V from a 12 V car battery. The power is 0.75 W, and the battery current only about 70 mA. With a 7805 it would be 150 mA, so the battery lasts twice as long with the LM2596.

    Setting it up

    1. Connect the input only, with no load.
    2. Measure the output with a multimeter.
    3. Turn the trimmer (it may take many turns before anything changes). On most modules clockwise lowers the voltage, but not all, so watch the reading.
    4. Set it to 5.0–5.1 V, then connect the load, and measure again under load.

    Watch out: the module usually arrives set to a random voltage that can be almost as high as the input. If you connect an Arduino before setting it, it may be destroyed. And if the module will be shaken (in a car or a robot), put a dab of glue or varnish on the trimmer so it doesn't move.

    Heat

    • Touch the chip and inductor after a few minutes under load. Warm = normal; too hot to touch = too much current.
    • A small heatsink on the chip, and somewhere with airflow.
    • The diode heats up too, especially when the output is low and the input high (such as 3.3 V from 24 V), because it carries the current most of the time.
    • For higher currents there are bigger modules (such as the XL4015 or 5 A modules).

    The output has ripple

    It's a switching regulator, so the output has small pulses, usually tens of millivolts. For most digital circuits that's no problem. For audio or sensitive analog sensors:

    • Add a 10–22 µF ceramic capacitor next to the electrolytic on the output.
    • Or a small LC filter: a 10 µH inductor and a 100 µF capacitor after the module.
    • Or an LDO after it for the sensitive part, such as 5 V to 3.3 V.

    The causes are explained in detail in the EMI noise article, and filter capacitors in the filter capacitor article.

    Protection

    • Reverse polarity: the module has no protection at all, and a reversed input for one second kills the chip. Add a diode or MOSFET on the input; the methods are in the reverse polarity protection article.
    • The dangerous failure: when the chip fails, the switch inside can stay on, so the output becomes the same as the input voltage. 12 V on an ESP32 = the end of it. If the load is expensive, add a zener diode or TVS on the output with a fuse before it.
    • Input above 40 V (or above the capacitors' rating): the capacitor bulges and the chip dies.

    Other versions

    • With a voltmeter display: the same module with a small display showing the input or output voltage at the press of a button. Convenient for adjustment without a multimeter, but its accuracy is approximate.
    • Constant current (CC/CV): such as XL4015 modules with two trimmers, one for voltage and one for maximum current. Useful for charging batteries and driving power LEDs, because the module limits the current by itself.
    • Fixed voltage: the LM2596-5.0, for example, with no trimmer; safer if you don't want anyone changing the voltage by mistake.

    Fakes

    Many cheap modules carry counterfeit chips or capacitors weaker than their markings. Recurring signs: the module gets very hot at a small current, the voltage sags below 1 A, or the inductor whines audibly. Test the module with a real load (a power resistor or a lamp) for a quarter of an hour before relying on it, and don't run it at the limit of its specifications.

    FAQ

    Can I get 5 V from a 3.7 V lithium battery with it? No, a buck only steps down. You need a boost module.

    The voltage changes a little when the load changes? Normal, within a couple of tenths of a volt. If it drops more, the input is too close to the output, the current is beyond the module's capacity, or the wires are too thin.

    Circuits Nerd
    © 2026 Circuits Nerd. All rights reserved.