Silent Signals in the Wasteland
The radiation counter clicks faster as Maya crouches behind the twisted metal remains of what was once a delivery truck. Fifty meters ahead, she can see the enemy reconnaissance drone hovering over the abandoned research facility, its red scanning beam sweeping methodically across the rubble. The facility contains critical data about Pandora's Box, but getting inside undetected requires coordination with her partner, Alex, who's positioned on the opposite side of the compound.
Radio silence is mandatory. The drone's sensors pick up electromagnetic signatures instantly, and even a whispered transmission would expose their position. But Maya has something better than radio waves: light. Her modified HERO Board sits in her pack, connected to a high-intensity LED that can pierce through the perpetual dust haze of the wasteland. She's programmed it to transmit the universal distress signal that every operative knows by heart.
Three short flashes. Three long flashes. Three short flashes. SOS.
But this isn't a distress call. It's a coded message that means something entirely different in their spy network: "Move on my signal." Alex sees the LED pattern from across the compound and nods silently. The timing is perfect. Each flash duration, each pause between signals, carries meaning that could determine whether they retrieve the data or become another pair of skeletons in the wasteland.
In a world where speaking too loudly can mean death, light becomes the perfect messenger. Silent, precise, and when properly coded, nearly impossible to intercept or decode without knowing the pattern. Maya's HERO Board doesn't just control an LED—it controls survival itself.
What You'll Learn
When you finish this mission, you'll be able to:
- Program your HERO Board to transmit Morse code using precise timing patterns
- Control LED duration and spacing to create recognizable dot-dash sequences
- Use string manipulation to convert text messages into light-based signals
- Implement loops that process character arrays for automated message transmission
- Create reliable communication systems that work in electromagnetic interference environments
- Build timing-critical applications that maintain precision across multiple signal cycles
Understanding Morse Code Communication
Morse code transforms the complex world of human language into something beautifully simple: long signals and short signals. Think of it like the difference between a quick tap on someone's shoulder and holding your hand there for a few seconds. Both are touches, but the duration carries different meaning.
Samuel Morse created this system in the 1830s because early telegraph equipment could only handle on-off signals. No voice transmission, no complex data streams, just the digital equivalent of a light switch being flipped. What emerged was something more powerful than its limitations suggested: a communication method that works across vast distances, through interference, and in conditions where voice communication fails completely.
The genius lies in the timing relationships. A dot lasts one unit of time, a dash lasts three units. Between dots and dashes within the same letter, you pause for one unit. Between different letters, you pause for three units. Between words, you pause for seven units. These mathematical relationships create a rhythm that trained operators can recognize even when the signal is weak or partially obscured.
Your HERO Board excels at this type of precise timing control. While humans might struggle to maintain exact durations under stress, your microcontroller can repeat the same pattern thousands of times without drift or error. When lives depend on clear communication, this reliability becomes invaluable. The LED becomes your telegraph key, transforming electrical pulses into visual signals that can travel as far as the light can reach.
Wiring Your Morse Code Transmitter

- Connect the LED's positive leg (longer wire) to pin 13 on your HERO Board
- Connect the LED's negative leg to any ground (GND) pin on the board
- Verify the LED sits securely in the connections
Why this works: Pin 13 has a built-in current-limiting resistor, making it perfect for driving LEDs directly. The ground connection completes the circuit, allowing current to flow through the LED when pin 13 goes HIGH. This creates the visual signal path for your Morse code transmission.