

The Relay 1 Channel (Manufacturer: Arduino, Part ID: MEGA) is an electromagnetic switch that allows you to control a single circuit using a low-power input signal. This component is widely used in applications where electrical isolation and high-power switching are required. It enables the opening or closing of a circuit, making it ideal for controlling high-voltage devices such as lights, motors, and appliances using microcontrollers like the Arduino.








The Relay 1 Channel is designed to interface seamlessly with microcontrollers like the Arduino MEGA. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.3V to 5V DC |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A |
| Relay Type | SPDT (Single Pole Double Throw) |
| Isolation | Optocoupler-based isolation |
| Dimensions | 50mm x 26mm x 18mm |
| Weight | ~20g |
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply from the microcontroller or external source. |
| GND | Ground connection. |
| IN | Signal input pin to control the relay (3.3V or 5V logic level). |
| COM | Common terminal for the relay switch. |
| NO | Normally Open terminal (connected to COM when the relay is activated). |
| NC | Normally Closed terminal (connected to COM when the relay is deactivated). |
VCC pin to a 5V power source and the GND pin to ground.IN pin to a digital output pin of your Arduino MEGA or another microcontroller.COM and NO terminals if you want the device to turn on when the relay is activated.COM and NC terminals if you want the device to turn off when the relay is activated.IN pin to activate or deactivate the relay.// Example code to control a 1-channel relay with Arduino MEGA
// Connect the relay's IN pin to digital pin 7 on the Arduino MEGA
#define RELAY_PIN 7 // Define the pin connected to the relay's IN pin
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the relay pin as an output
digitalWrite(RELAY_PIN, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // Turn the relay on
delay(1000); // Keep the relay on for 1 second
digitalWrite(RELAY_PIN, LOW); // Turn the relay off
delay(1000); // Keep the relay off for 1 second
}
Relay Not Activating:
IN pin.Load Not Switching:
COM, NO, and NC terminals.Relay Clicking but No Output:
Microcontroller Resetting When Relay Activates:
Q: Can I use the relay with a 3.3V microcontroller like the Arduino Due?
A: Yes, the relay can be triggered with a 3.3V signal, but ensure the VCC pin is powered with 5V.
Q: Is the relay suitable for switching DC motors?
A: Yes, but you should use a flyback diode across the motor terminals to protect the relay from voltage spikes.
Q: Can I control multiple relays with one Arduino MEGA?
A: Yes, the Arduino MEGA has multiple digital pins, allowing you to control several relays simultaneously.
Q: What is the lifespan of the relay?
A: The relay has a mechanical lifespan of approximately 100,000 operations under normal conditions.