Relejni modul 12V s 1 relejem na tiskanoj pločici i LED indikatorom za prebacivanje velikog opterećenja.
SKU: OT901-C111 Broj artikla: BA050 EAN: 5408955714471 Lokacija: C11.01
Alternativa
Modul releja 12v | 8-kanalni
€ 9,85
Pogledaj ovu alternativu
Ovako spoji Relejni modul 12v na Arduino UNO ili ESP32, uz primjer sketcha koji možeš odmah učitati.
Ovaj projekt pokazuje kako upravljati 12V relejnim modulom pomoću Arduino Uno. Sketch periodično uključuje i isključuje relej svakih 2 sekunde te prikazuje trenutačno stanje u Serial Monitoru. Ugrađeni LED indikator na modulu zasvijetlit će kada je relej pobuđen.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 12V Relay Module Control
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator
* 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 RELAY_PIN = 7;
void setup() {
// Initialize serial communication
Serial.begin(115200);
while (!Serial) {
; // Wait for serial port to connect
}
// Configure relay control pin
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, HIGH); // Default off (active-low module)
Serial.println(F("12V Relay Module Demo Initialized"));
}
void loop() {
// Activate relay (Low-level trigger)
Serial.println(F("Relay: ON"));
digitalWrite(RELAY_PIN, LOW);
delay(2000);
// Deactivate relay
Serial.println(F("Relay: OFF"));
digitalWrite(RELAY_PIN, HIGH);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ovaj projekt prikazuje kako upravljati 12V jednokanalnim relejnim modulom pomoću ESP32. Zavojnica releja napaja se iz vanjskog 12V DC napajanja sa zajedničkom masom s ESP32, a GPIO 4 uključuje i isključuje relej svake dvije sekunde.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 12V Relay Control with ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Relais Module 12v AC250V 10A Relais 12v 1 relais LED indicator
* 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 control input
const int RELAY_PIN = 4;
void setup() {
Serial.begin(115200);
// Configure relay pin as output
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, LOW);
Serial.println("ESP32 12V Relay Demo Started");
}
void loop() {
// Turn relay ON
Serial.println("Relay ON");
digitalWrite(RELAY_PIN, HIGH);
delay(2000);
// Turn relay OFF
Serial.println("Relay OFF");
digitalWrite(RELAY_PIN, LOW);
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ključne riječi: 12v relej, relej 12v, relay 12v, 12v relay
Dimenzije
Duljina: 5,1cm
Širina: 2,54cm
Visina: 1,9cm
| Širina | 2,54 cm |
|---|---|
| Duljina | 5,1 cm |
| Visina | 1,9 cm |
| Moguće veliko opterećenje | AC250V 10A |
Dobar proizvod po pristojnoj cijeni
Radi ono što treba
Dobar proizvod kod kojeg morate sami otkriti priključke mjerenjem i slično. To bi trebalo biti bolje
Relejni modul 12v