GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SP9TKN/esp32-cw-keyer-trainer: Pomagier Telegrafisty: ESP32 CW practice keyer and Morse trainer. Iambic and straight-key decoder, Koch / Q-code / callsign trainer, Bluetooth keyboard to Morse, SH1106 OLED (ESP-IDF). UI in Polish.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
components/u8g2
components/u8g2
 
 
docs/images
docs/images
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.pl.md
README.pl.md
 
 
platformio.ini
platformio.ini
 
 
sdkconfig.defaults
sdkconfig.defaults
 
 
sdkconfig.lolin32
sdkconfig.lolin32
 
 

Repository files navigation

Pomagier Telegrafisty — ESP32 CW keyer and Morse trainer

🇵🇱 Polish version: README.pl.md

Important

🇵🇱 The program is in Polish (all on-screen texts and the code comments). The menu table below translates every item.

A pocket CW practice keyer and Morse code trainer: a Wemos LOLIN32 (ESP32) with a 1.3" SH1106 OLED in a 3D-printed case. Plug in an iambic paddle or a straight key and it decodes what you send. Switch to the trainer and it sends groups for you to key back: Koch method, letters and digits, Q-codes, callsigns. Pair a Bluetooth keyboard and your typing comes out as Morse. Pomagier Telegrafisty is Polish for "the telegraphist's helper".

Pomagier Telegrafisty: red and black 3D-printed case, the OLED shows the splash screen, encoder knob and push button Side of the case with four 3.5 mm jacks

Features

  • Iambic keyer, 5–30 WPM, set with the WPM+ / WPM− buttons. Paddle orientation -. or .- (swaps dit and dah).

  • Straight-key mode (SZTORCOWY): the keyer measures your speed from your hand and shows it as W~14.

  • Live decoder: everything you key appears as text on four lines. The status bar shows the speed, the dots and dashes of the character in progress and the battery voltage.

  • Trainer, 5–40 WPM, four modes:

    • KOCH: the Koch method, 40 levels. Level n uses the first n characters of K M R S U A P T L O W I . N J E F 0 Y V , G 5 / Q 9 Z H 3 8 B ? 4 2 7 C 1 D 6 X, in groups of five.
    • ALFA: random letters A–Z, digits 0–9 or both, in groups of 1–5.
    • KOD-Q: 44 Q-codes. Each one is shown with its meaning (in Polish) while it is sent.
    • CALLSIGN: 272 callsigns from around the world.

    The keyer sends a group and you key it back with the paddle. The result screen shows what was sent above what you keyed, with the score and OK! or POWT! (repeat). A group with mistakes is sent again.

  • Bluetooth keyboard (Classic BT HID host): typed text appears on the screen and is played as Morse at the current speed. Backspace deletes, Space and Enter add a word gap.

  • Sidetone on a buzzer and on headphones, plus an LED. The headphone tone is a sine from a PWM-DAC with a soft attack and release, so it does not click. Each output can be switched off. Volume 1–9, pitch 200–990 Hz.

  • Display brightness 1–9. All settings are kept in flash (NVS) and survive power-off.

Screens

Every screen below was rendered from the firmware's own drawing code. The functions from src/main.cpp were compiled on a PC with the same U8g2 library, and the SH1106 128×64 frame buffer was saved as a PNG. Each image is exactly what the OLED shows, pixel for pixel (white on black, enlarged ×4).

Splash screen
Splash: 73 de SP9TKN
Decoder
Keying at 18 WPM, the decoder at work
Straight key
Straight key, measured speed ~14 WPM
Main menu
Main menu
Trainer menu
Trainer: Koch, level 12 of 40, 20 WPM
Trainer sending
The trainer sends a group
Your turn
Your turn: key the group back
Result
Result 4/5, POWT!: the group comes again
Q-code
A Q-code and its meaning (lokalizacja = location)
Callsign mode
Callsign mode
Sidetone pitch
Sidetone pitch
Bluetooth
Bluetooth keyboard connected
Key menu
Paddle orientation or straight key
Brightness
Display brightness

How the trainer works

stateDiagram-v2
    direction LR
    state "Trainer menu" as M
    state "Keyer sends a group" as S
    state "You key it back" as I
    state "Result" as R
    M --> S : press 2×
    S --> I : group sent
    I --> R : group complete or press 1×
    R --> S : all correct → new group
    R --> S : mistakes → same group again
    I --> M : press 3×
Loading

The trainer speed is separate from the keyer speed. The group you key back is timed at the trainer speed, so the decoder expects the same tempo you just heard.

Controls

Control Keying Menus Trainer
Encoder: turn – move, change the value change the selected field (mode, level, letters, group size)
Encoder: press 1× open the menu select menu: next field; your turn: give up the group (KLIK=DALEJ)
Encoder: press 2× – – start (2x=START)
Encoder: press 3× clear the screen – back (3x=MENU)
WPM+ / WPM− keyer speed 5–30 – trainer speed 5–40

Menus

The screens show the words without Polish diacritics, exactly as below.

On screen English Inside
WSTECZ back
TRENER trainer mode KOCH / ALFA / KOD-Q / CALLSIGN, level (POZIOM) or letters (LITERY), group size, speed (TEMPO)
KLUCZ key -. / .- paddle orientation, SZTORCOWY = straight key
DZWIEK sound BRZECZYK buzzer, LED, SLUCHAWKI headphones (on WL / off WYL), GLOSNOSC volume 1–9, TON pitch 200–990 Hz
EKRAN display JASNOSC brightness 1–9
BLUETOOTH SZUKAJ KLAWIATURE find a keyboard, POLACZONO [OK] connected, WYLACZ BT Bluetooth off

Hardware and wiring

  • Wemos LOLIN32 (ESP32)
  • OLED 1.3" SH1106 128×64, I²C
  • rotary encoder with a push button, two push buttons for WPM+ and WPM−
  • buzzer, LED with a resistor, headphone output
  • battery, read through a 1:2 divider
  • 3D-printed case with four 3.5 mm jacks on the side

Wiring diagram

GPIO Connected to
19 paddle DIT (contact to GND)
18 paddle DAH (contact to GND)
15 WPM+ button (to GND)
13 WPM− button (to GND)
25 encoder push button
27 / 26 encoder A / B
16 / 17 OLED SDA / SCL
23 buzzer (+); (−) to GND
5 LED through a resistor to GND
32 headphones (PWM-DAC, 312.5 kHz carrier)
35 battery through a 1:2 divider

All inputs use the ESP32's internal pull-ups, so the paddle, the key and the buttons simply short a pin to GND. In straight-key mode either paddle contact keys.

Building and flashing

Ready image: download pomagier-telegrafisty_2026-11-19_flash_at_0x0.bin from Releases and write it at address 0x0: python -m esptool --chip esp32 --port COMx write_flash 0x0 pomagier-telegrafisty_2026-11-19_flash_at_0x0.bin. The browser-based esptool-js works too.

From source: PlatformIO with the ESP-IDF framework (platform pinned to [email protected]): pio run -t upload --upload-port COMx. The project uses ESP-IDF instead of Arduino because the Bluetooth keyboard needs the Classic BT HID host, which the prebuilt Arduino libraries do not include. The Bluetooth options are in sdkconfig.defaults.

License

GPL-3.0 © 2026 SP9TKN.

The display library U8g2 by Oliver Kraus is included in components/u8g2 under the BSD-2-Clause license, © 2016 olikraus (license). The fonts have their own licenses, described in the U8g2 wiki. The firmware is built on Espressif's ESP-IDF (Apache-2.0).

Tools: developed with Claude Code (Anthropic) — AI assistant used for coding, testing and documentation.

About

Pomagier Telegrafisty: ESP32 CW practice keyer and Morse trainer. Iambic and straight-key decoder, Koch / Q-code / callsign trainer, Bluetooth keyboard to Morse, SH1106 OLED (ESP-IDF). UI in Polish.

Topics

amateur-radiobluetooth-keyboardcwesp-idfesp32ham-radiokeyerkoch-methodmorse-codemorse-traineroledplatformiosh1106u8g2

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.