# LM2596 buck converter: set the output voltage before connecting your robot

> Set an LM2596 buck converter module with a multimeter before connecting a microcontroller, and check input headroom and current.

Canonical: https://roboticsengineering.in/fix/lm2596-buck-converter-set-voltage-before-connecting/ | Published: 2026-11-03 | Updated: 2026-11-04

**Adjust the output with a multimeter before you connect the load.** Modules often leave the factory set to a voltage that can damage a 3.3 V or 5 V board.

## What the message means

The module has a trimmer that sets the output. The input must be higher than the output by a margin, and the current must stay within the rating.

## Fix it in this order

1. Connect the input supply only, with nothing on the output.
2. Measure the output voltage and turn the trimmer until it reads exactly what you need, for example 5.0 V.
3. Turn the power off, connect the load and power on again.
4. Keep the input at least a couple of volts above the output.
5. Check the module current rating and add a heat sink or reduce the load if it runs hot.
6. Check again after the load connects, since the voltage may sag.

## Why it happens

An LM2596 module is a step-down switching regulator. Its trimmer sets the output voltage, and modules often ship with a setting far from what your board needs. Connecting a 3.3 V or 5 V board to a high output can damage it within seconds. The input must also sit above the output by the regulator’s dropout margin, which the datasheet for your module gives, because the regulator cannot reduce the voltage to nothing.

The current rating is the second limit. A module pushed beyond its rated current overheats, and its output can sag as protection engages. Setting the voltage with no load avoids overshooting into a sensitive board, and measuring again with the load connected shows whether the output holds. Lower loads or a heat sink resolve most heat-related faults.

## If you see this, do this

| You see | Do this |
| --- | --- |
| Output higher than expected | Trimmer not set before connecting. |
| Output drops under load | Input too low or load too high. |

## Confirm the fix

1. With no load connected, power the input and turn the trimmer slowly while measuring the output with a multimeter until it reads your target voltage.
2. Power off, connect the load, power on, and measure the output again; a drop under load points to a low input or an overloaded module.
3. After ten minutes of running, touch the module; if it is hot, reduce the load or check the current rating in the datasheet.

**Common mistake:** Readers assume the module outputs what its label says, when many ship with an arbitrary trimmer setting that must be measured and adjusted first.

## Related

[brownout](https://roboticsengineering.in/fix/esp32-brownout-detector-was-triggered/), [robot battery guide](https://roboticsengineering.in/robot-battery-guide/).

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.
