Language Selection

English French German Italian Portuguese Spanish

This Raspberry Pi add-on lets you control Lego robots

Filed under
Hardware

Raspberry Pi is releasing an add-on that will let you use many of its tiny, inexpensive computers to control certain Lego robot motors and sensors. The add-on is called the Build HAT (HAT stands for Hardware Attached on Top), and slotting it onto a Raspberry Pi’s GPIO pins will give you four ports that you can use to control Lego Education’s SPIKE components, which the HAT and its software are specially designed for. It’ll also connect to most other parts that use an LPF2 connector, including the components from the Lego Mindstorms robot inventor kit.

There’s also a Python library (basically a set of commands you can use to control the robot) available to go alongside the HAT, which will let you write software to control the robot parts you’ve got hooked up. Programing Lego’s SPIKE components with Python isn’t a unique selling feature from Raspberry Pi — the SPIKE kit comes with a hub that supports connecting six devices (compared to the Build HAT’s four) that can also store and run Python programs.

Read more

LEGO Technic meets Raspberry Pi with the Build HAT

  • LEGO Technic meets Raspberry Pi with the Build HAT

    A new official Raspberry Pi expansion board is introduced today. The Built HAT provides four connectors for LEGO Technic motors and sensors from the SPIKE Portfolio, as well as an 8V DC jack to power both the Raspberry Pi and LEGO motors, sensors, LED matrix, and more.

    Designed in collaboration with LEGO Education, the Build HAT features the Raspberry Pi RP2040 dual-core ARM Cortex M0+ MCU for I/O control, and will enable more complex models benefiting from more powerful Broadcom BCM2xxx processors, as well as a Python library for easy programming.

Now you can plug Lego into your Raspberry Pi

  • Now you can plug Lego into your Raspberry Pi | ZDNet

    Raspberry Pi has announced a new collaboration with Lego, which will enable users to integrate a whole new range of sensors, motors and other special pieces into their creations.

    The project has been two years in the making, according to Raspberry Pi's program manager Richard Hayler, and takes the form of a $25 add-on board called the Build HAT (an acronym for "Hardware Attached on Top") that can connect to the computer on one end while attaching to Lego components on the other.

New Part Day: Raspberry Pi LEGO HAT

  • New Part Day: Raspberry Pi LEGO HAT

    The Raspberry Pi Foundation have been busy little bees for the last couple of years producing their own silicon, new boards and now in collaboration with the LEGO Education team a new HAT to connect to the LEGO SPIKE education platform. This new HAT board will work with every Raspberry Pi board with a 40-pin GPIO header.

A Raspberry Pi HAT for the Lego Technic fan

  • A Raspberry Pi HAT for the Lego Technic fan

    Using a Pi to process sensor readings and manage motors has been a thing since the inception of the computer, and users (including ourselves) have long made use of the General Purpose Input / Output (GPIO) pins that have been a feature of the hardware for all manner of projects.

    However, not all users are entirely happy with breadboards and jumpers. Lego, familiar to many a builder thanks to lines such as its Mindstorms range, recently introduced the Education SPIKE Prime set, aimed at the classroom.

    The set contains a wide variety of components, including motors and sensors, controllable via a rechargeable hub and tablet application. It is the latter elements that a Build HAT-equipped Pi can replace: simply plug those motor and sensor components into the Pi hardware instead.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

More in Tux Machines

PipeWire 0.3.44

This is a bugfix release that is API and ABI compatible with previous 0.3.x releases. Read more

Sway 1.7 improves screen capture and virtual reality in Wayland

sway 1.7 is available to continue the evolution of this Wayland composer and window manager based on or inspired by the popular i3. Despite being “just” a window manager, Sway is one of the most interesting developments when it comes to Wayland composers, and not only that, but is considered by many to be the best implementation of the protocol out there, even by comparison. on top of the GNOME Mutter. On the other hand, it has been one of the brave few to openly say “no” to NVIDIA and EGLStreams in order to narrowly defend the standards agreed upon by almost everyone around Wayland and GBM. You know, the word “standard” gives NVIDIA hives, and the exact reasons are known only to the corporation’s executives. The first notable new feature of Sway 1.7 is the remove option --my-next-gpu-wont-be-nvidia, so the ones that users will have to use from now on --unsupported-gpu instead. It’s important to note that, at least officially, the official NVIDIA driver is still not supported (Nouveau should be fine), but we assume that this is a first step towards integrating the particular GBM implementation powered by the GPU manufacturer. Read more

Mabox Linux 21.11 Herbolth released

After almost half year of development, the next major Mabox Linux 21.11 release codename Herbolth is ready for download. Read more

today's howtos

  • Hashing out the hash command on Linux | Network World

    When you type “hash” on a Linux system, you could get one of two very different responses depending on the shell you are using. If you are using bash or a related shell such as ksh, you should see a list of the commands that you have used since your terminal session began, sometimes with a count of how many times each command was used. This can be more useful than using the history command if you just want to see your very recent command activity, but the hash command is not a single executable. Instead, it relies on your shell.

  • Learn About Blender and Maybe Get a Free Book – What’s Not to Like?

    The event is Blender 101, an online event from the All Things Open folks, which will feature Jason van Gumster, author of Blender for Dummies, which is popular enough to now be in its fourth edition. Better yet, some copies of the book will be given away “to randomly chosen attendees.”

  • Why must you use ./ to run your Ubuntu scripts? The meaning of Linux's dot slash explained. - Coffee Talk: Java, News, Stories and Opinions

    When you run your own executable command or shell script on Linux, you must prepend ./ to the Unix command. But why? Why must you use a dot slash to run commands in Unix? You don’t have to do that in Windows with a batch file.

  • What Is Doas and How to Install It

    Doas is a privilege escalation program similar to sudo. It is designed to be as lightweight and simple as possible. It is the default privilege escalation program for OpenBSD but also available for other UNIX-like operating systems through the OpenDoas program.

  • Shell Aliases Every Linux User Needs - Invidious

    One of the most common questions I get from new-to-Linux users is, "How can I become a power user?" Well, learning the terminal and the terminal commands is the best thing you can do. And big part of becoming more proficient at the command line is creating your own Bash aliases. So today, I'm taking a fresh install of Ubuntu and adding aliases to it's bashrc. These are aliases that I think most, if not all, Ubuntu users would find helpful.