Mission Log: Day 3 - The Illuminated Path
The morning fog clings to Cogsworth City's copper towers as you review yesterday's reports. Your first assignment proved the HERO Board's basic functions, but today Chief Engineer Gearwright has something more complex in mind. She slides three small components across your workbench: LED beacons, each no bigger than your thumbnail, their clear domes catching the filtered sunlight streaming through the workshop's brass-framed windows.
"The city's outer perimeter needs a new warning system," Gearwright explains, her mechanical fingers tapping rhythmically against the workbench. "Ships approaching the harbor need to know which docking bay to use. We need a sequence that guides them in safely." She gestures toward a detailed blueprint showing three lighthouse positions along Cogsworth's coastline. "Each beacon must flash in order, one after the other, creating a path of light that merchant vessels can follow through the fog."
The challenge seems straightforward until you realize the complexity hidden beneath. Three separate lights, each requiring precise timing, all controlled by your HERO Board's digital outputs. The sequence must be perfect - too fast and ships won't distinguish between signals, too slow and they'll lose track of the pattern. Your board needs to become the conductor of this electronic orchestra, orchestrating a dance of light that could mean the difference between safe harbor and disaster on the rocky coastline.
As you examine the three LEDs, you notice how their legs extend like tiny metal roots, waiting to be connected to the board's digital pins. Each one represents a lighthouse, each connection a lifeline for ships navigating the treacherous waters around Cogsworth City. The responsibility weighs on your shoulders as you prepare to wire the future of the city's maritime safety.
What You'll Learn
When you finish this mission, you'll be able to control multiple LEDs with your HERO Board, creating timed sequences that flash in perfect order. You'll understand how to use different digital pins to control separate components, and how to create delays that make your lights dance in rhythm.
More specifically, you'll master the art of sequential control - making things happen one after another in a predictable pattern. This skill forms the foundation for everything from traffic light systems to animated displays, from emergency beacons to status indicators on complex machinery.
Understanding Sequential Control
Think about the last time you watched a line of dominoes fall. Each domino waits its turn, then tips over to trigger the next one in sequence. Sequential control works on the same principle, except instead of dominoes falling, you have events happening in a specific order with precise timing.
In the real world, sequential control surrounds us everywhere. Traffic lights cycle through red, yellow, and green in a predictable pattern. Washing machines fill with water, agitate, drain, and spin in sequence. Even your morning routine probably follows a sequence: alarm rings, you hit snooze, alarm rings again, you finally get up, brush teeth, then grab coffee.
Your HERO Board excels at this kind of sequential timing because it can execute instructions incredibly fast and with perfect consistency. While a human might get distracted or lose count, your microcontroller will dutifully repeat the same sequence thousands of times without variation. This reliability makes it perfect for applications where timing matters - like guiding ships safely to harbor through a coordinated light display.
The key insight here is that sequential control isn't just about making things happen in order - it's about creating predictable patterns that humans or other systems can rely on. When a ship captain sees your first LED flash, they know exactly when and where the second and third lights will appear. This predictability transforms random blinking into meaningful communication.
Wiring Your Beacon Network

- First LED (Lighthouse Alpha): Connect the long leg (positive) to digital pin 8. The long leg is the anode - it needs the higher voltage that your pin will provide when set to HIGH.
- First LED Ground: Connect the short leg (negative) to any GND pin on your HERO Board. Think of ground as the return path for electricity - like water flowing back to the ocean.
- Second LED (Lighthouse Beta): Long leg goes to digital pin 9. Each digital pin can act like an independent light switch.
- Second LED Ground: