← Back to Missions
EASY β€’ 20 MINUTES

Mission 2: Light Show πŸ’‘

Program the LED lights to create patterns and animations!

πŸ’‘

🎯 What You'll Learn

πŸ’» Visual Coding

Using MakeCode blocks to create programs

🌈 RGB LEDs

How colors mix (Red + Green + Blue)

⏱️ Timing & Loops

Making animations with pauses and repeats

🎨 Creative Expression

Designing their own light patterns

πŸ“¦ What You Need

πŸ› οΈ Let's Code!

1

Open MakeCode

Go to makecode.microbit.org and create a new project. Name it "Light Show" so you can find it later!

πŸ’‘ Parent Tip: If you already added the Maqueen extension in Mission 1, you're good to go! If not, click Extensions β†’ Search "Maqueen" β†’ Add it.
2

Find the LED Blocks

The Maqueen has 4 RGB LEDs underneath (they shine on the ground). In the Maqueen menu, look for blocks like "Set RGB light" and color options.

🌈 Color Tip: RGB means Red-Green-Blue. Numbers go 0-255. Mix them to create any color!
3

Create Your First Pattern

Use the "forever" block to create a color cycle. Add "pause" blocks between colors to control speed!

⏱️ Pause Explained: 500ms = half a second. Try 1000ms (1 second) or 100ms (super fast!)
4

Upload & Test

Connect micro:bit via USB. Click "Download" in MakeCode. The code uploads automatically and lights should start cycling!

πŸŽ‰ Success! Within seconds, the LEDs should start your light show!
5

Get Creative!

Ideas to try:

  • β€’ Police Siren: Red/blue alternating fast
  • β€’ Disco Mode: Random colors
  • β€’ Fire Effect: Orange/yellow/red
  • β€’ Button Control: A for one color, B for another

πŸ”¬ What's Happening Behind the Scenes?

Each RGB LED has three tiny lights inside: Red, Green, and Blue. By mixing different brightness levels, you create millions of colors! When RGB is [255, 0, 255], red and blue are full (making magenta).

Real-World Connection: Your TV and phone work the same way! Every pixel is three RGB lights. Computer graphics and movies all use RGB color mixing! 🎨

βœ… Mission Success Checklist

πŸš€ Ready for More?

Great job! You've learned visual programming, RGB colors, and animation timing. The boys now understand how code creates visual effects!

Next Mission: Musical Robot 🎡 β†’
← Back to All Missions