Codey OnlineBiblioteka komponentów Arduino i ESP32 › Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator
Relais Module 12v AC250V 10A Relais  12v 1 relais  LED indicator
Wyjście

Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator

To jest jednokanałowy moduł przekaźnika 12V do przełączania zewnętrznych obciążeń za pomocą niskonapięciowego sygnału sterującego. Strona przełączana jest przystosowana do AC 250V 10A i moduł ma diodę LED sygnalizującą stan. Moduł jest często używany w projektach Arduino/ESP32 do bezpiecznego sterowania urządzeniami zasilanymi z sieci. with high low yello jumper

Szerokość: 25.8 mm

Pinout — Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator

Pin Sygnał Opis
DC+ power 12V positive supply input for the relay module coil and driver circuit
DC- ground 0V supply ground for the relay module control side
IN digital Relay control input from MCU or switch; trigger level is selectable by jumper
NC digital Normally-closed relay contact; connected to COM when relay is off
COM digital Common relay contact for the external load circuit
NO digital Normally-open relay contact; connected to COM when relay is energized

Przykładowy schemat połączeń — Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator

Z Do Przewód
board:5V x1:DC+ red
board:GND x1:DC- black
board:D7 x1:IN green

Przykładowy kod Arduino — Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator

Ten przykład został napisany i sprawdzony kompilacją dla arduino-uno. Codey Online dostosuje go do każdej innej obsługiwanej płytki.

// Canonical example for a 12V relay module with indicator LED
// Wiring:
// Arduino 5V  -> DC+
// Arduino GND -> DC-
// Arduino D7  -> IN

const int RELAY_PIN = 7;

void setup() {
  pinMode(RELAY_PIN, OUTPUT);
  Serial.begin(9600);
  Serial.println("12V relay module example starting...");
}

void loop() {
  // Many relay modules are active LOW, but some are active HIGH.
  // This example toggles both states with delays so you can observe the relay.

  Serial.println("Relay ON");
  digitalWrite(RELAY_PIN, LOW);   // common active-LOW trigger
  delay(2000);

  Serial.println("Relay OFF");
  digitalWrite(RELAY_PIN, HIGH);
  delay(2000);
}

Podobne komponenty

3W amplifier MAX98357A I2S DAC

3W amplifier MAX98357A I2S DAC

Active Buzzer Module

Active Buzzer Module

⚙️

LED

LED Matrix Module MAX7219

LED Matrix Module MAX7219

Zbuduj swój projekt Arduino lub ESP32 z pomocą AI

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