🇵🇱 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".
-
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!orPOWT!(repeat). A group with mistakes is sent again. - KOCH: the Koch method, 40 levels. Level n uses the first n characters of
-
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.
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).
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×
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.
| 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 |
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 |
- 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
| 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.
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.
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.
















