This device reads hand keyed Morse code from a signal key (or an ordinary switch) and translates it to plain text and show the Morse code you're keying on an LCD. I use it to train my own Morse keying skills.

The decoder automatically corrects itself for your keying speed.

Step 1: Requirements

1x Arduino UNO
1x Buzzer
1x LCD with I2C connector and 4 lines of text

And a switch (or Morse key), breadboard and wires.

Tip: you could create it without an LCD and then output the decoded text on the serial monitor of the Arduino IDE.

Step 2: Hardware Setup

Setup the hardware by hooking up everything as shown in the schematic diagram.

Connect the buzzer between GND and pin 8 of the Arduino and the Morse key (I use a tactile switch) between GND and pin 7.

Besides the GND and +5V pins the LCD has an SCL and SDA connection that you connect to the pins with the same names on the Arduino. I didn't use pull-up's to connect the LCD, but you could if you want to.

Step 3: Software

Upload the sketch (Seinsleutel2.ino) in the Arduino. I also included the library that I needed to use to control the LCD.

And start keying (see the video for a demonstration).

<p>For those who do not have the I2C type liquid crystal display it should be easy to change this to use a standard 1602 style parallel interfaced LCD. Also possible to use Serial.print() to send text information to either the terminal screen that is built into the IDE or to an attached PC running a terminal emulator that is capable of connecting via tty/USB mode.<br><br>The I2C LCD library is in the zip file and can be installed in your IDE once the file has been unzipped.</p><p>It makes no difference whether variables are named in German or some other language. The compiler just converts them to numeric tokens and compiles them as defined. An example of this might be the define &quot;int x = 5&quot;, where x is neither English or German, or both, and the compiler handles this variable name with no problem.</p>
<p>Just to be more precise, I had to use a different library for the 1602A:</p><p>#include &lt;LiquidCrystal.h&gt;</p><p>Initializing the LCD with pins:</p><p>LiquidCrystal lcd(12, 11, 5, 4, 3, 2);</p><p>Then take into account it has 2 rows and 16 columns in the setup</p><p> lcd.begin(16, 2);</p><p>And also in the upd function </p><p> x++; if (x &gt;= 16) {</p><p> if (y &gt;= 2) {</p><p>I hope it helps!</p>
<p>Are you able to post the entire code with your updates? I am new to this and am not sure why nothing is coming up on the LCD. Thanks!!!</p>
<p>im getting more questionmarks than letters - is something wrong with my setup ?</p>
<p>Hi Hackertie,</p><p>I am studying your source code and I have a question about the algorithm you use to identify a Pause and start decoding the &quot;Kar&quot;achter. Why do you use </p><p>if (tijd &gt; StreepDuur - StreepDuur / 40 ) ? is it a spece between two letters?</p><p>and </p><p>if (tijd &gt; StreepDuur * 2) ? is it the space between two words?</p><p>Many thanks</p><p>Fabio</p>
StreepDuur == the duration of a dash<br>tijd == time<br><br>The statement &quot;if (tijd &gt; StreepDuur - StreepDuur / 40): decodes a space between two letters.<br>And &quot;(tijd &gt; StreepDuur * 2)&quot; is for decoading a space between words.<br><br>Som more explanation:<br>PuntDuur == Duration of a dot<br>starttijd == Start time
<p>thanks a lot.</p><p>Fabio</p>
<p>I dont have the lcd display, so how can I display the reading into the monitor serial?</p>
<p>Serial.print(variable_name); or Serial.print(&quot;text string&quot;);</p>
<p>This would be cool to set up with a laser pointer and send morse code between two Arduinos miles away.</p>
CW transmits much further than just a few mile, and good luck getting perfect unobstructed line of sight.
<p>Actually there are several commercial providers of laser-beam communications systems. Th ones I installed in San Francisco area in the 1996 era are still being used today with satisfactory service. Key seems to be using dual-beam layout separated by at least 2 meters to avoid the bird blockage situation. Fog that is prevalent in that area does not seem to be a problem. System orientation does have to be observed to avoid sunrise or sunset interference with the light beam. </p><p>Hams have been experimenting with light-beam communication since the 1960's with some remote transceivers and repeaters being monitored and controlled via optical Ethernet links. </p>
<p>In the nineties, there were a lot of ideas for comercial telecommunication equipment with laser that failed with a little of fog of when a bird crossed the laser beam. It already was made... and didn't work...</p><p> Could be as an indoor experiment only.</p><p>BTW: Hacketje, good job and I'll try to modify to your code for numbers as well</p><p>Best regards to both and all contributors.</p>
<p>i have a error in the part of the code: LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); its told me that POSITIVE is not declared</p>
<p>Leuk project, ik ga dit eens uitproberen. Ik ben bezig voor het Museum Engelandvaarders waar we een seinsleutel hebben uit de 2e wereldoorlog. De bezoeker mag straks letter voor letter morsecode nadoen in de hoop dat er wat leesbaars op het scherm komt. Ik heb wel de timing een beetje aangepast. Een dot is 200ms.</p>
<p>Any way to get the sketch translated from Dutch to English?</p>
<p>A view from a different perspective. Thanks.</p>
<p>Plzzzz Tell me that the programs are working...!!!!!!!</p>
Yes, the program works :=) Do you need any help understanding the code?
<p>Is this in English...????</p>
It is Morse. It understands every language, English too.
<p>May I let me know how to show the numbers(0-9) in your program?<br></p>
My program only shows letters. The source is there, feel free to extend it. You could add an additional string array with numbers, add another while loop (like the one that starts in line 100 in my code) to check if a number was keyed.
<p>Thank you. I will try it.</p>
<p>Why the program cannot write in arduino?<br>It's shown undefined reference to `atexit' from DecodeerKar()</p>
<p>Funny as anything to me trying to read your code written in some kind of Scandinavian language. :)</p>
Funny that you think Dutch is a Scandinavian language :-)
<p>Why the error &quot;Seinsleutel2.cpp.o: In function `DecodeerKar()': C:\Program Files (x86)\Arduino/Seinsleutel2.ino:107: undefined reference to `atexit' when I Verify the code ??</p>
<p>Wouldn't it be interesting to replace the button with a microphone then run some of the transmissions on this page through it? http://www.radiomarine.org/audio/list?panel=pab1_13</p>
<p>I can tell you put a lot of effort into this! Nice work, keep it up :-)</p>

About This Instructable




Bio: Goeroe.
More by Hackertje:Fitness Games The WOPR (WWW Operated Relay) Space Invaders Fitness 
Add instructable to: