Part

LM2596 buck converter module

A 150 kHz step-down switcher on a blue board: turn the trimmer to set OUT, and it draws less current than it gives.

or see every part
  • 4 pins
  • 1 setting
  • In 1 project
  • In 1 lesson
Drawn live by the editor's own code, at the size you see it.
At a glance

The LM2596 buck converter module in brief

What it is, and every setting the properties panel gives it.

The blue LM2596 module is a step-down switching converter: 4.5 to 40 volts in on IN+ and IN-, and a multiturn trimmer sets OUT+ anywhere from 1.23 volts up to about a volt under the input. IN- and OUT- are one copper pour. Because it switches at 150 kHz and an inductor averages the result, it trades volts for amps: 12 volts in and 5 out at 2 amps draws about 1 amp from the adapter, where a 7805 would take the full 2 and burn 14 watts. Mokxi’s model follows TI’s datasheet: about 86 percent efficient from 12 to 5 volts at 1 amp and 82 at 3, a 5 mA quiescent draw, dropout, a current limit near 4.2 amps of output, and nothing at all below 4.5 volts in. The trimmer is the volts property. On the bench, set it with a meter before connecting anything, since a module left at 12 volts on an Uno’s 5V pin kills the board, and give it 6.5 volts or more in for a 5 volt output. The 150 kHz ripple, soft start and heat are not modeled.

Family
Power and wiring
Pins
4
volts
5
Pins

4 pins

Named as the editor names them, so a wire lands where you expect it.

Pin
What it does
IN+
The input, 4.5 V to 40 V.
IN-
Input ground.
OUT+
The output, set by the trimmer.
OUT-
Output ground.
How to use it

How to use the LM2596 buck converter with an Arduino

Wire the adapter to IN+ and IN-, set the volts property to 5, then wire OUT+ to the Uno’s 5V pin and OUT- to GND. The 5V pin skips the board’s own regulator, so whatever the trimmer is set to reaches the chip directly: check it before anything is connected. Here a 12 V adapter feeds the module, and A0 reads the adapter through a 10k and 4.7k divider.

Part pin
Board pin
IN+
Adapter V+
IN-
Adapter V-
OUT+
5V
OUT-
GND
Arduino Uno: 12 V through an LM2596live0.000 s 0.00x
Click to open it in the editor
This is the simulator itself, running here. Click anything to open it in the editor.
The adapter’s voltage through the divider on A0
const float DIVIDER = (10000.0 + 4700.0) / 4700.0;
int raw = analogRead(A0);
float adapter = raw * 5.0 / 1023.0 * DIVIDER;
Serial.print(adapter, 1);
Serial.println(" V");
How it is modeled

What is true about the LM2596 buck converter module, here

In its help article’s own words: what the simulation gets right, and where it stops.

Modeled

The figures are the typical ones from TI's LM2596 sheet (SNVS124).

Power in is power out plus the losses. The input current is the output's power plus what the switch, the diode, the inductor and the switching edges lose, over the input voltage, plus the chip's 5 mA. From 12 V to 5 V the model is about 86 % efficient at 1 A and 82 % at 3 A; the sheet gives 80 % at 3 A for the fixed 5 V part. From 12 V to 3 V at 3 A it is 75 %, against the sheet's 73 %.

Dropout. The LM2596 can hold its switch on all the time, so near its input the output follows the input down, about the switch's saturation (1.16 V at 3 A) and the inductor's resistance under it. Set to 5 V from 5.5 V, it gives about 4.5 V at an amp.

The current limit. The switch limits at 4.5 A peak, which is about 4.2 A of average output once the inductor's ripple is taken off. The board is sold as a 3 A converter: past 3 A a real one runs hot.

Under 4.5 V in it is off. That is the sheet's lowest input; the sheet does not say what happens below it, and the model simply stops.

Not modeled

The ripple. The output carries a 150 kHz ripple, far faster than the simulator's analog steps, so the output here is its average. At 12 V in and 5 V out the inductor's current swings about 0.6 A peak to peak, and on the board's general purpose 220 uF capacitor (about 0.05 to 0.1 ohm at 150 kHz) that is roughly 30 to 60 mV of ripple peak to peak. A low-ESR capacitor on the output brings it down.

Also not modeled: light-load operation, where the real efficiency falls further than the 5 mA quiescent current alone accounts for; the soft start; the spread of the feedback reference from board to board (1.193 to 1.267 V); line regulation; the ON/OFF pin, which the board ties on; and heat and thermal shutdown.

From LM2596 buck converter module, in full.

Projects

See the LM2596 buck converter module in a project

One built-in project uses it. It opens in the editor, already wired.

Lessons

Where it turns up in a lesson

One lesson places it in its own circuit.

Boards

The boards it is shown on

This board has a built-in project with the LM2596 buck converter module in it.

Wire up the LM2596 buck converter module

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.