

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:
| Pin Name | Description |
|---|---|
| VCC | Power supply pin (typically 5V DC) |
| GND | Ground connection |
| IN | Control signal input (low-level trigger or high-level trigger, depending on module) |
| Terminal Name | Description |
|---|---|
| COM | Common terminal, connected to the moving part of the relay switch |
| NO | Normally Open terminal, disconnected from COM when the relay is inactive |
| NC | Normally Closed terminal, connected to COM when the relay is inactive |
Below is an example of how to control a relay module using an Arduino UNO:
// Example: Controlling a relay module with Arduino UNO
const int relayPin = 7; // Define the pin connected to the relay module's IN pin
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay ON
delay(1000); // Keep the relay ON for 1 second
digitalWrite(relayPin, LOW); // Turn the relay OFF
delay(1000); // Keep the relay OFF for 1 second
}
Relay Not Activating:
Relay Stuck in ON or OFF State:
Microcontroller Resetting When Relay Activates:
LED Indicator Not Working:
Q: Can I use a 3.3V microcontroller to control a 5V relay module?
A: Yes, if the relay module supports a 3.3V trigger voltage. Otherwise, use a transistor or level shifter.
Q: Can I control multiple relays with one microcontroller?
A: Yes, as long as each relay is connected to a separate GPIO pin and the microcontroller can supply sufficient current.
Q: Is it safe to use a relay for AC loads?
A: Yes, but ensure the relay's voltage and current ratings are suitable for the AC load. Always follow safety precautions when working with high voltages.
Q: Why is my relay module making a clicking sound?
A: The clicking sound is normal and indicates the relay is switching states. If the sound is continuous, check for a faulty control signal or wiring issue.