Program the LED lights to create patterns and animations!
Using MakeCode blocks to create programs
How colors mix (Red + Green + Blue)
Making animations with pauses and repeats
Designing their own light patterns
Go to makecode.microbit.org and create a new project. Name it "Light Show" so you can find it later!
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.
Use the "forever" block to create a color cycle. Add "pause" blocks between colors to control speed!
Connect micro:bit via USB. Click "Download" in MakeCode. The code uploads automatically and lights should start cycling!
Ideas to try:
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! π¨
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 π΅ β