Raspberry Pi
Raspberry Pi
1
computing then led to computing platforms being developed that were
more user-friendly. Users were less inclined to play around with their
computers, and these computers could be used without any knowledge of
programming. The aim of Raspberry Pi was to provide learners with a
low-cost device that was designed to be tinkered with, in order to reignite
the hobbyist culture and the associated development of key computer
skills.
Raspberry Pi has almost unlimited uses, and it is this versatility that has
led to its extraordinary success, far beyond the initial scope of the device.
While at first it was designed to be used as an educational device, it has
rapidly become one of the bestselling computers of all time. So what can
you do with a Raspberry Pi? The answer is pretty much whatever you
want. It can be used as a desktop PC, a media server, an ad-blocker for
your network, the brains of a robot, the monitoring system for a weather
station… the list goes on and on.
2
Raspberry Pi versus other computers
Before you get started learning how to use your Raspberry Pi, I’ll talk you
through how it compares to a more traditional computer.
Firstly, Raspberry Pi uses a smaller and slower processor and has less
memory than you might find in a standard consumer computer. This
means some software will run a little more slowly on Raspberry Pi, and it
also means that fewer applications can be run simultaneously. However,
the smaller chip requires less cooling and less power. This means you can
run a Raspberry Pi using a phone charger, and there is no need to have
bulky and noisy fans running constantly.
Just like a normal desktop computer, Raspberry Pi has ports for plugging
in speakers, monitors, keyboards, mice, and any other USB devices.
3
However, there are some additional ways of connecting hardware that
you may not have seen before.
There’s a special port for connecting cameras, and another for connecting
LCD displays. On top of all this, there is the GPIO (General-Purpose
Input/Output) header, which consists of 40 pins and allows you to connect
electronic components such as light-emitting diodes (LEDs), buttons,
sensors, and motors, as well as specialised devices known as HATs.
4
Lastly, the operating system for Raspberry Pi is different to other
operating systems you may have used in the past, such as Windows and
macOS. The recommended operating system for Raspberry Pi is called
Raspberry Pi OS (formerly known as Raspbian). This is a version of a
popular operating system known as Linux. While not many people use
Linux on their home computers, it is the major operating system used on
the servers that drive the internet and the World Wide Web. Linux is also
the base operating system on all Android phones and Chromebooks and
many smart devices you may use, such as televisions.
In order for your Raspberry Pi to run, you’ll need to load the Raspberry Pi
Operating System (formerly known as Raspbian) onto an SD card. There
are other operating systems you can use, but we’ll be using the full version
of the Raspberry Pi OS on this course.
If you bought a Raspberry Pi kit, it may have already come with a simple
operating system installer called NOOBS, loaded onto an SD card. If you
choose to use that card to install Raspberry Pi OS, you can skip the rest of
this step; I’ll explain how to install Raspberry Pi OS using NOOBS later.
5
You will need to have a way to connect this card to your desktop
computer or laptop.
This process will overwrite all data on the SD card, so back up any
important files first. Most operating systems have their own disk
formatting tool, but we recommend using the SD Association’s Formatter
if you are using Windows or a Mac.
6
• Click on the link for the Raspberry Pi Imager that matches your
operating system
7
Using the Raspberry Pi Imager
When you launch the installer, your operating system may try to block
you from running it. For example, Windows may give the following
message:
8
• If you get this, click on More info and then Run anyway
• Insert your SD card into the computer’s SD card slot
Note: In this course, you will want to explore a wide range of software, so
you will choose the full version of Raspberry Pi OS and not the
recommended version that appears at the top of the list.
9
• In the next dialog box, pick Raspberry Pi OS Full
10
• Select the SD card you would like to install it on; different platforms
will display the drives in different ways—Mac OS, for example, will
show you all drives, including your main operating system
Note: Make sure you are selecting the correct drive. The drive’s memory
capacity can be a useful indicator of which drive you are selecting.
11
Once you have selected both the OS and the SD card, a
new WRITE button will appear.
12
• Click the WRITE button
• Wait for the Raspberry Pi Imager to finish writing
• Once you get the following message, your SD card has been safely
ejected and you can remove it from the computer
13
Your SD card now has Raspberry Pi OS fully loaded and is ready to go into
your Raspberry Pi’s SD card slot.
Before you boot up your Raspberry Pi, I’d like to take you on a little tour
of it. In this step you will learn about the main components on a
Raspberry Pi computer.
This course uses the latest Raspberry Pi 4 model. If you are using an older
model, you will see some differences, but most instructions will still work
the same.
14
What’s on the board?
Get out your Raspberry Pi computer and take a look at it. Find the
Raspberry logo and make sure it is the right way up, as shown on the
diagram.
The green board is a printed circuit board. You’ll see various large and
small components on it. If you look closely, you’ll see that the components
are connected by conductive lines that are printed onto the board. You’ll
also see some helpful labels that identify some of the components you can
see.
15
• RAM (memory): To the right of the processor you’ll see a large black
rectangle, which is the RAM, the computer’s working memory
Your Raspberry Pi 4 could have come with 2GB, 4GB, or 8GB of RAM,
depending on the model. If you will be using your Raspberry Pi as a
desktop computer, it is worth choosing the largest amount of RAM that
you can afford.
• Display and camera: There are also two connection ports on top of
the board; if you look closely you’ll see that one is labelled DISPLAY
and can be used for connecting a display such as a touchscreen, and
the other is labelled CAMERA and can be used to connect an official
Raspberry Pi camera
Around the edge of the board you’ll find lots more ports to connect
additional components:
16
• GPIO pins: At the top of the board, you’ll find two rows of General-
Purpose Input/Output (GPIO) pins, which are used to connect and
interact with additional electronics components such as buttons and
LEDs; I’ll explain more about this later in the course
• Ethernet port: Along the right-hand side, you’ll find an Ethernet
port for optionally connecting to a wired network
• USB ports: There are four USB ports for connecting a variety of
devices such as keyboards, cameras, and external storage drives; two
of these (the blue ones) are faster USB 3 ports and the other two are
USB 2 ports
• USB C power: Along the bottom, you’ll find the USB-C power
connector; a Raspberry Pi doesn’t have an on/off switch, but turns
on when you connect the power and off when you shut it down
17
• Micro HDMI ports: To the right of the power connector, there are
two micro HDMI ports for connecting screens
You’ll need an adaptor if you have a regular HDMI cable. If your HDMI
monitor has a speaker, you’ll also be able to play sound through the
monitor.
• 3.5mm audio jack: The audio jack is helpful if your monitor doesn’t
have a speaker
• microSD card slot: Turn your Raspberry Pi board upside down and
you’ll see the SD card slot where you can place the SD card that you
prepared in the previous step
18
The SD card stores the Raspberry Pi OS and your programs and files. The
data remains on the SD card when you turn your Raspberry Pi off and will
still be there when you turn it on again.
In the next section, you will look at additional components that you will
need to make a fully functioning desktop computer and it will be time to
get started connecting everything together.
In this section, you’ll look at the other components you need to get
started, bring everything together, and set up your Raspberry Pi
hardware.
If you have the official Raspberry Pi 4 Desktop Kit, most of these items
will be included.
19
You’ll need:
20
• A 15W USB-C power supply; we recommend the official Raspberry
Pi USB-C Power Supply
It’s also useful to have a case to protect your Raspberry Pi, but it’s not
necessary.
Connecting everything up
Now it’s time to connect everything to your Raspberry Pi. It’s important
to leave the power supply until last, to avoid damaging any components.
21
Take the SD card that you prepared with Raspberry Pi Imager, or one
preinstalled with NOOBS, and insert it into the microSD card slot on the
underside of your Raspberry Pi. The metal connector pins need to be
facing upwards. The SD card has a lip on the bottom that you can use to
remove the card if you need to update or swap it.
Your SD card may have arrived inside a larger adapter; you can slide the
smaller card out using the lip.
22
Connect the mouse to a USB port on your Raspberry Pi; it doesn’t matter
which port you use. Connect the keyboard in the same way.
Plug in your HDMI monitor and turn it on. Look at the shape of the
HDMI ports on your Raspberry Pi; they have a longer flat side on top. The
connector on the cable is the same shape, and you need to make sure you
have it the correct way up.
Use a cable to connect the monitor to the first of Raspberry Pi 4’s HDMI
ports, the one labelled HDMI0 on the board. Don’t expect anything to
happen yet, as your Raspberry Pi isn’t running. It’s important to have the
monitor turned on and connected before you power on your Raspberry Pi,
so that it can detect the monitor.
23
If the HDMI monitor you are using has speakers, sound will play through
them. If you’re using separate speakers or headphones, connect them via a
USB port or the 3.5mm audio jack.
Finally, plug the USB power supply into a socket and connect it to your
Raspberry Pi’s USB-C power port. Your Raspberry Pi doesn’t have a power
switch and will turn on as soon as you connect it to a power outlet.
24
You should see a red LED light up on your Raspberry Pi, which indicates
that it is connected to power. As it starts up (this is also called ‘booting’),
you will see raspberries appear in the top left-hand corner of your screen.
If you are using an SD card preinstalled with NOOBS, you will be taken
through the easy installer when you power up your Raspberry Pi for the
first time.
25
Installation process for NOOBS (if you didn’t use Raspberry Pi Imager)
After you power up your Raspberry Pi with an SD card with NOOBS, you
will be asked to choose which operating system you wish to install. You
will need to check the box beside Raspberry Pi OS Full
[RECOMMENDED] and then click on Install.
A dialog box will appear to check that you are happy for the SD card to be
erased and Raspberry Pi OS installed, so click on Yes and the install will
begin.
This process can take quite a few minutes, but you can leave your
Raspberry Pi unattended while Raspberry Pi OS is installed.
26
Once Raspberry Pi OS has been installed, a dialog box will appear to tell
you that the OS has been installed. Click on OK and your Raspberry Pi
will restart.
Set-up
27
You can now set up your locales. Choose your Country, Language,
and Timezone. You can optionally choose to Use English
language and Use US keyboard, regardless of the country you choose.
28
Click on Next when you are happy with your choices.
29
Sometimes, depending on your monitor or TV, you can get a black border
around the edge of your desktop. If this is the case, then on the next dialog
box, you should check the box, and then click Next. If not, then just
click Next.
30
If you have a WiFi network available, the next step will allow you to
connect to it. Choose your WiFi network from the displayed list and
click Next.
31
In the next dialog box, enter the password for your WiFi network.
32
Once you are connected to a network, you will be given the option to
update your Raspberry Pi OS install.
33
Before you can update the software on your Raspberry Pi, you need to
make sure the time is correct. Wait until the time display in the top right
of the screen is correct before proceeding with an update.
Click on Next when the time is correct; your operating system will then
collect and install updates.
34
When the update is finished, click on OK and then click on Restart.
35
You Raspberry Pi operating system is now ready to be used. In the next
step, you’ll take a tour of the Raspberry Pi Desktop, the graphical user
interface for Raspberry Pi OS.
36
Digital making
So far in this course, you have learnt how to use your Raspberry Pi as a
desktop computer. Now you’re going to find out how to use your
Raspberry Pi for digital making. Over the rest of this week, you’ll just get
a taster of what’s possible and learn about other Raspberry Pi Foundation
FutureLearn courses that cover digital making skills in more detail.
This laser tripwire is a fun example of digital making with a Raspberry Pi.
It sounds an alarm when an intruder breaks a laser beam.
If you develop your digital making skills, you’ll be able to make cool
projects like this.
Raspberry Pi has lots of features that make it particularly good for digital
making:
37
• It supports lots of programming languages and editors for creating
code, including Scratch and Python
• It has an amazing community and lots of educational resources are
available
• It has GPIO pins that allow you to program and interact with
electronic components
• There are lots of add-ons available that add more features to your
Raspberry Pi, such as the Sense HAT, which adds sensors, buttons,
and an LED display
38
Example digital making projects
A weather station kit has also been developed for Raspberry Pi, and you
can build your own Raspberry Pi weather station using readily available
components.
39
Digital making opens up lots of possibilities
40
• Writing a computer game or app
• Making a home security and monitoring system
• Using sensors to record how much energy you use and plotting
graphs so that you can see changes
• Making a costume prop such as a time machine with light and sound
effects
• Trying to make a useful gadget and ending up with a useless gadget
that makes people laugh
What would you like to make with your Raspberry Pi? What skills will
you need to learn? Share your ideas in the comments section.
41