This project is a simple Morse Code Translator built using an Arduino UNO. It translates plain text into Morse code and plays it through a buzzer. The system supports:
Text-to-Morse Translation: A string is entered into the Arduino sketch and is translated into Morse code, which is played through a buzzer using timed beeps.
Buzzer Integration: A passive buzzer is wired to one of the digital pins and emits short and long tones for dots and dashes respectively.
Back-translation: The system also supports Morse-to-Text translation from hardcoded input, and it works correctly.
Button Input (WIP): A button is also wired to the board with the intention of manually inputting Morse signals. However, the current button setup does not function as intended yet. Improvements to hardware debouncing and detection logic are planned.
How it works:
Each letter in the input string is translated into Morse code using a lookup table.
The tone() function is used to control the buzzer and emit the correct signal pattern.
For back-translation, the program matches hardcoded Morse sequences with their corresponding characters.