Skip to content
02 20 minutes

Rescue beacon

Groups of three quick flashes, then a long dark pause

Rescue beacon project
Illustration of the finished idea. Build from the diagram and connection table, not the photo.

Mission goal: Keep the Mission 01 wiring and write a nested loop that flashes three times quickly, pauses in darkness for a full second, and repeats.

Section 1

Understand

New ideas

  • A loop inside a loop
  • Reading timing from code before you run it
  • Why the long pause must be dark, not lit
  • 1A loop inside a loop makes groups: 3 quick flashes, then a pause.
  • 2Same circuit as Mission 01. Only the code changes.
  • 3During the long pause the LED stays fully off.

Safety first

  • Still unplug before touching the wiring, even though you are not changing it.
  • Fast flashing light can bother some people. Keep it on the table, not pointed at a face.