M5Stack Unit Dual Button Pinout

Read two independent momentary pushbuttons through the black PORT.B connector. The blue button is above the red button when the connector is at the bottom. Each press pulls its own output to ground.

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 supply and both button outputs.
PowerNominal 5 V supply input from the host.
GPIOActive-low output from the lower red pushbutton.
GPIOActive-low output from the upper blue pushbutton and the rightmost contact in the front view.

Specifications

SKU
U025
Connector
PORT.B · HY2.0-4P (Grove) · 2 mm pitch
Supply
5 V nominal at J1 pin 3
Button outputs
Two active-low GPIO signals · ≈3.3 V released, ≈0 V pressed at 5 V supply
Enclosure
48 × 24 × 15 mm · two Ø5 mm mounting holes

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U025Product documentationM5StackIdentifies the SKU, cable colors, button colors and connector.Datasheet
U025Reference schematic v1.1M5StackShows J1 numbering, switch designators and the bias and filter components.Datasheet

Board notes

Read PORT.B from the front
With the buttons facing you and the socket at the bottom, the contacts run left to right as GND, 5V, red button (B) and blue button (A). The rightmost contact is pin 1. The rear label shows the order from the opposite face.
Read each button as a GPIO input
Each output uses a 10 kΩ resistor to 5 V, a 20 kΩ resistor to ground and a 100 nF capacitor to ground. A high-impedance host input reads approximately 3.3 V when released and 0 V when pressed. The board contains only switches and passive components.