Raspberry Pi · one hour a week · 36 sessions

Krishna's Computer Lab

A year of Sunday hours: from typing his first command to building something the house actually uses. Built for a curious ten-year-old and the father sitting next to him.

StudentKrishna, 10
Session60 minutes, weekly
Span36 sessions ≈ 9 months
LanguageBash, then Python

First / the operating manualSix rules that matter more than the syllabus

A curriculum is easy. Keeping a ten-year-old coming back for forty weeks is the hard part, and it is decided almost entirely by how the hour is run rather than what is in it.

  1. 01
    He types. You never touch the keyboard. This is the rule that gets broken first and costs the most. When you take the keyboard to "just fix it quickly", the session stops being his. Point at the screen. Say the words. Let him hunt for the key. It is slower and it is the whole thing.
  2. 02
    Every hour ends with something that works. Not a concept covered — a thing that runs. He should be able to call someone over and show them. This is why the sessions are small.
  3. 03
    Errors are the lesson, not the interruption. Kids quit at red text because they read it as failure. When an error appears, slow down and act pleased. Read it out loud, together, left to right. What you are really teaching for forty weeks is that a person who stays calm in front of an error message can eventually fix anything.
  4. 04
    He names everything. The Pi's hostname, his folders, his programs, his variables. Ownership at this age is mostly naming rights. A machine called krishna-pi is his in a way that raspberrypi never will be.
  5. 05
    Stop while he still wants more. Hard stop at the hour, mid-excitement, even when it is going well — especially when it is going well. The unfinished thing is what pulls him back next Sunday. Never run the hour until it goes flat.
  6. 06
    Nothing is ever deleted. Every program he writes stays in ~/lab forever, including the broken ones. In month nine he will open session three's code and laugh at it, and that is the moment he understands he has actually travelled somewhere.

The shape of the yearFour terms, four wires

Each term is nine sessions and ends in a demo to the family. The arc runs outward — from the screen, to pictures, to games, to the house itself. Colours are the jumper wires you will be holding by term four.

Red · S1–9
The machine does what I say
The terminal stops being frightening and becomes his. Ends on one blinking LED.
Yellow · S10–18
I can draw with instructions
Turtle graphics. Angles, coordinates and loops become things you can see.
Green · S19–27
I can make a game
Decisions, state and a playable thing the whole family loses to him at.
Blue · S28–36
I can change the house
Buttons, sensors and one thing that stays installed and running.

The syllabusThirty-six sessions

The fourth column is for you, not him — it is what is actually being taught underneath the fun. Knowing it is what lets you improvise when the session goes sideways, which it will.

Term one · red wire

The machine does what I say

Goal: he can move around a Linux machine by typing, and he believes the computer is on his side.

SessionWhat he buildsThe idea underneath
01Naming dayThe Pi says something ridiculous out loud, in a voice he picksA computer is a thing you instruct, not a thing you click
02Where am I?His own ~/lab folder, one sub-folder per projectThe filesystem is a house with rooms; pwd tells you which room
03Writing things downA letter to himself in nano, to be opened in one yearFiles are just text; editors are not magic
04Move, copy, destroyA backup of the whole SD card, made togetherSome actions cannot be undone — so make undo yourself
05The computer as helperCounts the words in his own letter; finds a word in a huge fileSmall tools joined by a pipe beat one big tool
06Absurdly large numbersPython as a calculator: 2**1000, printed in fullPowers; and the visceral fact that the machine is fast
07Boxes with namesA program that asks your name and answers backVariables and input — the program now depends on a human
08Doing it againThe 7 times table. Then every table, 1 to 20, in one secondLoops; multiplication as repeated addition made literal
09Demo · first lightOne LED, wired and blinking, shown to the familyCode can leave the screen. This is the hook for the whole year
Term two · yellow wire

I can draw with instructions

Goal: mathematics stops being worksheet material and becomes the thing that makes the picture come out right.

SessionWhat he buildsThe idea underneath
10The turtleA square. Then a square that is wrong, and fixing itInstructions have an order and the order is visible
11The 360 ruleTriangle, pentagon, decagon — then a "circle" with 360 sidesTurn = 360 ÷ sides. A circle is a polygon that gave up
12Loops inside loopsA flower made of forty rotated squaresNesting: the inner loop finishes before the outer one moves
13Chance and colourArt that comes out different every single runRandomness; the same program need not give the same answer
14Finding any spotHis name written in dots at exact coordinatesThe x–y plane, and negative numbers arriving as a place
15Naming a piece of workdef house(size) — then a whole street of themFunctions: teach the machine a word, then use the word
16Kolam generatorA rangoli pattern built from rotation and symmetryRotational symmetry — the maths already in the doorway at home
17Ten thousand diceA bar chart of dice rolls, drawn by the turtleProbability: rare at ten throws, dead flat at ten thousand
18Demo · print itHis best piece, printed on your printer, framed, on the wallThe work is real enough to hang up
Term three · green wire

I can make a game

Goal: he can write a program that makes decisions, keeps score, and that someone else wants to play twice.

SessionWhat he buildsThe idea underneath
19Higher or lowerA guessing game — and then beating it in 7 guesses out of 100if/else, and halving the search each time. A deep idea, early
20Until it's rightThe game keeps asking, and counts how many tries it tookwhile loops; a program that waits for a human
21Many things at onceA family quiz with ten questions in a listLists and indexing — one name holding many values
22A window and a spritePygame Zero: something on screen that the arrow keys moveThe game loop — sixty tiny redraws every second
23WallsThe sprite can no longer escape off the edgeBounds checking; comparing a position to a limit
24Touching and scoringCatch the falling thing. A number goes upCollision as arithmetic; state that survives between frames
25LosingSound, three lives, and a game-over screenA game you cannot lose is not a game
26Making it harderSpeed rises with score; a title screen with his name on itDifficulty as a variable — design, not just code
27Demo · game nightEveryone plays. High scores written on paper and keptHe built the thing the family is doing tonight
Term four · blue wire

I can change the house

Goal: something he wrote is still running on Wednesday afternoon when nobody is watching it.

SessionWhat he buildsThe idea underneath
28The breadboardThree LEDs, correctly resisted, under his controlCircuits, and why the resistor is not optional
29A buttonPress it, the light comes on. Release, it goes offInput from the world, not from the keyboard
30Counting in twosFour LEDs counting 0 to 15 in binaryNumber bases. The single best hour in the whole year
31Making a noiseA buzzer playing a tune he choosesFrequency and ratio — why doubling the number is one octave
32A sensor that means somethingA moisture probe in the tulsi pot, printing a real numberMeasurement: the number is about the actual world now
33DecidingDry soil lights a lamp. Watered, it goes outThresholds — where does "dry" begin, and who decides?
34While we sleepA cron job that runs at 6 a.m. without himPrograms outlive the session that started them
35The house projectOne chosen build, done properly and mounted in placeFinishing — the least practised and most valuable skill
36Demo · he teaches youHe runs the hour. You are the student, and you ask real questionsIf he can teach it, he owns it. This is the actual final exam
On the house projects. Keep every circuit at 3.3 V or 5 V. Nothing in this year should go anywhere near 230 V mains — no relay boards switching real lamps, no opening plug points. If he wants to switch a real light, buy a wifi smart plug and have his Python call its API; he gets the same thrill, and the mains stays behind a device built by people who were paid to make it safe.

The maths threadWhat he is actually learning in maths

You said fundamentals, and this is where they hide. None of it is presented as maths — it arrives as the reason the picture came out wrong.

S11 · S16

Angles and division

360 ÷ sides. He will never again wonder what an exterior angle is, because a wrong one is visible as a broken shape.

S14

Coordinates, negative numbers

Minus fifty is not an abstraction; it is fifty steps to the left of the middle of the screen.

S08

Multiplication as repetition

A loop that runs seven times is what seven times something means, spelled out.

S17

Probability and scale

Ten rolls look random. Ten thousand look flat. The law of large numbers, seen rather than stated.

S19

Halving the search

Guessing a number in 1–100 in seven tries. The first genuinely powerful algorithm he will meet.

S30

Number bases

Four LEDs, sixteen states. Binary as a physical fact sitting on the table in front of him.

S31

Ratio

Double the frequency, go up one octave. Music turns out to have been arithmetic the whole time.

S33

Thresholds and estimation

Choosing where "dry" starts is judgement, not calculation — an early taste of modelling.

Division of labourWhat you teach, what he reads alone

The split is not by difficulty. Teach the things that are frightening or need two pairs of hands; leave him the things that reward wandering off.

You, in the hour

Father-led · the 60 minutes
  • The first ten minutes of any new idea — the part where it makes no sense yet
  • Anything with sudo, rm, or a wire in it
  • Debugging. The most important thing you will model all year. Stay slow, read the error out loud, guess, test the guess
  • Wiring the first few circuits alongside him, hand over hand
  • Anything that touches the house, the network, or other people's things
  • Asking "what do you think will happen?" before every single run

Him, on his own

Self-read · between sessions
  • Story books about computing — read for pleasure, no discussion required
  • Re-reading the chapter you already covered together, a week later
  • Browsing The MagPi for things he wants to build, and saying so
  • Changing the numbers in last week's program to see what breaks
  • Free project cards from the Raspberry Pi Foundation, chosen by him
  • Typing practice — ten minutes, twice a week, matters more than it sounds
The typing problem. The biggest brake on a ten-year-old learning to program is not logic — it is that hunting for the colon key kills the thought before it lands. Ten minutes of typing practice twice a week, from session one, will do more for his progress by month four than any book on this page.

The shopping listWhat to buy, and when

Ordered by when you will actually need it. Nothing here is required to start — session one needs only the Pi you already have running.

ItemWhenWhy this one
The Official Raspberry Pi Beginner's GuideGareth Halfacree · Raspberry Pi Press Free PDF Mostly for you. Raspberry Pi Press publishes it as a free PDF; buy the paperback only if you would rather flip pages. Covers the OS, the desktop and the basics you will be asked about.
Python for Kids, 2nd editionJason R. Briggs · No Starch Press Now The spine of terms one to three, and genuinely readable by a ten-year-old alone. Its turtle and game chapters line up almost exactly with the syllabus above.
Secret CodersGene Luen Yang & Mike Holmes · six volumes Now A graphic novel series, not a textbook — a mystery story in which the puzzles happen to be programming. This is the excitement purchase. Bedtime reading, zero adult involvement.
CamJam EduKit #1LEDs, resistors, buzzer, breadboard, wires Now Built for precisely this and costs very little. You need it by session nine. In India look at Robu, Robocraze or ThinkRobotics; any equivalent starter kit with a breadboard, jumper wires, 330 Ω resistors and a handful of LEDs will do.
GPIO ribbon breakoutCable + breadboard adapter Now Underrated. It moves the pins off the Pi and onto the breadboard, so a mis-wire costs a jumper rather than the board, and he can point at labelled pins instead of counting them.
A second SD cardSame size as the working one Now The permission to break things. With a clone on the shelf, session four's rm conversation becomes a demonstration rather than a warning.
projects.raspberrypi.orgRaspberry Pi Foundation Free Hundreds of structured, illustrated projects at three difficulty levels, printable as they stand. Let him pick from here whenever a session finishes early.
The MagPiMonthly · free PDF back catalogue Free Not for teaching — for wanting. Leave issues lying around and let him find the build that makes him ask.
Coding Games in PythonDK Term 3 Heavily illustrated, project-per-chapter, and it matches term three almost session for session. DK's layout suits a child working semi-independently better than a wall of text.
CamJam EduKit #2Sensors: temperature, light, motion Term 4 Needed from session thirty-two. Add a cheap soil-moisture probe separately for the tulsi project.
Lauren IpsumCarlos Bueno Anytime A fairy tale in which the magic is computer science, and there is not a line of code in it. Good for the weeks when he is tired of screens.
CODE, 2nd editionCharles Petzold For you Too hard for him now and worth every hour for you — it builds a computer from a torch and a wire. Read it this year, hand it to him at fourteen.
A proper keyboardFull-size, positive key travel Now He is going to type for forty weeks on it. A keyboard he enjoys pressing is a real, unglamorous contributor to whether this works.

For the printerEight things worth printing

Paper next to the machine is doing something a browser tab cannot: it is available while both hands are busy, and it does not tempt anyone into a different window.

Stick to the wall

The command card

Twenty terminal commands, one line each, in a single column. Nothing else. Replace it in term four with a longer one he helps write.

One per week

The lab logbook page

Date · what we built · what broke · what I want to try next. He fills it in, in pen, in the last four minutes. After a year it is the best thing either of you owns from this.

Stick to the wall

The GPIO pinout

Printed below. You will reach for it every single session from twenty-eight onward.

Stick to the wall

Errors, and what they mean

SyntaxError, NameError, IndentationError, command not found, Permission denied — five lines, plain English. Turns panic into lookup.

36 boxes

The wall map

Thirty-six numbered squares, four colour bands, one tick per session. Visible progress is disproportionately motivating at ten.

Term 2

The angle wheel

A printed protractor circle marked at 360÷3, ÷4, ÷5, ÷6, ÷8, ÷10. He puts the turtle's pen on it and predicts the shape before running.

Term 3–4

Blank breadboard sheets

A printed breadboard grid. He draws the circuit in pencil before touching a wire — the single habit that prevents most frustration.

Every 9 weeks

The term certificate

Slightly over-formal, signed by you, dated. Deeply uncool and quietly treasured.

MotivationHow to get him excited — and keep him there

Curiosity is the easy part; you already have it. Forty weeks of sustained curiosity is an engineering problem, and these are the levers that actually move it.

Open with a joke, not a lesson

The first ten minutes of session one should make him laugh, not teach him anything. cowsay, figlet, sl, fortune, and a speech synthesiser saying something mildly cheeky in his sister's name. Every one of these is a real command doing a real thing, so nothing is wasted — but what he remembers is that the terminal is where the funny stuff lives.

Build for someone specific

The moisture sensor is in the tulsi pot, not "a plant". The alarm plays the song Amma likes. The quiz is about people at the dinner table. Abstract projects are for adults who have already decided to care; a ten-year-old needs a face attached.

Let him break it, once, on purpose

Somewhere around session four, with the clone safely made, let him run something destructive and watch the machine stop working. Then restore it in ten minutes. A child who has seen a computer broken and mended is permanently harder to frighten, and will experiment far more freely for the rest of the year.

Demo Day is non-negotiable

Nine sessions, then a real audience — grandparents on video call included. Knowing an audience is coming changes what he is willing to push through in week seven.

Give him jurisdiction

The Pi is his. His login, his password, his hostname, his folder names, his terrible variable names. You are a guest at his machine, and you should occasionally ask permission out loud, because he will notice.

Let him find the ceiling

Around term three he will want to build something far beyond him — a full 3D game, a robot. Do not talk him down. Break off the smallest true piece of it, build that this Sunday, and say plainly that the rest is next year's. Ambition is not the problem; it is the fuel.

End the year as the student

Session thirty-six is him teaching you, for real, with you asking real questions and getting things wrong. Nothing else you can do in this year will tell him as clearly that he has actually become someone who knows something.

Session oneThe first hour, minute by minute

Starting is the hardest part, so here it is decided for you. Do not prepare anything beyond having the Pi on and a terminal open.

  1. 0–5 min
    Hand it over

    Sit him in the chair, you beside him — not in front. Say one sentence: "This one is yours, and today we are going to make it talk."

  2. 5–15
    Make it funny

    Install and run the joke commands together. He types every character, including the mistakes. When something fails, read the error aloud and fix it in front of him.

  3. 15–25
    Make it talk

    espeak, then let him spend a full five minutes finding the silliest voice settings. This looks like time-wasting. It is the hook.

  4. 25–35
    Name the machine

    Change the hostname to whatever he chooses. Reboot. Watch the prompt come back with his name on it. This is the moment of ownership.

  5. 35–50
    Make his room

    mkdir ~/lab. One folder inside it, named by him. Write the first line of the logbook, in pen.

  6. 50–58
    Show someone

    Call whoever is in the house. He runs it himself and explains it himself. You say nothing at all during this part.

  7. 58–60
    Stop early, tease next week

    "Next Sunday we find out where everything on this machine actually lives." Close the laptop while he still wants another ten minutes.

The commands, ready to run

# installing the fun bits — he types this, you read it out
sudo apt update
sudo apt install -y cowsay figlet lolcat sl fortune espeak

# now the good part
cowsay "Krishna is in charge now"
figlet KRISHNA | lolcat
fortune | cowsay
espeak -s 130 -p 40 "Hello. I am your computer. Please do not spill juice on me."

# naming day — replace krishna-pi with whatever he picks
sudo hostnamectl set-hostname krishna-pi
sudo reboot

# after the reboot, his own room on the machine
mkdir ~/lab
cd ~/lab
mkdir session-01-naming-day
pwd
If something fails. Good. That is session one's real curriculum. Read the message together, decide what it is complaining about, try one fix, run it again. Let him watch you not know something and find out anyway.

ReferenceThe 40-pin header

Print this one. Pin 1 is the corner nearest the SD card slot, and the numbers run in two columns down the board — odds on the inside edge, evens on the outside.

3V3125V
GPIO2 · SDA345V
GPIO3 · SCL56GND
GPIO478GPIO14 · TXD
GND910GPIO15 · RXD
GPIO171112GPIO18 · PWM
GPIO271314GND
GPIO221516GPIO23
3V31718GPIO24
GPIO10 · MOSI1920GND
GPIO9 · MISO2122GPIO25
GPIO11 · SCLK2324GPIO8 · CE0
GND2526GPIO7 · CE1
GPIO0 · ID_SD2728GPIO1 · ID_SC
GPIO52930GND
GPIO63132GPIO12 · PWM
GPIO13 · PWM3334GND
GPIO193536GPIO16
GPIO263738GPIO20
GND3940GPIO21
5V 3.3V Ground Usable GPIO
The one rule for term four. A GPIO pin is a 3.3 V pin. Putting 5 V into one damages the board permanently, and it is the mistake everyone makes once. Teach him to say the pin number out loud before the wire goes in — the habit costs two seconds and saves the Pi.

AfterwardsWhat year two looks like

Do not mention any of this to him yet — but it is worth knowing where the road goes, because it changes how you teach year one.

A web page the family can open

Flask on the Pi, a page on the home wifi that shows the tulsi's moisture. His first server.

The camera

A Pi camera, time-lapse of a plant growing over a month, stitched into a video. Patience as a technique.

Git

Around twelve, when losing work has finally hurt enough to make version control feel like a rescue rather than a chore.

A Pico

A microcontroller with no operating system underneath. Where he finds out what the Pi was hiding from him.

Somebody else's problem

The strongest year-two project is one where a person who is not in the family asks him for something and then uses it.

The internet, carefully

What a server is, what an IP address is, and the first real conversation about what happens when a machine of his is reachable from outside the house.