O'Reilly logo

Beginning Arduino by Michael McRoberts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project 2 – S.O.S. Morse Code Signaler

For this project, you are going to reuse the circuit set up from Project 1 (so no need for a Hardware Overview), but you'll use different code to make the LED signal the letters S.O.S., which is the International Morse Code distress signal. Morse Code is a type of character encoding that transmits letters and numbers using patterns of on and off. It is therefore nicely suited to your digital system as you can turn an LED on and off in the necessary pattern to spell out a word or a series of characters. In this case, the S.O.S. pattern is three dits (short flash), followed by three dahs (long flash), followed by three dits again.

To flash the LED on and off in this pattern, signaling SOS, use the code in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required