Relay modules are one of the most useful interface boards in electronics and embedded systems. They allow low-voltage microcontrollers such as Arduino, ESP32, Raspberry Pi, and STM32 to safely control higher-voltage AC and DC devices without directly connecting them to the controller.
Whether you're building a home automation system, controlling a water pump, switching lights, or creating an industrial control project, understanding relay modules is an essential skill.
In this guide, we'll cover how relay modules work, how to wire them correctly, explain COM, NO, and NC terminals, discuss common applications, and share practical safety tips.
What You'll Learn- What a relay module is
- How a relay works internally
- Understanding COM, NO, and NC terminals
- Relay module pinout
- Arduino and ESP32 wiring basics
- Typical applications
- Common mistakes
- Safety precautions
A relay module is a switching interface board that allows a low-voltage control signal to switch a separate electrical circuit. Internally, it uses an electromagnetic relay that mechanically opens or closes contacts when the relay coil is energized.
Because the control circuit and load circuit are electrically isolated, relay modules are widely used for controlling higher-voltage equipment from microcontrollers.
Typical applications include:
- Home automation
- Smart lighting
- Water pump control
- Industrial automation
- Robotics
- Security systems
- IoT projects
When the controller sends a signal to the relay input pin, current flows through the relay coil and creates a magnetic field.
This magnetic field moves an internal armature that changes the state of the relay contacts.
The relay switches between:
- COM (Common)
- NO (Normally Open)
- NC (Normally Closed)
This enables a low-power controller to safely control a completely separate circuit.
Relay Module PinoutMost relay modules include the following pins:
Control Side- VCC
- GND
- IN (Signal)
- COM
- NO
- NC
Always verify whether your module is High-Level Trigger or Low-Level Trigger before wiring it to your controller.
Relay Module WiringA relay module can be connected to many different development boards including:
- Arduino Uno
- ESP32
- Raspberry Pi
- STM32
- PLC systems
A typical connection looks like this:
Relay Module
Controller
VCC
5V
GND
GND
IN
Digital GPIO
The external device is connected to the COM, NO, and NC terminals depending on the required switching behavior.
Common ApplicationsRelay modules are commonly used in projects such as:
- Smart home automation
- Lighting control
- Motor switching
- Water pump automation
- Smart irrigation
- Robotics
- Industrial automation
- Security systems
- IoT devices
Working with relay modules often involves mains electricity. Always follow basic electrical safety practices.
- Disconnect power before wiring.
- Never exceed the relay's voltage or current rating.
- Keep high-voltage wiring separate from low-voltage electronics.
- Double-check all connections before powering the circuit.
- Use insulated enclosures for permanent installations.
Many beginners encounter the same issues when using relay modules.
Avoid these common mistakes:
- Mixing up NO and NC terminals.
- Supplying incorrect control voltage.
- Forgetting to share a common ground when required.
- Connecting loads beyond the relay's rated current.
- Ignoring whether the module uses High-Level or Low-Level triggering.
Relay modules remain one of the most versatile interface boards for electronics enthusiasts and professionals alike.
Whether you're controlling a lamp, a pump, a fan, or integrating automation into a larger embedded system, understanding how relay modules work will make your projects safer, more reliable, and easier to expand.
ResourcesTechnical Documentation
Chip.pk Knowledge Hub
https://www.chip.pk/blogs/chip-pk-knowledge-hub
Official Website


Comments