Build a race timer lesson plan
Light gates, a start tree and an LCD: time two lanes to the millisecond, catch false starts and run a pinewood derby.
Objectives and materials
By the end, students can
- Read four light gates and run a drag strip countdown.
- Time each lane to the millisecond and put the places on the screen.
- Red lights, time slips and a whole derby with lanes swapped for fairness.
Materials for the whole unit
- Arcade button
- Arduino Uno R3
- Buzzer
- Character LCD, 20x4, with I2C backpack
- Photo interrupter, slot x 4
- Traffic light module
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.
Gates and the start
Read four light gates and run a drag strip countdown.
| Lesson | Time | What students do |
|---|---|---|
| Light gatesRead 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. | 50 min |
|
| Start signalStage 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. | 50 min |
|
Materials
- Arcade button
- Arduino Uno R3
- Buzzer
- Character LCD, 20x4, with I2C backpack
- Photo interrupter, slot x 4
- Traffic light module
Check for understanding
Each student finishes "Start signal" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Reaction time".
Time the race
Time each lane to the millisecond and put the places on the screen.
| Lesson | Time | What students do |
|---|---|---|
| Lane timesTime each lane to the millisecond with micros(), see why the loop must never wait, and call a DNF when a car does not arrive. | 40 min |
|
| Places on the displayTurn 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. | 50 min |
|
Materials
- Arcade button
- Arduino Uno R3
- Buzzer
- Character LCD, 20x4, with I2C backpack
- Photo interrupter, slot x 4
- Traffic light module
Check for understanding
Each student finishes "Places on the display" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A photo finish".
Race day
Red lights, time slips and a whole derby with lanes swapped for fairness.
| Lesson | Time | What students do |
|---|---|---|
| False startsCatch 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. | 50 min |
|
| Project: a derby trackRun 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. | 60 min |
|
Materials
- Arcade button
- Arduino Uno R3
- Buzzer
- Character LCD, 20x4, with I2C backpack
- Photo interrupter, slot x 4
- Traffic light module
Check for understanding
Each student finishes "Project: a derby track" 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: "Build the real track".
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.