Traffic Lights#
We will now scale up our circuits slightly and create a replica traffic light set with a pedestrian crossing.
Component list
Microprocessor (for these examples either Arduino Uno or Raspberry Pi Pico)
Breadboard
Pushbutton
3 x LED lights (1 x Red, 1 x Green, 1 x Yellow)
4 x 220 Ω Resistors
9 x M/M wires
With more components at play, keeping track of your wires, pins and variables is important here.
What’s new?
Defining and using functions
More ways to handle timing
for statements