

A relay is an electromechanical switch that uses an electromagnet to open or close a circuit, allowing control of a high-power circuit with a low-power signal. Relays are widely used in applications where it is necessary to isolate control signals from the high-power circuit or to control multiple circuits with a single signal.








Below are the general technical specifications for a standard single-channel relay module:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC (common for relay modules) |
| Trigger Voltage | 3.3V to 5V DC |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A |
| Coil Resistance | ~70Ω (varies by model) |
| Isolation | Optocoupler isolation (in some modules) |
| Dimensions | ~50mm x 26mm x 18mm (module size) |
For a typical 5V single-channel relay module:
| Pin Name | Description |
|---|---|
| VCC | Power supply pin for the relay module (typically 5V DC). |
| GND | Ground connection for the module. |
| IN | Control signal input pin. A HIGH signal activates the relay. |
| COM | Common terminal of 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 not activated. |
Below is an example of how to control a relay module using an Arduino UNO:
// Define the pin connected to the relay module's IN pin
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
// Ensure the relay is off at startup
digitalWrite(relayPin, LOW);
}
void loop() {
// Turn the relay on (activates the connected load)
digitalWrite(relayPin, HIGH);
delay(5000); // Keep the relay on for 5 seconds
// Turn the relay off (deactivates the connected load)
digitalWrite(relayPin, LOW);
delay(5000); // Keep the relay off for 5 seconds
}
Note: Ensure the relay module's IN pin is compatible with the Arduino's 5V logic level. If using a 3.3V microcontroller, check the relay module's trigger voltage requirements.
Relay Not Activating:
Load Not Switching:
Relay Clicking Rapidly:
Burnt Relay Contacts:
Q1: Can I use a relay to control an AC appliance?
Yes, relays are commonly used to control AC appliances. Ensure the relay's voltage and current ratings are suitable for the appliance.
Q2: What is the difference between NO and NC terminals?
Q3: Can I use a relay with a 3.3V microcontroller?
Some relay modules support 3.3V control signals. Check the module's specifications or use a transistor circuit to interface the relay with a 3.3V microcontroller.
Q4: How do I protect my circuit from relay-induced voltage spikes?
Use a flyback diode across the relay coil to suppress voltage spikes caused by the collapsing magnetic field when the relay is turned off. Most relay modules already include this diode.