Lesson Plan
Wiring And Coding The Second LED
In this lesson, you’ll expand your circuit by adding a second LED and programming it as another output.
Tutorial Video
What You’ll Learn
- Connect the second LED
- Control more than one output from the same program
- Use LEDs to communicate what the Magic Box is doing
Follow Along
- Add the second LED using the wiring shown in the video.
- Update your block-based program to control it.
- Test both LEDs and verify that each behaves as intended.
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 add the IR sensor so the box can detect something without a person pressing the button.