Component guide · Beginner · 5 min read
Raspberry Pi Sensor, Display and Fun HATs

Sense HAT, Waveshare Sense HAT B and C, Pimoroni Rainbow, Explorer, Skywriter, Unicorn, Picade X, GamePi13, LCD HATs, RTC, ZYMKEY4 and TV HAT
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These HATs add sensors, lights, screens and buttons to a Raspberry Pi with no wiring. The Sense HAT has an 8x8 LED matrix, IMU and environment sensors and is used by the Astro Pi programme. Pimoroni boards add LEDs, touch and gesture input; LCD HATs and GamePi13 make handheld gadgets; and RTC, ZYMKEY4 and TV HATs add time keeping, security and TV reception.
Key specs at a glance
- Sensors
- IMU, temperature, humidity, pressure, light, gesture
- Displays
- 8x8 LED, 17x7 LED, 1.3 to 1.44 inch LCD, 16x2 LCD
- Input
- Joystick, buttons, capacitive touch, trackball
- Interface
- I2C, SPI, GPIO
- Other
- RTC with watchdog, crypto module, DVB-T2 tuner
- Pi models
- 40-pin Pis; check Pi 5 support for older HATs
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Raspberry Pi Sense HAT₹3,640
Option 2Waveshare Sense HAT (B) for Raspberry Pi₹2,979
Option 3Waveshare Sense HAT (C) for Raspberry Pi₹2,939
Option 4Pimoroni Rainbow HAT for Raspberry Pi₹1,929
Option 5Pimoroni Explorer pHAT for Raspberry Pi₹1,449
Option 6Pimoroni Skywriter HAT – 3D Gesture Sensor for Raspberry Pi₹4,392
What the Raspberry Pi sensor, display, LED and gaming HATs is
Pi sensor, display and fun HATs, such as the Sense HAT, e-paper HATs and LED matrix HATs, add sensors, screens and LEDs to a Raspberry Pi for learning and dashboards.
Most of these have a Python library: sense-hat for the Sense HAT, Pimoroni's libraries for their boards, and Waveshare examples for theirs. Waveshare's Sense HAT (B) and (C) offer similar sensors to the official board at a lower price.
The RTC HAT keeps time without internet. The DVB-T2 TV HAT receives broadcast TV where DVB-T2 is used; check local broadcast standards first.
Raspberry Pi sensor, display, LED and gaming HATs pinout
The pins on the Raspberry Pi sensor, display, LED and gaming HATs and what each one does.
| Pin | Function |
|---|---|
| I2C (GPIO2, 3) | Most sensor, ADC, servo and expander chips |
| SPI (GPIO8 to 11) | Fast ADCs, displays and DAQ HATs |
| GPIO | Buttons, relays, motor direction and enable pins |
| 5V / 3.3V / GND | Power from the Pi or the HAT's own input |
- I2C (GPIO2, 3)
- Most sensor, ADC, servo and expander chips
- SPI (GPIO8 to 11)
- Fast ADCs, displays and DAQ HATs
- GPIO
- Buttons, relays, motor direction and enable pins
- 5V / 3.3V / GND
- Power from the Pi or the HAT's own input
Wiring the Raspberry Pi sensor, display, LED and gaming HATs
Enable I2C and SPI in raspi-config before running examples. SHIM boards friction-fit over the pins; push them all the way down.
| Raspberry Pi sensor, display, LED and gaming HATs pin | Connection | Note |
|---|---|---|
| HAT | Press onto the 40-pin header | Standoffs for the HAT |
| SHIM boards | Slide over the header | No soldering |
| Displays | SPI pins via the header | Enable SPI |
- HAT
- Connection:
- Press onto the 40-pin header
- Note:
- Standoffs for the HAT
- SHIM boards
- Connection:
- Slide over the header
- Note:
- No soldering
- Displays
- Connection:
- SPI pins via the header
- Note:
- Enable SPI
Example code
The Sense HAT temperature reads high because the Pi's CPU warms it; use a ribbon extension to move it away for accurate readings.
from sense_hat import SenseHat
import time
sense = SenseHat()
while True:
t = round(sense.get_temperature(), 1)
h = round(sense.get_humidity())
sense.show_message(f"{t}C {h}%", scroll_speed=0.06)
time.sleep(1)Setup and tuning
push the HAT fully onto the 40-pin header with the Pi switched off.
install the HAT's Python library, then run the example.
enable I2C or SPI in raspi-config if the HAT uses them.
sensors on HATs sit near the Pi CPU and read warm; use a stacking header to space them.
check pins before stacking two HATs.
What you need
Shop this list20 of 20 found in our store · ₹34,669
Raspberry Pi Sense HAT: the part this guide coversRaspberry Pi Sense HAT₹3,640
Waveshare Sense HAT (B) for Raspberry Pi: another version this guide coversWaveshare Sense HAT (B) for Raspberry Pi₹2,979
Waveshare Sense HAT (C) for Raspberry Pi: another version this guide coversWaveshare Sense HAT (C) for Raspberry Pi₹2,939
Pimoroni Rainbow HAT for Raspberry Pi: another version this guide coversPimoroni Rainbow HAT for Raspberry Pi₹1,929
Pimoroni Explorer pHAT for Raspberry Pi: another version this guide coversPimoroni Explorer pHAT for Raspberry Pi₹1,449
Pimoroni Skywriter HAT – 3D Gesture Sensor for Raspberry Pi: another version this guide coversPimoroni Skywriter HAT – 3D Gesture Sensor for Raspberry Pi₹4,392
Pimoroni Touch pHAT for Raspberry Pi: another version this guide coversPimoroni Touch pHAT for Raspberry Pi₹919
Pimoroni Unicorn HAT Mini for Raspberry Pi: another version this guide coversPimoroni Unicorn HAT Mini for Raspberry Pi₹2,329
PiGlow Raspberry Pi LED Expansion Board for 3B/3B+/Zero W: another version this guide coversPiGlow Raspberry Pi LED Expansion Board for 3B/3B+/Zero W₹439
Pimoroni LED SHIM for Raspberry Pi: another version this guide coversPimoroni LED SHIM for Raspberry Pi₹992
Pimoroni Button SHIM for Raspberry Pi: another version this guide coversPimoroni Button SHIM for Raspberry Pi₹979
Pimoroni Trackball Breakout for Raspberry Pi/Arduino: another version this guide coversPimoroni Trackball Breakout for Raspberry Pi/Arduino₹1,559
Pimoroni Picade X HAT USB-C for Raspberry Pi: another version this guide coversPimoroni Picade X HAT USB-C for Raspberry Pi₹1,212
Waveshare GamePi13 1.3 inch Game Console HAT for Raspberry Pi: another version this guide coversWaveshare GamePi13 1.3 inch Game Console HAT for Raspberry Pi₹1,500
Waveshare 1.44 inch LCD HAT for Raspberry Pi, 128x128: another version this guide coversWaveshare 1.44 inch LCD HAT for Raspberry Pi, 128x128₹1,000
Waveshare Triple LCD HAT for Raspberry Pi: another version this guide coversWaveshare Triple LCD HAT for Raspberry Pi₹1,750
LCD1602 RGB LCD HAT with Keypad for Raspberry Pi: another version this guide coversLCD1602 RGB LCD HAT with Keypad for Raspberry Pi₹916
Waveshare Pioneer600 Raspberry Pi Expansion Board: another version this guide coversWaveshare Pioneer600 Raspberry Pi Expansion Board₹1,998
Raspberry Pi GPIO Multi-function Expansion Board for Pi 4B/3B+: another version this guide coversRaspberry Pi GPIO Multi-function Expansion Board for Pi 4B/3B+₹319
Waveshare RTC WatchDog HAT for Raspberry Pi: another version this guide coversWaveshare RTC WatchDog HAT for Raspberry Pi₹1,429
Alternatives and when to choose them
- Pi touch displays: bigger screens.
- GPIO breakout boards: wire your own parts.
- Pi HATs explained: stacking.
Common mistakes to avoid
- Plugging in HATs with the Pi on.
- Forgetting to enable I2C or SPI.
- Stacking HATs with pin conflicts.
- Trusting temperature readings near the CPU.
Frequently asked questions
Why does the Sense HAT temperature read high?
Heat from the Pi CPU warms it; use a ribbon extension or correct in code.
Do I need to enable I2C for my HAT?
Yes, if it uses I2C; turn it on in raspi-config.
Can I stack two HATs?
Only if their pins do not conflict; check pin maps first.
Which HAT is good for beginners?
The Sense HAT has sensors, joystick and LEDs in one board.
Why does my e-paper HAT not refresh?
SPI is off or the wrong panel driver is used.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.







