The Raspberry Pi is already versatile out of the field. But with {hardware} extensions which might be plugged immediately onto the board, you’ll be able to considerably improve the probabilities. We introduce you to some outstanding parts.
With the “Hardware Attached on Top” (HAT) idea, the Raspberry has a simple approach to develop its capabilities. The add-ons are merely plugged onto the GPIO pins on the board. The enlargement kits normally additionally embody plastic spacers to guard towards quick circuits if the primary board and enlargement board come too shut collectively. The vary of such extensions has grown significantly in recent times. In addition to the official HATs, the producer Pimoroni stands out particularly.
In this text, we current a sequence of significantly attention-grabbing HAT boards. The focus is on model 4, however the boards introduced right here can even match older fashions or the model new Pi 5, though they don’t have to. You ought to due to this fact discover out about compatibility before you purchase (see final level “Check before you buy!”).
Rich sound with DAC
With a DAC, you’ll be able to join the board to passive or lively audio system or to the stereo system. This turns the Raspberry right into a streaming field.
Raspberry Pi Foundation
An extension that works instantly, i.e. “out of the box,” improves the sound traits of the board. The Raspberry Foundation has varied fashions of such “Digital Audio Controllers” (DAC) on provide.
Which board is best for you will depend on your setting. The Digi AMP+ is the fitting selection if you wish to join passive audio system to the pc. The board presents the standard clamp connections for the cables and delivers an output of as much as 35 watts per channel. That’s positively sufficient for the lounge at house.
The Raspberry Pi DAC or its Plus version, alternatively, are meant for lively audio system. They provide the basic connection by way of banana plugs. In such a system, the speaker with the built-in amplifier is linked to the sign supply. The HATs convert digital indicators into analog indicators to be able to join the Raspberry both on to loudspeakers or the stereo system (AUX enter). In mixture with the fitting software program, you’ll be able to flip the Raspberry Pi right into a streaming field for the WLAN or use it to play music saved on knowledge storage media.
For all Lego followers

The HAT for Lego hobbyists opens up new potentialities for controlling sensors and motors from the Lego cosmos by way of Raspberry.
IDG
The Raspberry Pi Build HAT enlargement board, which might management as much as 4 motors and sensors — together with parts from the Mindstorm cosmos — is out there for all bold Lego hobbyists who’re intensively concerned with Lego Technics. You may even discover a Lego board in specialised outlets, which you need to use to combine the board immediately into your Lego creations. You can join most parts that use an LPF2 connection. Details on compatibility might be discovered on the board’s official product web page.
But beware: The built-in energy provide isn’t enough to function a motor on the board.
An exterior energy provide unit is obtainable as a complement to the HAT board, which is barely appropriate for this element. You can not use this energy provide unit to function the Pi 400, for instance. There is an in depth library for Python tasks to manage distance, movement, or colour sensors, which is explained in detail.
The extension prices slightly below $30. The matching energy provide then prices rather less than $20.
Raspbee II: For house automation

This small circuit board appears to be like inconspicuous, however does lots: it permits the Raspberry to speak with good house units that use the Zigbee customary.
Raspbee
Are you in search of a approach to management your good house centrally by way of the Raspberry Pi? Then you need to positively check out the Raspbee II board. As the identify suggests, it’s an extension that communicates with units that use the Zigbee customary. The tiny board even has a slot for a battery in order that units might be managed by way of a real-time clock (RTC).
The fundamental concept is to eliminate the varied gateways from different producers. This additionally works so long as the parts are acknowledged by the producer’s software program. It is due to this fact value wanting by the documentation earlier than making a purchase order determination. After all, Zigbee is only a communication protocol. The “magic” of the management system should then be carried out by software program.
This helpful addition to the good house prices lower than $30.
Game Hat: The Raspberry turns into a console

Who is linked to whom? It doesn’t matter — the Game HAT turns the small pc right into a mini-game console, making it the perfect foundation for retro video games.
Waveshare
We introduced the Retro-Pie venture a few years in the past: The purpose is to rework the small circuit board right into a recreation console. The preferrred companion for this venture is the Game HAT from Waveshare. However, it’s generally solely accessible in Germany with a ready interval.
The time period “HAT” doesn’t actually match right here, as a result of the Raspberry Pi is linked to the {hardware} of the gamepad. The Game HAT comes with a 3.5-inch display screen with a decision of 480×320 pixels and 60 FPS. This ought to simply suffice for traditional video games.
Two small audio system and a connection possibility for headphones are built-in. The standard buttons acquainted from different gamepads are grouped round it. There are additionally two triggers on the highest of the housing. However, these are fairly delicate — so that you shouldn’t play fairly so wildly with a purpose to preserve the sport enjoyable for so long as attainable.
It may be very straightforward to arrange. A battery is required to energy your complete system to be able to play anytime and wherever. You can discover the specs for buying the exterior energy supply within the product description and within the venture wiki.
The producer states that as much as two hours of battery life are attainable. However, that is very optimistic. In apply and when actively enjoying a recreation, the enjoying time is extra prone to be hour. However, this doesn’t detract from the enjoyable with the extension, which prices round $45.
Machine studying with the Pi

For machine studying, many samples should first be taken — for instance, for picture recognition. This add-on offers numerous interfaces, however requires strong familiarisation.
IDG
Fascinating tasks are attainable with the Braincraft HAT. However, you additionally should be keen to familiarize your self with the advanced material. The extension isn’t for a “quick project” at a weekend.
The concept behind the add-on is to supply (even skilled customers) a approach to create “brains” for machine studying in all kinds of areas. Professionals additionally like to speak about edge computing on this context.
The “eyes” and different senses nonetheless should be added to the mixture of HAT and circuit board. But because of the versatile connection choices, that is fairly straightforward to do. The Braincraft HAT has a 240×240 TFT IPS display screen to output suggestions from the system, slots for digicam connection cables for picture processing tasks, a five-way joystick, left and proper microphones, stereo headphone output, stereo 1W speaker output, and three RGB dotstar LEDs. A Stemma QT connection permits the connection of thermal sensors. Optionally, you may also set up a fan on the underside, which then retains the board at a cushty temperature for computing-intensive tasks.
For $40, you get a really strong foundation to your tasks. The producer reveals the versatile potentialities in a sequence of movies on the product web page.
Display: ‘Let there be touch’
Input immediately on the display screen? That’s no drawback both. The resistive 3.5-inch show from Waveshare is an actual HAT, which you merely connect to the GPIO bar as standard. The scope of supply additionally contains the matching stylus. The drivers allow problem-free operation underneath Ubuntu Mate or Retropie. For round $40, you’ll be able to add this straightforward enter choice to the Raspberry.
A touch display with a resolution of 800×480 pixels is out there from the identical producer, which is considerably bigger at 5 inches and capacitive (i.e. reacts to easy contact with out strain). This transforms the Pi right into a small pill. The drivers work excellently. As with different tablets, you’ll be able to management the brightness of the display screen immediately on the desktop.
However, this show isn’t a direct HAT: Instead, you join the board by way of a digicam bar and cable. It wouldn’t have made a lot sense the opposite means spherical, because the display screen is bigger than the board itself. The benefit of this design is that the GPIO pins stay accessible and accessible.
And when you don’t wish to design your personal housing with a 3D printer, you will discover an entire vary of housings in electronics shops, a few of which even have a stand to construct a sort of kiosk system.
The road worth for the bigger show is round $50.
Essential HATs for hobbyists

Quite a lot of energy, however at a worth: With this HAT you may give the Raspberry Pi an exterior energy provide with a big capability.
PiJuice
One of the challenges for all outside tasks is supplying the pc with energy. This is as a result of there’s not all the time an influence socket close to the place of use. You can discover a complete vary of circuit boards that may provide the Raspi with energy independently within the well-known electrical outlets underneath the key phrase “UPS.” These are sometimes battery packs into which you solely must insert typical rechargeable batteries. Waveshare, for instance, has the UPS HAT on provide.
The Pi Juice is costlier. For $50 upwards, you get a battery with a capability of 1820 mAh. Performance has its worth. Longer supply occasions are additionally to be anticipated. The circuit board features a Real Time Clock so that point controls and time stamps stay correct.
Do you will have a community change that may provide energy to units linked by way of Ethernet cable? Then the official PoE+ HAT is an efficient selection for supplying the minicomputer with energy by way of the Ethernet cable. The board can deal with enter voltages from 37 to 57V after which provides a relentless 5V to the board. An built-in fan permits the upper temperature on the interface to dissipate. Before shopping for, nonetheless, you need to test the voltage and due to this fact the facility equipped by the community change. If that is appropriate, the $20 are a smart funding for a lot of work conditions.

If you will have a community change that can be utilized as an influence provide, this HAT is the fitting counterpart.
IDG
Getting began with robotics
Admittedly: At round $60 for a pure starter package, the Trilobot from Pimoroni isn’t any cut price. However, it varieties the premise for coming into the fascinating world of robotics. This is ensured by the intensive software program library which, as standard from the producer, is effectively documented.
What else do it’s essential purchase to benefit from the full enjoyable? Of course, you want a Raspberry Pi with the SD card as a foundation. As that is the bottom for a cellular robotic, additionally, you will want an influence provide that’s impartial of location. The glorious directions present you connect the battery pack. You ought to positively seek the advice of these earlier than buying extra elements. A Raspberry Pi v2 camera can also be shortly added to the purchasing record to be able to additionally “see” from the robotic’s perspective.
And what do you get to your cash? Well, on this case too, “HAT” is moderately deceptive, since you really set up the Raspberry Pi 4 within the building. This contains a circuit board on which there are two electrical motors that propel the wheels, that are harking back to a lunar automobile. To keep away from collisions, the package has ultrasonic distance sensors. And to make driving the robotic look actually cool, RGB LEDs on the underside present atmospheric lighting. The package is in fact additionally nice for all staff in academic establishments to show the fundamentals of robotics.
Take observe before you purchase!
There is a variety of HATs for the Raspberry household. Before shopping for, it’s best to contemplate a couple of fundamental necessities.
Firstly, the obvious: If you will have given the Raspberry a housing, you’ll in all probability should make a brand new funding. This is as a result of the add-on will naturally improve the general peak and the {hardware} will now not match into the housing.
Then test the compatibility: The producer’s product description ought to explicitly point out the Raspberry mannequin you’re utilizing. The enlargement board should match each mechanically and on the connection facet.
The extension should even be controllable. Software is due to this fact required with a purpose to profit from it. Find out upfront how that is carried out. In most circumstances, it is possible for you to to entry the parts and pins by way of Python (libraries). Check whether or not the producer offers tutorials or pattern functions on their web site.