Lesson Plan
Coding Our LED To Blink
Now that your first LED is connected, you’ll use block-based coding to control it and make it blink.
Tutorial Video
What You’ll Learn
- Use code to control an electronic output
- Create a repeating on-and-off behavior
- See how changing code changes the behavior of the physical circuit
Follow Along
- Build the LED program along with the video.
- Run the program and confirm that the LED turns on and off.
- Experiment with the timing and observe how the blink changes.
Check Your Work
Before moving on, make sure your project behaves like the example shown in the video. If something isn’t working, compare your wiring and code carefully with the video before changing multiple things at once.
What’s Next?
Next, you’ll wire and code the servo motor that will move the box.