Ten regulowany moduł podwyższający DC-DC przekształca napięcie wejściowe na wybieralny wyższy zakres napięcia wyjściowego i ma cyfrowy woltomierz. Jest przeznaczony do dużej mocy wyjściowej (do około 100 W) i wykorzystuje typowe połączenia na zaciskach śrubowych oraz regulator do ustawiania napięcia wyjściowego.
| Pin | Sygnał | Opis |
|---|---|---|
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. |
| Z | Do | Przewód |
|---|---|---|
board:5V |
x1:IN+ |
red |
board:GND |
x1:IN- |
black |
x1:OUT+ |
board:A0 |
green |
x1:OUT- |
board:GND.1 |
black |
Ten przykład został napisany i sprawdzony kompilacją dla arduino-uno. Codey Online dostosuje go do każdej innej obsługiwanej płytki.
// 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);
}
Opisz, co chcesz zbudować. Codey Online napisze kod, narysuje schemat połączeń, skompiluje projekt i wgra go na płytkę bezpośrednio z przeglądarki.
Zacznij za darmo