Codey OnlineBiblioteka komponentów Arduino i ESP32 › Relais Module 5v Low
Relais Module 5v Low
Wyjście

Relais Module 5v Low

Moduł przekaźnika 5V z wyzwalaniem niskim. Duża obciążalność: AC 250V 10A / DC 30V 10A. Sterowanie przekaźnikiem: 5V. Sygnał: wyzwalanie niskie. 1-kanałowa płytka przekaźnikowa z diodą LED.

Szerokość: 47.5 mm

Pinout — Relais Module 5v Low

Pin Sygnał Opis
NC Normally-closed relay contact; connected to COM when the relay is not energized.
COM Common relay switch terminal for the external load circuit.
NO Normally-open relay contact; connected to COM when the relay is energized.
IN digital Active-low 5V control input; drive low to energize the relay.
GND ground Logic ground reference for the relay module control input and supply.
VCC power 5V supply input for the relay module coil and control electronics.

Przykładowy schemat połączeń — Relais Module 5v Low

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

Przykładowy kod Arduino — Relais Module 5v Low

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 5V low-level trigger relay module
// Wiring:
// Arduino 5V  -> Relay VCC
// Arduino GND -> Relay GND
// Arduino D7  -> Relay IN

const int relayPin = 7;

void setup() {
  pinMode(relayPin, OUTPUT);

  // Low-level trigger relay modules are often OFF when the input is HIGH
  // and ON when the input is LOW.
  digitalWrite(relayPin, HIGH);

  Serial.begin(9600);
  Serial.println("Relay module example started.");
  Serial.println("Relay will switch ON and OFF every 2 seconds.");
}

void loop() {
  Serial.println("Relay ON");
  digitalWrite(relayPin, LOW);   // active-low: energize relay
  delay(2000);

  Serial.println("Relay OFF");
  digitalWrite(relayPin, HIGH);  // de-energize relay
  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