What you will learn
  • Identify the main parts of a Raspberry Pi computer.
  • Distinguish memory from persistent storage.
  • Explain the role of an operating system.
  • Compare computer tasks with microcontroller tasks.
  • Describe safe uses of the GPIO header.

A computer small enough to become part of a project

Suppose you want a camera to inspect a desk and show a message when a colored object appears. The project needs image input, a program, stored files and perhaps a screen or network connection. A Raspberry Pi can provide those computer functions in a small board that fits inside a larger build.

This series focuses on the Raspberry Pi 5 single-board computer, using Raspberry Pi OS in a 64-bit configuration. A single-board computer places its main computing components on one circuit board. You still need power, boot storage and a way to interact with it.

Raspberry Pi is also a product family. The Raspberry Pi Pico is a microcontroller board, not a smaller Linux desktop computer. A tutorial for a Pi 5 does not automatically apply to a Pico, even though both carry the Raspberry Pi name.

The Pi can run ordinary programs without any electronics attached. Learning Python, analyzing a CSV file or serving a local webpage are valid Pi projects. Adding hardware is an option that builds on those computing skills.

What the parts do

The processor executes instructions. RAM holds data that programs are using right now, and its contents are not preserved when power is removed. A microSD card or compatible storage device keeps the operating system, programs and saved files between sessions.

USB ports connect peripherals such as keyboards and supported cameras. Display connectors carry video to a monitor. Network interfaces connect the Pi to other devices, typically through Wi-Fi or Ethernet. Network access does not mean that every program must use a cloud service.

The GPIO header exposes power, ground and configurable electrical signals. GPIO means general-purpose input/output. Some header signals can also serve communication interfaces such as I²C, SPI and UART. The pins are not rugged appliance-control terminals.

Pi GPIO uses 3.3 V logic and must not receive 5 V signals directly. Its power pins and GPIO pins serve different roles. You will learn exact connections in PI06; leave the header unconnected during initial setup. Refer to the official hardware documentation for the specific board.

A case protects the board from accidental contact, while suitable cooling helps it maintain performance during sustained work. Power quality, storage and cooling often explain apparent software problems, so they belong in your understanding of the whole computer.

Linux runs between your program and the hardware

An operating system manages resources, files, devices and running programs. Raspberry Pi OS is a Linux-based system designed for supported Raspberry Pi computers. A desktop interface provides windows and menus; a terminal provides a text interface to programs and system commands.

A process is a running program. Several processes can run at once, sharing computing resources. Your Python program may be active while the desktop, network services and other tasks also need processor time.

This flexibility comes with tradeoffs. An ordinary Linux program does not promise that every instruction runs at an exact physical instant. A microcontroller can be better suited to tightly timed low-level control. A robot may use a Pi for camera analysis and an Arduino for bounded motor commands.

A headless setup uses no directly attached monitor or keyboard. You can connect through a network using SSH, a secure remote terminal protocol, after configuring it. Headless does not mean wireless: Ethernet can provide the connection. Initial headless setup still needs correct credentials and networking.

Work through a complete example

Consider a room-monitoring prototype. A sensor produces data, a Python process reads it, a file records it and a local webpage displays a graph. The Pi stores the history and makes it available to a browser on your network.

The GPIO does not create the website, and the network does not measure the room. Each component has a particular responsibility. Drawing those responsibilities helps you determine where an error occurs.

If readings are wrong but the webpage loads, investigate the sensor and interpretation first. If the CSV file contains good readings but the graph fails, investigate the webpage. If the Pi reboots when a peripheral starts, examine power before rewriting the application.

For an AI version, a local model could classify measurements or camera images. Model size and speed must match the computer’s resources. A Pi can run some AI locally, but the word AI covers everything from small classifiers to models far beyond its practical capacity.

Sensor → Python program → Saved data → Local webpage
                       ↘ Optional local ML model

Prepare to choose and assemble

You do not need the most expensive configuration to learn the basics. Choose hardware from a concrete project, not from a vague promise to run AI someday. PI02 compares the roles of memory, power, storage and accessories without relying on a price that may change.

The first hardware milestone is modest: boot a supported OS, save a file, restart cleanly and open that file again. This proves persistent storage and a usable working environment before GPIO adds electrical variables.

Use a complete certified power supply intended for the board; do not construct a mains supply. Assemble connectors while the Pi is unpowered and keep its underside away from conductive surfaces. A clean software shutdown before disconnecting power reduces the risk of damaging files.

The official getting-started guide provides current setup options. Record the exact model, OS release and architecture when following tutorials. Those details are more useful than saying your project uses the latest Pi.

Important terms

Single-board computer
A computer whose main components share one circuit board.
RAM
Working memory used by running programs.
Storage
Media that retains saved information without power.
Operating system
Software that manages programs, files and hardware resources.
GPIO
General-purpose input and output signals.
Headless
Operating without a directly attached display and keyboard.

Mini project: Map one computer-based project

  1. Choose a sensor logger, local webpage or camera experiment.
  2. Identify its input, processing, storage and output.
  3. Use a Pi 5 diagram to locate power, USB, network, storage and GPIO.
  4. Mark which connectors your project actually needs.
  5. Finish by explaining one responsibility that belongs to the OS and one that belongs to your own program.

Common mistakes and debugging

  • Confusing Pi Pico with a Linux Pi computer: check the product family.
  • Treating RAM as saved storage: store important results in files.
  • Connecting 5 V signals to GPIO: inspect voltage compatibility first.
  • Assuming every AI model fits: match model and workload to actual resources.

Independent challenge

Sketch a system where a Pi analyzes a camera while an Arduino controls a motor. Explain why the two devices might be useful together.

Check your understanding: 10 questions

  1. What disappears from RAM when power is removed?

  2. What does an operating system manage?

  3. Is Raspberry Pi Pico equivalent to Pi 5?

  4. Can a headless Pi use Ethernet?

  5. Can Pi GPIO accept 5 V directly?

  6. In your own words, what does “Single-board computer” mean?

  7. In your own words, what does “RAM” mean?

  8. In your own words, what does “Storage” mean?

  9. In your own words, what does “Operating system” mean?

  10. In your own words, what does “GPIO” mean?

Quiz answers

Reveal all 10 answers after your attempt
  1. The current working contents, unless the program saved relevant data to persistent storage.
  2. Resources such as processes, files, devices and hardware access.
  3. No. Pico is a microcontroller board; Pi 5 is a single-board computer.
  4. Yes. Headless describes the lack of attached display and keyboard, not the network type.
  5. No. Its GPIO logic is 3.3 V and requires appropriate protection or level conversion.
  6. A computer whose main components share one circuit board.
  7. Working memory used by running programs.
  8. Media that retains saved information without power.
  9. Software that manages programs, files and hardware resources.
  10. General-purpose input and output signals.

Summary

A Raspberry Pi combines familiar computing functions with accessible hardware interfaces. Learn its OS and storage first, then add sensors and AI one subsystem at a time.

Continue learning

PI02 turns a project idea into a practical equipment list.

Choose a connected learning path

Sources and further reading

Prepared 2026-09-18. Editorial draft; primary documentation consulted. Hardware build not bench-tested; code has not been executed on the reference board.

GO DEEPER

Extra reading & source documents

Optional reading alongside the lessons. These sources do not add to your course lesson count.

Explore the AI model guides →