This is the Arduino project I worked on while attending last weekend’s all-night hackfest at our local hackspace, P-space.
It is a simple Arduino project for playing back any text sent to the Arduino via the serial interface in Morse code.
The hardware setup is trivial, just hook up a buzzer in one of the Arduino pins (existing code uses pin 10) and you are set.
The pin and playback speed are configurable, and so is the mapping of ASCII characters to Morse sequences if you’d like to add something.
Since the Arduino reads from the serial link, any number of applications computer-side could send text to be played out. Maybe a twitter client in Morse? Or you could hook up an ethernet shield to your Arduino and have it fetch any web site you want to play it back.
Code-wise, this is definitely not my best written code. Damn, that chartobuffer() function looks ugly to me. But I’m happy that I stepped out of my Python comfort zone and explored the C-like language of Arduino with it’s quirks and limitations. This board is a beginner’s dream, just as advertized 😉
Code can be found in my bitbucket repositories, free for you to look and play. Link is here.
Oh, and here is a picture of me having great fun at it =)
Nick