Raspberry Pi Sense HAT V2 Pinout

Raspberry Pi Sense HAT V2 pinout. Revision 2 adds colour and brightness sensing to the Sense HAT.

Jump to pin index ↓

Main pinout

Revision 2 adds colour and brightness sensing to the Sense HAT. The board also provides an 8×8 RGB matrix, a five-way joystick, and motion, pressure, humidity and temperature sensing. J1 is shown from the component side. N/C marks a socket contact without a connection to this HAT; the advanced view identifies the corresponding host pin.

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 paths and host pins

Pin index

Pin index

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

40 visible
PinMCU pinTypesNotes
3V3Power3.3 V input from the Raspberry Pi for HAT logic and sensors.
5VPower5 V input from the host at J1.2. Both 5 V contacts are tied to the same rail.
SDA1I²CI²C1 data for U2 and the onboard sensors. Also reaches PP9.
5VPower5 V input from the host at J1.4. Both 5 V contacts are tied to the same rail.
SCL1I²CI²C1 clock for U2 and the onboard sensors. Also reaches PP8.
GNDGroundJ1.6 is connected to the common ground plane on the HAT.
N/CNCJ1.7 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.8 is present on the socket and has no electrical connection to this HAT.
GNDGroundJ1.9 is connected to the common ground plane on the HAT.
N/CNCJ1.10 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.11 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.12 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.13 is present on the socket and has no electrical connection to this HAT.
GNDGroundJ1.14 is connected to the common ground plane on the HAT.
N/CNCJ1.15 is present on the socket and has no electrical connection to this HAT.
GPIO23InterruptGPIO23_INT is wired to ATtiny88 PB6 and pad PP7.
N/CNCJ1.17 is present on the socket and has no electrical connection to this HAT.
GPIO24InterruptGPIO24_INT is wired to ATtiny88 PB7 and pad PP6.
MOSISPISPI0 MOSI reaches ATtiny88 PB3 through R1 (33 Ω). PP4 is on the AVR side.
GNDGroundJ1.20 is connected to the common ground plane on the HAT.
MISOSPISPI0 MISO reaches ATtiny88 PB4 through R2 (33 Ω). PP3 is on the AVR side.
GPIO25ControlGPIO25 reaches ATtiny88 reset PC6 through R3 (33 Ω). PP12 is on the AVR side.
SCLKSPISPI0 SCLK reaches ATtiny88 PB5 through R4 (33 Ω). PP2 is on the AVR side.
CE0SPISPI0 CE0 reaches ATtiny88 PB2 through R5 (33 Ω). PP11 is on the AVR side.
GNDGroundJ1.25 is connected to the common ground plane on the HAT.
N/CNCJ1.26 is present on the socket and has no electrical connection to this HAT.
ID_SDHAT IDReserved HAT identification data line. Connected to U6 SDA and PP17.
ID_SCHAT IDReserved HAT identification clock line. Connected to U6 SCL and PP18.
N/CNCJ1.29 is present on the socket and has no electrical connection to this HAT.
GNDGroundJ1.30 is connected to the common ground plane on the HAT.
N/CNCJ1.31 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.32 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.33 is present on the socket and has no electrical connection to this HAT.
GNDGroundJ1.34 is connected to the common ground plane on the HAT.
N/CNCJ1.35 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.36 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.37 is present on the socket and has no electrical connection to this HAT.
N/CNCJ1.38 is present on the socket and has no electrical connection to this HAT.
GNDGroundJ1.39 is connected to the common ground plane on the HAT.
N/CNCJ1.40 is present on the socket and has no electrical connection to this HAT.

Specifications

PCB / SKU
RPI-SENSE Version 2 (PCB-R2) / SC0329
Host interface
J1 · Raspberry Pi 40-pin GPIO socket, 2×20 at 2.54 mm
Power and logic
Host-supplied 5 V and 3.3 V · GPIO at 3.3 V
Board size
65 × 56.5 mm
Display and input
8×8 RGB LED matrix · 5-way joystick
Motion
LSM9DS1 · 3-axis accelerometer, gyroscope and magnetometer
Environment
LPS25HB pressure and temperature · HTS221 humidity and temperature
Optical
TCS3400 colour and brightness in the retail specification
Configuration
I²C1 for sensors and AVR · separate HAT ID EEPROM on I²C0

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Sense HAT V2Board schematicRaspberry PiRPI-SENSE rev. 2, sheet 2 for J1, test pads and components.Datasheet
Sense HATProduct briefRaspberry PiRetail specifications and mechanical drawing.Datasheet
Sense HATUser documentationRaspberry PiSoftware, joystick and display interfaces.Datasheet
ATtiny88Board controllerMicrochipAVR microcontroller with I²C and SPI.Datasheet
LSM9DS19-axis IMUSTMicroelectronics3-axis accelerometer, gyroscope and magnetometer.Datasheet
LPS25HBPressure and temperatureSTMicroelectronics260–1260 hPa pressure range.Datasheet
HTS221Humidity and temperatureSTMicroelectronics0–100% relative humidity measurement range.Datasheet
TCS3400Colour and ambient lightams OSRAMU8 as listed in the retail product brief, I²C address 0x39.Datasheet
TCS34725Colour sensor variantams OSRAMU8 in the published V2 schematic, I²C address 0x29.Datasheet
CAT24C32HAT ID EEPROMonsemi32-kbit serial EEPROM with hardware write protect.Datasheet
LED2472GRGB LED driverSTMicroelectronics24 constant-current outputs.Datasheet
SN74AHCT245LED column bufferTexas InstrumentsOctal bus transceiver.Datasheet
SKRHABE010Five-way joystickAlps AlpineFour directions with centre push.Datasheet

Board notes

Component side · Test points
TP1–TP5 and main components.
Underside · Test pads
PP1–PP18, including AVR programming and EEPROM signals.
Linux device tree
Official revision 2 configuration and joystick interrupt.
Photo credit
Pimoroni product photography. Rotated, cropped and background masked.