Inspired by Interstellar, this project reimagines the movie's clever use of a watch's second hand to transmit messages. In the film, binary data is communicated through subtle movements. Here, we’ve adapted that concept into an analog clock that transmits messages using Morse code! Not associated with
The Interstellar Morse Code Clock is a web app that merges a working analog clock with a Morse code transmitter. Input a message, hit "Submit," and watch the second hand animate to convey your message in dots and dashes, while the translated text appears below in real-time.
- Launch the App: Open the project in a web browser (see Running the Project).
- View the Clock: An analog clock displays the current time.
- Enter a Message: Type something like "SOS" or "HELLO" (A-Z, 0-9 supported).
- Transmit: Click "Submit."
- Observe: The second hand moves to signal:
- Dot: Swings to 15° briefly.
- Dash: Swings to 45° for longer.
- Live Output: Below the clock:
- Morse Code: Current sequence (e.g., "....").
- Translation: Builds letter by letter (e.g., "H" → "HI").
- Completion: Clock resumes normal timekeeping; message stays displayed.
Example:
- Input: "SOS"
- Morse: "... --- ..."
- Output: "S" → "SO" → "SOS"
Built using:
- HTML5: For structure and
<canvas>clock rendering. - CSS: For a polished look.
- JavaScript: Drives clock updates, Morse conversion, and animations.
- Get the Files: Clone or download the repository.
- Open
index.html: Use a modern browser (e.g., Chrome). - Start Interacting: Clock runs automatically; input messages to transmit.
No server required—just a browser with HTML5 support.
- Supported Characters:
- A-Z (e.g., "A" → ".-", "Z" → "--..").
- 0-9 (e.g., "1" → ".----", "5" → ".....").
- Space between words → "/".
- Timing:
- Dot: 0.3s.
- Dash: 0.9s.
- Gaps: 0.3s between elements, 0.9s between letters, 2.1s between words.
- Animation:
- Dot: 15° swing.
- Dash: 45° swing.
- Rest: 0°.
This project draws its concept from Interstellar, where a watch’s second hand encodes critical messages. We’ve transformed that idea into a Morse code-based system, blending creativity with interactivity.
- Add sound effects for dots and dashes.
- Allow adjustable transmission speeds.
- Support punctuation marks.
- Log past messages.
- Built with Grok 3 (xAI)
- eudk
- Feel free to submit pull requests and improve it!
- Have fun with the Interstellar Morse Code Clock! Contributions and feedback are welcome.
- Not affiliated with, endorsed by, or associated with Warner Bros. or the creators of Interstellar

