Relejni modul za upravljanje od 5 V i jednokanalno preklapanje za one koji žele preklapati velika opterećenja.
SKU: OT951-C101 Broj artikla: XG648 EAN: 4502076751917 Lokacija: C10.01
Alternativa
Modul releja 5v za Arduino
€ 1,95
Pogledaj ovu alternativu
Ovako spoji Modul releja 5v Low na Arduino UNO ili ESP32, uz primjer sketcha koji možeš odmah učitati.
Ovaj projekt pokazuje kako upravljati 5V active-low relejnim modulom pomoću Arduino Uno. Sketch uključuje i isključuje relej svakih dvije sekunde, pritom ispisujući trenutno stanje u Serial Monitor. Budući da je riječ o active-low modulu, postavljanje upravljačkog pina na LOW aktivira relej, a postavljanje na HIGH ga deaktivira.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 5V Active-Low Relay Control
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Relais Module 5v Low
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// Pin configuration
const int relayPin = 7;
void setup() {
// Set the relay pin as output
pinMode(relayPin, OUTPUT);
// Active-low relay: default to OFF (HIGH state)
digitalWrite(relayPin, HIGH);
Serial.begin(115200);
while (!Serial) {
; // Wait for serial port to connect
}
Serial.println(F("5V Relay Module Demo Started"));
Serial.println(F("Relay will toggle every 2 seconds."));
}
void loop() {
// Turn relay ON (active LOW)
Serial.println(F("Relay: ON"));
digitalWrite(relayPin, LOW);
delay(2000);
// Turn relay OFF (HIGH)
Serial.println(F("Relay: OFF"));
digitalWrite(relayPin, HIGH);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ovaj primjer pokazuje kako upravljati 5V active-low relejnim modulom s ESP32. Zavojnica releja napaja se s pina VIN (5V s USB-a), dok GPIO 4 prebacuje upravljački pin. Dovođenje upravljačkog pina na LOW aktivira relej, a dovođenje na HIGH ga isključuje.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : ESP32 5V Relay Control Demo
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Relais Module 5v Low
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// Pin connected to relay IN
const int RELAY_PIN = 4;
void setup() {
Serial.begin(115200);
// Configure relay pin as output and start with relay OFF (HIGH = inactive for active-low module)
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, HIGH);
Serial.println("ESP32 Relay Module Demo Initialized");
}
void loop() {
// Turn relay ON (Active-low: LOW energizes coil)
Serial.println("Relay: ON");
digitalWrite(RELAY_PIN, LOW);
delay(2000);
// Turn relay OFF (Active-low: HIGH de-energizes coil)
Serial.println("Relay: OFF");
digitalWrite(RELAY_PIN, HIGH);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
pogledajte ovdje Shemu spajanja i primjer koda >>>
Traženi pojmovi: relej 5v, 5v relej, relay 5v, 5v relay, relej nizak, relej low, relay low, plavi relej, relej plavi, relej 250v, relej 220v, relej 1 kanal, relej 1-kanalni, relay 1 channel
| Napajanje | 5 V |
|---|---|
| Vrsta | 1-kanalni |
| Moguće veliko opterećenje | AC250V 10A / DC30V 10 A |
| Signal | niska |
odlično i radi dobro
Modul releja 5v Low