Robot Traffic Light

← Free Lesson Plans for Teachers

Free Lesson Plan

KindergartenEngineering & Coding2 sessions x 30 minFinch1A-AP-081A-AP-10

⬇ Download PDF (lesson, student sheets & answer key)

Driving question: How does a traffic light know what to do next?

Overview

Students talk about how traffic lights keep people safe, then act out the green-yellow-red pattern as a class "algorithm." In FinchBlox Level 3, they program the Finch robot's beak to flash green, then yellow, then red, and put the pattern inside a repeat so it runs like a real light.

The lesson connects coding to a daily process students already know, and ends with a crosswalk role-play: pretend cars go on green, and a student driver may start a second Finch when the traffic-light Finch shows green.

Standards

CodeStandard
CSTA 1A-AP-08 (2017)everyday routines as a list of steps
CSTA 1A-AP-10 (2017)algorithms & programming

CSTA codes are from the 2017 CSTA K-12 Computer Science Standards and show which standards this lesson practices. This lesson has not been reviewed or endorsed by CSTA. CSTA released revised PK-12 standards in 2026.

Learning Objectives

Students will:

  • put the steps of a traffic light in the correct order.
  • program a robot light to change colors in a sequence.
  • use a repeat (loop) to make the pattern happen again.

Materials

Geyer resources for this lesson

Also needed

  • 1 tablet or Chromebook per group with FinchBlox Level 3 (needed for wait and repeat blocks, and for a yellow beak color; Level 1 has only red, green, and blue)
  • Red, yellow, and green paper circles (1 set per group)
  • Masking tape for a "road" and a paper crosswalk (about 2 m of tape per road)
  • Student Sheets 1 and 2, 1 copy per student (below and in the PDF)

Vocabulary

WordWhat it means
algorithmSteps in order to do a job.
sequenceThe order that things happen.
waitA Level 3 block that pauses the program. The beak is dark during a wait.
repeat (loop)A Level 3 block that makes steps happen again.

Safety Notes

  • Run Finch robots on the floor or inside a boxed-in area such as the Finch Arena or a taped zone. A Finch can drive off a table edge.
  • Keep walkways clear of robots and charging cables while students move around the room.
  • Choking hazard: the micro:bit and cable ends are small. An adult handles cables and charging.
  • Remind students that real traffic lights are for crossing with an adult. The robot game is pretend play.

Before You Teach

  • Charge and pair robots in FinchBlox Level 3.
  • Tape a short road on the floor with a crosswalk.
  • Show a photo or video of a real traffic light.
  • Plan to read the K-1 student sheets aloud.

Warm-Up (5 min)

  • Ask: "What does green mean? Yellow? Red?" Hold up colored circles.
  • Stand like a traffic light. Students drive pretend cars and stop or go.

Procedure

Order the steps (10 min)

  1. Groups put the color circles in order on their desk: green, yellow, red.
  2. Ask: "What comes after red?" (Green again.) Introduce the word "repeat."

Program the light (15 min)

  1. Open FinchBlox Level 3. Each beak block lights for a time you choose, from 0.1 to 1.0 second, then goes dark. Set each color to 1.0 second: beak green, then beak yellow, then beak red.
  2. Do not add a wait yet. A wait is a pause with the beak dark, so it would make gaps in the light.
  3. Run it and check the order with the circles. Fix any color that is in the wrong place.

Add a repeat (Session 2) (12 min)

  1. Put the three 1.0-second beak blocks inside a repeat so the pattern happens 3 times (repeat is Level 3 only).
  2. Ask: "How many blocks did the repeat save us?" Optional: add a short wait between colors only if you want a dark pause.

Crosswalk play (13 min)

  1. One group's Finch is the traffic light at the crosswalk. Other students walk pretend cars: go on green, slow on yellow, stop on red.
  2. Optional: a student "driver" starts a second Finch's program when the light shows green. (A Finch cannot sense another robot's beak in FinchBlox.)

Reflect (5 min)

  1. Complete Student Sheet 2 together.

Differentiation

SupportOn-levelChallenge
• Start with two colors (green, red).
• Use the color circles as a checklist while coding.
• Give a pre-built program with one color missing to complete.
• Complete the procedure and student sheets as written.• Make yellow shorter than green and red: use 2 green blocks, 1 yellow block, and 2 red blocks (each beak block can stay on for at most 1.0 second).
• Add a sound when the light turns red.
• Use the tail lights to show a "walk" signal.

Assessment

  • Check the color order in each program.
  • Ask students how long each color stays on (up to 1 second per beak block).
  • Listen for "repeat" or "again" when students describe the loop.

Exit ticket: Hold up red. Ask: "What color comes next in our traffic light?" (Green.) "What block makes it happen again?" (Repeat.)

CriterionBeginningDevelopingProficient
SequenceColors out of orderCorrect order with helpCorrect order on their own
Times the colorsColors flash in the wrong order or a color is missingEach color is a 1.0-second beak block, with helpGreen, then yellow, then red, each 1.0 second
Uses a loopNo repeatRepeat with helpPuts all steps inside a repeat

Extensions

  • Make a "school day" algorithm with picture cards (arrive, morning meeting, reading, lunch).
  • Build a cardboard traffic light pole and set the Finch on top.
  • Talk about other signals: fire alarm, school bell, crossing guard sign.

Student Sheets

Use these sheets in class, or download the PDF for a print-ready layout.

Student Sheet 1

Color the Traffic Light

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

Color the lights in the right order. Top: red. Middle: yellow. Bottom: green.

Number the steps of our robot program: 1, 2, 3.

StepColor
___yellow
___green
___red

Student Sheet 2

My Traffic Light Program

Print-ready version in the PDF.

Name: ______________________________   Date: ______________

Draw the blocks you used in FinchBlox Level 3. Put a box around the blocks inside your repeat.

My program
  • □ My light shows green, then yellow, then red.
  • □ Each beak block is set to 1.0 second.
  • □ I used a repeat.

What does a real traffic light help people do?

Show answer key (for teachers)

Answer Key & Teacher Notes

  • Sheet 1: top red, middle yellow, bottom green. Steps: green = 1, yellow = 2, red = 3.
  • Sheet 2: a correct Level 3 program is beak green (1.0 s), beak yellow (1.0 s), beak red (1.0 s), all inside a repeat 3. A wait between colors is optional and leaves the beak dark.
  • A traffic light helps people and cars take turns safely.

Teacher notes

This lesson needs FinchBlox Level 3: wait and repeat blocks are Level 3 only, and Level 1 has no yellow (only red, green, and blue). Each Level 3 beak block lights for 0.1 to 1.0 second and then goes dark; a wait (0.1 to 5 seconds) is a pause with the beak dark. We have not tested this sequence on a physical robot, so try it once before class. If a color is hard to see, dim the room lights or shade the beak with your hand. Real U.S. traffic lights cycle green, yellow, red, then back to green. The repeat block models that cycle.

Need a print-ready copy? The PDF includes the lesson, student sheets, and answer key.

Download the PDF  |  All free lesson plans

Free for classroom use. You may print and copy this lesson for your students. © Geyer Instructional Products. Standards text: CSTA K-12 CS Standards © CSTA.