All paths

Build a home computer

From a CPU of NAND gates to a machine with a keyboard, a screen, a hex monitor and a BASIC that saves your programs.

Arduino Uno R3Free6 lessons7 h3 chapters2,830 XPMaker · Expert+400 XP

0 of 6 done

What you will build

2 projects, built step by step

6 lessons in 3 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

A text terminal

Drive a screen one byte at a time with eight data lines, a write enable and a clock, and make Enter, Backspace and Escape do what a terminal does.

Open it in the simulator
Chapter 2 project

BASIC-lite

Program the machine in a small BASIC: a calculator at the prompt, variables, numbered lines, FOR loops, IF and GOTO, and the errors that tell you what went wrong.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

The hardware

A CPU, a keyboard decoded by hand, and a screen driven a byte at a time.

  1. Open300 XP

    The Kestrel CPU

    Run a CPU of four thousand NAND gates, step it one instruction at a time, write it a loop in machine code, and find what it would need to be a home computer.

    0 of 5 steps

  2. Locked330 XP

    A keyboard

    Decode a PS/2 keyboard by hand: an interrupt on the clock, eleven bits a frame, odd parity, and set 2 make and break codes turned into letters.

    0 of 5 steps

  3. ProjectLocked760 XP

    A text terminal

    Drive a screen one byte at a time with eight data lines, a write enable and a clock, and make Enter, Backspace and Escape do what a terminal does.

    0 of 6 steps

5 questions, graded as you go.
Chapter 2

The software

A machine code monitor, then a BASIC with an interpreter you can read.

  1. Locked330 XP

    A monitor program

    Look at memory, change it a byte at a time, and run it: a 1976-style hex monitor that loads Kestrel machine code you assemble by hand.

    0 of 5 steps

  2. ProjectLocked760 XP

    BASIC-lite

    Program the machine in a small BASIC: a calculator at the prompt, variables, numbered lines, FOR loops, IF and GOTO, and the errors that tell you what went wrong.

    0 of 6 steps

5 questions, graded as you go.
Chapter 3

Your computer

Type in a program, play it, change it and save it.

  1. Locked350 XP

    Project: type and run a program

    Type in a game the way magazines printed them in 1980, play it, make it harder, save it to EEPROM and load it back after wiping the machine.

    0 of 6 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

The hardware

  1. The Kestrel CPURun a CPU of four thousand NAND gates, step it one instruction at a time, write it a loop in machine code, and find what it would need to be a home computer.
  2. A keyboardDecode a PS/2 keyboard by hand: an interrupt on the clock, eleven bits a frame, odd parity, and set 2 make and break codes turned into letters.
  3. A text terminalDrive a screen one byte at a time with eight data lines, a write enable and a clock, and make Enter, Backspace and Escape do what a terminal does.
Chapter 2

The software

  1. A monitor programLook at memory, change it a byte at a time, and run it: a 1976-style hex monitor that loads Kestrel machine code you assemble by hand.
  2. BASIC-liteProgram the machine in a small BASIC: a calculator at the prompt, variables, numbered lines, FOR loops, IF and GOTO, and the errors that tell you what went wrong.
Chapter 3

Your computer

  1. Project: type and run a programType in a game the way magazines printed them in 1980, play it, make it harder, save it to EEPROM and load it back after wiping the machine.
Keep going

The next course on your track

Build a home computer is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a laser tag system

Infrared blasters on two Unos: coded 38 kHz shots, team codes, health bars, reloads, sound and a two-team game.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a home computer

Is Build a home computer free?

Yes. All 6 lessons of Build a home computer are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a home computer take?

About 7 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: A text terminal and BASIC-lite.

Where do I start?

With "The Kestrel CPU", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.