M5Stack Unit Relay Pinout

A single GPIO on PORT.B drives the 5 V coil. The separate three-position load connector exposes the common, normally open and normally closed contacts.

Main pinout

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show signal paths and contact states

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

7 visible
PinMCU pinTypesNotes
Relay contactCommon, moving contact of the SPDT relay.
Relay contactNormally open contact. It closes to COM when the coil is energized.
Relay contactNormally closed contact. It connects to COM when the coil is idle.
GroundGround return for coil supply and DIN.
PowerNominal 5 V input for the relay coil.
ControlActive-high digital input from the host GPIO.
Not connectedUnconnected position on the signal socket.

Specifications

Model
Unit Relay · U023
Relay
K1 · HK4100F-DC5V-SHG · single-pole double-throw (SPDT)
Control
Active-high digital input on PORT.B · HY2.0-4P · 2.00 mm pitch
Coil supply
Nominal 5 V from J1 · 40 mA as specified by M5Stack
Switched contacts
J2 · VH3.96 · 3.96 mm pitch · 220 V AC / 3 A or 30 V DC / 3 A per M5Stack
Enclosure
48 × 24 × 8 mm body · two mounting holes

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U023Product documentationM5StackModel, photos, PORT.B cable colors and module ratings.Datasheet
U023SchematicM5StackJ1 and J2 pin numbers, coil driver and SPDT contact routing.Datasheet
U023Mechanical drawingM5StackMounting geometry and connector positions.Datasheet
U023Enclosure CADM5StackHousing and cover geometry.Datasheet
HK4100FRelay datasheetHuikeRelay contacts and coil specifications.Datasheet
U023Arduino exampleM5StackConfirms the contact states for HIGH and LOW with a CoreS3 host.Datasheet

Board notes

Front-view orientation
Face the orange relay with J2 above it and the black PORT.B at the bottom. Left to right, J2 reads COM, NO, NC and PORT.B reads GND, 5V, REL/DIN, N/C.
Contact states
With the coil idle, COM joins NC. A HIGH on DIN energizes the coil and transfers COM to NO. The load contacts are isolated from the coil circuit.
GPIO drive
M5Stack demonstrates direct drive from CoreS3 GPIO9. The 5 V rating is for the supply pin. The schematic shows a transistor input with a 10 kΩ pull-down. M5Stack gives no general DIN threshold range for the module.
Photographed hardware
Official photos identify U023 and show both faces of the assembled unit. The PCB revision remains unconfirmed. The STL covers the enclosure and cannot establish electrical nets.