ELECTRONICS · COMPUTING · COMMUNICATIONS
Make it work.
Find out how.
A strip of lights gives you a circuit to connect, a program to change and messages to follow.
Start by making a light glow. Make it blink or move. Then explore how to control it from another device. Each step gives you something new to try and a reason to understand another part of the system. You can follow these steps or choose the one that interests you.
The browser editor has twelve programming lessons ready to try. The hardware activities use a board prepared with an adult helper. Network experiments need extra setup and currently link to developer guides.
ELECTRONICS
Connect a circuit. Change a colour.
Follow the Pico build guide with your helper. Three wires connect the board to the lights: power, ground and data. Once they are connected, choose red in the editor, then blue.
The wires stayed in the same places, but the colour changed. The power connection supplies energy to the LEDs. The data connection carries the instructions that tell them what to show. This is how a program can change something in a circuit without you rewiring it.
- Unplug USB and trace the three wires. Match each one to its job in the diagram.
- Reconnect and choose red, green and blue in turn. Try mixing them to make another colour. Each RGB pixel contains all three colours.
- Agree on a colour for “busy” and another for “come in”. Show them to someone. Can they read your signal once they know the meanings?
Go further: compare a moving dot with a whole strip lit at the same brightness. Which asks the power supply to do more? The power experiment connects that question to choosing a supply. Unplug all power before changing wiring.
COMPUTING
Make a pattern. Work out the instructions.
Open the LightVM editor, choose a lesson under Learn with lights, then select Try it here → Start preview. You can use Python, JavaScript or visual blocks. The preview runs on your computer, so these lessons need no board.
- Give the lights instructions: change the first and last lights. Try a different number of lights. How does the program identify the last one?
- Make time visible: make a light blink. Predict what it will show after one second, then use Next frame to check. How would you make it blink twice as slowly?
- Remember movement: move a dot along the strip. Enable Step through the code before starting, then use Watch a value to inspect its position. What must the computer remember to draw the next picture?
- Make a small installation: send a lighthouse beam around a ring. Reverse its direction. What happens when it crosses from the last light back to the first?
A moving pattern is a sequence of pictures, called frames. The computer follows instructions to draw each one, using time and remembered values to work out what has changed. Stepping through the program lets you see those decisions before the finished picture appears.
Try it on the board: run the same animation on your connected lights. Close the browser tab while leaving the board powered. Does the animation continue? The preview ran on your computer; the device animation runs on the microcontroller. That small board is a computer in its own right.
Open the twelve lessons →NETWORKING & COMMUNICATIONS
Send a message. Find out where it goes.
When you preview a colour on your device, your computer sends a command to the board. The board then sends colour data to the LEDs. These are two different connections, each with rules about how to send and read a message. Those rules are called a protocol.
Start over USB: connect a prepared board in My devices. Give it a nickname, such as “Desk lights”, and save it. Disconnect and reconnect. The browser reads the name back from the board: a message has changed something the board remembers.
- Draw your computer, the board and the LEDs. Add arrows for the USB command and the LED data. Mark where the animation runs.
- With a Wi-Fi board and firmware that supports network control, follow the network setup guide. Keep the board powered by USB and connect to it using its network address. The address tells the browser where to send its request.
- Read the nickname over the network. Is it the same one you saved over USB? You have reached the same computer by a different route.
Go further: the MQTT and Home Assistant guide explains how to switch a saved lighting pattern from Home Assistant. MQTT uses a program called a broker to pass messages between devices. A sender publishes to a named topic; receivers subscribe to topics they want. This experiment needs an existing broker, Home Assistant and MQTT-enabled firmware.
Now imagine a door signal controlled from another room. What message should change it? What should it show if the connection is lost? Choosing that behaviour is part of designing a connected system.
PUT THE IDEAS TOGETHER
What would you make next?
You now have several ideas to combine: a light can show a message, a program can keep time, and a board can receive instructions from another device. Try designing a countdown, a lighthouse for a model harbour or a sign for your door. Sketch what it should do before building it.
If you use an AI assistant, give it a specific job and the relevant LightVM example. For instance, start with the time lesson and ask:
Adapt this LightVM example into a ten-second countdown. Start with ten blue lights, turn one off each second, then flash them green three times and stop. Explain how it remembers which stage it has reached.
Before running it, work out what you expect at five seconds, ten seconds and after the flashes. Compare that with the preview. If it differs, use the stepping controls to find out why. Understanding the system helps you describe the idea and judge whether the result does what you asked.
Why understanding matters when building with AI →Learning together
One person can predict, another can make a change, and another can explain the result. Swap roles. Leave time for someone’s own idea as well as the suggested activity. These are starting points for learning together; they have not yet been evaluated as a classroom course.