Activity 01
Pairs Challenge: Button to Output
Pairs wire a button input to an LED and motor on a microcontroller. They program the button press to light the LED briefly and spin the motor for five seconds. Partners alternate coding and testing, then debug by swapping code.
Explain how a microcontroller uses outputs to interact with the physical world.
Facilitation TipDuring the Pairs Challenge, circulate to listen for pairs arguing about whether the button or code controls the LED, then ask guiding questions like, 'What happens when you disconnect the wire while the code runs?'
What to look forProvide students with a scenario: 'Imagine you are programming a simple robot to avoid obstacles.' Ask them to write: 1. One input device the robot might use. 2. One output device it could control. 3. A single sentence explaining how the input would trigger the output.