Skip to content

Relay Module

Updated: 6/28/2025 Words: 0 words Reading time: 0 minutes

Relays are electromagnetic switches that use a low-power signal to control a higher-power circuit. This design effectively isolates the low-power signal from the higher-power circuit, protecting operators from harm and preventing equipment damage.

Additionally, common microcontrollers operate at low voltages. If you want to use these low-voltage microcontrollers to control high-voltage and high-current devices, such as lights, fans, luminaires, or other electrical appliances, you need to use a relay module to achieve this.

Preparation

HardwareDescriptionImage
Creative Box PlatformMy Image
Power Signal ModuleIncluded with Creative Box purchase
Relay ModuleTaobao Purchase Link
Two-core Power CableTaobao Purchase Link
Female SocketTaobao Purchase Link

Video Explanation

Relay and Power Control

Connection

Usage

Principles

My Image

The core of a relay is an electromagnet, which is essentially a coil of wire that becomes a temporary magnet when current passes through it. A relay can be thought of as an electrical lever that can be triggered by a relatively small current, which then produces a larger current to turn on another device.

The figure below shows how a relay connects two circuits.

My Image

Initially, both circuits are open, with no current flowing through them. When the switch in the first circuit is closed, a small current is produced, and the electromagnet is energized, creating a magnetic field around it. The energized electromagnet attracts the contacts of the second circuit, closing the switch and allowing a large current to flow through, thereby lighting up the bulb.

When the current in the first circuit stops flowing, the contacts in the second circuit return to their original position, the switch opens, and the bulb turns off.

Pinout

The figure below shows a typical single-channel relay module, with three high-voltage terminals (NC, COM, and NO) connected to the controlled device.

My Image

Specific pin descriptions are as follows:

Pin NumberPin NameDescription
1Relay Trigger (input)Input signal to activate the relay
2Ground0V reference voltage
3VCCSupply voltage
4Normally OpenNormally open terminal of the relay
5Common ContactCommon terminal of the relay
6Normally ClosedNormally closed terminal of the relay
My Image

Normally (initial position), the COM terminal is connected to the NC terminal, and the NO terminal is open.

When current flows through the coil, the electromagnet is energized, causing the internal contacts of the switch to move. Then, COM connects to the NO terminal and disconnects from the NC terminal.

When current stops flowing through the coil, the internal contacts return to their initial position, reconnecting the NC terminal to COM and reopening the NO terminal.

In other words, a relay works similarly to a Single-Pole Double-Throw (SPDT) switch. Whether high-voltage devices are connected between the COM and NC terminals, or between the COM and NO terminals, depends on whether the device should normally be in an open or closed state.

Experiment