Source: https://mokxi.com/learn/path/build-race-timer
Updated: 2026-11-20

All paths

# Build a race timer

Light gates, a start tree and an LCD: time two lanes to the millisecond, catch false starts and run a pinewood derby.

Arduino Uno R3 Free 6 lessons 5 h 3 chapters 1,480 XP Maker · Beginner +100 XP

0 of 6 done

Start the course free Light gates Lesson plan for teachers

What you will build

## 3 projects, built step by step

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

Chapter 1 project

### Start signal

Stage both cars in their start beams, run a drag strip countdown on a signal head with beeps, and time each lane's reaction from green.
Open it in the simulator

Chapter 2 project

### Places on the display

Turn two times into a result: first and second, the winning margin and a dead heat inside a millisecond, laid out cleanly on a 20x4 I2C LCD.
Open it in the simulator

Chapter 3 project

### Project: a derby track

Run a pinewood derby: four cars over four heats, every car in both lanes, false starts re-run, a champion on the LCD, then build the real track.
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

## Gates and the start

Read four light gates and run a drag strip countdown.

Open 165 XP

### Light gates

Read four slotted light gates, learn why blocked reads HIGH, catch a car crossing the line once, and turn its time in the beam into a speed.

0 of 5 steps

Start What is in it

Project Locked 330 XP

### Start signal

Stage both cars in their start beams, run a drag strip countdown on a signal head with beeps, and time each lane's reaction from green.

0 of 5 steps

4 questions, graded as you go.

Chapter 2

## Time the race

Time each lane to the millisecond and put the places on the screen.

Locked 140 XP

### Lane times

Time each lane to the millisecond with micros(), see why the loop must never wait, and call a DNF when a car does not arrive.

0 of 4 steps

Project Locked 330 XP

### Places on the display

Turn two times into a result: first and second, the winning margin and a dead heat inside a millisecond, laid out cleanly on a 20x4 I2C LCD.

0 of 5 steps

4 questions, graded as you go.

Chapter 3

## Race day

Red lights, time slips and a whole derby with lanes swapped for fairness.

Locked 165 XP

### False starts

Catch a car that leaves before green with a red light, then print a real drag strip time slip: reaction, ET and total, and a win on a holeshot.

0 of 5 steps

Project Locked 350 XP

### Project: a derby track

Run a pinewood derby: four cars over four heats, every car in both lanes, false starts re-run, a champion on the LCD, then build the real track.

0 of 6 steps

4 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

### Gates and the start

- Light gates Read four slotted light gates, learn why blocked reads HIGH, catch a car crossing the line once, and turn its time in the beam into a speed.
- Start signal Stage both cars in their start beams, run a drag strip countdown on a signal head with beeps, and time each lane's reaction from green.

Chapter 2

### Time the race

- Lane times Time each lane to the millisecond with micros(), see why the loop must never wait, and call a DNF when a car does not arrive.
- Places on the display Turn two times into a result: first and second, the winning margin and a dead heat inside a millisecond, laid out cleanly on a 20x4 I2C LCD.

Chapter 3

### Race day

- False starts Catch a car that leaves before green with a red light, then print a real drag strip time slip: reaction, ET and total, and a win on a holeshot.
- Project: a derby track Run a pinewood derby: four cars over four heats, every car in both lanes, false starts re-run, a champion on the LCD, then build the real track.

Keep going

## The next course on your track

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

Next course

### Build a radiation logger

Count a Geiger tube with interrupts, read background with its uncertainty, turn counts into dose, and keep a diary on microSD.
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 race timer

Is Build a race timer free?

Yes. All 6 lessons of Build a race timer 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 race timer take?

About 5 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: Start signal, Places on the display and Project: a derby track.

Where do I start?

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