SKU: OT2004-A113 Numéro d’article: AA270 EAN: 8179262862427
4-38VDC tension d'entrée
1.25-36VDC tension de sortie, réglable
0-5A puissance de sortie, avec protection contre les courts-circuits en sortie.
Sortie maximale 75W avec protection thermique
Inclus dissipateur thermique fourni non monté. Peut être fixé à l'aide de la bande 3M jointe.
Dimensions
Longueur: 5,4cm
Largeur: 2,45cm
Hauteur: 1,7cm
Voici comment connecter le Module abaisseur réglable 4~38 V 5 A 96 % haute efficacité XL4015 à un Arduino UNO ou à un ESP32, avec un exemple de sketch que tu peux téléverser directement.
Ce projet alimente le module abaisseur LM2596 depuis le rail 5V de l'Arduino et mesure sa tension de sortie régulée sur la broche analogique A0. Ajustez le potentiomètre intégré avec un petit tournevis pour observer les variations de tension en temps réel affichées dans le Serial Monitor (gardez la sortie sous 5V).
/*
* ==================================================================
* 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
Avant de connecter l'ESP32, utilisez un multimètre pour ajuster le potentiomètre trimmer du LM2596 jusqu'à ce que OUT+ affiche exactement 5.0V. Le module abaisse efficacement l'entrée 12V vers une sortie stable de 5V pour alimenter l'ESP32 via VIN et GND. Une fois connecté, l'ESP32 démarre, fait clignoter sa LED d'état intégrée et envoie des messages heartbeat via Serial.
/*
* ==================================================================
* 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