Lesson 6 · Using functions to create S-O-S via Morse code on LED using Arduino
Suggested Time: 30-45 minutes
Lesson Plan
Project Overview
Learn how functions can make Arduino programs easier to organize and reuse. You’ll create an SOS signal in Morse code by programming an LED to blink in a timed sequence.
Materials
Need materials? Purchase the Magic Box Kit at our e-store.
Classroom sets available. Contact us at info@barnabasrobotics.com to inquire.
Tutorial Video
Magic Box 2.0 - S1E6 - Using functions to create S-O-S via Morse code on LED using Arduino
Video length: 26:45
Key Topics
- Creating and calling functions
- Using timing to represent Morse code
- Organizing Arduino code into reusable pieces
Before Moving On
Make sure your circuit and code from this lesson work reliably before continuing to the next episode. Save your code so you can build on it in later lessons.
What’s Next?
In Lesson 7, you’ll learn about while loops and begin wiring and programming an RGB LED.