2
June
2020
15:56

Script for learning Morse code

2 June 2020 15:56

A few years ago I learned CW (Morse code). Now I want to increase the speed after a long break, because soon there will be competitions on ultra-short waves. I am publishing a script that I developed for training telegraph reception by ear. The script plays random text through the computer speaker at a specified speed.

First of all, you need to install the morse program

sudo apt install morse
  1. Command: a letter in Morse code sounds, the program waits for the character to be entered from the keyboard:

morse -r -w 25 -c -t -q -M 1 -n 1

  1. Command to continuously generate a sequence of telegraph symbols at a speed of 17 WPM, in a group of 5 symbols.
    You need to press the keyboard buttons in accordance with the characters heard from the speaker. In case of an error, the letter on which you made a mistake is displayed on the screen:

    morse -r -w 17 -c -t -q -M 2 -E 4 -q -n 5

  2. Team for experienced radio operators. Continuous generation of a sequence of telegraph symbols at a speed of 20 WPM, in a group of 5 symbols. You need to press the keyboard button corresponding to the letter you hear. If 2 incorrect characters are entered in a row, the program stops the exercise.

    morse -r -w 20 -c -t -q -M 3 -E 2 -q -n 5

An input lag (lag entry) of 3 characters is allowed.

  1. Script for an exercise on receiving CW, written down on a piece of paper.

To generate groups of random characters, use the program for creating complex passwords pwgen -
5 characters per group - 10 groups in total. Speed 17 WPM (about 85 characters per minute)

can be adjusted by replacing the number -w 20 with any other number -w 15 ... -w 44.

Example col5.sh file:

Rights:

chmod 770 col5.sh

File Contents:

!/bin/bash
sleep 3
pwgen 5 10 -A | tr '[:lower:]' '[:upper:]' > cwtemp.txt
cat cwtemp.txt | morse -w 17
cat cwtemp.txt

Running a batch file

./col5.sh

Prepare a pen or pencil in advance! :-)


Other useful programs for learning Morse code:

qrq
  • to practice receiving call signs.


Related publications