This is a video of an Arduino being used to translate text to Morse code. The original project came from the book "30 Arduino Projects for the Evil Genius" Project 3 written by Simon Monk. Once I executed the project as described I added a small speaker, a playTone function and replaced the delay in between LED flashes with tones played for the same duration. The board waits for text entered on a USB connected computer to be sent to it before it converts the words to letters to Morse and then both visually and audibly outputs them. In this case I sent something like "sos sos sos sos sos sos hello world". If you want a copy of the code please send me a message.
Thanks. Not sure what the piezo draws. Less sure if it's relevant when the output is PWM because of less than always on duty cycle. Later I had this setup so I could send an email from my phone while away from the house to my laptop. Outlook rules would look for a keyword in the subject and run an external power shell script that would attach to the com port the arduino was on and send the message which would get flashed and beeped in morse. This would surprise my wife every time! It was funny.
freman448 1 year ago