Relay module for 5V control and single-channel switching for those who want to switch high loads.
SKU: OT951-C101 Article number: XG648 EAN: 4502076751917 Location: C10.01
Alternative
5V Relay Module for Arduino
€ 1,95
View this alternative
How to connect the Relay Module 5V Low to an Arduino UNO or ESP32, with an example sketch you can upload straight away.
This project demonstrates how to control a 5V active-low relay module with an Arduino Uno. The sketch toggles the relay ON and OFF every two seconds while printing the current state to the Serial Monitor. Because this is an active-low module, setting the control pin LOW activates the relay, and setting it HIGH deactivates it.
/*
* ==================================================================
* 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
This example demonstrates how to control a 5V active-low relay module with the ESP32. The relay's coil is powered from the VIN pin (5V from USB) while GPIO 4 toggles the control pin. Driving the control pin LOW energizes the relay switch, and driving it HIGH turns it off.
/*
* ==================================================================
* 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
view the Wiring diagram and example code >>> here
Search terms: relay 5v, 5v relay, relay 5v, 5v relay, relay low, relay low, relay low, blue relay, relay blue, relay 250v, relay 220v, relay 1 channel, relay 1-channel, relay 1 channel
| Power supply | 5 V |
|---|---|
| Type | 1-channel |
| High load possible | AC250V 10A / DC30V 10 A |
| Signal | low |
Fine and works well
Relay Module 5V Low