The best Raspberry Pi projects for kids start with making a game in Scratch (ages 7 and up), move on to Python projects such as a turtle race (ages 10 and up), and then add simple electronics like LED traffic lights. Each one can be finished in an afternoon with a Raspberry Pi, a screen, a keyboard and a few low-cost parts, and no soldering.
An adult should help with the first setup and the first electronics project. After that, most children aged 10 and over can work through these on their own.
What you need
- A Raspberry Pi computer. For children, the Raspberry Pi 500+ Kit is simple to start with: the computer is built into the keyboard, so there is less to plug together. The Vilros Raspberry Pi 5 Complete Starter Kit is the other good option and has room for add-ons.
- A screen. A TV or monitor with HDMI, or the Raspberry Pi 15.6 Inch Monitor.
- Electronics parts for projects 4 and 5: the Vilros Raspberry Pi 5 Inventor Starter Kit or Physical Computing Bundle, or a breadboard, jumper wires, an LED set and some 330 ohm resistors.
- Game controllers for project 6, such as SEGA Genesis style USB gamepads.
Vilros is an official Raspberry Pi Approved Reseller in the US. Orders ship the next business day from New Jersey.
Projects by age
| Project | Ages | Time | Skills |
|---|---|---|---|
| 1. Scratch Pong | 7+ | 1 hour | Sprites, loops, scoring |
| 2. Flappy Bird clone in Scratch | 8+ | 1-2 hours | Gravity, collisions, variables |
| 3. Python turtle race | 10+ | 1 hour | Text coding, random numbers |
| 4. LED traffic lights | 10+ | 1 hour | Circuits, GPIO, Python |
| 5. Button quiz buzzer | 11+ | 1-2 hours | Inputs, if-statements |
| 6. Retro game console | 9+ (with adult) | 1-2 hours | Installing an OS, setup |
Step 0: Set up the Pi for a child
- Set up Raspberry Pi OS (with desktop) using Raspberry Pi Imager, and create a user account for your child.
- Update the system: open Terminal and run
sudo apt update && sudo apt full-upgrade. - Install Scratch 3. The standard desktop edition of Raspberry Pi OS does not include it, so run
sudo apt install scratch3in Terminal. It then appears in the Programming menu. - Check Thonny (the Python editor) is in the Programming menu. It is included with Raspberry Pi OS with desktop.
Project 1: Scratch Pong (ages 7+)
Kids build a paddle game: a ball bounces around the screen and the player moves a paddle with the mouse to keep it in play. They learn to move sprites, use "forever" loops and keep score with a variable. Follow our step-by-step Scratch Pong project.
Ideas to change it: make the ball speed up each time it is hit, add a second player on the keyboard, or add sound effects.
Project 2: Flappy Bird clone in Scratch (ages 8+)
A bird falls with gravity and flaps when the space bar is pressed, while pipes scroll past. This introduces collision detection and variables for speed. See our Flappy Bird clone with Scratch project. For a bigger Scratch game, try our Ghostbusters game project.
Project 3: Python turtle race (ages 10+)
The first step from blocks to typed code. Open Thonny and type:
from turtle import Turtle
from random import randint
red = Turtle()
red.color("red")
red.shape("turtle")
red.penup()
red.goto(-200, 50)
blue = Turtle()
blue.color("blue")
blue.shape("turtle")
blue.penup()
blue.goto(-200, -50)
for step in range(100):
red.forward(randint(1, 5))
blue.forward(randint(1, 5))Select Run and watch the turtles race. Then let your child add a finish line, a third turtle, or a message announcing the winner. Our Racing Turtle Game with Python project goes further.
Project 4: LED traffic lights (ages 10+, with adult help the first time)
- Shut down and unplug the Pi before wiring.
- Put a red, a yellow and a green LED on the breadboard. Connect each LED's long leg through a 330 ohm resistor to GPIO pins 17, 27 and 22, and each short leg to a GND pin. Use our GPIO introduction guide for the pin map.
Power on, open Thonny and type:
from gpiozero import TrafficLights from time import sleep lights = TrafficLights(17, 27, 22) while True: lights.green.on() sleep(5) lights.green.off() lights.amber.on() sleep(2) lights.amber.off() lights.red.on() sleep(5) lights.red.off()- Select Run. If an LED stays dark, turn it round and check it shares breadboard rows with its resistor and wire.
Project 6: Retro game console (ages 9+ with an adult)
Write Recalbox to a separate microSD card with Raspberry Pi Imager, plug in USB gamepads and play classic-style games. Keep this on its own card so it does not replace the coding setup. See our retro gaming console guide, and use only games you own or free homebrew games.
Safety and supervision tips
- Always shut down and unplug before changing wires.
- Do not connect LEDs directly to a pin without a resistor, and never connect a pin straight to 5V or GND.
- The board can get warm. Use a case with cooling, and keep drinks away from it.
- Set up a separate user account for your child, and use your router's parental controls for web access.
Troubleshooting
- Scratch is missing from the menu. Install it with
sudo apt install scratch3. - Python says "No module named gpiozero". You may be running the code in a virtual environment; in Thonny, switch the interpreter back to the default, or install with
sudo apt install python3-gpiozero. - The turtle window closes straight away. Add
input("Press Enter to finish")as the last line. - Nothing happens on the LEDs. Check you used GPIO numbers (17, 27, 22), not physical pin numbers.
FAQ
What age is Raspberry Pi suitable for?
With an adult helping, children from about 7 can make Scratch games. From about 10, most can type Python projects and wire simple circuits.
Is the Raspberry Pi 500+ or Raspberry Pi 5 better for kids?
The 500+ is simpler, because the computer is inside the keyboard. The Pi 5 is better for adding cameras, HATs and other hardware later.
Do kids need to know how to code first?
No. Scratch uses drag-and-drop blocks, so they learn coding while making the games.
Is it safe for children to wire electronics?
Yes, the Raspberry Pi's pins use low voltage. Follow the safety tips above and supervise the first project.
Shop this tutorial
CartAlso useful
Raspberry Pi 500+ KitYes / Yes$442.00
Vilros Raspberry Pi 5 Complete Starter Kit2GB / Aluminum Alloy W/ Passive+Active Cooling$177.49
Vilros Raspberry Pi 5 Inventor Starter Kit2GB$187.49
Vilros Physical Computing Bundle For Raspberry Pi$18.99
400 Hole Solderless Breadboard$4.79
Male-Male Jumper Wires (Set of 65-assorted sized and colors)$6.99
5mm LED Set-Includes 5x Red, 5x Yellow, 5x Green$6.99
SEGA Genesis Style USB Gamepad1 Pack$9.99
Raspberry Pi 15.6 Inch MonitorRed-White / No / No$120.00
Prices from vilros.com. Tax and shipping at checkout.