Relaismodule voor 5V-aansturing en enkelkanaals schakeling voor wie hoge belasting wil schakelen.
SKU: OT951-C101 Artikelnummer: XG648 EAN: 4502076751917 Locatie: C10.01
Alternatief
Relais Module 5v voor Arduino
€ 1,95
Bekijk dit alternatief
Zo sluit je de Relais Module 5v Low aan op een Arduino UNO of ESP32, met een voorbeeldsketch die je direct kunt uploaden.
Dit project laat zien hoe je een 5V active-low relaismodule met een Arduino Uno kunt aansturen. De sketch schakelt het relais elke twee seconden AAN en UIT, terwijl de huidige status wordt weergegeven in de Serial Monitor. Omdat dit een active-low module is, activeert het instellen van de besturingspin op LOW het relais, en schakelt het instellen op HIGH het relais uit.
/*
* ==================================================================
* 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
Dit voorbeeld laat zien hoe je een 5V active-low relaismodule met de ESP32 kunt aansturen. De spoel van het relais wordt gevoed via de VIN-pin (5V van USB), terwijl GPIO 4 de stuurpin schakelt. De stuurpin LOW maken bekrachtigt de relaiscontacten, en de stuurpin HIGH maken schakelt het relais uit.
/*
* ==================================================================
* 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
bekijk hier het Aansluitschema en de voorbeeldcode >>>
Zoektermen: relais 5v, 5v relais, relay 5v, 5v relay, relais laag, relais low, relay low, blauwe relais, relais blauw, relais 250v, relais 220v, relais 1 kanaal, relais 1-kanaals, relay 1 channel
| Voeding | 5 V |
|---|---|
| Type | 1-kanaals |
| Hoge belasting mogelijk | AC250V 10A / DC30V 10 A |
| Signaal | low |
prima en werkt goed
Niet tevreden? Je hebt 30 dagen bedenktijd na ontvangst om het product terug te sturen.
Alles over retourneren
Relais Module 5v Low