Main pinout
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
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.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Relay contact | Common, moving contact of the SPDT relay. | |
| Relay contact | Normally open contact. It closes to COM when the coil is energized. | |
| Relay contact | Normally closed contact. It connects to COM when the coil is idle. | |
| Ground | Ground return for coil supply and DIN. | |
| Power | Nominal 5 V input for the relay coil. | |
| Control | Active-high digital input from the host GPIO. | |
| Not connected | Unconnected position on the signal socket. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
U023 | Product documentation | M5Stack | Model, photos, PORT.B cable colors and module ratings. | Datasheet |
U023 | Schematic | M5Stack | J1 and J2 pin numbers, coil driver and SPDT contact routing. | Datasheet |
U023 | Mechanical drawing | M5Stack | Mounting geometry and connector positions. | Datasheet |
U023 | Enclosure CAD | M5Stack | Housing and cover geometry. | Datasheet |
HK4100F | Relay datasheet | Huike | Relay contacts and coil specifications. | Datasheet |
U023 | Arduino example | M5Stack | Confirms the contact states for HIGH and LOW with a CoreS3 host. | Datasheet |