Skip to content

Latest commit

 

History

History
78 lines (47 loc) · 3.23 KB

preparing-build-hat.adoc

File metadata and controls

78 lines (47 loc) · 3.23 KB

Prepare your Build HAT

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.

fitting build hat

Access the GPIO Pins

If you want to access the GPIO pins of the Raspberry Pi, you can add an optional tall header and use 15 mm spacers.

tall headers

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

Set up your Raspberry Pi

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:

setting up

Use your Raspberry Pi headless

If you are running your Raspberry Pi headless and using raspi-config, select "Interface Options" from the first menu.

raspi config 1

Then "P6 Serial Port".

raspi config 2

Disable the serial console:

raspi config 3

And enable the serial port hardware.

raspi config 4

The final settings should look like this.

raspi config 5

You will need to reboot at this point if you have made any changes.

Power the Build HAT

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.

powering build hat
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.