Uni-Sine
Computer ScienceCourses

Raspberry Pi's: an interactive beginner's course

Raspberry Pi's is an interactive Raspberry Pi course that takes you from unboxing a Raspberry Pi 5 to planning your own projects. In 30 short sections it covers the parts of the board, what you need to start, installing Raspberry Pi OS, the Linux terminal, the 40-pin GPIO header and 3.3 volt logic, blinking an LED, reading a button with Python, I2C and SPI sensors, HATs, wiring modules, the camera and project planning.

It opens with a 3D tour of a Pi 5, from the processor and memory to the GPIO header, and every later section uses that same board.

What the course covers

SectionsTopicWhat you do
1 to 3What a Raspberry Pi is, and the system on a chipMatch each part of the board to its job
4 to 7Getting started and installing Raspberry Pi OSPlug each device into the right connector, then order the setup steps
8 to 9Linux and the terminalType the terminal command for a task
10 to 13The GPIO header and 3.3 volt logicFind pins on a pinout chart, then sort wiring ideas into safe and damaging
14 to 16Blinking an LEDWork out the LED current, then complete a gpiozero blink program
17 to 19Reading buttons and controlling LEDsPredict pin readings and what button code does
20 to 26Sensors, special pins, HATs and wiring modulesSort facts into I2C or SPI, then wire devices to the header
27 to 30The camera, project ideas and a final reviewPick every part a project brief needs

Setting up

A Pi 5 needs a USB-C power supply (the official one gives 5 V at up to 5 A), a microSD card, and a keyboard, mouse and screen or another computer to log in from. You copy Raspberry Pi OS, a version of Linux, onto the card with the free Raspberry Pi Imager, then learn enough of the terminal to move around and install things.

The GPIO pins

The 40-pin GPIO header is what makes a Pi more than a small computer. Each general purpose pin can switch an output, such as an LED, or read an input, such as a button. The pins work at 3.3 V, so the course spends a section on what is safe: connecting 5 V to a GPIO pin can damage it.

from gpiozero import LED
from time import sleep

led = LED(17)
while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)

Sensors and projects

Smarter sensors send numbers over shared buses, I2C or SPI. HATs plug onto all 40 pins at once, and every module labels its power, ground and signal pins. Most projects follow one pattern: a sensor reads the world, Python decides, and something happens.

Try a question from the course

An LED needs a resistor so the current stays small enough for the LED and the pin. A GPIO pin set high gives 3.3 V. The LED takes its share first, say 2.0 V, and the resistor gets what is left. With a 330 Ω resistor:

I=\frac{3.3-2.0}{330}=0.00394\ \text{A}=3.9\ \text{mA}

Now work out the current for a new LED and resistor, then press Mark to check your answer in the course.

Type the current through an LED and resistor on a 3.3 V pin, in mA.

Press Mark to have your answer marked in the Raspberry Pi's course.

Who this course is for

  • Beginners with a new Raspberry Pi who want to go from setup to a working project.
  • Students on computing, electronics or design and technology courses who want to control real hardware with code.
  • Makers and parents planning projects such as weather stations, cameras or home gadgets.

What you need to know first

The course page lists Electricity and Programming Languages first. You need to know what voltage, current and resistance are for the LED and wiring sections, and be comfortable reading short Python programs. You can follow the course without a Pi, but having one to try things on helps.

How long it takes

There are 30 sections and most take a few minutes to read; building along takes longer. Learners without a plan can open two sections of a course a day, in order, so the whole course takes 15 days. A plan removes the daily limit and lets you go straight to any topic, such as sensors.

Guided courseMicro ControllersProgram Arduino and ESP32 boards from the first blink to real projects with sensors and Wi-Fi.

Common questions

Is this Raspberry Pi course free?
You can take every section without paying, two sections a day, in order. A plan removes the daily limit and opens any section straight away. The Pi and parts are bought separately.
Do I need a Raspberry Pi to take the course?
No. Every section explains and checks the ideas with diagrams and practice questions. Having a Pi to try things on makes it more fun and is the natural next step.
What is GPIO on a Raspberry Pi?
General purpose input and output: the 40 pins along one edge of the board. Your programs can set them high or low to control things like LEDs, or read them to sense things like buttons.
Why does an LED need a resistor?
Without one, too much current would flow, which can damage the LED and the GPIO pin. The resistor sets the current using the voltage the LED leaves over.
What language does a Raspberry Pi use?
Python is the usual choice for GPIO projects, with libraries such as gpiozero. The Pi runs Linux, so it can also run many other languages.
What is the difference between I2C and SPI?
Both are buses that let several devices share wires to send data. I2C uses two signal wires and gives each device an address. SPI uses more wires but can be faster.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Circuit Builder

    Build any DC circuit with meters, lamps, LEDs and sensors, and see live readings

    Open the tool
  • Learn it

    Raspberry Pi's

    Build projects with the most popular single-board computer

    Start the course
Read next
Computer Science · ElectronicsHow to set up a Raspberry Pi as a web server: step by stepSet up a Raspberry Pi as a web server: install the OS, connect over SSH, install nginx, publish your page, add HTTPS and keep it secure.