Raspberry Pi’s Build HAT lets you control Lego kits and start a robot revolution
Easy as Pi
![](https://dev.stuff.tv/wp-content/uploads/sites/2/2021/10/pi-lego-hat.jpg?w=1080)
Raspberry Pi? Superb! Lego? Fantastic! Put them together and what have you got? A pile of bits that want nothing to do with each other – until now. And that’s because the new Raspberry Pi Build HAT ($25, available this month) connects to your Pi’s GPIO pins and provides ports that make it easy to control motors and sensors found in Lego kits that use an LPF2 connector. Mainly, this is ‘for the kids’, to increase the reach of STEAM learning, through linking a Pi to SPIKE sets and getting stuck into experimentation and rapid prototyping. To that end, the Raspberry Pi Foundation has created learning projects to get students and teachers started. But the Pi folks confirmed to us its new HAT is also compatible with Stuff favourite Mindstorms Robot Inventor. Either way, you get more direct interaction with your Lego than Lego’s own hub provides: the Pi doesn’t need a separate device to control it, and it affords you extra flexibility and scope for adding further sensors to our new metal-and-plastic overlords.