Questions tagged [morse-code]

Morse code is an early method of encoding alphanumeric text into an on-off signal with two lengths, a short pulse for dots and a longer pulse for dashes. Spaces between letters and words are significant in distinguishing messages. The encoding can be learned by humans by memorization and practice, and although over 100 years old, practitioners still exist among amateur radio operators and emergency personnel.

Questions about Morse code are on topic only to the extent that they involve computer programming to encode or decode Morse code.

Due to its simplicity, Morse code can be sent by various means including: wired telegraphy, lights/mirrors, radio (or wireless telegraphy), and audio.

A significant feature of Morse Code is that it is an encoding that can be learned by humans that in practice on radio is extremely narrow in bandwidth (~30 hz) compared to SSB (3 khz) or narrow FM (5 khz) voice transmission. As a result, Morse code by radio can concentrate more of the radio transmitter energy into fewer hz, and have greater range than voice modes using the same transmitter or adequate range with lower input power than voice signals. Receivers made for Morse code can include much narrower filters than voice receivers, thereby increasing the signal to noise ratio and allowing for the reception of Morse code much closer to interfering signals than for receiving voice transmission. These features may be crucial for sending short messages during emergencies.

The disadvantages are human difficulty in becoming speed proficient, and the lower speed and reduced character set at which most messages can be sent compared to more modern digital codes. When Morse code was required among Amateur Radio operators, 5 words per minute was considered beginner, and 20 words per minute was considered fully proficient and qualified the operator for the beginner (Novice) and best licenses (pre-2006 "Extra class") respectively in conjunction with a written technology and regulations test. Morse code is no longer a license requirement for Amateur radio.

Perhaps the most well known Morse code is the distress signal SOS *** --- *** where S is encoded as three dots and O is encoded as three dashes. An SOS should only be sent in a case of genuine emergency as most jurisdictions have penalties for sending a false distress signal.

Links

Wikipedia:Morse Code has the symbol table as well as historical information.

ARRL W1AW Morse Code Practice archive has text and mp3 files that might be useful for programmers writing machine-learning projects involving morse code.

Morse code operators bested teenage texters in transmission speed in a Texting vs. Morse Contest from Jay Leno's Tonight show; with repetition by K2BSA

215 questions
12
votes
2 answers

How can I analyze or improve my niece's simple compression algorithm that is based on Morse code?

My 8 year old niece had a lesson on Morse code in school yesterday, and her assignment was to convert various phrases to Morse code. One of the phrases included her age, and instead of writing ---.., she wrote 3-2. because (in her words), "it's less…
John Bensin
  • 301
  • 2
  • 5
  • 20
11
votes
3 answers

morse code to english python3

i want to convert Morse Code to English using Python 3+ I have managed to convert english to morse code using this http://code.activestate.com/recipes/578407-simple-morse-code-translator-in-python/ But i want to convert Morse Code to English I have…
Brandon Skerritt
  • 380
  • 2
  • 3
  • 12
8
votes
5 answers

Allowing multiple characters in morse code converter

I'm making a program that takes input and coverts it to morse code in the form of computer beeps but I can't figure out how to make it so I can put more than one letter in the input without getting an error. Here is my code: import winsound import…
Serial
  • 7,925
  • 13
  • 52
  • 71
6
votes
3 answers

Translating Morse code with no spaces

I have some Morse code that has lost the spaces in between the letters, my challenge is to find out what the message says. So far I have been kinda lost because of the sheer amount of combinations there might be. Here is all the info on the messages…
giodamelio
  • 5,465
  • 14
  • 44
  • 72
6
votes
2 answers

Java: MorseCode Converter

I'm trying to convert Morse code into text. I have two text files to use with this problem. morseCode.txt: I have a file that i read off that contains the letters and corresponding Morse code equivalent. morse.dat: Its the file that contains the…
HelloWorld
  • 559
  • 4
  • 11
  • 16
5
votes
5 answers

PHP Morse code converter

I am writing a basic morse code converter in PHP which can take a string and convert it into morse code. It is using an associative array, a foreach loop, and a for loop. It works, except for some reason it outputs the morse code equivalent for '0'…
8se7en
  • 61
  • 1
  • 4
4
votes
9 answers

js decoding morse code

For this project, I am trying to decode a given Morse code string. Encoded characters are separated by a single space and words are separated by three spaces. I am having a tough time getting past the word spaces. I keep getting "wordundefinedword".…
Allissia Baublet
  • 67
  • 1
  • 1
  • 4
4
votes
4 answers

Decode Morse without white spaces to text

Is there any possibility to decode Morse code to text if the code is in following format(without any white spaces): -.-..--.....-...--..----. Normally it looks like that, - .-. .- -. ... .-.. .- - .. --- -. t r a n s l a t i o n but…
Kalvis
  • 595
  • 2
  • 7
  • 13
4
votes
2 answers

Filtering signal with white gaussian noise in MATLAB

I have a signal/vector with high amplitude white gaussian noise and I'm trying to get a binary signal (0 or 1). The sampling frequency is 10Hz. I applied a simple 2nd order Butterworth filter in MATLAB as follows; x=sig_bruit_BB1; …
user1948421
  • 41
  • 1
  • 2
4
votes
1 answer

How to demodulate (audio) morse code

I have a radio receiver. That radio's sound output goes to my computer. The sound output contains morse code on or about 440 Hz. That morse code could range in speed from 2 to 20 WPM. I sort-of know how to figure out whether the other station is…
Nick ODell
  • 15,465
  • 3
  • 32
  • 66
3
votes
2 answers

Python print element happens after the next element

I'm trying to make a text-to-morse translator with Python (using Python 3.8 in vs code) But there's a problem in line running order. This is my code(question is after the code): import winsound import time def beep(char): sound = { …
3
votes
6 answers

Checking a String against a hashmap

I want to build a program that translates English to Morse code and visa versa, I have decided to use hash maps to do this, but I'm unsure as to how I could run the string through the hash map and get the translation out at the end. Here is my code…
Sinn0n
  • 61
  • 2
3
votes
2 answers

Can I access the English dictionary to loop through matches in morse code? If not can I copy and paste it from some place onto just afew lines?

So I am writing a program in python 2.7 that loops through all of the words in the English language to see if the Morse code version of English word matches the unknown Morse phrase. The reason I can't just interpret it is because there are no…
Moshe Goldberg
  • 461
  • 2
  • 15
3
votes
1 answer

Morse Code to English

My problem right now is getting the "morse code to english" to work. the first part which converts english to morse is working perfectly. i know this has been asked before but i can't figure out what i am doing wrong. i know i need a split…
Cfs0004
  • 85
  • 2
  • 14
2
votes
2 answers

Why is my {get; private set} variable returning an empty Dictionary?

I am trying to use a {get; private set;} for a MorseCode translator I am building right now. The MorseToText Dictionary is supposed to be built from a TextToMorse Dictionary I have already defined. For some reason my Dictionary is empty when I use…
Hale Jan
  • 75
  • 7
1
2 3
14 15