This Raspberry Pi add-on lets you control Lego robots


Raspberry Pi is releasing an add-on that may let you use lots of its tiny, cheap computer systems to control sure Lego robotic motors and sensors. The add-on is named the Build HAT (HAT stands for Hardware Attached on Top), and slotting it onto a Raspberry Pi’s GPIO pins will give you 4 ports that you can use to control Lego Education’s SPIKE components, which the HAT and its software program are specifically designed for. It’ll additionally hook up with most different elements that use an LPF2 connector, together with the parts from the Lego Mindstorms robot inventor kit.

There’s additionally a Python library (mainly a set of instructions you can use to control the robotic) out there to go alongside the HAT, which can let you write software program to control the robotic elements you’ve received attached. Programing Lego’s SPIKE parts with Python isn’t a novel promoting function from Raspberry Pi — the SPIKE package comes with a hub that helps connecting six gadgets (in comparison with the Build HAT’s 4) that may additionally retailer and run Python applications.

However, you’re going to get extra flexibility with a Raspberry Pi. You should program Lego’s hub utilizing a separate pc or iPad, whereas the Build HAT might be connected to its personal pc that you can doubtless plug a keyboard, mouse, and monitor into, relying on which Raspberry Pi you’re utilizing. The SPIKE Hub additionally solely has LPF2 ports (although it has six, in comparison with the Build HAT’s 4), whereas the Pi has GPIO pins that you can use to attach different gadgets, electronics, and sensors. That provides you a ton of flexibility in what you can add to your robots. The Build HAT additionally will let you control your motors and sensors at a decrease stage if that form of factor is your jam.

Raspberry Pis all the time add a enjoyable DIY aesthetic to a undertaking.
Image: Raspberry Pi

Raspberry Pi says that hooking the Build HAT as much as an 8V energy provide with a barrel plug will let it present juice to each the Lego equipment related to it and the Raspberry Pi itself. The firm will promote a particular 48W energy provide to associate with it if you don’t have one which’s succesful.

This is clearly a reasonably area of interest product, however I’m glad it exists. If your child or college students are enjoying round with Lego’s SPIKE robots however need to go deeper into programming and electronics modding, the Build HAT might be a great way to assist them try this with the motors and sensors you have already got. Plus, Raspberry Pi and Lego appear to be an ideal match for one another — each manufacturers have a form of DIY spirit and will make some attention-grabbing tasks in the event that they find yourself doing extra work collectively.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post