/gosu-morse

Visual morse code decoder written in Ruby and Gosu

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

Morse Code Visualizer

Visual morse code decoder (not only) for the Raspberry Pi.

This a rewrite of morse using Gosu for Ruby.

Features

Screenshot

  • Decode morse code given either with keys on the keyboard or via an actual morse key attached at the serial port.
  • Encode text entered via keyboard.
  • Supports straight and iambic keyers (mode A and B).
  • Visualize pressed keys and generated sound for iambic keyers.
  • Morse code tree displaying the decoding process live.

Installation

  1. Install Ruby

     brew install ruby
    
  2. Install the SDL 2 library

     brew install sdl2
    
  3. Install Bundler

     gem install bundler
    
  4. Install required Ruby gems using bundler

     bundle install
    

Usage

Start with

    bundle exec ruby morse.rb

Use the enter key to simulate a straight morse keyer. Use the left and right arrows to simulate a iambic keyer. Use the function keys to adjust the settings as indicated in the menu on the bottom.

Further Ideas

  • DXpedition simulation:
    1. Computer calls CQ or QRZ
    2. user answers with her call
    3. if user's input looks like a call: computer repeats user's call + 5NN
    4. user gives 5NN TU
    5. if user's input looks like report: user's call ends up in a log and computer calls CQ or QRZ (goto 1) else: computer repeats user's call + 5NN or calls CQ (goto 1)