Best Raspberry Pi HATs & Add-On Boards
In this article
The best Raspberry Pi HATs and add-on boards depend on your project, but for most users the top picks are the official Raspberry Pi Camera Module for imaging, the Adafruit DC & Stepper Motor HAT for motion control, and the Pimoroni Enviro+ for environmental sensing. Below we break down the leading options by category, explain how HATs work, and help you choose the right one for your needs.
What Exactly Is a HAT?
HAT stands for Hardware Attached on Top. It is a specification introduced by the Raspberry Pi Foundation in 2014 that defines a standard 40-pin GPIO header layout, an EEPROM (electronically erasable programmable read-only memory) chip on the board, and a set of software conventions. When you plug a HAT onto a Raspberry Pi, the Pi reads the EEPROM to automatically identify the board and load the appropriate drivers or configuration. This plug-and-play behavior is what distinguishes a true HAT from a generic add-on board that simply uses the GPIO pins.
Most HATs follow the same physical size as the Raspberry Pi itself (65mm x 56mm) and stack directly on top, but there are also smaller "pHATs" (partial HATs) that measure 65mm x 30mm and are designed for the Pi Zero series. The 40-pin header carries power (3.3V and 5V), ground, and up to 26 GPIO pins, plus I2C, SPI, UART, and PWM interfaces. Because the header is standardized, most HATs work with any modern Raspberry Pi model (2, 3, 4, 5, Zero, etc.), though some require a specific connector or extra power.
Top HATs by Category
There are hundreds of HATs available, but they cluster into a few practical categories. Here are the most popular and well-supported options in each:
- Camera & Vision: The official Raspberry Pi Camera Module (v2 or v3) is not technically a HAT because it uses a dedicated CSI ribbon cable, but it is the most common vision add-on. For a true HAT form factor, consider the Arducam Multi-Camera Adapter or the Pimoroni MLX90640 Thermal Camera pHAT.
- Motor Control: The Adafruit DC & Stepper Motor HAT (based on the TB6612 driver) can control up to 4 DC motors or 2 stepper motors. The Pimoroni Explorer HAT Pro adds motor drivers plus touch, LED, and analog inputs. For robotics, the Pololu Dual G2 High-Power Motor Driver HAT handles higher currents (up to 2.5A per channel).
- Environmental Sensing: The Pimoroni Enviro+ measures temperature, humidity, pressure, gas (VOC), light, and noise, and includes a small display. The Sense HAT (official Raspberry Pi add-on) has an 8x8 RGB LED matrix plus temperature, humidity, pressure, and IMU (accelerometer, gyroscope, magnetometer) – it was originally created for the Astro Pi competition.
- Audio: The JustBoom DAC HAT and Pimoroni Pirate Audio pHAT provide high-quality digital-to-analog conversion for music players or voice assistants. The IQaudIO DAC+ is another well-known option.
- Display & UI: The official Raspberry Pi Touch Display is not a HAT, but the Pimoroni Inky pHAT (e-ink display) and the Adafruit 128x64 OLED Bonnet are compact HAT-style screens for status readouts.
- Storage & Connectivity: The X728 UPS HAT from Geekworm adds a real-time clock, safe shutdown, and battery backup. The SIM7600 LTE HAT from Waveshare adds 4G cellular connectivity. For networking, the official Raspberry Pi PoE HAT allows power over Ethernet on the Pi 3B+ and later models.
How to Choose the Right HAT
Start by defining your project's core function. Do you need to move something? Get a motor HAT. Do you want to log weather data? Get an environmental sensor HAT. Then check compatibility:
- Raspberry Pi model: Most HATs work with all 40-pin Pis, but some (like the PoE HAT) require specific models. The Pi 5 has a different PCIe connector, so some HATs (like NVMe SSDs) need an adapter.
- Power requirements: Motor HATs and cellular HATs draw significant current. You may need a separate 5V supply for motors, and never power a Pi from a HAT's 3.3V rail – that is for logic only.
- Software support: Check that the HAT has a Python library or kernel driver for your OS. Official Raspberry Pi products and Adafruit/Pimoroni boards have excellent documentation and active communities.
- Stackability: If you plan to use multiple HATs, ensure they don't use the same GPIO pins or I2C addresses. Some HATs include a pass-through header, but not all.
Common Problems and How to Avoid Them
The most frequent issues with HATs are power-related. A Raspberry Pi can supply only about 500mA on the 5V pin and 50mA on the 3.3V pin – exceeding that can cause brownouts or damage. Motor HATs often require a separate battery pack connected directly to the HAT's power terminals, not to the Pi. Another common mistake is using a HAT that expects 5V logic on a 3.3V-only GPIO pin; check the HAT's documentation.
Software issues often stem from the EEPROM. If a HAT isn't detected, run sudo apt update && sudo apt full-upgrade to update the Pi's firmware and kernel, then reboot. Some older HATs may need you to manually enable I2C or SPI via sudo raspi-config.
HATs vs. Other Add-Ons
Not every add-on is a HAT. USB devices (like a USB sound card or Wi-Fi dongle) are simpler and don't require GPIO, but they use one of the Pi's USB ports and may have higher latency. GPIO breakout boards (like the Adafruit T-Cobbler) just expose the pins for breadboarding – they have no EEPROM and no specific function. HATs are the best choice when you want a compact, integrated, and software-friendly solution. For advanced users, the Pi's PCIe port (on Pi 5) opens up faster storage and AI accelerators, but those are not HATs.
Costs and Where to Buy
HAT prices vary widely. Simple pHATs like the Inky can cost around $15, while the Sense HAT is about $35. Motor HATs range from $20 to $50 depending on current rating. Environmental sensor HATs like the Enviro+ are around $30. The official PoE HAT is about $25, and a 4G LTE HAT can be $50 or more (plus data plan). You can buy from official resellers like Adafruit, Pimoroni, SparkFun, and The Pi Hut, or from Amazon – but beware of cheap clones that may lack proper EEPROM or use lower-quality components.
Safety and Best Practices
Always power off the Pi before attaching or removing a HAT. Avoid shorting pins, and never connect motors or other inductive loads directly to the GPIO pins – use a motor driver. If a HAT has exposed metal, mount it with standoffs to prevent accidental contact with the Pi's underside. For battery-powered projects, use a UPS HAT with proper charging circuitry to avoid over-discharge. Finally, keep the Pi's firmware updated to ensure compatibility with newer HATs.
Frequently Asked Questions
Can I use multiple HATs at once?
Yes, you can stack HATs if they don't conflict on GPIO pins or I2C addresses. Many HATs have a pass-through header, but you may need a stacking header (a longer 40-pin connector) to physically fit them. Check the documentation for each HAT to see which pins it uses.
Do HATs work with Raspberry Pi 5?
Most HATs that use the 40-pin GPIO header work with the Pi 5, but there are exceptions. The Pi 5 changed the power management and some HATs that rely on the old I2C ID EEPROM may not be recognized automatically. Also, the Pi 5's PCIe connector is not compatible with older HATs that used the display or camera ribbon – those now need special adapters.
What is the difference between a HAT and a pHAT?
A pHAT is a smaller version (half the length) of a HAT, designed for the Raspberry Pi Zero series. They use the same 40-pin header but are shorter, so they don't cover the entire Pi. Many pHATs also work on larger Pis, but they may look odd and leave the bottom half exposed.
Do I need to install drivers for a HAT?
Most HATs are plug-and-play thanks to the EEPROM, which tells the Pi what drivers to load. However, you may still need to install a Python library or enable interfaces like I2C or SPI. Check the manufacturer's guide – it usually involves a one-line installer or a pip install command.
Can I make my own HAT?
Yes, the HAT specification is open. You can design a PCB with the 40-pin header and an EEPROM (like the AT24C32) programmed with the vendor and product ID. The Raspberry Pi documentation includes the full HAT design guide. For simple projects, you can also use a breakout board and jumper wires instead of a custom PCB.