Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Boards & Microcontrollers
  4. ›Raspberry Pi HATs Explained

Buying guide · Beginner · 4 min read

Raspberry Pi HATs Explained

Types, Compatibility and How to Stack Them

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat a HAT is and what it is notPopular HAT typesCompatibility checklistStacking safelyTry itCommon mistakesFAQsParts and next steps
Short answer

A Raspberry Pi HAT is an add-on board in the standard 65 x 56.5 mm size that plugs onto the 40-pin GPIO header. Common types add PoE power, an M.2 NVMe drive, an AI accelerator, a UPS battery, motor drivers, relays or sensors. Check your Pi model first, because Pi 5 HATs use a PCIe flat cable and a different PoE connector, and watch for GPIO pin conflicts when stacking.

Key specs at a glance

Size
65 x 56.5 mm for a full HAT; pHAT is Zero-sized
Connector
40-pin GPIO header (3.3 V logic)
Auto-config
HAT ID EEPROM on GPIO0 and GPIO1 (ID_SD, ID_SC)
Pi 5 high-speed link
PCIe 2.0 x1 through a 16-pin flat-cable connector (HAT+ boards)
Pi 5 PoE
Dedicated 4-pin PoE header
Typical power
Pi 5 officially wants 27 W (5 V, 5 A) USB-C when running HATs
!Safety: Lithium cells need care

A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.

01

What a HAT is and what it is not

HAT stands for Hardware Attached on Top. The specification fixes the board size, mounting holes and 40-pin connector, and adds a small identification EEPROM so the Pi can load the right drivers automatically. Boards that skip the EEPROM or the size rules are often sold as "HAT-style" or "expansion boards". They usually work fine, but you may have to enable an overlay by hand in /boot/firmware/config.txt.

A half-size version for the Pi Zero is called a pHAT. On the Raspberry Pi 5 the newer HAT+ specification also covers boards that talk over PCIe, such as NVMe drives and AI accelerators.

02

Popular HAT types

Pick by the job you need done:

HAT typeWhat it addsPi modelsNotes
PoE / PoE+Power and network from one Ethernet cable3B+ and 4 use the 4-pin PoE header; Pi 5 needs a Pi 5 PoE+ HATNeeds a PoE switch or injector; includes a small fan
M.2 / NVMeFast SSD storage over PCIePi 5 onlyOfficial M.2 HAT+ supports 2230 and 2242 drives; boot from NVMe is possible
AI accelerator13 or 26 TOPS neural network inferencePi 5 onlyUsed for object detection and camera pipelines
UPS / batteryKeeps the Pi running through power cutsMost modelsChoose cell size (18650 or 21700) and check safe shutdown support
Motor / stepper / servoDrives DC motors, steppers or 16 servosAll 40-pin PisNeeds its own motor power supply
RelaySwitches mains or DC loadsAll 40-pin PisUse isolated relays for mains
Sense / sensorIMU, temperature, humidity, LED matrixAll 40-pin PisUse stacking headers to keep it off the CPU heat
RTC / watchdogKeeps time and resets the Pi if it hangsMost modelsA battery-backed clock helps Pi 5 projects keep time offline
PoE / PoE+
What it adds:
Power and network from one Ethernet cable
Pi models:
3B+ and 4 use the 4-pin PoE header; Pi 5 needs a Pi 5 PoE+ HAT
Notes:
Needs a PoE switch or injector; includes a small fan
M.2 / NVMe
What it adds:
Fast SSD storage over PCIe
Pi models:
Pi 5 only
Notes:
Official M.2 HAT+ supports 2230 and 2242 drives; boot from NVMe is possible
AI accelerator
What it adds:
13 or 26 TOPS neural network inference
Pi models:
Pi 5 only
Notes:
Used for object detection and camera pipelines
UPS / battery
What it adds:
Keeps the Pi running through power cuts
Pi models:
Most models
Notes:
Choose cell size (18650 or 21700) and check safe shutdown support
Motor / stepper / servo
What it adds:
Drives DC motors, steppers or 16 servos
Pi models:
All 40-pin Pis
Notes:
Needs its own motor power supply
Relay
What it adds:
Switches mains or DC loads
Pi models:
All 40-pin Pis
Notes:
Use isolated relays for mains
Sense / sensor
What it adds:
IMU, temperature, humidity, LED matrix
Pi models:
All 40-pin Pis
Notes:
Use stacking headers to keep it off the CPU heat
RTC / watchdog
What it adds:
Keeps time and resets the Pi if it hangs
Pi models:
Most models
Notes:
A battery-backed clock helps Pi 5 projects keep time offline
03

Compatibility checklist

  1. 1
    Model. HATs for the Pi 3 and Pi 4 usually fit the Pi 5 mechanically, but PoE, fan and power-button features differ.
  2. 2
    Height. A Pi 5 Active Cooler or a tall heatsink can block a HAT. Use a longer stacking header or a HAT with cut-outs.
  3. 3
    Power budget. Add the Pi's draw to the HAT's draw and size the supply with 20 to 30% headroom. See Raspberry Pi power supplies.
  4. 4
    GPIO and I2C conflicts. Two HATs that use the same pins or the same I2C address cannot share the bus. Read each HAT's pin table and see the GPIO pinout.
  5. 5
    Mounting. Fit M2.5 standoffs at all four corners so the board does not flex the header.
04

Stacking safely

Use a stacking (extra-long) header so signals pass up through the first HAT. Put the board that needs the most current or cooling closest to the Pi. Never power a stack from two sources at once, for example USB-C and a PoE HAT, unless the HAT is designed for it. If a project needs more than two HATs, a GPIO splitter or a bare 40-pin breakout is usually easier.

05

Try it: Power supply sizing calculator

Change the values and the diagram and results update as you type.

06

Common mistakes to avoid

  • !Buying a Pi 4 HAT for a Pi 5 and finding the PoE or fan connector does not line up.
  • !Stacking two boards that both use the same SPI chip-select or I2C address.
  • !Powering a stack of HATs from a 15 W phone charger.
  • !Forgetting standoffs, which bends the GPIO header over time.
  • !Putting a tall cooler under a HAT without checking clearance.
07

Frequently asked questions

Do all HATs work with the Raspberry Pi 5?

Most 40-pin HATs do, but features that rely on the Pi 4 PoE header, fan header or power button need a Pi 5 version. PCIe HATs only work on the Pi 5.

What is the difference between a HAT and a shield?

A shield is an Arduino add-on. A HAT is the Raspberry Pi equivalent with a standard size and an ID EEPROM.

Can I run two HATs together?

Yes if they use different GPIO pins and I2C addresses and their combined power fits the supply. Use stacking headers.

Do I need a HAT for an SSD?

On a Pi 5, the M.2 HAT+ is the easy way. On older Pis, use a USB 3 SSD enclosure.

Will a HAT void the warranty?

Add-on boards do not void the Pi's warranty, but damage caused by a faulty board may not be covered.

Do HATs need drivers?

Many are detected automatically from their EEPROM. Others need an overlay line in config.txt or a vendor script.

Parts for this guide

  • Raspberry Pi M.2 HAT+ M Key
    ₹1,609View
  • Raspberry Pi AI HAT+ with Hailo 8L (13 TOPS)
    ₹7,839View
  • Geekworm Raspberry Pi 5 PoE HAT 802.3af/at (USB-C)
    ₹2,659View
  • Waveshare 16-Ch 12-bit Servo Driver HAT for Raspberry Pi
    ₹1,669View
Shop Expansion Boards & HATs

Calculators

Power supply sizing calculator

Terms in this guide

HATHardware Attached on Top: a Raspberry Pi add-on board in the standard 65 x 56.5 mm size that plugs onto the 40-pin header and can identify itself to the OS.GPIOGeneral-purpose input/output: a microcontroller pin that your code can read or drive.PCIePCI Express, a fast serial link used for NVMe drives and AI accelerators. The Raspberry Pi 5 exposes one PCIe lane through a small flat-cable connector.NVMeA fast SSD standard using PCIe. The Raspberry Pi 5 can boot from an NVMe drive through a HAT.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.SBCSingle-board computer: a complete computer on one board, such as the Raspberry Pi, that runs a full operating system.

Projects that use it

Put this into practice: 3 step-by-step builds in our project library use parts from this guide.

Intermediate · 2–3 hoursRaspberry Pi touch dashboardView projectIntermediate · 1–2 hoursPi quiet fan controller that follows CPU temperatureView projectIntermediate · 3 hoursBuild a Raspberry Pi 5 home server that boots from an NVMe SSDView project
Browse all 3 projects

Keep learning

Component guideBeginnerRaspberry Pi 5 GuideThe Raspberry Pi 5 is a credit-card-size Linux computer with a 2.4 GHz quad-core Arm CPU, 2 to 16 GB of RAM, dual 4K HDMI, PCIe for NVMe storage and 40 GPIO pins.4 min read · Boards & MicrocontrollersPinout referenceBeginnerRaspberry Pi GPIO PinoutAll Raspberry Pi models since 2014 share the same 40-pin header: 26 GPIO pins at 3.3 V logic, two 5 V pins, two 3.3 V pins and eight grounds.3 min read · Boards & MicrocontrollersConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsComparisonBeginnerArduino vs Raspberry PiAn Arduino is a microcontroller: it runs one program the instant it is powered, is great at reading sensors and controlling motors, and uses very little power.3 min read · Boards & MicrocontrollersHow-toIntermediateHeatsinks, Fans and Thermal PasteEvery part that drops voltage while passing current turns that power into heat.3 min read · Power & Batteries

Sources

  • Raspberry Pi HAT+ specification
  • Raspberry Pi documentation: Pi 5 hardware
  • Manufacturer pin tables

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat a HAT is and what it is notPopular HAT typesCompatibility checklistStacking safelyTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹13,776

Raspberry Pi M.2 HAT+ M Key · Raspberry Pi AI HAT+ with Hailo 8L (13 TOPS) · Geekworm Raspberry Pi 5 PoE HAT 802.3af/at (USB-C) · Waveshare 16-Ch 12-bit Servo Driver HAT for Raspberry Pi

Ask the Community

Ask a question