A full-featured two-way CW (Morse code) keyer built on the LilyGO T-Display S3 AMOLED board, featuring peer-to-peer WiFi communication via ESP-NOW, real-time Morse decoding, and a beautiful 1.91" AMOLED display.
Designed and built by K0WLY — Saratoga Springs, Utah — Grid DN40
- Iambic Mode A, Iambic Mode B and Ultimatic keyer modes with adjustable speed (5–40 WPM)
- Straight key mode selectable via hardware switch
- Adjustable sidetone frequency (400–900 Hz) — each unit independent
- Logarithmic volume control via PWM, works for speaker and headphones
- Head copy delay (0–3 seconds) for incoming character display
- WiFi file playback — upload .txt practice files from any phone browser, plays as CW
- WiFi Access Point — unique hotspot per unit (K0WLY-XXXX), no password, works on all platforms
- Iambic DIT/DAH output (GPIO40/41) — connect to radio paddle input for radios with built-in keyers (e.g. Xiegu G90)
- Web interface — settings tiles (speed, Farnsworth, frequency, volume, delay, word gap, keyer mode, dit/dah swap), file management, all from phone browser at 192.168.4.1
- Automatic peer-to-peer WiFi pairing via ESP-NOW — no router needed
- Two-way CW communication — transmit and receive simultaneously
- Real-time Morse decoding — letters, numbers, punctuation, and prosigns
- Scrolling TX/RX display on 1.91" AMOLED (536×240)
- Farnsworth spacing — two-speed CW for learning (character speed plus a 4 WPM-or-higher overall speed, e.g. 20/10)
- Adjustable word gap spacing (off or 4–9 dits) for display readability
- Non-volatile settings — survives power cycles
- Single pot with mode cycling for all parameter adjustments
- Frame buffer display — instantaneous screen updates, no glitch
| Component | Value | Notes |
|---|---|---|
| MCU Board | LilyGO T-Display S3 AMOLED | ESP32-S3R8, 1.91" AMOLED |
| Optocoupler | PC817 | Radio key line isolation |
| Transistors | 2N4401 × 2 | Speaker + headphone audio |
| Base resistors | 470Ω × 2 | GPIO13 to transistor bases |
| Pull-up resistors | 10kΩ × 2 | DIT/DAH paddle inputs |
| Key mode resistor | 100kΩ | GPIO15 pull-up |
| Headphone pull-up | 1kΩ | Headphone transistor collector |
| Coupling cap | 47µF bi-polar | Headphone output only |
| Headphone resistor | 100Ω | Series protection |
| Pot | 10–20kΩ linear | Parameter adjustment |
| Speaker | 8Ω | Direct connection, no cap needed |
| 3.5mm jack | TRS | Headphone output |
| Function | GPIO | Notes |
|---|---|---|
| DIT Paddle | GPIO11 | Active LOW, ext 10kΩ pull-up |
| DAH Paddle | GPIO10 | Active LOW, ext 10kΩ pull-up |
| Key Out | GPIO12 | HIGH=keyed, drives PC817 |
| Sidetone | GPIO13 | PWM → 470Ω → 2N4401 |
| Pot (ADC) | GPIO14 | Wiper of 10–20kΩ pot |
| Key Mode | GPIO15 | SPST: open=iambic, GND=straight key |
| Paddle Reverse | GPIO16 | PBNO momentary button — short press swaps dit/dah, long press (1 sec) cycles keyer mode A → B → U (Ultimatic) |
| Pot Mode Select | GPIO39 | PBNO momentary button |
Speaker circuit — direct connection, no coupling capacitor:
3.3V ──── Speaker ──── Collector
│
GPIO13 ── 470Ω ── Base 2N4401 #1
│
Emitter ──── GND
Headphone circuit — separate transistor with coupling cap:
3.3V ──── 1kΩ ──── Collector
│
+47µF- ──── 100Ω ──── 3.5mm tip
│ 3.5mm sleeve ──── GND
GPIO13 ── 470Ω ── Base 2N4401 #2
│
Emitter ──── GND
Note: The speaker connects directly without a coupling capacitor. A coupling cap in series with the speaker will block all audio. The headphone output uses a separate transistor with its own 3.3V pull-up and a 47µF bi-polar coupling cap to block DC.
- PlatformIO with VS Code
- ESP32 Arduino framework 2.0.x
This is the project's firmware/platformio.ini. It uses the custom board definition in firmware/boards/ and the partition table in firmware/partitions.csv.
[platformio] boards_dir = ./boards [env:t_display_s3_amoled] platform = espressif32 board = lilygo-t-amoled framework = arduino monitor_speed = 115200 board_build.partitions = partitions.csv board_build.filesystem = littlefs build_flags = -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT=1 -DASYNCWEBSERVER_REGEX=0 lib_deps = https://github.com/Xinyuan-LilyGO/LilyGo-AMOLED-Series https://github.com/moononournation/Arduino_GFX#v1.4.7 https://github.com/ESP32Async/AsyncTCP https://github.com/ESP32Async/ESPAsyncWebServer
- Clone this repository
- Open the
firmware/folder in VS Code with PlatformIO - Connect the T-Display S3 AMOLED via USB
- Hold BOOT button, plug in USB, release BOOT
- Click Upload in PlatformIO
┌─────────────────────────────────────────────────────────────────────┐
│ K0WLY 20WPM 700Hz DLY:0.0s VOL:50% IAM SOLO │ ← Header
├─────────────────────────────────────────────────────────────────────┤
│ TX> CQ CQ CQ DE K0WLY K0WLY K │ ← Outgoing (green)
├─────────────────────────────────────────────────────────────────────┤
│ RX> TNX FER CALL OM 73 DE │ ← Incoming (cyan)
├─────────────────────────────────────────────────────────────────────┤
│ POT: WPM │
│ 20 WPM │ ← Status area
│ SEARCHING... │
└─────────────────────────────────────────────────────────────────────┘
| Button Action | Result |
|---|---|
| Short press | Cycle to next parameter: WPM → FREQ → DELAY → VOL |
| Long press (1 sec) | Enter/exit edit mode for current parameter |
| Turn pot (in edit) | Adjust value — saves to flash in real time |
- Power on both units — they auto-discover each other via ESP-NOW
- Header changes from SOLO to DUAL when paired
- Each unit hears all CW at its own sidetone frequency
- Incoming decoded characters appear on the RX line (cyan)
- Head copy delay (0–3s) lets you practice mental decoding
Letters A–Z, numbers 0–9, punctuation (. , ? / ( ) : ; - ' " @ & ! _), and prosigns: + = AR, = = BT, ~ = SK
PARIS standard (ITU-R M.1677-1)
| Element | Duration |
|---|---|
| Dit | 1 × (1200/WPM) ms |
| Dah | 3 × (1200/WPM) ms |
| Inter-element gap | 1 × (1200/WPM) ms |
| Character gap | 3 × (1200/WPM) ms |
| Word gap | 7 × (1200/WPM) ms |
Each GitHub release includes a pre-compiled firmware.bin file that can be flashed without installing PlatformIO or compiling any code.
- Download the Espressif Flash Download Tool — look for "Flash Download Tools" and download the
.zip - Extract and run
flash_download_tool.exe - Select ESP32-S3 as the chip type
- Click the
...button next to the first address field and select yourfirmware.bin - Set the address to
0x10000 - Select your COM port from the dropdown (check Device Manager if unsure)
- Set baud rate to
921600 - Click START
- If it fails to connect, hold the BOOT button on the board, press and release RST, then release BOOT and click START again
Install esptool (requires Python):
pip install esptool
Flash the firmware:
esptool.py --port COM3 --baud 921600 write_flash 0x10000 firmware.bin
Replace COM3 with your actual port:
- Windows — check Device Manager under Ports (COM & LPT)
- Mac — typically
/dev/tty.usbmodem101or/dev/cu.usbmodem101 - Linux — typically
/dev/ttyACM0
If connection fails, hold BOOT, press RST, release BOOT, then run the command.
For developers who want to modify the firmware:
- Install VS Code and the PlatformIO extension
- Clone this repository
- Open
firmware/folder in VS Code - The
lilygo-t-amoledboard definition (firmware/boards/lilygo-t-amoled.json) and partition table (firmware/partitions.csv) are already included - Build and upload using PlatformIO
k0wly-cw-keyer/
├── firmware/ # PlatformIO project
│ ├── src/
│ │ └── main.cpp
│ ├── boards/ # lilygo-t-amoled board definition
│ ├── partitions.csv
│ └── platformio.ini
├── hardware/
│ ├── schematic/ # Schematic PDFs and BOMs
│ ├── pcb/ # Gerbers and pick-and-place files
│ └── enclosure/ # Enclosure 3D models (SolidWorks and STL)
├── docs/ # Operator's Manual (DOCX and PDF) and User Guide (DOCX)
├── images/ # Photos and screenshots
├── LICENSE # CERN-OHL-W v2 (hardware + firmware)
├── LICENSE-DOCS # CC BY 4.0 (documentation)
├── NOTICE # Required attribution notice
├── CONTRIBUTING.md
├── CHANGELOG.md
└── README.md
Hardware and Firmware: Licensed under the CERN Open Hardware Licence Version 2 - Weakly Reciprocal (CERN-OHL-W v2).
Documentation: Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Copyright © 2026 K0WLY (Carl Cowley) — Saratoga Springs, Utah
Attribution to K0WLY must be retained on all copies and derivatives.
See CONTRIBUTING.md for guidelines.
See CHANGELOG.md for version history.
73 de K0WLY — dit dit


