Source: https://mokxi.com/teachers/plans/build-retro-home-computer
Updated: 2026-11-19

Lesson plan

# Build a home computer lesson plan

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

3 chapters, 6 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- A CPU, a keyboard decoded by hand, and a screen driven a byte at a time.
- A machine code monitor, then a BASIC with an interpreter you can read.
- Type in a program, play it, change it and save it.

### Materials for the whole unit

- Arduino Uno R3
- Bit switch
- chip:c26
- Program ROM
- PS/2 keyboard
- Step clock
- Terminal

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 3 h 25 min

## The hardware

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

Lesson | Time | What students do

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. | 65 min

- A CPU you can see inside
- One instruction a tick
- Machine code: write a loop
- Where it stops
- What a home computer needs

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. | 65 min

- The keyboard tests itself
- Eleven bits on two wires
- Letting go
- Shift is just a key
- The keys that came later

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. | 75 min

- Hello, screen
- One byte, one clock edge
- Type on it
- Enter and Backspace
- Clear the screen
- A second keyboard

### Materials

- Arduino Uno R3
- Bit switch
- chip:c26
- Program ROM
- PS/2 keyboard
- Step clock
- Terminal

### Check for understanding

Each student finishes "A text terminal" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A second keyboard".

Chapter 2. About 2 h 20 min

## The software

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

Lesson | Time | What students do

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. | 65 min

- Switch it on
- Examine memory
- Run it
- Change a byte
- Assemble by hand

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. | 75 min

- Boot to BASIC
- A calculator
- Variables
- A program
- When it goes wrong
- Decisions and jumps

### Materials

- Arduino Uno R3
- PS/2 keyboard
- Terminal

### Check for understanding

Each student finishes "BASIC-lite" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Decisions and jumps".

Chapter 3. About 1 h 15 min

## Your computer

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

Lesson | Time | What students do

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. | 75 min

- Type it in
- Play it
- Make it yours
- Save it
- Wipe it and load it
- Share your program

### Materials

- Arduino Uno R3
- PS/2 keyboard
- Terminal

### Check for understanding

Each student finishes "Project: type and run a program" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Share your program".

Your class

## Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
