1-relejni modul na tiskanoj pločici za Arduino, ESP32 i ESP8266, jednostavno za spajanje DuPont kabelima.
SKU: OT961-C105 Broj artikla: YP924 EAN: 4639867568390 Lokacija: C10.05
Alternativa
Modul releja 5v | 4-kanalni crveni
€ 4,50
Pogledaj ovu alternativu
Ovako spoji Modul releja 5v za Arduino na Arduino UNO ili ESP32, uz primjer sketcha koji možeš odmah učitati.
Ovaj projekt pokazuje kako upravljati 5V relejnim modulom pomoću Arduino UNO. Sketch prebacuje relej ON i OFF svake dvije sekunde, pritom ispisujući status u Serial Monitor. Svaki put kada promijeni stanje, čut ćete zvučno klikanje releja.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : Control a 5V Relay with Arduino UNO
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Relay Module 5V
* 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.
* ==================================================================
*/
// 5V Relay Module Example
const int RELAY_PIN = 7;
void setup() {
pinMode(RELAY_PIN, OUTPUT);
Serial.begin(115200);
Serial.println(F("Relay module demo started."));
}
void loop() {
// Turn relay ON
digitalWrite(RELAY_PIN, HIGH);
Serial.println(F("Relay: ON"));
delay(2000);
// Turn relay OFF
digitalWrite(RELAY_PIN, LOW);
Serial.println(F("Relay: OFF"));
delay(2000);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Ovaj projekt prikazuje kako upravljati 5V modulom releja pomoću ESP32. Relej se uključuje i isključuje svake dvije sekunde, dok svoj status ispisuje u Serial Monitor. Relej se napaja izravno s VIN pina ESP32 (5V s USB-a) i aktivira putem GPIO 4.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 5V Relay Control with ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Relay Module 5V
* 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.
* ==================================================================
*/
// 5V Relay Control Example for ESP32
const int RELAY_PIN = 4;
void setup() {
Serial.begin(115200);
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, LOW);
Serial.println("Relay control initialized.");
}
void loop() {
// Turn relay ON (Active HIGH for standard modules)
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
Traženi pojmovi: relej 5v, 5v relej, relay 5v, 5v relay, relej visok, relej high, relay high, plavi relej, relej plavi, relej 250v, relej 220v, relej za arduino, arduino relej, relej breadboard
Dimenzije
Duljina: 3,3cm
Širina: 2,6cm
Visina: 1,7cm
| Širina | 2,6 cm |
|---|---|
| Prikladno za | Arduino / ESP32 / ESP8266 |
| Duljina | 3,3 cm |
| Vrsta | 1 relej |
| Visina | 1,7 cm |
| Moguće veliko opterećenje | AC250V 10A / DC30V 10 A |
| Upravljanje | 5 V |
Lijepa izrada
radi savršeno
Solidan proizvod.
Odličan relej. Radi i na 3.3V upravljačkom signalu (ESP32)
Modul releja 5v za Arduino