M5Stack Unit Button Pinout

A single momentary pushbutton with an active-low digital output on PORT.B. The button pulls the output to ground when pressed.

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 routes

Pin index

Pin index

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

4 visible
PinMCU pinTypesNotes
GroundCommon return for the 5 V supply and the button circuit.
PowerNominal 5 V supply input from the host.
NCUnconnected on the U027. The rear label marks this position OUT.
GPIOActive-low output and the rightmost contact in the front view. Read with a high-impedance GPIO input.

Specifications

SKU
U027
Connector
PORT.B · HY2.0-4P (Grove) · 2 mm pitch
Supply
5 V nominal at J1 pin 3
Button output
≈3.3 V released, ≈0 V pressed at 5 V supply and high-impedance load
Enclosure
32 × 24 × 8 mm · two Ø5 mm mounting holes

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U027Product documentationM5StackProduct photos, cable colors, pin map and output waveform.Datasheet
U027Reference schematic V1.0M5StackJ1 numbering, S1 and the output bias and filter components.Datasheet

Board notes

Read PORT.B from the front
Face the actuator with the black connector at the bottom. The contacts run left to right as GND, 5V, NC and BTN. The rightmost contact is pin 1.
Read BTN as a GPIO input
The white wire carries the output from the unit. The rear label calls this contact IN. The yellow contact marked OUT is unconnected in the V1.0 schematic. Use a high-impedance input to read BTN.