PinLab › Components › Relay module 5 V
SRD-05VDC NCCOMNO VCCGNDIN

Relay module 5 V

switch for big loads

An electromagnetic switch: with a 3.3 V signal from the ESP32 you switch a lamp, pump or heater on and off — electrically isolated from the microcontroller.

Open the course →

How it works

When IN gets a signal, a transistor on the module lets current through the relay coil. The coil is an electromagnet that pulls a metal plate and moves it from the NC (normally closed) to the NO (normally open) contact. The load is wired between COM and NO — so it is off when the ESP32 is off. Most modules are active low (LOW = on). The optocoupler (if present) fully isolates the two sides.

Pins and wiring

PinWhat it isWhere it connects / why
VCCCoil power→ VIN (5 V). The coil needs ~70 mA.
GNDGround→ GND.
INControl signal→ GPIO (e.g. 26). On active-low modules LOW = on.
COMCommon contact (screw)One end of the load / live wire.
NONormally openJoined to COM only when the relay is active. Use it for loads that should be OFF by default.
NCNormally closedJoined to COM when the relay is INACTIVE.

Specifications

Control voltage5 V (works with a 3.3 V signal on IN on most)
Contacts10 A @ 250 VAC / 10 A @ 30 VDC
Coil current~70 mA
Switching time~10 ms
Isolationoptocoupler (on modules with a JD-VCC jumper)

Tips and typical mistakes

Used in projects