MorseTalk is an IoT-based solution that enables partially paralyzed patients who cannot speak to communicate through finger movements. The system detects Morse code input via an IR sensor, translates it into text, and converts it to speech, with emergency calling capabilities.
- 👆 Finger movement detection using IR sensor
- 📝 Real-time Morse code decoding
- 🔊 Text-to-speech conversion
- 📱 Emergency calling and SMS alerts
- 📊 LCD display for visual feedback
- 🆘 Dedicated emergency button
- Arduino/ESP32 board
- IR sensor module
- 16x2 I2C LCD display
- Push button (for emergency trigger)
- Connecting wires
- Computer with Python installed
- Arduino IDE
- Python 3.x
- Required Python libraries:
pyttsx3
(text-to-speech)pyserial
(serial communication)twilio
(for emergency calls/SMS)
-
Arduino Setup
- Connect the IR sensor to GPIO pin 33
- Connect the emergency button to GPIO pin 32
- Connect the I2C LCD display (SDA, SCL pins)
- Upload the
morseCodeDecoder.ino
sketch to your Arduino/ESP32
-
Python Setup
pip install pyttsx3 pyserial twilio
-
Twilio Configuration
- Create a Twilio account at twilio.com
- Get your Account SID and Auth Token
- Update the
recipients
list intextToSpeech.py
with your Twilio credentials and phone numbers
-
Connect the Arduino/ESP32 to your computer via USB
-
Note the COM port (e.g., COM7) and update it in
textToSpeech.py
if needed -
Run the Python script:
python textToSpeech.py
-
Use finger movements to create Morse code patterns:
- Short interruption = dot (.)
- Long interruption = dash (-)
- Pause between characters
- Longer pause for word separation
-
For emergency help:
- Input "Y" in Morse code (-.--) or
- Press the dedicated emergency button
Watch our demonstration video: MorseTalk Demo
- Input Detection: The IR sensor detects finger movements, interpreting them as Morse code dots and dashes
- Decoding: The Arduino/ESP32 decodes the Morse code into characters and words
- Communication: Decoded text is sent via serial communication to the Python script
- Output:
- Regular messages are converted to speech using pyttsx3
- Emergency signals trigger calls and SMS to predefined contacts using Twilio
Letter | Morse Code | Letter | Morse Code |
---|---|---|---|
A | .- | N | -. |
B | -... | O | --- |
C | -.-. | P | .--. |
D | -.. | Q | --.- |
E | . | R | .-. |
F | ..-. | S | ... |
G | --. | T | - |
H | .... | U | ..- |
I | .. | V | ...- |
J | .--- | W | .-- |
K | -.- | X | -..- |
L | .-.. | Y | -.-- |
M | -- | Z | --.. |
- Rudra
- Nagen
This project is licensed under the MIT License - see the LICENSE file for details.