Este convertidor buck ajustable basado en el LM2596 reduce una tensión de entrada DC más alta a una tensión de salida DC más baja con buen rendimiento. Se usa habitualmente para alimentar proyectos Arduino y ESP32 desde una fuente de mayor voltaje, y la tensión de salida se ajusta con el potenciómetro de ajuste integrado.
| Pin | Señal | Descripción |
|---|---|---|
OUT+ |
power | Regulated positive DC output from the buck converter, set by the trimmer. |
OUT- |
ground | Output negative/ground return for the regulated DC load. |
IN+ |
power | Positive DC input supply to the buck converter, typically 3–40 VDC. |
IN- |
ground | Input negative/ground return for the DC supply. |
| Desde | Hasta | Cable |
|---|---|---|
board:5V |
x1:IN+ |
red |
board:GND |
x1:IN- |
black |
x1:OUT+ |
board:5V |
red |
x1:OUT- |
board:GND.1 |
black |
Este ejemplo se escribió y verificó por compilación para arduino-uno. Codey Online lo adapta a cualquier otra placa compatible.
// Canonical example for an LM2596 adjustable step-down module
// This sketch reads the Arduino's 5V rail as a simple voltage check.
// Wiring note: the LM2596 is connected to the Arduino power rails in this example.
void setup() {
Serial.begin(9600);
while (!Serial) {
;
}
Serial.println("LM2596 adjustable step-down module example");
Serial.println("The module is wired to the Arduino power rails.");
}
void loop() {
int raw = analogRead(A0);
float volts = raw * (5.0 / 1023.0);
Serial.print("A0 reading = ");
Serial.print(raw);
Serial.print(" approx volts = ");
Serial.println(volts, 3);
delay(1000);
}
Describe lo que quieres construir. Codey Online escribe el codigo, dibuja el esquema de conexiones, lo compila y graba tu placa directamente desde el navegador.
Empieza gratis