

The Relay 3 Channel Optocoupler module, manufactured by Arduino (Part ID: Relay), is a versatile electronic component designed to control high-voltage devices using low-voltage signals. It features three independent relays, each capable of switching AC or DC loads, and optocoupler isolation to protect the controlling circuit from high-voltage spikes or interference. This module is ideal for applications requiring safe and reliable control of appliances, motors, or other high-power devices.








The module has two main interfaces: the control pins and the relay output terminals.
| Pin Name | Description |
|---|---|
| VCC | 5V power supply input |
| 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) |
| Terminal | Description |
|---|---|
| COM | Common terminal for the relay |
| NO | Normally Open terminal (connected to COM when active) |
| NC | Normally Closed terminal (connected to COM when idle) |
// Example code to control a 3 Channel Relay module with Arduino UNO
// This code toggles each relay ON and OFF with a 1-second delay
// Define the control pins for the relays
#define RELAY1 2 // Relay 1 control pin connected to Arduino pin 2
#define RELAY2 3 // Relay 2 control pin connected to Arduino pin 3
#define RELAY3 4 // Relay 3 control pin connected to Arduino pin 4
void setup() {
// Set relay control pins as outputs
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
// Initialize all relays to OFF state (HIGH signal)
digitalWrite(RELAY1, HIGH);
digitalWrite(RELAY2, HIGH);
digitalWrite(RELAY3, HIGH);
}
void loop() {
// Turn Relay 1 ON
digitalWrite(RELAY1, LOW); // Active LOW signal turns the relay ON
delay(1000); // Wait for 1 second
// Turn Relay 1 OFF and Relay 2 ON
digitalWrite(RELAY1, HIGH); // Turn Relay 1 OFF
digitalWrite(RELAY2, LOW); // Turn Relay 2 ON
delay(1000); // Wait for 1 second
// Turn Relay 2 OFF and Relay 3 ON
digitalWrite(RELAY2, HIGH); // Turn Relay 2 OFF
digitalWrite(RELAY3, LOW); // Turn Relay 3 ON
delay(1000); // Wait for 1 second
// Turn all relays OFF
digitalWrite(RELAY3, HIGH); // Turn Relay 3 OFF
delay(1000); // Wait for 1 second
}
Relays Not Activating:
High-Voltage Device Not Responding:
Interference or Unstable Operation:
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: How do I know if a relay is active?
A2: Each relay has an LED indicator that lights up when the relay is activated.
Q3: Can I control AC and DC loads simultaneously?
A3: Yes, each relay channel is independent, so you can control a mix of AC and DC loads as long as they meet the relay's specifications.