M5Stack Unit 4Relay Pinout

Four individually controlled, normally open relays with separate load terminals and a 5 V I²C control port.

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 relay control bits

Pin index

Pin index

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

20 visible
PinMCU pinTypesNotes
Relay commonDuplicate common terminal for K4. Pins 1, 2 and 4 are linked on J4.
Relay commonCommon, moving contact of relay K4. Pins 1 and 4 share this terminal.
Normally openNormally open contact of relay K4.
Relay commonDuplicate common terminal for K4. Pins 1, 2 and 4 are linked on J4.
Relay commonDuplicate common terminal for K3. Pins 1, 2 and 4 are linked on J3.
Relay commonCommon, moving contact of relay K3. Pins 1 and 4 share this terminal.
Normally openNormally open contact of relay K3.
Relay commonDuplicate common terminal for K3. Pins 1, 2 and 4 are linked on J3.
Relay commonDuplicate common terminal for K2. Pins 1, 2 and 4 are linked on J2.
Relay commonCommon, moving contact of relay K2. Pins 1 and 4 share this terminal.
Normally openNormally open contact of relay K2.
Relay commonDuplicate common terminal for K2. Pins 1, 2 and 4 are linked on J2.
Relay commonDuplicate common terminal for K1. Pins 1, 2 and 4 are linked on J1.
Relay commonCommon, moving contact of relay K1. Pins 1 and 4 share this terminal.
Normally openNormally open contact of relay K1.
Relay commonDuplicate common terminal for K1. Pins 1, 2 and 4 are linked on J1.
GroundGround return for the 5 V input and I²C.
PowerNominal 5 V input for the module.
I2CBidirectional data for the I²C target at 0x26.
I2CClock for the I²C target at 0x26.

Specifications

Control port
J5 / PORT.A · HY2.0-4P · 2.00 mm pitch
I²C address
0x26 (7-bit)
Supply
Nominal 5 V at J5.2. The 5 V rail feeds the coils and the XC6206 regulator input.
Relay outputs
Four separate SPST-NO contact sets · J1–J4 · four positions at 3.96 mm pitch
Load rating
250 V AC at 10 A or 28 V DC at 10 A per M5Stack
Controller
STM32F030F4P6
Dimensions
112 × 24 × 18.4 mm per the mechanical drawing

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U097Product and PinMapM5StackCable colors, relay ratings and I²C register map.Datasheet
U097SchematicM5StackJ1–J5 net assignments, coil drivers, power and J6 SWD.Datasheet
U097Dimension drawingM5StackCase, four mounting holes and PORT.A position.Datasheet
U097Enclosure CADM5StackThe three enclosure meshes each span 112 × 24 mm.Datasheet
STM32F030F4P6Microcontroller datasheetSTMicroelectronicsTSSOP20 pin numbers and AF4 mapping for PA9 and PA10.Datasheet

Board notes

Connector orientation
With the component face toward you and the red PORT.A at the bottom, the relay rows run from channel 4 to channel 1, top to bottom. Each row reads COM, COM, NO, COM from left to right. PORT.A reads GND, 5V, SDA, SCL.
Contact behavior
The three COM terminals on a given channel are linked together. The de-energized relay leaves NO open. Energizing the coil joins NO to that channel’s COM. The load contacts are electrically separate from the control supply and from the other channels.
Control path
SDA and SCL go directly to PA10 and PA9. The published schematic shows no bus pull-ups or level shifter and leaves the XC6206 output voltage unspecified. The 5 V marking belongs to the supply input.
Relay and indicator control
In the official synchronous example, register 0x11 bits 0–3 control relays 1–4. Register 0x10 bit 0 selects whether the LEDs follow the relay state. In the asynchronous example, the driver controls the LEDs independently.
Photographed unit
The casing, numbered relay stickers and connector positions match the official U097 photos and mechanical files. The exact PCB revision is unconfirmed. The internal J6 service pads have no verified position in the photos.