Morse code translator new version

This version is completely rewritten with the Phi-prompt interface for Phi-2 shields. Should be easy to use on Phi-1 shields by changing the #define phi_1_shield in main program.

The new program is easier to understand, and has a new library feature. Right now I have about 12 short words in the library. You can just browse the library of words and press confirm or right to play the Morse code for that word. It’s handy for training so you don’t have to enter it in painstakingly. Change the words anyway you want. They don’t have to be 7 letters long. The list can only fit 7 characters.

Here is a video:

Download:

->code<- This library includes the above example’s code, which requires phi_prompt and phi_buttons libraries.

The newest edition is based on phi_morse library now and is totally easy to use. I will upload as soon as possible.

Morse encoder and decoder

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine

This is an upgrade from my original Morse encoder/trainer.

I have added decode to the list of functions. Now you can try your skill with this program. Just key in (at 13WPM) with the A button on the Phi-1 shield and see Morse code (di and dah) display on the LCD. If you enter a valid sequence, the LCD will display the translated character. So if you key in …. . .-.. .-.. —, then the LCD will display HELLO. If you enter something wrong, just hang on to the key for two seconds or so then the last letter is erased.

The original Morse code player is unchanged, just enter a few words with up and down keys and play it.

I have also added a simple menu so you may select whether to encode or decode. Once you select encode, you can enter a few letters and play them. After they’re played, the program quits to the menu so you can choose decode and immediately practice your skill. I’ve learned about 10 letters and all the numbers now.

My next step is to put an adjustable parameter in the menu so you can choose the speed of the Morse code. I could use another weekend.

Here is a video (the decode, where I keyed in HELLO, took at least 5 trials. I need more practice 🙂

Where to get the Phi-1 shield?

You can purchase it at dipmicro, either just bare PCB, or kit (PCB + all parts). If the kit is not available (they need to be bagged), then scroll down and purchase everying on the list with the correct quantity, you’re set!

Code:

Morse code V6 



Morse encoder/player/trainer

I have had interest in learning Morse code for a while. It’s hard for me to start at this age but I’ve attempted to make a Morse code player already. See my early archives.

That was not very effective as a trainer. Now that I have the Phi-1 shield design, I decided to give it a second try, since yesterday afternoon. It went smoothly when I hodgepodged the original code with a other code that deals with display and text input.

I’ve added functions to my previous value input subroutines to handle both left and right arrows so I can jog my text cursor if I need to make changes. After pressing the enter, the input is sent to the Morse code subroutine and played out on the buzzer.

A few more things I’d like to do is to display the Morse code of the character being entered on screen and display the Morse code of the character being played on screen. I think I can savely leave these to interested individuals that want to do so.

I don’t even need a flowchart, the program is simple take input->play it->loop

Here’s a video:

%d bloggers like this: