Skip to content

Hardware and software for a CW (Morse Code) trainer ... Audio and visual. Raspberry PI (of any vintage) with LCD screen, buzzer and tuning pot.

License

Notifications You must be signed in to change notification settings

alfille/pi_cw_trainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi_cw_trainer

Hardware and software for a CW (Morse Code) trainer ... Audio and visual.

The design goal is to make a stand-alone CW trainer.

Parts:

  • Raspberry Pi -- any generation
    • SD card 4 GB or larger
    • Power supply
  • Freenove Super Starter Kit for Raspberry Pi
    • About $22 on Amazon
    • Includes breakout board
    • LED and resistor
    • LCD screen with I2C controller
    • Potentiometer * 2
    • ADC chip via I2C
    • Speaker (passive buzzer with transistor driver)
    • LED matrix screen
    • Pushbuttons

Software:

Installation

  • Install raspbian OS
  • Install pigpio
    • Need cmake sudo apt install cmake
    • From Github:
git clone https://github.com/joan2937/pigio
cd pigpio
mkdir build
cd build
cmake ../
make -j4
sudo make install
sudo systemctl start pigpiod.service
sudo systemctl enable pigpiod.service
sudo systemctl status pigpiod.service
cd ~
  • Python module
pip3 install pigpio
  • Enable I2c control
    • sudo raspi-config

Audio

  • Uses simpleaudio module
    • Native methods in each platform
    • Monaural, 16 bit resolution
    • Sine wave with edge smoothing from https://brats-qth.org/training/advanced/trandrec8.htm
    • numpy for calculating waveform
  • Controls: pitch, volume in menu
  • Works poorly at high speeds (Dits are lost)

LED

  • Uses GPIO pin from Pi header board:
  • PI pinouts
  • Image from this reference
  • GPIO 5 = Header pin 29 is used to LED with 10K resistor to ground

About

Hardware and software for a CW (Morse Code) trainer ... Audio and visual. Raspberry PI (of any vintage) with LCD screen, buzzer and tuning pot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages