Connect Raspberry Pi computing power with LEGO® Technic™ motors and sensors.
The Raspberry Pi Build HAT fits any Raspberry Pi with a 40-pin GPIO header and lets you control up to four LEGO® Technic™ motors and sensors from the LEGO® Education SPIKE™ Portfolio, a flexible system with unlimited possibilities.
Build robust, intelligent machines that combine Raspberry Pi computing power with LEGO components.
Projects that make sense
The LEGO Education SPIKE Portfolio features a wide variety of sensors and motors that you can control with the Build HAT Python library on your Raspberry Pi. Explore the world around you with sensors to detect distance, force, and colour, and choose from a variety of motor sizes to suit any build. The Build HAT also supports motors and sensors from the LEGO® MINDSTORMS® Robot Inventor kit, as well as most other LEGO devices that use an LPF2 connector.
The power of the Build HAT
With the Raspberry Pi Build HAT Power Supply, available separately, the Build HAT can power your Raspberry Pi (except Raspberry Pi 400) and all connected devices.
Build with Raspberry Pi and the LEGO® bricks you love
The new, specially designed LEGO Maker Plate is the first LEGO element ever designed to connect to something that isn’t another piece of LEGO. It allows you to attach your Raspberry Pi to your LEGO creations, and it's available with the SPIKE Prime Expansion Set (45681).
In the classroom
Easily integrate LEGO Education SPIKE Prime with Raspberry Pi computers. Supported by guided projects from the Raspberry Pi Foundation designed for secondary school students, the Raspberry Pi Build HAT delivers a unique hands-on learning experience that's accessible, engaging, and confidence-building for all students.