Note
|
Before starting to work with your Raspberry Pi Build HAT you should set up your Raspberry Pi, install the latest version of the operating system using Raspberry Pi Imager. |
Attach 9mm spacers to the bottom of the board. Seat the Raspberry Pi Build HAT onto your Raspberry Pi. Make sure you put it on the right way up. Unlike other HATs, all the components are on the bottom, leaving room for a breadboard or LEGO® elements on top.
If you want to access the GPIO pins of the Raspberry Pi, you can add an optional tall header and use 15 mm spacers.
The following pins are used by the Build HAT itself and you should not connect anything to them.
GPIO | Use | Status |
---|---|---|
GPIO0/1 |
ID prom |
|
GPIO4 |
Reset |
|
GPIO14 |
Tx |
|
GPIO15 |
Rx |
|
GPIO16 |
RTS |
unused |
GPIO17 |
CTS |
unused |
Once the Raspberry Pi has booted, open the Raspberry Pi Configuration tool by clicking on the Raspberry Menu button and then selecting "Preferences" and then "Raspberry Pi Configuration".
Click on the "interfaces" tab and adjust the Serial settings as shown below:
If you are running your Raspberry Pi headless and using raspi-config
, select "Interface Options" from the first menu.
Then "P6 Serial Port".
Disable the serial console:
And enable the serial port hardware.
The final settings should look like this.
You will need to reboot at this point if you have made any changes.
Connect an external power supply — the official Raspberry Pi Build HAT power supply is recommended — however any reliable +8V±10% power supply capable of supplying 48W via a DC 5521 centre positive barrel connector (5.5mm × 2.1mm × 11mm) will power the Build HAT. You don’t need to connect an additional USB power supply to the Raspberry Pi as well, unless you are using a Raspberry Pi 400.
Note
|
The Build HAT can not power the Raspberry Pi 400 as it does not support being powered via the GPIO headers. |
Note
|
The LEGO® Technic™ motors are very powerful; so to drive them you’ll need an external 8V power supply. If you want to read from motor encoders and the SPIKE™ force sensor, you can power your Raspberry Pi and Build HAT the usual way, via your Raspberry Pi’s USB power socket. The SPIKE™ colour and distance sensors, like the motors, require an external power supply. |
You have the choice to use Build HAT with Python or .NET.