Additional Parts:
Time to Complete: 15 minutes
- LED
- 220 Ohm Resistor (The book uses a 270 Ohm resistor. This is the closest I had lying around.)
Time to Complete: 15 minutes

The purpose of this project is to program the Arduino to flash S.O.S. on repeat. This is a very simple project with the objective of being an introduction to programming in C in the Arduino environment with little to no knowledge of electronics. The Arduino Uno has a built-in LED on the board connected at Pin 13, but for this example we use a different analog output pin for sake of having to plug something into the board. Needless to say, assembling the circuit is trivial, but I'll provide a picture anyway for fun.
The S.O.S. program is also fairly easy to implement. The project first has you write out the code in a very long-handed fashion. That is: turn light on, wait, turn light off, wait, etc. for the entire S.O.S. process of three dots three dashes, the dots. So in this way, we tell the pin to alternate from going from HIGH (5V) to LOW (0V).
Since the above code is tedious, the book introduces the concept of functions by having the user create a simple flash function that turns on and then off the LED for the number of milliseconds given in the argument. The original code collapses by about a factor of two after implementing the flash function. I have included a short video of the final product.
The S.O.S. program is also fairly easy to implement. The project first has you write out the code in a very long-handed fashion. That is: turn light on, wait, turn light off, wait, etc. for the entire S.O.S. process of three dots three dashes, the dots. So in this way, we tell the pin to alternate from going from HIGH (5V) to LOW (0V).
Since the above code is tedious, the book introduces the concept of functions by having the user create a simple flash function that turns on and then off the LED for the number of milliseconds given in the argument. The original code collapses by about a factor of two after implementing the flash function. I have included a short video of the final product.
The S.O.S. project is a simple introduction to programming and functions for someone who has had little or no programming experience. Since it involves a bare minimum of extra circuitry, the user is able to focus on the writing the program without having to worry about the load on the board.
The next project is a logical extension of this one. The Arduino will be used to translate a string of input text into Morse code LED flashes. This will be slightly more involved since it means that the Morse code alphabet will need to be define in the code, but it should also be very straight-forward.
The next project is a logical extension of this one. The Arduino will be used to translate a string of input text into Morse code LED flashes. This will be slightly more involved since it means that the Morse code alphabet will need to be define in the code, but it should also be very straight-forward.