1-relaismodule op printplaat voor Arduino, ESP32 en ESP8266, eenvoudig aan te sluiten met DuPont-kabeltjes.
SKU: OT961-C105 Artikelnummer: YP924 EAN: 4639867568390 Locatie: C10.05
Alternatief
Relais Module 5v | 4-kanaals rood
€ 4,50
Bekijk dit alternatief
Zo sluit je de Relais Module 5v voor Arduino aan op een Arduino UNO of ESP32, met een voorbeeldsketch die je direct kunt uploaden.
Dit project laat zien hoe je een 5V-relaymodule met een Arduino UNO kunt aansturen. De sketch schakelt het relay elke twee seconden AAN en UIT, terwijl de status naar de Serial Monitor wordt geprint. Je hoort telkens een hoorbare klik van het relay wanneer het van toestand wisselt.
/*
* ==================================================================
* 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
Dit project laat zien hoe je een 5V-relaismodule kunt aansturen met een ESP32. Het relais schakelt elke twee seconden AAN en UIT terwijl de status naar de Serial Monitor wordt geprint. Het relais wordt rechtstreeks gevoed via de ESP32 VIN-pin (5V van USB) en aangestuurd via 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
Zoektermen: relais 5v, 5v relais, relay 5v, 5v relay, relais hoog, relais high, relay high, blauwe relais, relais blauw, relais 250v, relais 220v, relais voor arduino, arduino relais, relais breadboard
Afmetingen
Lengte: 3,3cm
Breedte: 2,6cm
Hoogte: 1,7cm
| Breedte | 2,6 cm |
|---|---|
| Geschikt voor | Arduino, ESP32, ESP8266 |
| Lengte | 3,3 cm |
| Type | 1 relais |
| Hoogte | 1,7 cm |
| Hoge belasting mogelijk | AC250V 10A / DC30V 10 A |
| Aansturing | 5 V |
Mooie bouwvorm
werkt perfect
Degelijk product.
Prima relais. Werkt ook op 3.3V stuursignaal(ESP32)
Niet tevreden? Je hebt 30 dagen bedenktijd na ontvangst om het product terug te sturen.
Alles over retourneren
Relais Module 5v voor Arduino