Lesson 7 · Wiring And Coding The Second LED


Suggested Time: 10-15 minutes

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

  1. Add the second LED using the wiring shown in the video.
  2. Update your block-based program to control it.
  3. 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.


Additional Resources

Videos

Documents

Other