Skip to content

Guide

Raspberry Pi projects for kids: fun builds by age

Raspberry Pi projects for kids by age: Scratch games, a Python turtle race, LED traffic lights and a retro console, with parts, steps and safety tips.

Updated

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

Vilros is an official Raspberry Pi Approved Reseller in the US. Orders ship the next business day from New Jersey.

Projects by age

ProjectAgesTimeSkills
1. Scratch Pong7+1 hourSprites, loops, scoring
2. Flappy Bird clone in Scratch8+1-2 hoursGravity, collisions, variables
3. Python turtle race10+1 hourText coding, random numbers
4. LED traffic lights10+1 hourCircuits, GPIO, Python
5. Button quiz buzzer11+1-2 hoursInputs, if-statements
6. Retro game console9+ (with adult)1-2 hoursInstalling an OS, setup

Step 0: Set up the Pi for a child

  1. Set up Raspberry Pi OS (with desktop) using Raspberry Pi Imager, and create a user account for your child.
  2. Update the system: open Terminal and run sudo apt update && sudo apt full-upgrade.
  3. Install Scratch 3. The standard desktop edition of Raspberry Pi OS does not include it, so run sudo apt install scratch3 in Terminal. It then appears in the Programming menu.
  4. 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)

  1. Shut down and unplug the Pi before wiring.
  2. 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.
  3. 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()
  4. Select Run. If an LED stays dark, turn it round and check it shares breadboard rows with its resistor and wire.

Project 5: Button quiz buzzer (ages 11+)

Add two push buttons (one per player) between GPIO pins and GND. Write a Python program that asks a question on screen, waits for the first button press, lights that player's LED and prints who buzzed first. It builds on project 4 and introduces inputs and decisions.

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

Cart
0 selected$0.00

Prices from vilros.com. Tax and shipping at checkout.

Printable guide