🔌 Digital logic for kids
No programming language at all: this track starts with a single Nand gate and ends with a working CPU. And, Or, Xor, adders, an ALU, flip-flops, registers, memory and a program counter — each one wired from the gates you built in the lesson before.
- 8 units
- 38 lessons
- 162 exercises
- Units 1–2 free
- Ages 8–15
How this track is kept honest
A gate-level simulator flattens your whole design down to Nand gates and clocked flip-flops and settles it, so "a computer is only Nand gates" is something a child can check rather than something we say. Every ready-made chip is written in the same language and bottoms out in Nand too — none of them cheat by calling JavaScript.
Needs no programming at all, and works well alongside Python. Inspired by nand2tetris, cut down to fit a phone screen.
How it starts
Inside a computer there are no words, no pictures and no numbers. There is only electricity in a wire — and it is either flowing or it is not. We write 1 for on and 0 for off. That is it. Everything else you have ever seen a computer do is built out of those two.
The full Chips syllabus
8 units and 38 lessons, in the order they are played. Each unit has a page of its own with every explanation in it, the code samples and what they print, and a few questions to try.
Unit 1: Signals
On, off, and one little gate
- On or Off
- The One Gate
- Drawing a Chip
- Flip It
- Two Flips
Unit 2: Gates
Both, either, different, neither
- Both
- Either
- Different
- Neither
- The Gate Family
Unit 3: Choosing
Sending signals down the right road
- Two Roads In
- Building Mux
- Two Roads Out
- The Switchboard
Unit 4: Numbers
Counting with nothing but on and off
- Counting on Two Fingers
- Eight Four Two One
- Asking a Number Questions
- Below Zero
- Reading the Wires
Unit 5: Adding
Sums out of switches
- Half an Adder
- Carrying
- Four Bits Wide
- Adding One
- The Adding Machine
Unit 6: The Calculator
One chip, many jobs
- One Box, Many Jobs
- Six Little Switches
- Taking Away
- Flags
- The Calculator
Unit 7: Memory
Chips that have a past
- Time
- The Flip-Flop
- Remembering on Purpose
- A Register
- Holding On
Unit 8: The Computer
Counting, choosing, remembering — in a circle
- Where Am I?
- Jumping
- Round and Round
- The Machine
Other things to learn
- 🐍 Python for kids
The friendliest first language. Start here!
- ✨ JavaScript for kids
The language of websites. Try it after Python.
- ⚙️ C programming for kids
How computers really work. Read, predict and reason about real C.
- 🚀 C++ for kids
C with the sharp edges filed off. Powers most games.
- 🌱 Git and version control for kids
Save your work forever, and share it.
- 🐧 Linux and the command line for kids
Drive a whole computer by typing.
- 🔢 Problem-solving maths for kids
Powers, shapes, chances and proof — the way problem solvers see them.
- 🤖 AI and machine learning for kids
Teach a computer to learn — with nothing but adding and multiplying.
- 🤖 Robotics coding for kids
Write code that drives a machine around a room.
- 🏁 Competitive programming for kids
Win the race. The algorithms that beat the clock.