Morse Code Tutor

Jack, W8TEE


The source code and schematic from my FDIM talk on the Morse Code Tutor is now available in the Files section on SoftwareControlledHamRadio Group.

Please note that there are still some changes that I plan to make to the code, but I have no plans to change the hardware of the MCT. Al and I consider the MCT to be Open Source, subject to the MIT Open Source agreement. (This more-or-less means that you need to leave my headers in the files.)

Note that there are multiple files in the zip file and those files must all appear in the same project directory. There are also some non-standard headers used that are not part of the standard Arduino IDE. The URL for these non-standard headers are given after their #include directives in the MorseTutor.h header file. This is to be expected because the code uses the STM32F103 ("Blue Bill") microcontroller. This requires you to install the STM32F patch, and there are plenty of places to find help doing that. I used "Using the Arduino IDE with the STM32F" as my seach in DuckDuckGo (I'm done with Google) and found plenty of entries from which to choose, both videos and written.

Jack, W8TEE

Tom, wb6b

On Sat, May 18, 2019 at 09:35 AM, Jack Purdum wrote:
requires you to install the STM32F patch

I planning on using this STM32 ARM board manager. This 32 bit ARM extension for Arduino is written by actual ST Microelectronics software engineers. It looks like it is based on the same libraries used in their STM32Cube (hopefully wrapped with all the same Arduino libraries Arduino people are familiar with). Unlike their professional development tools, the Arduino version also works for generic boards like the Blue Pill. For the Blue Pill it has a serial up-load option. I haven't tested it on a Blue Pill, but hopefully that means working with the standard boot loader that comes on the Blue Pill boards. 

To install this STM32 board tool chain, go to the Arduino preferences and add the following URL to the "Additional Board Manager URL's" box:

The Morse Code Tutor is a cool project, however I might use a NUCLEO-F303K8 development board because I have one in hand (they also have a board with the same chip as the Blue Pill. But I like the F303 because it has a built in Op-Amp(s) that can be used with the A2D converters). A cool thing about the Nucleo boards is you don't need a boot loader on the chip. The board has a second microprocessor chip that is an ST-Link programmer that programs the chip directly, without needing a boot loader, and debugger that lets you set break points and single step through your code.  And you don't need to select a USB serial port for ST-Link to connect. Even more cool is when you plug the board into your USB connector it emulates a USB thumb drive. You can just drag a hex file into the drive and it will flash the code into the microprocessor chip. The board costs $10 rather than $3 but are still a good value. 

Here is a Getting started page:

Here is a link to the board:

A caveat. I have been using the ST Microelectronics development tools for STM32 (ARM) processors. It was only after seeing Jack's Code Tutor project that I looked to see what support there was for Arduino. I was very pleasantly surprised to see this tool chain. However, I have not tested it out to any extent or compiled Jack's Code Tutor yet. But, barring some unforeseen glitch I expect this to be a good library with the benefit that it is built on the same libraries I currently use. 

That's my vote. Interested if others have tried this or other board tool sets that they like.

Tom, wb6b