Este módulo elevador DC-DC ajustable convierte una tensión de entrada en un rango de tensión de salida más alto seleccionable e incluye un voltímetro digital. Está diseñado para una potencia de salida alta (hasta unos 100 W) y usa el cableado típico con bornes de tornillo, además de un control de ajuste para fijar la tensión de salida.
| Pin | Señal | Descripción |
|---|---|---|
IN+ |
power | Positive DC input supply for the boost converter, typically 3.0–35 V. |
IN- |
ground | Negative input return for the DC supply; common ground reference. |
OUT+ |
power | Boosted positive DC output set by the adjustment control. |
OUT- |
ground | Negative output return; common with input negative on this module. |
| Desde | Hasta | Cable |
|---|---|---|
board:5V |
x1:IN+ |
red |
board:GND |
x1:IN- |
black |
x1:OUT+ |
board:A0 |
green |
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 beginner example for a DC-DC boost module with voltmeter
// Measures the module output voltage on A0 using the Arduino's 5V analog reference.
const int voltagePin = A0;
void setup() {
Serial.begin(9600);
while (!Serial) {
;
}
Serial.println("DC-DC boost module voltage monitor");
}
void loop() {
int raw = analogRead(voltagePin);
float voltage = raw * (5.0 / 1023.0);
Serial.print("A0 raw = ");
Serial.print(raw);
Serial.print(" | module output voltage = ");
Serial.print(voltage, 2);
Serial.println(" V");
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