Raspberry Pi Sense HAT V2
By Raspberry Pi
The Sense HAT packs a set of sensors, an 8×8 RGB LED matrix and a five-button joystick onto one board for your Raspberry Pi. It measures temperature, humidity, air pressure, colour and brightness, orientation and move...
Get notified when back in stock
1300 240 817
Mon–Fri, 10am–4pm Sydney time
The Sense HAT packs a set of sensors, an 8×8 RGB LED matrix and a five-button joystick onto one board for your Raspberry Pi. It measures temperature, humidity, air pressure, colour and brightness, orientation and movement, shows the results on its LEDs, and lets people interact with your project through the joystick.
It was originally made for the International Space Station, for the Astro Pi programme run by the Raspberry Pi Foundation with the European Space Agency. This is the current version (V2), which includes a colour and brightness sensor. It fits any Raspberry Pi with a 40-pin GPIO header and is powered by the Raspberry Pi itself.
Why choose it
- Many sensors, no wiring. Pressure, humidity, temperature, colour, a 3-axis accelerometer, gyroscope and magnetometer all arrive on one board that simply plugs on.
- A display and controls built in. The 8×8 RGB LED matrix shows readings, scrolling text, pictures or games, and the joystick gives you up, down, left, right and click.
- Simple, official Python library. The
sense-hatlibrary reads every sensor, drives the LEDs and reads the joystick in a line or two each. - Made for teaching. It is the board used in the Astro Pi programme, and it works without soldering or wiring, which suits a classroom.
- In production until at least January 2028, according to Raspberry Pi.
Specifications
| Pressure and temperature | STMicro LPS25HB: 260 to 1260 hPa absolute pressure, 24-bit; temperature ±2°C from 0 to 65°C |
|---|---|
| Humidity and temperature | STMicro HTS221: 0 to 100% relative humidity, 16-bit; temperature ±0.5°C from 15 to 40°C |
| Motion (IMU) | STMicro LSM9DS1 accelerometer, gyroscope and magnetometer: up to ±16g, ±2000 dps and ±16 gauss, 16-bit per channel |
| Colour | TCS3400 RGB colour and brightness sensor |
| Display | 8×8 RGB LED matrix |
| Input | 5-button miniature joystick: up, down, left, right and middle click |
| Connection | 40-pin GPIO header, I²C |
| Board size | 65 × 56.5mm |
| Power | From the Raspberry Pi |
| Production lifetime | Until at least January 2028 |
Compatibility
- Any Raspberry Pi with a 40-pin GPIO header, including Raspberry Pi 5 and 4. Zero models need a GPIO header fitted.
- The Sense HAT takes its power from the Raspberry Pi, so there is no separate supply to connect.
Getting started
- Shut down and unplug your Raspberry Pi, then press the Sense HAT onto the GPIO header.
- Bring Raspberry Pi OS up to date with
sudo apt update && sudo apt full-upgrade. - Install the library with
sudo apt install sense-hat. This also enables I²C and installs what the HAT needs. - Reboot. Example programs are in
/usr/src/sense-hat/examples.
Good to know
- Full documentation for the Python library is at sense-hat.readthedocs.io, and Raspberry Pi's Sense HAT documentation covers setup, schematics and the HAT's EEPROM.
- The more accurate temperature reading comes from the humidity sensor (±0.5°C between 15 and 40°C); the pressure sensor's reading is ±2°C.
- The colour and brightness sensor needs Raspberry Pi OS kernel 5.15.74 (31 October 2022) or later, so an up-to-date Bullseye or newer release. Buster doesn't support it, so update older SD cards first.
- For accurate compass headings, calibrate the magnetometer with the
RTIMULibCaltool; the Sense HAT documentation walks through it. - The product brief is in the documents below.
Documents and downloads
6 documents for the Raspberry Pi Sense HAT V2. Open a PDF's pages here, or download it.
Product briefs
-
Sense HAT Product Brief Product Brief · PDF · 1.0 MB Preview pages Hide pages
Select a page to read it full size.
Download
Drawings and 3D models
-
Sense HAT Mechanical Drawing Mechanical Drawings · PDF · 91.5 KB Preview pages Hide pages
Select a page to read it full size.
Download
Schematics and pinouts
Compliance
-
Sense HAT FCC Declaration of Conformity Compliance · PDF · 65.7 KB Preview pages Hide pages
Select a page to read it full size.
Download
Product change notices
-
Sense HAT Revision 2 Product Change Notice Product Change Note · PDF · 34.6 MB Preview pages Hide pages
Select a page to read it full size.
Download