Morse Code Keyer / Decoder

Show off your projects to others!
Post Reply
w5uxh
Posts: 40
Joined: Mon Jun 02, 2014 6:29 pm
Location: Las Cruces, NM USA
Contact:

Morse Code Keyer / Decoder

Post by w5uxh » Fri Jun 12, 2015 9:16 pm

I started playing with ChipKit boards just about one year ago. I was interested in migrating a project from the ATmega328P chip that was a combined paddle keyer + keyboard for "CW" (Morse Code). I do not expect to find much interest in such things here but thought I would post some information about my project just in case. I played with the DP32, Max32, and PICadillo along the way but the Uno32 was the best fit. I still have thoughts of supporting the PICadillo some day, but the current project uses a standard 4x20 LCD.

My ham radio interest is very narrow, high speed CW at speeds up to 70 wpm. Although we only use our "ears / brain" to copy the code at these speeds, the PIC32 chips have sufficient resources and speed to allow integrating a CW decoder into the project. The decoder part of the project is based on an Arduino project by Hjalmar, OZ1JHM.

I had very significant help from Matt Jenkins when I was getting started and I used UECIDE as the development environment. I never liked or used the Arduino environment and felt the same about MPIDE when a began experimenting with the ChipKit boards. Fortunately I ran across UECIDE in the first few days and found that it suited me perfectly. Long may it live!

Matt provided a basic 16-bit timer library that I was able to understand well enough to expand to handle the 32-bit modes. Timers and interrupts are a critical resource for generating precise timing for properly timed CW. I also was able to use a SPI RAM library he had provided to convert it to SPI EEPROM for storing user settings and "canned messages".

The attachment shows the Uno32 plugged on to a printed circuit board for the project that is still waiting for a parts delivery to be completed. I have one of the boards fully completed and in use. The PCB layout was done after first building a few perfboard breadboard versions. Some components are located on the back side of the board. The board mounts "upside down" in an acrylic enclosure and the pots and reset switch extend through the top panel so they are all on the other side, along with some of the I/O connectors.

I have been using the completed one for a few weeks "on the air" and fortunately have not yet run across any bugs. I still have some minor features to add, but it is fully functional for my normal requirements.

In case any ChipKit users have an interest in such things, this link: https://sites.google.com/site/w5uxhpic32keyer/home contains more details, including a snapshot of the current code.

Chuck, W5UXH

(I had a typo in the word "Decoder" in the title. Hopefully this edit will fix it!)
Attachments
W5UXH-PIC32-Keyer-PCB-BottomView-Uno32.jpg
W5UXH-PIC32-Keyer-PCB-BottomView-Uno32.jpg (323.72 KiB) Viewed 1646 times

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Morse Code Keyer / Decoder

Post by Jacob Christ » Sun Jun 12, 2016 2:48 am

Nice, thanks for sharing. I have a lab in one of the chipKIT classes I teach that will generate Morse code, but nothing to decode it.

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

w5uxh
Posts: 40
Joined: Mon Jun 02, 2014 6:29 pm
Location: Las Cruces, NM USA
Contact:

Re: Morse Code Keyer / Decoder

Post by w5uxh » Sun Jun 12, 2016 4:28 am

You might find this short Arduino sketch from Hjalmar more useful than my much more complex version:

http://skovholm.com/cwdecoder

On an Arduino Uno running at 8 MHz (I think), it decodes reasonably well up to almost 30 wpm. I don't think I ever migrated it directly to the PIC32 boards. I tested it briefly in an Arduino, then made major changes for my PIC32 version, specifically to integrate it with the other paddle keyer and PS2 keyboard keyer functions and support very high speed.

It is possible there were some minor things in the post by Hjalmar that may have needed to be addressed, but I think it is pretty complete.

My current version now targets several additional boards, including the Picadillo and Fubarino SD, both using the SD memory card to allow sending long text files as CW. I use several of these to send CW practice over an internet VOIP server (using Mumble) and the decoder allows simple one character commands to be sent by others to control speed, select different text files etc.

Post Reply