🤖
KidsCode
  • Welcome to KidsCode
  • Setting up mBlock
  • Arduino Lessons
    • Arduino Beginner Lessons
      • Blinking an LED
      • LED Switching
      • LED Chasing
      • Traffic Signal
      • Buzzer
      • Buzzer + Push Button
      • LED + Push Button
    • Bluetooth LED
  • Arduino Robot Car
    • Arduino Bluetooth Car
      • What you will need
      • Circuit Diagram
      • Assembly the Car
      • Upload the Code
      • Bluetooth setup and Test
  • Micro:bit Beginners
    • micro:bit, the hardware
    • Overview of MakeCode
    • Video Library
    • Lesson 1
      • My micro:bit
      • Safety first!
      • Plug in your micro:bit
      • My name is?
      • Learning Outcomes
    • Lesson 2
      • Whats your name again?
      • How fast is your heart beat?
    • Lesson 3
      • Please switch on the TV
      • One, Two, Three
      • Keep pressing that buttons
    • Lesson 4
      • Variable, what is that!!
      • Step Counter
      • 1 + 1 = 2
  • Micro:bit Advanced Activities
    • Blinking an LED
    • Traffic Signal
Powered by GitBook
On this page
  • What will we do
  • Parts List
  • Wiring it up
  • Block Coding

Was this helpful?

  1. Micro:bit Advanced Activities

Traffic Signal

What will we do

This example uses three LEDs to make a model traffic light signal. You can use all red LEDs if you like, but its more realistic if you use red, yellow and green.

The LEDs cycle around in the sequence red, green, yellow and then back to red again

Parts List

You will need the following parts:

  • 1x micro:bit

  • 1x Micro B USB Cable

  • 1x Breadboard

  • 3x Jumper Wire

  • 1x Red LED

  • 1x Yellow LED

  • 1x Green LED

  • 3x Resistors

Wiring it up

To add the extra LEDs and resistors, wire them up as shown in the breadboard layout below.

Ensure that the LEDs are the right way around, with the longer positive leads (anodes) to the left.

Block Coding

PreviousBlinking an LED

Last updated 5 years ago

Was this helpful?