Additional Parts:
Time to Complete: 15 minutes
- Orange LED
- 220 Ohm Resistor
Time to Complete: 15 minutes

The Morse Code Translator is a continuation of the S.O.S. Flasher project I wrote about last week. As the title implies, the goal is to convert a text string into the appropriate Mosre code LED flashes. I have added a buzzer (6 VDC) I found at Radio Shack to the circuit as well to give it an audible signal as well. A photo of this simple setup is to the right. The buzzer is put in parallel with the resistor-LED combo. I tested the buzzer with the S.O.S. project that was still loaded into the board from last week--the Arduino keeps the previous program until a new one is uploaded.). It is plenty obnoxious, perfect for a Morse Code signal.
Since the circuitry is no different than the last project, the goal of this one is to build on the concepts of strings and arrays introduced in the last project. This project also introduces the concept of communicating between the computer and the Arduino via the USB interface in ways other than uploading programs. I will be sending messages from my computer to the Arduino to be translated into the appropriate Morse code flashes according to the program stores onboard. This is done via the serial monitor in the Arduino program.
The program is written by created separate arrays for the letters and for the numerals. The letter array looks like
char* letters[ ]={ ".--" , "-..." , etc. },
with the numerals having a similar structure. Then, the dots and dashes have to be defined in terms of lengths of time to turn on the LED. Spaces between letters and words have to be defined as well. For added fun, add the spaces for sentences and the other special characters that can be used with Morse Code.
Below, I show a video of the working final project for the typical programing example. The next project is the High-Brightness Morse Code Translator for those foggy nights, when you're out at sea.
Since the circuitry is no different than the last project, the goal of this one is to build on the concepts of strings and arrays introduced in the last project. This project also introduces the concept of communicating between the computer and the Arduino via the USB interface in ways other than uploading programs. I will be sending messages from my computer to the Arduino to be translated into the appropriate Morse code flashes according to the program stores onboard. This is done via the serial monitor in the Arduino program.
The program is written by created separate arrays for the letters and for the numerals. The letter array looks like
char* letters[ ]={ ".--" , "-..." , etc. },
with the numerals having a similar structure. Then, the dots and dashes have to be defined in terms of lengths of time to turn on the LED. Spaces between letters and words have to be defined as well. For added fun, add the spaces for sentences and the other special characters that can be used with Morse Code.
Below, I show a video of the working final project for the typical programing example. The next project is the High-Brightness Morse Code Translator for those foggy nights, when you're out at sea.