The 4 Channel Relay Module is an electronic component designed to control up to four separate high-power devices using low-voltage control signals. It acts as an interface between microcontrollers (e.g., Arduino, Raspberry Pi) and high-voltage devices, enabling safe and efficient switching. The module typically features opto-isolation to protect the control circuit from high-voltage spikes, ensuring safety and reliability.
The following are the key technical details of the 4 Channel Relay Module:
Parameter | Specification |
---|---|
Operating Voltage | 5V DC |
Trigger Voltage | 3.3V to 5V (compatible with most microcontrollers) |
Relay Type | SPDT (Single Pole Double Throw) |
Maximum Load (AC) | 250V AC @ 10A |
Maximum Load (DC) | 30V DC @ 10A |
Isolation Method | Opto-isolator |
Dimensions | ~75mm x 55mm x 20mm |
Indicator LEDs | One LED per channel (indicates relay state) |
Control Signal Logic | Active Low |
The 4 Channel Relay Module has the following pin layout:
Pin Name | Description |
---|---|
VCC | Power supply for the module (5V DC). |
GND | Ground connection. |
IN1 | Control signal for Relay 1 (Active Low). |
IN2 | Control signal for Relay 2 (Active Low). |
IN3 | Control signal for Relay 3 (Active Low). |
IN4 | Control signal for Relay 4 (Active Low). |
Each relay has three output terminals:
Terminal | Description |
---|---|
NO (Normally Open) | Open circuit when the relay is inactive. Closes when activated. |
NC (Normally Closed) | Closed circuit when the relay is inactive. Opens when activated. |
COM (Common) | Common terminal for the relay. |
Below is an example code snippet to control the 4 Channel Relay Module using an Arduino UNO:
// Define relay control pins
#define RELAY1 2 // Pin connected to IN1
#define RELAY2 3 // Pin connected to IN2
#define RELAY3 4 // Pin connected to IN3
#define RELAY4 5 // Pin connected to IN4
void setup() {
// Set relay pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
// Initialize all relays to OFF (HIGH state)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
digitalWrite(RELAY4, HIGH);
}
void loop() {
// Example: Turn on Relay 1 for 2 seconds, then turn it off
digitalWrite(RELAY1, LOW); // Activate Relay 1
delay(2000); // Wait for 2 seconds
digitalWrite(RELAY1, HIGH); // Deactivate Relay 1
delay(2000); // Wait for 2 seconds
// Repeat similar logic for other relays as needed
}
Relays Not Activating:
Microcontroller Resetting When Relays Activate:
LED Indicators Not Lighting Up:
Load Not Switching Properly:
Q: Can I use a 3.3V microcontroller with this module?
A: Yes, the module is compatible with 3.3V control signals, but ensure the power supply to the module is 5V.
Q: Can I control DC motors with this module?
A: Yes, as long as the motor's voltage and current ratings are within the relay's specifications.
Q: Is it safe to use this module with 220V AC appliances?
A: Yes, but ensure proper insulation and follow safety precautions when working with high voltages.
Q: Can I use fewer than 4 relays?
A: Yes, you can use only the required number of relays and leave the unused channels unconnected.