Lesson 3 · Coding Our LED To Blink


Suggested Time: 15-20 minutes

Lesson Plan

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

  1. Build the LED program along with the video.
  2. Run the program and confirm that the LED turns on and off.
  3. 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.


Additional Resources

Videos

Documents

Other