Passer au contenu

Lesson 16: Traffic lights

English

A light on every corner

  • Traffic lights are small computers: they switch lights on and off in a fixed order, all day.
  • In lesson 2 the LEDs were already on the board. Now you build the whole circuit yourself.
  • You build one with three LEDs: red, amber and green, each with its own resistor.
  • Then you turn it into a crossing: people on foot press a button, and the cars get a red light.

Words for this lesson

Word Meaning
traffic light red, amber and green lights that control cars
amber the orange-yellow light between green and red
cycle steps that repeat in the same order
crossing a place where people walk over the road
const int a name for a number that never changes, like RED = 13

Se connecter ou créer un compte

IGCSE, A-Level & AP