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 4~38V 5A 96% High Efficiency XL4015 to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

LM2596 Voltage Step-Down Monitor

This project powers the LM2596 step-down module from the Arduino 5V rail and measures its regulated output voltage on analog pin A0. Adjust the onboard potentiometer with a small screwdriver to observe the real-time voltage changes printed to the Serial Monitor (keep output under 5V).

Wiring diagram: Adjustable Step-down Module 4~38V 5A 96% High Efficiency XL4015 on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: Adjustable Step-down Module 4~38V 5A 96% High Efficiency XL4015 on an Arduino UNO
Connection table · Click to enlarge
LM2596_Voltage_Step_Down_Monitor.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : LM2596 Voltage Step-Down 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 Voltage Monitor"));
  Serial.println(F("Turn the onboard trimmer to adjust the output voltage (0-5V)."));
}

void loop() {
  int rawValue = analogRead(voltagePin);
  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

Before connecting the ESP32, use a multimeter to adjust the LM2596 trimmer potentiometer until OUT+ reads exactly 5.0V. The module efficiently steps down the 12V input to a stable 5V output to power the ESP32 via VIN and GND. When connected, the ESP32 boots up, blinks its onboard status LED, and outputs heartbeat messages via Serial.

Wiring diagram: Adjustable Step-down Module 4~38V 5A 96% High Efficiency XL4015 on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: Adjustable Step-down Module 4~38V 5A 96% High Efficiency XL4015 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.
 * ==================================================================
 */

// LM2596 Step-Down Buck Converter ESP32 Power Demo
// Note: Always adjust LM2596 output to 5V before connecting to VIN!

const int LED_PIN = 2; // Onboard LED

void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);

  Serial.println("LM2596 Step-Down Buck Converter Demo");
  Serial.println("ESP32 successfully running on regulated 5V power!");
}

void loop() {
  // Turn LED on
  digitalWrite(LED_PIN, HIGH);
  Serial.print("Uptime: ");
  Serial.print(millis() / 1000);
  Serial.println(" s | Power Status: OK (LED ON)");
  delay(500);

  // Turn LED off
  digitalWrite(LED_PIN, LOW);
  delay(500);
}

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

Adjustable Step-down Module 4~38V 5A 96% High Efficiency XL4015

4-38VDC input voltage
1.25-36VDC output voltage, adjustable
0-5A output power, with output short-circuit protection.
Maximum output 75W with thermal protection

Includes heat sink which is supplied unassembled. Can be attached using the included 3M strip.

Dimensions
Length: 5.4cm
Width: 2.45cm
Height: 1.7cm

  • Adjustable output
  • Short-circuit protection
  • Thermal protection
  • Compact size

Why choose this product?

  • Adjustable output – Output voltage adjustable from 1.25-36VDC.
  • Short-circuit protection – Protects the output against short circuits.
  • Thermal protection – Maximum output of 75W with thermal protection.
  • Includes heatsink – Heatsink supplied unassembled.
  • Easy to attach – Can be attached with the included 3M strip.
Specifications
Width2.45 cm
Power75W
Input voltage4-38VDC
Output voltage1.25-36VDC
Length5.4 cm
Height1,7 cm
Output current0-5A

In the package

  • step-down module
  • heat sink

Frequently bought together

Total: € 9,20

Reviews

★★★★★ 5,0/5 1 review
  • ★★★★★Luc

    Works accurately. Easy to connect.

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

Servo S3003 180 degrees

Servo S3003 180 degrees

€ 5,70
Potentiometer 10K

Potentiometer 10K

€ 1,30