Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 37 ยท Getting Started

What Is a Raspberry Pi?

Meet the Raspberry Pi: a credit-card-sized Linux computer with GPIO pins. Learn what it can do, who it is for, and how this course teaches it.

A Raspberry Pi is a small, low-cost computer built on a single circuit board. It was created by the Raspberry Pi Foundation in the United Kingdom to make computing and programming accessible, and the first board shipped in 2012. Today the boards are used in classrooms, hobby workshops, factories, digital signs and home labs all over the world.

What makes the Pi special is the mix of two worlds. On one side it is a real computer: it runs Linux, has USB ports, Wi-Fi, an HDMI display output and a network connection. On the other side it has a row of GPIO pins (general-purpose input/output) that let your programs switch LEDs on, read buttons and talk to sensors. This course walks you from the unboxing to finished projects, and every chapter builds on the one before it.

What the Pi can do

Because it runs a full operating system, almost anything you can do on a Linux machine is possible on a Pi. Typical uses fall into a few groups:

  • A desktop computer. Browse the web, write documents and code on a monitor with a keyboard and mouse.
  • A learning platform. Learn Python, Linux, networking and electronics on hardware that costs less than a restaurant meal.
  • A hardware controller. Read temperature, light and motion sensors, drive motors and servos, and blink LEDs.
  • A small server. Run a web server, a file share, a network-wide ad blocker, a media center or a home-automation hub, always on and sipping a few watts.
  • A camera or media box. Capture photos and video, build a security camera, a time-lapse rig or a retro game console.

One tiny computer

A real CPU Runs Linux and Python
Connected Wi-Fi, Ethernet, Bluetooth
GPIO pins Talk to LEDs and sensors
Low cost Cheap enough to experiment

Computer plus electronics in one board

1 / 2

Pi versus Arduino

Beginners often ask whether they need a Raspberry Pi or an Arduino. They solve different problems. An Arduino is a microcontroller: a tiny chip that runs a single program, starts instantly and has no operating system. A Pi is a single-board computer: it boots an operating system, runs many programs at once and can use the network, a screen and a file system.

Feature Raspberry Pi Arduino
Type Single-board computer Microcontroller board
Operating system Linux (Raspberry Pi OS) None
Programs at once Many One
Startup time Tens of seconds Instant
Real-time timing Approximate Exact
Networking, screen, camera Built in or easy Limited
Power use A few watts Milliwatts

Use an Arduino for precise, tiny, battery-powered gadgets. Use a Pi when you need networking, files, a camera, a database or a web page. Many projects use both, with the Pi as the brain and an Arduino handling the timing-critical part.

How this course works

The course has nine chapters. You start with the hardware and the models, then install the operating system, then move on to GPIO and Python, sensors and cameras, the Linux command line, networking and servers, and finally projects and deployment. Every lesson ends with a short quiz and a summary. Where a lesson shows code, there are two kinds of blocks:

  1. Read-only blocks show the real commands and code you type on an actual Pi.
  2. Runnable blocks are small Python programs that run right here in your browser.

Your browser cannot reach real hardware. A website cannot flip a physical pin or read a camera on a Pi. The runnable blocks are therefore stand-ins: plain Python that simulates the idea (a fake pin, a pretend sensor) so you can see the logic work. Each one is labelled. The real code is always shown read-only next to it and works the same way on your board.

A first look at the idea

Here is the smallest hardware idea there is: a pin is either on (high, 3.3 volts) or off (low, 0 volts). The stand-in below models a pin as a Python object so you can see a program "blink" without any wires.

Python Stand-in: a simulated pin

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

On a real Pi, the same idea with the gpiozero library looks like this (read-only, you will learn it properly in Blinking an LED):

Python
from gpiozero import LED
from time import sleep

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

A tiny quiz of terms

The next block is a lookup table you can extend. It shows the vocabulary the rest of the course uses.

Python Stand-in: vocabulary table

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the main difference between a Raspberry Pi and an Arduino?

    A Pi boots Linux and runs many programs. An Arduino runs one program with no operating system.
  2. 2. What do the GPIO pins let you do?

    GPIO stands for general-purpose input/output. You switch outputs and read inputs in code.
  3. 3. Why are the runnable blocks in this course called stand-ins?

    A browser cannot control physical pins, so we simulate the logic and show the real code read-only.
  4. 4. Which task suits a Pi better than an Arduino?

    A web server needs an operating system and networking, which a Pi provides.

Summary

  • A Raspberry Pi is a small Linux computer with GPIO pins for electronics.
  • It can be a desktop, a learning kit, a hardware controller, a server or a camera box.
  • It differs from an Arduino: it runs an operating system and many programs.
  • Runnable blocks here are labelled stand-ins; the real hardware code is shown read-only.

Next: Raspberry Pi Models Compared