{"id":27517,"date":"2025-07-25T16:25:03","date_gmt":"2025-07-25T14:25:03","guid":{"rendered":"https:\/\/monraspberry.com\/?post_type=product&#038;p=27517"},"modified":"2026-10-19T06:04:08","modified_gmt":"2026-10-19T04:04:08","slug":"raspberry-pi-build-hat","status":"publish","type":"product","link":"https:\/\/monraspberry.com\/en\/produit\/raspberry-pi-build-hat\/","title":{"rendered":"Raspberry Pi Build HAT"},"content":{"rendered":"<h2>Raspberry Pi Build HAT: control LEGO Technic motors and sensors in Python<\/h2>\n<p>Designed with LEGO Education, the <strong>Raspberry Pi Build HAT<\/strong> connects up to four LEGO Technic motors and sensors from the SPIKE range to a Raspberry Pi. An onboard RP2040 microcontroller handles the low-level work, and a simple Python library lets you run a motor, read its position or measure a distance in just a few lines. An ideal tool for educational robotics.<\/p>\n<h2>Highlights<\/h2>\n<ul>\n<li><strong>4 LPF2 ports<\/strong> for LEGO Technic SPIKE and MINDSTORMS Robot Inventor motors and sensors, and most elements with an LPF2 connector.<\/li>\n<li><strong>Angular motors with built-in encoder<\/strong> : readable position for precise movements.<\/li>\n<li><strong>Distance, colour and force sensors<\/strong> supported by the library.<\/li>\n<li><strong>Onboard RP2040<\/strong> : the Raspberry Pi keeps its resources for vision, networking or the interface.<\/li>\n<li><strong>A single power supply<\/strong> : with an 8 V supply, the HAT powers both the motors and the Raspberry Pi (except Pi 400 and Pi 500).<\/li>\n<li><strong>Components on the underside<\/strong> : the top stays free for a breadboard or LEGO parts.<\/li>\n<\/ul>\n<h2>Technical specifications<\/h2>\n<div class=\"mr-scroll\">\n<table>\n<thead>\n<tr>\n<th>Features<\/th>\n<th>Official value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ports<\/td>\n<td>4 LPF2 connectors for LEGO Technic motors and sensors<\/td>\n<\/tr>\n<tr>\n<td>Microcontroller<\/td>\n<td>Raspberry Pi RP2040<\/td>\n<\/tr>\n<tr>\n<td>Power supply<\/td>\n<td>8 V DC \u00b110 % (7.2 to 8.5 V according to the datasheet), up to 48 W<\/td>\n<\/tr>\n<tr>\n<td>Power connector<\/td>\n<td>5.5 \u00d7 2.1 mm barrel jack, centre positive<\/td>\n<\/tr>\n<tr>\n<td>Alternative source<\/td>\n<td>7.5 V battery pack<\/td>\n<\/tr>\n<tr>\n<td>GPIO pins used<\/td>\n<td>GPIO 0\/1 (ID EEPROM), GPIO 4 (reset), GPIO 14 and 15 (serial)<\/td>\n<\/tr>\n<tr>\n<td>Dimensions<\/td>\n<td>65 \u00d7 56.5 mm<\/td>\n<\/tr>\n<tr>\n<td>Software<\/td>\n<td>Official buildhat Python library<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Which one should you choose?<\/h2>\n<div class=\"mr-scroll\">\n<table>\n<thead>\n<tr>\n<th>HAT<\/th>\n<th>Purpose<\/th>\n<th>Audience<\/th>\n<th>Power supply<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Build HAT (this product)<\/td>\n<td>LEGO Technic motors and sensors<\/td>\n<td>Educational robotics<\/td>\n<td>External 8 V supply<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/monraspberry.com\/en\/product\/raspberry-pi-sense-hat\/\">Sense HAT<\/a><\/td>\n<td>Environmental and motion sensors, LED matrix<\/td>\n<td>Science, Astro Pi programme<\/td>\n<td>From the Raspberry Pi<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/monraspberry.com\/en\/product\/hat-codec-zero-iqaudio\/\">Codec Zero<\/a><\/td>\n<td>Microphone and speaker<\/td>\n<td>Voice projects<\/td>\n<td>From the Raspberry Pi<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Our advice<\/strong> : if the classroom already has LEGO SPIKE Prime kits, the Build HAT makes them programmable in Python on a Raspberry Pi. To measure and display without motorising anything, the Sense HAT is enough.<\/p>\n<h2>Compatibility and pitfalls to avoid<\/h2>\n<ul>\n<li><strong>Operating system<\/strong> : the official documentation states that the Build HAT is not yet supported by Raspberry Pi OS Trixie. Install or keep Raspberry Pi OS Bookworm.<\/li>\n<li><strong>Serial port<\/strong> : disable the serial console and enable the hardware serial port (Raspberry Pi Configuration, Interfaces tab, or raspi-config), then reboot.<\/li>\n<li><strong>Power supply not included<\/strong> : the motors and the colour and distance sensors require the external 8 V supply. Without it, only the encoders and the force sensor can be read.<\/li>\n<li><strong>Pi 400 and Pi 500<\/strong> : you need a ribbon cable or a <a href=\"https:\/\/monraspberry.com\/en\/product\/dual-gpio-extension-board-for-raspberry-pi-400\/\">GPIO extension board<\/a>, and these computers keep their own USB-C power supply.<\/li>\n<li><strong>GPIO access<\/strong> : 9 mm standoffs for standard mounting; add a tall header and 15 mm standoffs to keep access to the pins.<\/li>\n<li><strong>LEGO kits not included<\/strong> : SPIKE Prime 45678 and expansion set 45681 are sold by LEGO Education resellers.<\/li>\n<\/ul>\n<h2>Recommended accessories<\/h2>\n<ul>\n<li><a href=\"https:\/\/monraspberry.com\/en\/product\/raspberry-pi-4-model-b-4-gb\/\">The Raspberry Pi 4 Model B 4 GB<\/a> : a safe choice in the classroom, powered directly by the Build HAT.<\/li>\n<li>Camera Module 3: add vision to your robot, the camera can be used at the same time as the Build HAT.<\/li>\n<li>A SanDisk Ultra microSD card to install Raspberry Pi OS Bookworm.<\/li>\n<\/ul>\n<h2>Uses and projects<\/h2>\n<p>Remote-controlled buggy, robotic arm, colour-based sorting machine, data plotter: the Build HAT bridges building and coding. It fits perfectly into the school projects described in our article on the Raspberry Pi at school. Schools: discover our <a href=\"https:\/\/monraspberry.com\/en\/offers-for-leducation\/\">offres pour l&#8217;\u00e9ducation<\/a>. The Build HAT also works on a Raspberry Pi 5.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Which power supply for the Build HAT?<\/h3>\n<p>An 8 V DC \u00b110 % supply rated for 48 W, with a 5.5 \u00d7 2.1 mm centre-positive plug, such as the official Build HAT power supply sold separately. A 7.5 V battery pack also works.<\/p>\n<h3>Does the Build HAT work with Raspberry Pi OS Trixie?<\/h3>\n<p>Not yet, according to the official documentation: use Raspberry Pi OS Bookworm.<\/p>\n<h3>Which LEGO elements are compatible?<\/h3>\n<p>LEGO Technic motors and sensors from the SPIKE range, those from the MINDSTORMS Robot Inventor kit and most elements with an LPF2 connector.<\/p>\n<h3>Do I still need to plug in the Raspberry Pi power supply?<\/h3>\n<p>No, the Build HAT powers the Raspberry Pi through the GPIO, except on the Pi 400 and Pi 500, which keep their own power supply.<\/p>\n<h3>Is it compatible with the Raspberry Pi 5?<\/h3>\n<p>Yes, it fits any Raspberry Pi with a 40-pin GPIO, including the Pi 5 and Pi Zero.<\/p>\n<h3>How do I program it?<\/h3>\n<p>With the official buildhat Python library, after enabling the hardware serial port.<\/p>\n<p><strong>Order your Raspberry Pi Build HAT on monraspberry.com<\/strong> : official, tested product, stock based in France, shipping within 24\/48 h after receipt of payment, free pickup point delivery on orders from \u20ac200, returns possible within 14 days with return authorization, and payment by Visa, Mastercard, PayPal, Apple Pay or Google Pay.<\/p>","protected":false},"excerpt":{"rendered":"<ul>\n<li>Program the LEGO Technic motors and sensors from your SPIKE kits in Python.<\/li>\n<li>4 LPF2 ports, RP2040 microcontroller, 8 V DC power via 2.1 mm barrel jack.<\/li>\n<li>For any Raspberry Pi with a 40-pin GPIO, Pi 400 with an extension.<\/li>\n<\/ul>","protected":false},"featured_media":27553,"template":"","meta":[],"product_brand":[393],"product_cat":[29,24,19],"product_tag":[],"class_list":["post-27517","product","type-product","status-publish","has-post-thumbnail","product_brand-raspberry-pi","product_cat-hats-raspberry-pi-3-pi-2","product_cat-hats-raspberry-pi-4","product_cat-hats-raspberry-pi-5","first","outofstock","taxable","shipping-taxable","purchasable","product-type-simple","add-to-wishlist-after_add_to_cart"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product\/27517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/types\/product"}],"version-history":[{"count":0,"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product\/27517\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/media\/27553"}],"wp:attachment":[{"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/media?parent=27517"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product_brand?post=27517"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product_cat?post=27517"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/monraspberry.com\/en\/wp-json\/wp\/v2\/product_tag?post=27517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}