Build my Raspberry Pi
Building programs really requires that you have access to a computer that you can play around with. To maximise your experience, we have designed things to work with a Raspberry Pi single board computer.
Using the Raspberry Pi Multi-tool will give you several advantages:
- You can play around with Unix without risking your day-to-day computer (which you can switch to Linux once you are more confident)
- The Raspberry Pi include pins for General Purpose Input / Output (GPIO) though a 40-pin header on the board:
We can use this to interact with electronics and see how we can control things in the real world using code.
- Playing with a Raspberry Pi is just more fun 😁.
We will first look at the hardware you need, and where you can get it, and then we can look at the software you need and how you can install that using the Terminal on your Pi.
Let’s get going!
1. Getting the Hardware
There are many hardware and component choices you can make building your Raspberry Pi multi-tool. Our selection is a self-contained unit using off-the-shelf parts that can run off a battery. Depending on your needs, you may forgo some choices, like the battery or the display.
Suggested components
This is the list of components we used to build our multi-tool with links to Australian retailers where they can be purchased.
- 1 x Raspberry Pi 4 Model B 8GB
- 1 x Raspberry Pi 4 Power Supply (Official) - USB-C 5.1V 15.3W (White)
- 1 x MicroSD Memory Card - 32GB Class 10
- 1 x Pi Hut Modular Raspberry Pi 4 Case - Black
- 1 x 3pc Heatsink Kit for Raspberry Pi 4
- 1 x HighPi Pro 5V Cooling Fan
- 1 x Raspberry Pi Keyboard - Red/White
- 1 x Raspberry Pi Mouse - Red/White
- 1 x 10.1inch Capacitive Touch Display
- 1 x 0.5m Micro-HDMI Cable (HDMI Type-A to Type-D)
- 1 x USB Type-C Short Sync & Charge Flat Cable 20cm
- 1 x ModMyPi Modular RPi 2 Case - VESA Splash (75/100mm)
- 1 x USB C Power Delivery Battery Bank 20000mAh
2. Building your multi-tool
Check you have all the components listed above, or equivalent alternatives.
Here is what the components above look like:
Prepare the Raspberry Pi board
To help prevent the Raspberry Pi from overheating, it is a good idea to use something called a heat sink on the areas that are most likely to get hot when in use.
Locate the Raspberry Pi and 3 piece heatsink kit. Remove the Pi from its packaging.
Peel the backing off the heat sinks and stick them to the Pi.
Secure the Raspberry Pi into the Case
Now we need to put the board inside the case so that we can access the ports, and attach the board to the screen in the next step.
Note: You will need a small Phillips Head screwdriver for some steps in this part.
Open the black Raspberry Pi case (and put the screws and feet aside for the moment).
To keep the Raspberry Pi from moving around, use the screwdriver to screw the four short screws through the yellow circles on the board to secure the Pi to the case:
Install the cooling fan on Case Lid
The case we have suggested allows for you to attach a cooling fan. Similar to the heat sinks mentioned above, this will help prevent the board from overheating and running slower.
Peel the plastic protective layer off the lid of the case, and place it on your work space upside down (as shown below). Take the fan out of its packaging, as well as the four included screws.
Place the fan on the case mounts with the label facing up and use two of the screws to secure it in place using the two mounting holes shown above.
To power the cooling fan, you will need to connect the fan to the GPIO pins on the Pi. (See image at top of this document for pin locations)
Put the case lid and secured fan next to the base part of the case, and connect the 3 wires to the following GPIO pins:
- Red wire to pin 4 (5V)
- Black wire to pin 6 (Ground)
- Blue wire to pin 8 (GPIO14)
You should now have something that looks similar to this:
Lastly, place the lid on the case, ready for the next step:
Attach VESA Mount to Case
This next step will allow you to attach your Raspberry Pi’s Case to the back of the screen which will allow it to be more portable.
Open the VESA mount packaging and peel the protective layer off the VESA mount (as shown below).
Keep the nylon screws/spaces aside for the next part.
Secure the VESA mount to the case using the four long screws that were included in the packaging for the Case. This will also keep the case lid securely attached.
Insert the Micro SD Card
Due to the position of the Micro SD card slot on the Raspberry Pi, it is easier to insert the Micro SD card at this point, while it is more easily accessed.
To insert the Micro SD card into the Raspberry Pi:
- Remove the Micro SD card form the SD card adapter.
- Position the Pi with the VESA mount on top.
- Insert the SD card into the Pi with the label facing up.
3. Connecting the Accessories
To interact with the Raspberry Pi’s Operating System, we will need to connect the Screen, Keyboard, and Mouse to the Pi in a somewhat specific way. These steps below will guide you through the correct set up.
Attach the Display Screen with VESA mount
Take the screen out of its box, and grab the nylon screws/spaces from the VESA mount that we put aside earlier:
To attach the Raspberry Pi to the display screen:
- Face the top of the screen towards yourself
- Place two of the spacers on the VESA mount holes on the screen closets to the top.
- Place the Pi on top of the spacers.
- Place the other spaces on the nylon screws
- Secure the Pi to the screen using the two nylon screws and four spacers. You can use your fingers to tighten the screws.
Here are some images to help you follow along:
Next, locate the Micro HDMI to HDMI and 20 cm USB-C to USB-A cables (as shown below):
For the 20 cm USB-C to USB-A cable:
- Connect the USB-C end to the Screen’s “Display & Touch” port.
- Connect the USB-A end to one of the USB-A ports on the end of the Pi.
For the Micro HDMI to HDMI cable:
- Connect the Micro HDMI to the Pi’s first HDMI port (closest to the power USB-C port).
- Connect the full-size HDMI to the Screen’s “HDMI” port.
The suggested screen comes with a handy little stand so that you can set it up easily on a table or desk.
Remove the stand from it’s packaging and bend into the shape shown in the image below:
Place the display screen on the stand.
Note: It can be a challenging to get the screen to sit correctly, so you may need to fiddle with the cables:
Connect the Keyboard and Mouse
To allow you to use the Raspberry Pi and screen in the same way you would use a regular computer/laptop, we need to connect the keyboard and mouse.
Locate your Raspberry Pi Official Keyboard and Raspberry Pi Official Mouse:
Using the cable in the keyboard box, connect the micro USB end to the micro USB port on the keyboard, and the USB-A end to one of the black USB-A ports (USB 2.0) on the Pi.
4. Powering the Multi-tool
There are multiple configurations you can use to power the multi-tool.
Using Mains Power
The easiest way to power the multi-tool is to use the power supply that came with the Pi.
To use mains power:
- Connect the USB-C end to the Pi’s USB-C power port.
- Plug the other end into a power outlet.
Using Battery Power
If you are on the go or want to use the multi-tool in a location without power, you can use a battery/power bank.
To use battery power:
- Locate the longer USB-C to USB-A cable.
- Connect the USB-A end to the power bank.
- Connect the USB-C end to the Pi.
- The power bank will turn on automatically.
5. Finalising the Mutli-tool Setup
Almost done, just a few final touches!
Tidying up
To make the cables a bit neater, you can use the cable ties from the packaging to secure the cables together:
Complete Setup
You should now have a fully constructed Raspberry Pi multi-tool.
To continue the setup process, continue to the next page: Set up my Raspberry Pi for instructions on how to install the operating system and configure the Pi.