Ordered on weekdays before 14:00 = shipped the same day and delivered the next day in 98% of cases. Free returns 30-day reflection period 1-year warranty

Wiring diagram and code example

How to connect the LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

LM2596 Step-Down Voltage Monitor

This project measures the output voltage of an LM2596 buck converter module using the Arduino's analog input pin A0. Power the module's input from the Arduino 5V rail (or external power up to 40V) and turn the onboard potentiometer to watch the measured output voltage change in the Serial Monitor.

Wiring diagram: LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display on an Arduino UNO
Connection table · Click to enlarge
LM2596_Step_Down_Voltage_Monitor.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : LM2596 Step-Down Voltage Monitor
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : Adjustable Step-down Module 3-40VDC 1.5-35VDC LM2596
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

const int voltagePin = A0;

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    ; // Wait for serial port to connect
  }
  Serial.println(F("LM2596 Step-Down Module Monitor"));
  Serial.println(F("Turn the onboard brass potentiometer to adjust output voltage."));
  Serial.println(F("-----------------------------------------------------------"));
}

void loop() {
  // Read the analog voltage (0 to 1023 corresponds to 0V to 5V)
  int rawValue = analogRead(voltagePin);
  float voltage = (rawValue * 5.0) / 1023.0;

  Serial.print(F("Raw ADC: "));
  Serial.print(rawValue);
  Serial.print(F(" | Output Voltage: "));
  Serial.print(voltage, 2);
  Serial.println(F(" V"));

  delay(500);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Powering ESP32 with LM2596 Buck Converter

This circuit uses an LM2596 step-down module to regulate a 12V DC input down to a steady 5V for the ESP32's VIN pin. Before connecting the ESP32, adjust the onboard trimmer until the output voltage measures exactly 5.0V with a multimeter. Once connected, the ESP32 blinks its onboard LED and outputs a heartbeat message to the Serial Monitor.

Wiring diagram: LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display on an ESP32 DevKit V1
Connection table · Click to enlarge
Powering_ESP32_with_LM2596_Buck_Converte.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : Powering ESP32 with LM2596 Buck Converter
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : Adjustable Step-down Module 3-40VDC 1.5-35VDC LM2596
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

const int LED_PIN = 2;
unsigned long counter = 0;

void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  
  Serial.println("LM2596 Step-Down Powered ESP32 Started!");
  Serial.println("Ensure LM2596 output was calibrated to 5.0V before connecting to VIN.");
}

void loop() {
  digitalWrite(LED_PIN, HIGH);
  delay(500);
  digitalWrite(LED_PIN, LOW);
  delay(500);

  counter++;
  Serial.print("ESP32 running stably on buck regulator. Heartbeat count: ");
  Serial.println(counter);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

LM2596S Adjustable Step-Down 4-40V -> 1.25-37V with onboard Voltmeter Display

Input voltage 4.0 ~ 40V. (Input voltage must be higher than the output voltage by 1.5V or more)

Adjustable output voltage range of 1.25V ~ 37V, continuously adjustable. (Input voltage must be higher than the output voltage by 1.5V)

Output current 3A, recommended use within 2.0A, high current is needed to improve heat dissipation.

Output power 20W, 15W, improve heat dissipation.

High conversion efficiency, average 88% (efficiency and input and output voltage, current, pressure related)

With reverse polarity protection

Size 6.1 * 3.4 * 12 cm (L * W * H)

Dimensions
Length: 6.5cm
Width: 3.5cm
Height: 1.2cm

  • Adjustable range
  • Voltmeter display
  • 3A output current
  • Reverse polarity protection

Why choose this product?

  • Infinitely adjustable – Output voltage adjustable from 1.25V to 37V.
  • Wide input range – Works with input voltage from 4.0 to 40V.
  • High efficiency – Average conversion efficiency of 88%.
  • Reverse polarity protection – Protects against reverse polarity.
  • With voltmeter display – Onboard voltmeter display included.
Specifications
Dimensions6,1 x 3,4 x 1,2 cm
Input voltage4,0 ~ 40V
Output voltage1,25V ~ 37V
Output power20W
Output current3A
Efficiency88%

Frequently bought together

Total: € 10,74

Reviews

★★★★★ 4,7/5 6 reviews
  • ★★★★★T.W.J.A. van der HeulVerified purchase

    Nice and compact, easy to connect

  • ★★★★★Tjeerd Delfsma

    Haven't been able to try it yet

  • ★★★★★P.A.F. Schilperoort

    A 24-volt supply was connected to the input. After putting it into use, the ch started to burn

Write a review
Your rating

Shipping & returns

Shipping

  • Parcel with track & trace€ 7,70Within 24 hours
  • Pick up at PostNL location€ 7,40Within 24 hours
  • Letterbox parcel€ 3,70Within 2 business days
  • Letterbox parcel 24 hours€ 4,55Within 24 hours
  • Pick up in storeFree
All about shipping

Returns

Not satisfied? You have 30 days after delivery to return the product.

All about returns

Recently viewed