Skip to content
A

Voltage Regulator

Using LM2596 Voltage Regulator with Arduino Uno

What is the LM2596?

LM2596 practical reference

An adjustable buck (step-down) converter module used to efficiently drop higher battery voltages down to a project's logic-level supply. Built around the LM2596 switching regulator IC, it converts a higher input voltage down to a lower, adjustable output set by an onboard trimmer potentiometer, with far less wasted heat than a linear regulator — the standard choice for powering 5V or 3.3V electronics from a 9V, 12V, or higher battery/adapter source in DIY projects.

Key specifications

  • Converter type: LM2596 adjustable DC-DC buck (step-down) converter
  • Input voltage: 4.5V–40V DC (practical range; must exceed the desired output plus ~1.5V dropout)
  • Output voltage: Adjustable from ~1.25V to ~35V DC via onboard trimmer potentiometer
  • Output current: Up to ~3A typical (with adequate heatsinking/cooling at higher loads)
  • Switching frequency: ~150 kHz
  • Efficiency: Up to ~92% typical, much cooler-running than a linear regulator dropping the same voltage difference
  • Adjustment: Onboard trimmer potentiometer sets output voltage — measure with a multimeter under no/light load while adjusting

Pinout and connection notes

As with other adjustable regulator boards, set the output voltage using the onboard trimmer potentiometer and a multimeter before connecting sensitive electronics — these modules ship at an arbitrary factory-set voltage. Input voltage must be at least ~1.5V higher than the desired output for the regulator to maintain regulation; if the input voltage is already lower than what you need, use a boost converter like the MT3608 instead, since buck converters cannot step voltage up.

  • IN+: Positive voltage input from battery/power source
  • IN-: Negative input / ground
  • OUT+: Positive regulated stepped-down output
  • OUT-: Negative output / ground (shared with IN-)

Integration checklist

  1. Confirm the exact part number and breakout-board revision.
  2. Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
  3. Check controller pin assignments and bus address or interface mode against the example code.
  4. Power up with external loads disconnected, then test signals before full integration.
  5. If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.

Troubleshooting and reproducibility

Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.

Setting Up LM2596 with Arduino Uno

Wiring

Component pinArduino Uno pinNote
IN+ / IN-Higher-voltage source (e.g. 12V adapter, multi-cell pack)Not connected to the Arduino
OUT+5V pinTrim to ~5.0-5.2V under load before connecting
OUT-GND

Swipe sideways to see every column →

C++
  • Feeding a 12V supply straight into the Uno's own VIN pin works too, but the onboard linear regulator burns the difference off as heat — an LM2596 trimmed to ~5.1V into the 5V pin directly is far more efficient for a project running off a wall adapter or multi-cell pack.
  • Calibrate the same way as a boost converter: power the Uno separately, dial in ~5.0-5.2V under load with the trimmer, then connect OUT+ to the real 5V pin.
  • The module needs roughly 1.5V of headroom above the target output to regulate cleanly — a 6V input won't reliably hold a steady 5V.

Related Components

Related Guides & Projects