Inspiration

The inspiration for this project came about when I noticed that a few buzzer modules came with the LED kit. As such I wanted to incorporate both the buzzers and LED control in this project.

What it does

This project translates user's inputted words into morse code. The words are entered into the Arduino's serial console in the form of . The carrots allow for input parsing, designating the beginning and end of each word.

How I built it

The hardware aspect of this project is relatively simple, just one active buzzer, one red LED, and one green LED. The basic principle is to set digital pin output high for both the buzzer and the red led for different intervals in order to differentiate between morse dots and dashes. Meanwhile the green led's digital pin output is only set to high when words are done translated and there aren't any more new inputs.

Challenges I ran into

A main challenge I ran into was parsing user inputs into the serial console, figuring out how to set up a buffer and extract all the characters was rather difficult. This following source helped me out significantly:

Robin2, Apr '16 https://forum.arduino.cc/t/serial-input-basics-updated/382007

Credit is due to Robin2's serial basics, introductory tutorial. His/her code snippets clearly explained the principle behind how one should implement reading in serial inputs.

Accomplishments that I'm proud of

That I got the Morse code translator to be functioning!

What I learned

Serial console basics, this is also applicable to serial communication between micro controllers, as such this concept is very useful.

What's next for LED+Buzzer Morse Code

As this project skews more towards created purely for entertainment, it's usefulness is rather low. Regardless what's next for this code could be a setup used by individuals to learn and practice Morse code. This would entail a large array of words, wherein a few would be randomly selected, allowing the user to listen/see and then guess what the actual word was.

Built With

Share this project:

Updates