Let's learn to trigger a light, sound or movement with a simple switch. Try this lesson: Pressure swatch alarm Code Here.
A. Combine the two sets of code; what benefit?
B. Extend the code!
Share the new codes.
Moving moon
Lights on the top of each building
The car will move while making car sounds
Cut the city silhouette
Program two Microbits one to send a signal and one to receive a signal for the lights/sound
Plan to make the moon and get it moving
Learning to code takes time, practice, and persistence. Keep exploring coding through your projects using Microbit, Scratch, LEGO Spike, and Tinkercad.
Your ‘City Lights’ project is an assessed task that gives you and your team the opportunity to demonstrate your coding skills, problem-solving, and creativity by designing an interactive product.
In this project, try to include different types of code to show your understanding and creativity.
You should code this project to:
Use multiple inputs
Apply logic blocks effectively
Include loops to repeat actions
Make all parts of your program work smoothly together
Your coding shows strong development at the Years 5 and 6 level.
In this project, pay attention to how you use multiple inputs, loops, and logic. These elements make your code more powerful and flexible. Try using logic blocks — they help your program “think” by checking conditions and making decisions.
For example, your code could respond to three different radio commands. A logic block checks whether something is true or false and then chooses what to do next:
If something is true → do one action.
Else (if it’s not true) → do a different action.
What story does your project tell?
Is your message clear and easy to understand?
Our theme is City Lights — how have you shown this theme in your project?
Have you used multiple lights to help tell your story or create an effect?
Using a 180-degree servo.
Use a paperclip to connect the servo to the item you plan to move.