Deze verstelbare DC-DC boostmodule zet een voedingsspanning om naar een instelbaar hoger spanningsbereik en heeft een digitale voltmeter. De module is geschikt voor hoog uitgangsvermogen (tot ongeveer 100 W) en gebruikt gebruikelijke schroefklemmen plus een regelaar om de uitgangsspanning in te stellen.
| Pin | Signaal | Beschrijving |
|---|---|---|
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. |
| Van | Naar | Draad |
|---|---|---|
board:5V |
x1:IN+ |
red |
board:GND |
x1:IN- |
black |
x1:OUT+ |
board:A0 |
green |
x1:OUT- |
board:GND.1 |
black |
Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.
// 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);
}
Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.
Gratis starten