

I can not create a new string within the for loop either, since the variable will be lost upon leaving the for loop scope. I can't create an empty string, go into a for loop, and append to the string. The reason I work with lists is because strings are immutable in python. Finally, the lists within the list are joined, and the resulting list is joined as well so it can be returned as a string value.
#Wb7hfc morse decoder code
In my code below I create an empty list, which get filled with a list in which each item represents a single morse code character, that is then replaced with the actual character.

This version makes use of the 4 digit parallel method of driving the display. When the bottom line is filled, all lines will scroll up one row and new text will continue to appear at the bottom. If a word extends beyond the 20 column line, it will drop down to the next line.

The sketch includes funtions for word wrap and scrolling. This project is built around the 20x4 LCD display. However, if you reset and then send 'CALL ME WOODY' it will match your speed quite quickly. After a reset, the following text is very difficult to lock in on: 'SHE IS HIS SISTER' because there are only two dahs in the whole phrase and they come near the end. The more dahs you send at the beginning the sooner it locks into solid copy.
#Wb7hfc morse decoder software
The software tracks the speed of the sender's dahs to make its adjustments. If the tone decoder is not centered on the frequency of the incomming signal, you may have to fine tune the module as you lower the volume. Lowering the volume of the incoming CW can also help.

If you are not seeing solid copy, press the restart button on your Arduino. The first few characters may come out wrong while it homes in on the speed. This module allows you to tune to the frequency of a specific tone while ignoring noice and other tones of different frequencies The program will automatically adjust to the speed of code that is being sent. Details of this module will eventually be posted on line. 1.5 (c) 2014, Budd Churchward - WB7FHC This is an Open Source Project Search YouTube for 'WB7FHC' to see several videos of this project as it was developed.
