
This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.

The 2 Channel Relay 5V module is an electronic component designed to control two independent circuits using a low voltage 5V signal. It acts as an electrically operated switch, allowing a microcontroller or other low-power device to control high-power devices such as lights, motors, or appliances. This module is widely used in home automation, robotics, and industrial control systems.

This circuit consists of a DC-DC converter powering a 6-channel power module, which in turn supplies 5V to a 2-relay module. The power module distributes the converted voltage to the relay module, enabling it to control external devices.

This circuit consists of a 5V battery powering a 4-channel relay module, which controls four LEDs (red, yellow, green, and blue) through individual resistors. Each relay channel is activated by a corresponding SPST toggle switch, allowing manual control of the LEDs.

This circuit features an ESP32 microcontroller connected to a two-channel 5V relay module. The ESP32 controls the relay channels via its GPIO pins D23 and D22, allowing it to switch external devices on and off. The relay module is powered by the 3.3V and GND pins of the ESP32.

This circuit features an ESP32 microcontroller connected to a two-channel relay module. The ESP32's digital pins D25 and D26 are used to control the relay channels IN1 and IN2, respectively, allowing the microcontroller to switch external circuits on and off. The ESP32 and the relay module share a common ground and the ESP32's Vin pin supplies power to the relay's VCC, indicating that both operate at compatible voltage levels.
| Pin Name | Description |
|---|---|
| VCC | Connect to 5V power supply (powers the relay module). |
| GND | Connect to ground of the power supply or microcontroller. |
| IN1 | Control signal for Relay 1 (active LOW). |
| IN2 | Control signal for Relay 2 (active LOW). |
Each relay has three output terminals: | Terminal Name | Description | |---------------|-----------------------------------------------------------------------------| | COM | Common terminal for the relay. | | NO | Normally Open terminal (disconnected from COM when the relay is inactive).| | NC | Normally Closed terminal (connected to COM when the relay is inactive). |
// Example code to control a 2 Channel Relay 5V module with Arduino UNO
// Define the relay control pins
const int relay1 = 7; // Connect IN1 to digital pin 7
const int relay2 = 8; // Connect IN2 to digital pin 8
void setup() {
// Set relay pins as outputs
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
// Initialize relays to OFF state (HIGH signal)
digitalWrite(relay1, HIGH);
digitalWrite(relay2, HIGH);
}
void loop() {
// Turn Relay 1 ON (LOW signal)
digitalWrite(relay1, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 1 OFF (HIGH signal)
digitalWrite(relay1, HIGH);
delay(1000); // Keep it OFF for 1 second
// Turn Relay 2 ON (LOW signal)
digitalWrite(relay2, LOW);
delay(1000); // Keep it ON for 1 second
// Turn Relay 2 OFF (HIGH signal)
digitalWrite(relay2, HIGH);
delay(1000); // Keep it OFF for 1 second
}
Relays Not Activating:
Erratic Relay Behavior:
Load Not Switching:
Microcontroller Resetting:
Q1: Can I use this module with a 3.3V microcontroller?
A1: Yes, the module is compatible with 3.3V control signals, but ensure the VCC pin is still powered with 5V.
Q2: Can I control AC and DC loads simultaneously?
A2: Yes, as long as each relay's load does not exceed the specified ratings.
Q3: Is it safe to use this module for high-voltage applications?
A3: Yes, but ensure proper isolation and follow safety precautions when working with high voltages.