3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino Morse Code Flaher

Arduino Morse Code Flaher
I am a big fan of programming but I like to keep it down to 555 timer but when it comes to complex functions like flashing a LED in a certain pattern programming is necessary.One day while surfing through the I came across something known as Morse code.I decided to read it and found it totally awesome.I tried to make it with an arduino and I was successful in doing so. And now here that project explaining what I did.This is a low cost fun to do project suitable for beginners ;it also requires minimal parts.

This instructable will explain how to create the circuit ,making a shield for the arduino,making some changes,displaying custom messages and how to install the Morse code library.

This instructable is a entry in the arduino contest so if you like it please vote.

Here is a short video of it in action:

 

 
The first message that it displays is the SOS the second that it displays is HI and the third message that it displays is HELLOW.You can see the LED blink for three or four times in between the message this means that a new code has been uploaded and a new message is been displayed.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Morse Code

Morse Code
Morse code is a method of transmitting textual information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment. The International Morse Code encodes the ISO basic Latin alphabet, some extra Latin letters, the Arabic numerals and a small set of punctuation and procedural signals as standardized sequences of short and long signals called "dots" and "dashes" respectively, or "dis" and "dahs". Because many non-English natural languages use more than the 26 Roman letters, extensions to the Morse alphabet exist for those languages.
Each character (letter or numeral) is represented by a unique sequence of dots and dashes. The duration of a dash is three times the duration of a dot. Each dot or dash is followed by a short silence, equal to the dot duration. The letters of a word are separated by a space equal to three dots (one dash), and two words are separated by a space equal to seven dots. The dot duration is the basic unit of time measurement in code transmission.In the picture you can see the Morse code for each alphabet and number.
« Previous StepDownload PDFView All StepsNext Step »
13 comments
Mar 13, 2012. 4:15 AMe=mc^2 says:
Great work I mean really great XD I am following
Mar 6, 2012. 7:29 AME_Tack says:
Nice Project, but i have a few questions:
When I paste the SOS code from step 5 and I verify it, it says:


In file included from sketch_mar06a.cpp:1:
C:\Users\Doede\Desktop\Arduino\arduino-1.0\libraries\Morse/Morse.h:10:22: error: WProgram.h: No such file or directory

I have downloaded the .zip and placed it where I have to.
What can I do?
Mar 9, 2012. 3:34 PME_Tack says:
Thanks, I downloaded both 0022 and 0023. This time, when verifying, there where no errors, but when I tried to upload it gave me this message on both versions:


Binary sketch size: 1362 bytes (of a 32256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

(btw, this is my first arduino project, thats why I don't get it ;) )
Mar 10, 2012. 9:19 AME_Tack says:
I thougt that I allready installed the drivers, I'll do it again tonight.
Feb 22, 2012. 8:53 AMwaterlubber says:
Cool. Never knew you could make custom libraries! I made a "hello" message manually:
/*This program has a buzzer hooked up to Pin 11.
(My buzzer fit right between GRD and 11, so I used that.)*/





int buzzerPin=11;

void setup()
{
  pinMode(buzzerPin, OUTPUT);
}


void loop()
{
  digitalWrite(buzzerPin, HIGH);
  delay(200); 
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(1000);                 //....(H)
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(1000);               //.(E)
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(500);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(1000);                  //.-..(L)
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(500);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(200);
  digitalWrite(buzzerPin, LOW);
  delay(1000);                 //.-..(L)
  digitalWrite(buzzerPin, HIGH);
  delay(500);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(500);
  digitalWrite(buzzerPin, LOW);
  delay(200);
  digitalWrite(buzzerPin, HIGH);
  delay(500);
  digitalWrite(buzzerPin, LOW);
  delay(5000);               //---(H)
}


To do:
Right-Click,
Copy as HTML
IN THE EMBED VIDEO DIALOG:
Paste
Mar 4, 2012. 8:03 AMHiggs Boson says:
Typing the code up like that seems like a lot of work. I made a morse code translator where you type out the message on the serial monitor send it to the arduino where it translates the message to morse code and an led flashes the message.
Feb 28, 2012. 7:16 AMGelfling6 says:
Nice job! Now, if someone could create a tone detector with an arduino, A program I adapted from an old MBASIC program, would go the other direction! (convert Morse code received off a radio, to ASCII text.)
Feb 22, 2012. 9:27 AMgregoryfenton says:
Great work so far, but rather than morse.dash(); morse.dash(); morse.dash(); why not have a function in the library with a list of characters and do morse.print("Save us! Save us now! OMG we are sinking!"); and let the library do the rest?
Feb 21, 2012. 4:23 PMxJaymz says:
Great Project!

oh, the song is Britney Spears - Till the World Ends
Feb 21, 2012. 11:25 AMTobaTobias says:
Great work mate,
Check make projects, they've got something about morse code too. :)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
32
Followers
7
Author:Bot1398
I am a 13 year old school student intrested in electronics rather than studies.I developed this hobby when I was 10 and when I found out this site I was like WOW!!! now I can share what I make.I feel ...
more »