Skip to content
Free IDE

← Components

1-channel 5 V relay module

A switch controlled by the ESP32: when the relay is activated, the coil pulls the contact and COM moves from NC to NO (you can hear the click; here, with Sound on). Most modules are active-low: rele.value(0) turns it on and rele.value(1) turns it off. Mains loads only with the teacher present.

Pinout

NOCOMNCRELAY 5VINVCCGNDINVCCGNDNOCOMNC
PinConnect toNote
INGPIO (e.g. 26)control
VCCVIN (5 V)
GNDGND
COMcommon of the loadmiddle terminal
NOload that turns on when activatednormally open
NCload that turns on when releasednormally closed
FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

MicroPython example

from machine import Pin
import time

rele = Pin(26, Pin.OUT, value=1)  # active-low: 1 = off

while True:
    rele.value(0)  # on: COM moves to NO (click!)
    time.sleep(2)
    rele.value(1)  # off: COM goes back to NC
    time.sleep(2)

Specifications

ItemValueSource
Power supply5 V (VIN)Typical datasheet values
Controlmost are active-low (choose it in the part’s property)Typical datasheet values
ContactsCOM, NO (normally open), NC (normally closed)Typical datasheet values
IN inputread with the ESP32 thresholds; floating IN = offSimulator model — Under review: real input threshold of the module with VCC at 5 V and IN at 3.3 V
Pin header orderIN, VCC, GNDTypical datasheet values — Under review: check on the lab module

Values marked "Under review" will still be checked against the parts in the lab.

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever

FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever