Intermediate Pro Subscription Required

Raspberry Pi and Linux Physical Computing

Build dependable devices on a Raspberry Pi: choosing a board, headless setup, Linux essentials, ssh and security, GPIO safety and Python with gpiozero, scripts and virtual environments, I2C, SPI and 1-Wire sensors, PWM, servos and motors, cameras, systemd services and timers, networking and JSON APIs, MQTT data pipelines, storage, power and reliability, and working with microcontrollers. Includes command labs, two build projects and a graded capstone.

15-19 hours of study Builds toward: Technician to Developer 18 modules

Practise on your own computer

The labs in the lessons run in your browser. To repeat them, go further and try the capstone on your own machine, set up the environment with this free guide:

  • A Raspberry Pi lab, with or without a Pi: Set up a Raspberry Pi headless with Raspberry Pi OS, connect to it over SSH and use GPIO safely, and learn what you can still practise on a normal Linux machine if you do not have the hardware yet.

A Raspberry Pi is a small Linux computer with pins you can connect to the real world. That combination is powerful: the same device can read a sensor, run Python, serve a web page, send data to a broker and be managed over ssh from another continent. It is also easy to get wrong. Cards corrupt, power supplies sag, passwords are left on defaults, and prototypes that worked on the desk fail in a cupboard.

This course teaches you to build Pi projects that keep working. You start by choosing a board and setting it up without a monitor, learn the Linux you actually need, and secure remote access before you expose anything. Then you work with the hardware: GPIO and its safety rules, Python with gpiozero, sensors on I2C, SPI and 1-Wire, PWM, servos and motors, and a camera. The last part is what separates a hobby script from a product: systemd services and timers, networking and JSON APIs, MQTT data pipelines, storage, power and reliability, pairing a Pi with microcontrollers, and deployment.

What makes this different

Each lesson follows the same pattern: the idea, the commands and code you will really use, what to build and check on your bench, common mistakes, and a lab that runs in your browser. The labs are small functions and command sequences that check your understanding of the logic and arithmetic behind a build: addresses and subnets, I2C bytes, PWM duty cycles and servo pulses, systemd unit text, topic matching, throttling flags, checksums and version rules. Two projects then ask you to build real systems on your own Pi, and a graded capstone asks you to prove a complete design.

The browser labs are practice: they check your answers and show example output. They are not connected to a real Pi. Run the commands on your own board to see real results, because output differs between models, operating system releases and installed software.

The material is written from public documentation and widely used practice (the Raspberry Pi documentation, Debian and systemd manuals, the gpiozero, Flask, pySerial and Eclipse Paho and Mosquitto documentation). Commands and tool names change between Raspberry Pi OS releases and Pi models, so check the current documentation for your board and image. This course is independent of, and not endorsed by, Raspberry Pi Ltd or any other vendor named.

What you will learn

  • Foundations: the Pi family and how to choose a board; flashing an image and a headless first boot; Linux essentials (files, permissions, packages, processes); ssh keys, firewalls and securing remote access.
  • Hardware: the 40-pin header, 3.3 V logic and current limits; Python with gpiozero; scripts, virtual environments and logging; I2C, SPI and 1-Wire sensors; PWM, servos and motors with separate power; a camera and simple vision.
  • Operations: systemd services and timers; addresses, nmcli and JSON APIs with Flask; MQTT topics, QoS, retained messages and security; SD cards, backups, power, throttling flags and the watchdog.
  • Integration: a Pi with microcontrollers over serial with checksums; versioning, deployment, rollback, remote diagnosis and documentation.

How to practise

You need a Raspberry Pi (a 4, 5 or Zero 2 W is fine) with a good power supply and a quality microSD card, a way to connect it (Wi-Fi or Ethernet), a second computer, a breadboard and jumper wires, LEDs, resistors, a button, a temperature sensor (DS18B20 or an I2C sensor such as a BME280), a small servo, and optionally a camera module and a microcontroller board. Use low-voltage parts only, power motors and servos from their own supply, never touch mains electricity, and shut the Pi down cleanly before unplugging it. Keep a notebook of commands, measurements and mistakes.

Prerequisites

The Electronics Fundamentals and Circuit Design course, or equivalent knowledge of Ohm’s law, LEDs, resistors and using a multimeter. The Microcontrollers and Embedded Programming course helps for the later lessons but is not required. Basic programming experience helps; the Python used here is explained as you go.

Where it leads

This is the third course of the Embedded Systems and IoT division. It prepares you for connecting devices to the cloud, home automation and robotics projects, and for roles that combine Linux administration with hardware.