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 Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596 to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

LM2596 Step-Down Voltage Monitor

This project monitors the output voltage of the LM2596 adjustable step-down converter using analog pin A0. Power the module from the Arduino 5V/VIN pin and turn the onboard potentiometer to watch the measured voltage update in the Serial Monitor (ensure output voltage does not exceed 5V).

Wiring diagram: Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596 on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596 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.
 * ==================================================================
 */

// LM2596 Buck Converter Voltage Monitor
// Reads the regulated output on analog pin A0.
// Note: Keep the output voltage at or below 5.0V to protect the analog pin.

const int sensePin = A0;

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    ; // Wait for Serial Monitor
  }
  Serial.println(F("LM2596 Step-Down Voltage Monitor Initialized"));
  Serial.println(F("Adjust the trimmer potentiometer on the module."));
}

void loop() {
  int rawValue = analogRead(sensePin);
  float voltage = rawValue * (5.0 / 1023.0);

  Serial.print(F("ADC Value: "));
  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 setup uses the LM2596 step-down module to regulate a 12V DC power source down to 5V to power the ESP32 via its VIN pin. Before connecting the output to the ESP32, use a multimeter and turn the onboard trimmer potentiometer until the output measures exactly 5.0V. The ESP32 blinks its onboard status LED and reports uptime over Serial to confirm stable operation.

Wiring diagram: Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596 on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596 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.
 * ==================================================================
 */

// Onboard LED on ESP32 DevKit V1 is on GPIO 2
const int LED_PIN = 2;

void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  
  Serial.println("LM2596 Step-Down Module ESP32 Power Demo");
}

void loop() {
  digitalWrite(LED_PIN, HIGH);
  Serial.print("ESP32 running stably on buck converter power. Uptime: ");
  Serial.print(millis() / 1000);
  Serial.println(" s");
  delay(1000);

  digitalWrite(LED_PIN, LOW);
  delay(1000);
}

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

Adjustable Step-down Module 3-40VDC to 1.5-35VDC LM2596

With the LM2596 step-down module, you can convert a DC input voltage between 3V and 40V to an adjustable DC output voltage from 1.5V to 35V. The LM2596 module stabilizes the output voltage and remains stable as long as the input voltage is not less than 10% above the output voltage. This can be useful, for example, when powering electronic devices that operate at a lower voltage than the standard supply voltage. The LM2596 module is equipped with a potentiometer that allows the output voltage to be easily adjusted.

The module has a maximum output current of 3A with an efficiency of up to 92%. The LM2596 features built-in protection functions (such as against overheating, overcurrent, and short circuit) to ensure your equipment is powered safely.

Technical specifications:
- Input voltage: 3V - 40V DC
- Output voltage: 1.5V - 35V DC (adjustable)
- Maximum output current: 3A
- Efficiency: up to 92%
- Built-in protection functions (overheating, overcurrent, short circuit)
- Dimensions: 43mm x 21mm x 14mm

  • Adjustable voltage
  • Max. 3A
  • Up to 92%
  • 43 x 21 x 14 mm

Why choose this product?

  • Adjustable output – Output voltage can be easily adjusted with a potentiometer.
  • High output current – Delivers up to 3A.
  • High efficiency – Up to 92% efficiency.
  • Stable voltage – Remains stable with sufficiently higher input voltage.
  • Built-in protection – Protects against overheating, overcurrent, and short circuit.
Specifications
Dimensions43mm x 21mm x 14mm
Input voltage3V - 40V DC
Output voltage1.5V - 35V DC
Output current3A
Efficiencyup to 92%

Frequently bought together

Total: € 8,60

Reviews

★★★★★ 4,8/5 11 reviews
  • ★★★★★Pierre Vergonet

    Tested, does exactly what the specifications say and at a very reasonable price.

  • ★★★★★M. jr. Schouten

    Not tested yet

  • ★★★★★Gerrit NijhofVerified purchase

    Excellent product, I use this to bring the 13.5VDC from an inverter down to 3.3VDC to power an Esp32 and a max3232 RS232

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