Ben Nicholas

Home Archives Projects Career

Arduino Morse Code

Written in C++ using Arduino

So I got a little bored today waiting for a repairman to come.  While I was bored I started playing around with my arduino.  This is mostly just learning how the arduino works, but it might come in handy in certain circumstances.  This is under the morse folder on the GitHub project.  

The script reads from serial input and outputs the letters as morse code.  For the most part, it handles everything, but there are a few uncommon characters that it doesn't read right now.  I may update later with more characters.  As a regex it currently handles (a-z0-9.,!?) and spaces.  

EDIT: The newest version also includes audio output.  Ugly square wave output, but it doesn't involve extra hardware.  You can play around with a few of the variables to get the tone to change.

I hope somebody finds a use for this at some point.  Feel free to comment.