This project enables communication between computers using ultrasonic frequencies to transmit and receive Morse code messages. It does not require the internet or physical cables, making it useful for offline messaging systems.
- Real-time transmission and reception of Morse code using sound waves.
- Customizable frequency settings for improved flexibility.
- Automatic message detection when a specific tone is received.
- Graphical user interface (GUI) for easy interaction.
- Live audio monitoring with visual indicators for sound levels and frequency detection.
- Transmission: The sender converts a text message into Morse code and transmits it using sound frequencies above 20,000 Hz (inaudible to humans).
- Detection: The receiver listens for a specific activation tone (500 Hz for 2 seconds) to start recording Morse code.
- Decoding: The system translates the received frequencies back into text based on predefined Morse code patterns.
- Display: The decoded message is displayed on the user interface.
- Python 3.x
- Required libraries:
pip install sounddevice numpy scipy tkinter queue threading time
- Clone the repository:
git clone https://github.com/yourusername/frequency-morse-code.git
- Navigate to the project folder:
cd frequency-morse-code - Run the main script:
python main.py
- Enter your text message in the input box.
- Click "Send Message" to convert it into Morse code and transmit it using sound waves.
- The system continuously listens for a 500 Hz activation tone.
- Once detected, it starts receiving Morse code signals.
- The decoded message appears in the "Translated Text" section.
You can modify the frequency settings in the script to suit your needs:
- Activation tone: Default is 500 Hz.
- Morse code frequencies: Default isn't a range of ultrasonic frequencies you need to adjust ur wanted frequencies.
- Transmission speed: Adjust the timing to control the speed of character transmission.
- Background noise may interfere with signal detection.
- Some microphones and speakers may not support ultrasonic frequencies (thats why default isnt ultrasonic).
- Implement noise reduction filters.
- Add support for different Morse code speeds.
- Improve error handling and signal correction.
This project is open-source under the MIT License.
For questions or contributions, feel free to reach out via GitHub Issues.
