M5Stack Unit Joystick v1.1 Pinout

Use the Unit Joystick v1.1 as a two-axis input with a pushbutton for a game or robot controller. The red PORT.A socket supplies power and carries the I²C report from the joystick.

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 I²C signals.
PowerNominal 5 V power input from the host.
I²CBidirectional I²C data for reading the joystick report.
I²CI²C clock from the host. This is the rightmost contact in the front view.

Specifications

Model
Unit Joystick v1.1 · U024-C
Microcontroller
MEGA8A, as identified by M5Stack
Connector
One red PORT.A · HY2.0-4P (Grove) · nominal 2 mm pitch
Supply
5 V nominal at PORT.A, pin 3
Interface
I²C target · 7-bit address 0x52
Input report
Three bytes in order: X (0–255), Y (0–255), pushbutton (0 or 1)
Enclosure
48 × 24 × 32 mm · two LEGO-compatible mounting holes

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
U024-CProduct documentationM5StackSpecifications, cable color order, enclosure dimensions and I²C protocol.Datasheet
Unit Joystick v1.1Reference schematicM5StackPORT.A pin numbers, 470 Ω series resistors and signal routes. The U3 symbol is labeled ATMEGA328.Datasheet
ATmega8AMicrocontroller datasheetMicrochip32-pin package pinout. PC4 is SDA at pin 27 and PC5 is SCL at pin 28.Datasheet
U024-CArduino read exampleM5StackRequests three bytes in X, Y, button order from I²C address 0x52.Datasheet

Board notes

PORT.A orientation
Face the stick with the red socket at the bottom. From left to right the contacts are GND, 5V, SDA and SCL. The rightmost SCL contact is schematic pin 1. The rear label shows the order from the opposite face.
I²C signal paths
The schematic shows R8 in series with SDA and R7 in series with SCL, both 470 Ω. It shows neither a level translator nor external pull-ups on these lines. M5Stack specifies connection through a compatible host port.
Internal connections
There is one externally accessible socket. The schematic shows identical parallel connectors J2 and J3, and the enclosure photos do not identify which reference is populated. The PCB revision and the internal ISP and analog header footprints remain unconfirmed.