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 details
Skywriter HAT uses a Microchip MGC3130 to track X, Y and Z and report gestures such as flicks and taps at distances up to 5 cm from the sensing face. The photograph looks into the female socket on the component side. Pin 1 is at the bottom of the inner row. The even-numbered row is along the board edge. Gray number-only labels mark positions with no documented HAT function.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Pi reference | Physical pin 1 mates with Pi 3V3 on the Raspberry Pi. | |
| Pi reference | Physical pin 2 mates with Pi 5V on the Raspberry Pi. | |
| I2C | Physical pin 3. Bidirectional serial data for the onboard MGC3130. | |
| Pi reference | Physical pin 4 mates with Pi 5V on the Raspberry Pi. | |
| I2C | Physical pin 5. I²C clock from the Raspberry Pi to the MGC3130. The sensor supports clock stretching. | |
| GND | Physical pin 6, part of the HAT ground return. | |
| Pi reference | Physical pin 7 mates with BCM4 on the Raspberry Pi. | |
| Pi reference | Physical pin 8 mates with BCM14 on the Raspberry Pi. | |
| GND | Physical pin 9, part of the HAT ground return. | |
| Pi reference | Physical pin 10 mates with BCM15 on the Raspberry Pi. | |
| Reset | Physical pin 11. Active-low sensor reset driven by the Raspberry Pi (BCM17). | |
| Pi reference | Physical pin 12 mates with BCM18 on the Raspberry Pi. | |
| Transfer status | Physical pin 13. Active-low, bidirectional transfer handshake on BCM27. | |
| GND | Physical pin 14, part of the HAT ground return. | |
| Pi reference | Physical pin 15 mates with BCM22 on the Raspberry Pi. | |
| Pi reference | Physical pin 16 mates with BCM23 on the Raspberry Pi. | |
| Power | Physical pin 17. Documented 3.3 V supply input from the Raspberry Pi. | |
| Pi reference | Physical pin 18 mates with BCM24 on the Raspberry Pi. | |
| Pi reference | Physical pin 19 mates with BCM10 on the Raspberry Pi. | |
| GND | Physical pin 20, part of the HAT ground return. | |
| Pi reference | Physical pin 21 mates with BCM9 on the Raspberry Pi. | |
| Pi reference | Physical pin 22 mates with BCM25 on the Raspberry Pi. | |
| Pi reference | Physical pin 23 mates with BCM11 on the Raspberry Pi. | |
| Pi reference | Physical pin 24 mates with BCM8 on the Raspberry Pi. | |
| GND | Physical pin 25, part of the HAT ground return. | |
| Pi reference | Physical pin 26 mates with BCM7 on the Raspberry Pi. | |
| HAT ID | Physical pin 27. Data on the dedicated Raspberry Pi HAT identification bus. | |
| HAT ID | Physical pin 28. Clock on the dedicated Raspberry Pi HAT identification bus. | |
| Pi reference | Physical pin 29 mates with BCM5 on the Raspberry Pi. | |
| GND | Physical pin 30, part of the HAT ground return. | |
| Pi reference | Physical pin 31 mates with BCM6 on the Raspberry Pi. | |
| Pi reference | Physical pin 32 mates with BCM12 on the Raspberry Pi. | |
| Pi reference | Physical pin 33 mates with BCM13 on the Raspberry Pi. | |
| GND | Physical pin 34, part of the HAT ground return. | |
| Pi reference | Physical pin 35 mates with BCM19 on the Raspberry Pi. | |
| Pi reference | Physical pin 36 mates with BCM16 on the Raspberry Pi. | |
| Pi reference | Physical pin 37 mates with BCM26 on the Raspberry Pi. | |
| Pi reference | Physical pin 38 mates with BCM20 on the Raspberry Pi. | |
| GND | Physical pin 39, part of the HAT ground return. | |
| Pi reference | Physical pin 40 mates with BCM21 on the Raspberry Pi. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
PIM058 | Board specifications | Pimoroni | MGC3130, four-layer board, sensing range and host compatibility. | Datasheet |
PIM058 | Board pin map | Pinout.xyz | Linked by Pimoroni. The source overlay identifies physical pin 17 for power and lists the eight ground positions. | Datasheet |
MGC3130 | Sensor data sheet | Microchip | Table 1 and sections 6.6.1 and 6.6.2 cover the QFN terminals, I²C and transfer status. | Datasheet |
PIM058 | Official Python driver | Pimoroni | Host I²C1, 0x42, active-low reset and the transfer handshake. | Datasheet |
Raspberry Pi HAT | Host numbering | Raspberry Pi | Physical connector numbers, BCM names and HAT ID contacts. | Datasheet |