Programmable CW Morse beacon

The provided software is based on USB Virtual Com Port (VCP) device. The setup is done with command line interface using terminal from any PC. The setup is stored in the internal flash and PC is not required for normal operation. The mini beacon keyer can be used when powered with 5V.

Programmable CW Morse beacon

For proper operation VCP driver is required. It can be downloaded from  http://www.st.com/web/en/catalog/tools/PF257938# or local copy: VCP_V1.4.0_Setup After installation connect the device, use terminal and have fun.

OK, not so quick. The microcontroller must be reprogrammed first. Every STM32F0xx come with USB bootloader from the factory. After assembling the single sided PCB, double checking all components, the real fun can start:

  1. Download and install DfuSe from http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1533/PF257916
  2. Start DfuSe and update firmware with the following DFU file https://github.com/s54mtb/stm32projects/blob/master/projects/f0-usb-beacon/Objects/MorseGenerator.dfu
  3. Restart the device and install VCP driver
  4. Connect the device and find which COM port has been assigned to the device
  5. Start your favorite terminal program
  6. Setup the device with provided commands
  7. Repeat step 6 if neccessary, store the setup(s)
  8. Enable one of the setups for autorun operation

Now the device can be used without PC. Power it with 5V, wait 10 seconds to start the autorun operation and make some “beaconing” online.

The source code is provided on GitHUB>>> https://github.com/s54mtb/stm32projects/tree/master/projects/f0-usb-beacon

The device can be re-programmed with any SWD debugger (ulink, jlink, stlink, …)

Commands reference will be provided soon. Stay tuned.

Command line interface

Different sets of commands are provided for adjusting the operation of the device: audio settings, timing running and repetition, message entry and controlling settings storage in internal flash.

When invalid command is entered, the device displays brief help:

Commands:
 AUD V/R/F/C/D
 MSG ...Text...
 MODE N/S/D
 RPT T/N/D
 RUN
 OUT P
 CAT
 STORE x
 LOAD x
 DEL x
 ID ...Text...
 STOP
 START x

Audio settings

Audio output is generated using internal timer programmed into PWM mode. The PWM width can be adjusted from 0 to 50% and frequency of the PWM can be set between 100Hz and 10kHz. All audio parameters are set with the command

AUD <V|R|F|C|[D]> <Vol>|<1|0>|<Freq>|<1|0>

Audio Volume

Audio volume is adjusted by changing PWM ratio between 0 and 50%. The volume parameter is 0 to 100%, where 100% volume sets the PWM to 50%. The command syntax is:

AUD V <Vol>

Where <Vol> is between 0 and 100.

Example: To set the volume to 5% enter command

AUD V 5

and press enter.

Audio Frequency

Audio frequency is entered in Hz and sets the audio PWM to required frequency. The frequency can be set between 100Hz and 10kHz. The command syntax is:

AUD F <Freq>

Where <Freq> is between 100 and 10000.

Example: To set the frequency to 500Hz enter command

Read more: Programmable CW Morse beacon


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut