Codey OnlineArduino- & ESP32-componentenbibliotheek › 12V DC power supply
12V DC power supply
Input & knoppen

12V DC power supply

Een 12V-gelijkspanningsbron of voedingsaansluiting voor het voeden van compatibele circuits met gelijkstroom. Het gebruikt twee aansluitingen, + en -, en moet met de juiste polariteit worden aangesloten. Het wordt meestal gebruikt als externe voedingsingang en niet als signaalcomponent.

Breedte: 66.3 mm

Pinout — 12V DC power supply

Pin Signaal Beschrijving
12V - power 12V DC negative wire
12V + power 12V DC positive wire

Voorbeeld-aansluitschema — 12V DC power supply

Van Naar Draad
board:GND x1:- black

Voorbeeld-Arduinocode — 12V DC power supply

Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.

// Canonical example for a 12V DC source component
// Note: This is a passive power source. It is not controlled by the Arduino,
// so the example focuses on the safety connection of the negative terminal to GND.

void setup() {
  Serial.begin(9600);
  while (!Serial) {
    ;
  }

  Serial.println("12V DC source example");
  Serial.println("Connect the negative terminal of the 12V supply to Arduino GND.");
  Serial.println("The positive terminal is intentionally left unconnected in this canonical example.");
}

void loop() {
  // No runtime action: this component is a DC power source.
}

Vergelijkbare componenten

5V DC

5V DC

Drukknop

Drukknop

HX711 Load Cell Amplifier

HX711 Load Cell Amplifier

Joystick module

Joystick module

Bouw je Arduino- of ESP32-project met AI

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