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 - Cowlacious/k0wly-cw-keyer: Keyer project to practice CW and to send it back and forth with another unit. Also has keyer out for radio's that don't have a keyer built in.

BranchesTags
Open more actions menu

Latest commit

 

History

80 Commits
80 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
firmware
firmware
 
 
hardware
hardware
 
 
images
images
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
LICENSE-DOCS
LICENSE-DOCS
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 

Repository files navigation

K0WLY Two-Way CW Keyer

License: CERN-OHL-W v2 License: CC BY 4.0 Platform: ESP32-S3 Framework: Arduino

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

K0WLY CW Keyer — Top View K0WLY CW Keyer — System View K0WLY CW Keyer — Parts View


Features

  • 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

Hardware

Bill of Materials

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

GPIO Pin Assignments

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

Audio Circuit Notes

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.


Firmware

Requirements

  • PlatformIO with VS Code
  • ESP32 Arduino framework 2.0.x

platformio.ini

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

Building and Flashing

  1. Clone this repository
  2. Open the firmware/ folder in VS Code with PlatformIO
  3. Connect the T-Display S3 AMOLED via USB
  4. Hold BOOT button, plug in USB, release BOOT
  5. Click Upload in PlatformIO

Operation

Display Layout

┌─────────────────────────────────────────────────────────────────────┐
│ 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...                                                        │
└─────────────────────────────────────────────────────────────────────┘

Parameter Adjustment

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

Two-Way Operation

  1. Power on both units — they auto-discover each other via ESP-NOW
  2. Header changes from SOLO to DUAL when paired
  3. Each unit hears all CW at its own sidetone frequency
  4. Incoming decoded characters appear on the RX line (cyan)
  5. Head copy delay (0–3s) lets you practice mental decoding

Morse Code Coverage

Letters A–Z, numbers 0–9, punctuation (. , ? / ( ) : ; - ' " @ & ! _), and prosigns: + = AR, = = BT, ~ = SK


CW Timing Standard

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

Updating Firmware

Each GitHub release includes a pre-compiled firmware.bin file that can be flashed without installing PlatformIO or compiling any code.

Option 1 — Espressif Flash Download Tool (Windows, easiest)

  1. Download the Espressif Flash Download Tool — look for "Flash Download Tools" and download the .zip
  2. Extract and run flash_download_tool.exe
  3. Select ESP32-S3 as the chip type
  4. Click the ... button next to the first address field and select your firmware.bin
  5. Set the address to 0x10000
  6. Select your COM port from the dropdown (check Device Manager if unsure)
  7. Set baud rate to 921600
  8. Click START
  9. If it fails to connect, hold the BOOT button on the board, press and release RST, then release BOOT and click START again

Option 2 — esptool.py (Windows / Mac / Linux)

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.usbmodem101 or /dev/cu.usbmodem101
  • Linux — typically /dev/ttyACM0

If connection fails, hold BOOT, press RST, release BOOT, then run the command.

Building from Source

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-amoled board definition (firmware/boards/lilygo-t-amoled.json) and partition table (firmware/partitions.csv) are already included
  • Build and upload using PlatformIO

Repository Structure

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

License

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.


Contributing

See CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for version history.


73 de K0WLY — dit dit

About

Keyer project to practice CW and to send it back and forth with another unit. Also has keyer out for radio's that don't have a keyer built in.

Topics

amature-radioamoledarduinocwesp-nowesp32esp32-s3ham-radioiambickeyermorse-codeplatformio

Resources

Readme

Contributing

Contributing
Activity

Stars

5 stars

Watchers

0 watching

Forks

1 fork
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.