ENAN — Master·of·the·Sky: A multimodal CW paddle keyer powered by the Waveshare ESP32-C6-Touch-LCD-2.8, featuring wireless TCI and WebSocket connectivity and direct integration with FlexRadio via the FlexRadio API.
  • C++ 50.7%
  • JavaScript 13.6%
  • Typst 8.9%
  • QML 8%
  • C 4.4%
  • Other 14.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-29 17:32:26 +01:00
android Update Koch header and TCI footer 2026-11-27 10:56:22 +01:00
apk Update Koch header and TCI footer 2026-11-27 10:56:22 +01:00
assets ENAN update 2026-11-20 15:58:58 +01:00
bin ENAN consolidated history 2026-11-17 09:02:46 +01:00
components ENAN consolidated history 2026-11-17 09:02:46 +01:00
hardware housing 2026-11-29 17:32:26 +01:00
koch ENAN consolidated history 2026-11-17 09:02:46 +01:00
LICENSES ENAN consolidated history 2026-11-17 09:02:46 +01:00
main Update Koch header and TCI footer 2026-11-27 10:56:22 +01:00
simulator ENAN update 2026-11-20 15:58:58 +01:00
test ENAN update 2026-11-20 15:58:58 +01:00
tools ENAN update 2026-11-20 15:58:58 +01:00
web ENAN update 2026-11-20 15:58:58 +01:00
win TCI update 2026-11-27 10:48:38 +01:00
.gitignore ENAN consolidated history 2026-11-17 09:02:46 +01:00
CMakeLists.txt ENAN consolidated history 2026-11-17 09:02:46 +01:00
dependencies.lock ENAN consolidated history 2026-11-17 09:02:46 +01:00
dependencies.lock.license ENAN consolidated history 2026-11-17 09:02:46 +01:00
enan-websocket-specification.md ENAN update 2026-11-20 15:58:58 +01:00
install.de.md ENAN consolidated history 2026-11-17 09:02:46 +01:00
install.md ENAN consolidated history 2026-11-17 09:02:46 +01:00
partitions.csv ENAN consolidated history 2026-11-17 09:02:46 +01:00
README.de.md TCI update 2026-11-27 10:48:38 +01:00
README.md TCI update 2026-11-27 10:48:38 +01:00
sdkconfig.defaults ENAN consolidated history 2026-11-17 09:02:46 +01:00

ENAN — ESP32-C6 Iambic CW Keyer

Deutsche Version

ENAN Celestial logo

ENAN is a standalone firmware project for a touch-screen Morse code keyer built around the Waveshare ESP32-C6-Touch-LCD-2.8. It combines a physical paddle interface, an on-screen keyer, adjustable sidetone, saved messages, WebSocket telemetry and optional TCI output for compatible TCI servers. Its wireless FlexRadio API connection lets ENAN key a FlexRadio transceiver directly over Wi-Fi for CW operation with SmartSDR on Windows.

CW timestamp protocol v2: Events carry eight bytes: state and a 56-bit little-endian Unix UTC microsecond timestamp. Absolute time requires a validated RTC or SNTP; while time is invalid events are suppressed and /clock reports the quality and loss counts. Firmware, console and app must be updated together. RTC and network time have unknown absolute accuracy. See the WebSocket specification.

Android app and Koch trainer

Take EN · AN with you: install the ENAN Android APK on an arm64 Android smartphone or tablet. The Qt 6 app connects to the keyer over the local network and includes setup, paddle monitor, CW decoder and the Koch trainer in portrait and landscape. It also offers an ASDR tab with TCI radio controls, receiver audio and a waterfall when TCI is configured. See the installation guide and Android app guide.

Practice CW locally: use the Koch trainer in the Android app or open the standalone browser console and select Koch Trainer. Practice listening to five-character groups with Farnsworth spacing or send with a WebSocket-connected paddle, with Morse references and feedback. Once the files are on your device, no cloud account or internet connection is required; paddle practice needs a local keyer connection. See the trainer guide.

ENAN keyer, paddle, speaker and enclosure

Features

  • Iambic A, Iambic B, straight-key and Ultimatic modes, with normal/reversed paddle mapping.
  • Live paddle activity and CW output displayed on the main screen.
  • Local sidetone through the board's speaker amplifier.
  • Optional spoken feedback for decoded letters and digits using the international spelling alphabet; separate on-screen controls for voice and sidetone.
  • Adjustable keying speed (5–40 WPM), volume and display brightness; day and red night themes.
  • Wi-Fi status, device MAC address, UTC clock, estimated battery level and the current WebSocket address on the display.
  • Locally decoded keying appears temporarily in place of the UTC clock; the clock returns after ten seconds without new characters.
  • Eight non-volatile message slots. Messages can be sent through the local sidetone and the selected WS or TCI output.
  • Binary WebSocket telemetry for keying events, browser-based monitoring and device configuration.
  • Optional TCI WebSocket output using keyer:0,true; / keyer:0,false; commands.
  • Deep sleep from a long header press or after inactivity; either paddle wakes the device.
  • ITU procedural signals in saved messages, including <AR>, <BT>, <K>, <AS>, <SK>, <CT>, <VE> and <HH>.

Live keying timeline

The device opens on the live CW-Timeline in every keying mode. Tap M on the left to open the message list; Return brings you back to the timeline. Setup opens the settings page, which automatically returns to the timeline after six seconds without a screen touch. On the settings page, a short tap on Mode cycles the modes. The day/night theme also applies to the timeline.

Tap the microphone below Setup to enable or disable spoken feedback. When enabled, decoded letters are announced using the international spelling alphabet—for example, A is spoken as Alpha—and digits are spoken in English. The recorded voice works offline through the local speaker and is interrupted by paddle input; the feature starts off after a reboot. The microphone symbol is a control for voice playback; no microphone is needed.

The speaker button above M switches the Morse sidetone on or off. It does not change the keying output or spoken feedback; the sidetone starts on after a reboot.

The blue left track shows Dit paddle presses, the green right track shows Dah presses, and the white middle track shows generated CW marks; gray lines mark their edges. The newest activity enters at the bottom and moves upward. Swipe down on the timeline to review earlier activity; swipe up to move back toward live. The compact buffer retains approximately 21 characters, depending on sending patterns. Decoded characters appear on the right and move with the timeline. After the paddles are released, the trace continues for a word space plus two Dit units and then pauses; a mark already in progress is allowed to finish. The device header and footer remain visible.

Simulated ENAN live keying timeline

Paddle keying cheat sheets

The printable cheat sheets show an optimized paddle sequence and the corresponding CW output timeline for each character. Their second page compares short and sustained paddle squeezes in all three modes:

Display

The display has a daylight theme and a red night theme. Tap the header to switch themes; hold it for 1.5 seconds to enter deep sleep.

Day Night
ENAN day display ENAN night display

Hardware and paddle wiring

The firmware targets the Waveshare ESP32-C6 Touch LCD 2.8 board. The physical paddle inputs are active-low and use internal pull-ups:

Board connector marking ESP32-C6 GPIO Normal assignment
IO2 GPIO4 Dah
IO3 GPIO5 Dit

Connect each passive paddle contact between its signal and board ground. In Reverse mode the Dit and Dah assignments are exchanged. These connector labels are board silkscreen names; GPIO4 and GPIO5 are the ESP32-C6 signal numbers used by the firmware. Check the markings and connector orientation on the exact board revision before wiring. Do not connect an externally powered keyer directly unless its electrical interface is verified as compatible.

The built-in mono amplifier drives the speaker connector. An 8 Ω speaker was used during development; keep the volume within the speaker's power rating and reduce it if the sound distorts. The sidetone is approximately 700 Hz.

Installation without building

Flash the precompiled firmware with ESP Launchpad and install the Android app using the installation guide. No firmware compilation is required.

Android app

The ENAN APK is intended for Android smartphones and tablets with an arm64 processor. The installation guide explains how to install the app and connect to the keyer. The app communicates with the keyer over WebSockets on the local Wi-Fi network; a Bluetooth connection is available for configuring the keyer's Wi-Fi.

The app offers device settings, a paddle monitor with CW-Timeline, a CW decoder and the Koch trainer in portrait and landscape. The trainer supports listening and paddle exercises. When TCI output is enabled, the ASDR section also provides radio controls and, depending on the TCI server, receiver audio and a waterfall. The interface can be switched between English and German. See the Android app guide for more details.

On-device controls

  • Dit/Dah: operate the paddle.
  • Mode: switch among Iambic A, Iambic B, Straight and Ultimatic. Ultimatic gives priority to the last-pressed paddle and remembers brief opposite-paddle presses. Iambic B is the default until a mode is saved. Straight mode keys for as long as either contact is held.
  • Normal/Reverse: exchange the Dit and Dah assignments.
  • Speed: 5–40 WPM; default is 20 WPM. A change takes effect at the next Morse element.
  • Volume: default is 80%. High levels can distort depending on the speaker.
  • Brightness: adjust the backlight from 5% to 100%.
  • Day/night: tap the display header to switch between the daylight colors and red night theme.
  • Deep sleep: hold the header for 1.5 seconds. A physical paddle press on GPIO4 or GPIO5 wakes the device and restarts the firmware. The inactivity timeout defaults to 30 minutes and can be set from 5 to 60 minutes through the WebSocket settings interface.

Mode, speed, volume, brightness, day/night theme and paddle mapping are saved and restored on reboot. The LCD always turns on at boot with its saved brightness. WS/TCI output selection is not stored.

The displayed battery percentage is an estimate derived from board ADC readings, not a dedicated fuel-gauge measurement. Treat it as an approximate indicator.

Messages and ITU procedural signals

The device stores eight messages in non-volatile memory. Open the message list using M on the CW-Timeline or by touching both on-screen paddle buttons together on the Setup page. Select a slot to send it at the current speed. Return goes back to the timeline; moving the physical paddle cancels playback. The sidetone remains local; the selected WS or TCI output carries the keying events.

Messages accept up to 120 ASCII characters. Supported text includes letters, digits, spaces and .,?/ =+-:;()'"@&_!$. Angle-bracket aliases send procedural signals as a single Morse character, without an inter-character gap:

Alias Morse Meaning
<AR> .-.-. End of transmission
<BT> -...- Separation / double hyphen
<K> -.- Invitation to transmit
<AS> .-... Wait
<SK> / <VA> ...-.- End of work
<CT> -.-.- Starting signal
<VE> / <SN> ...-. Understood
<HH> ........ Error signal

These Morse sequences and meanings are from ITU-R Recommendation M.1677-1; the bracketed text is ENAN's input notation. The source recommendation is included at assets/ITU-R-M.1677-1-2009.pdf.

Koch CW Trainer

The Koch CW Trainer is a local companion for learning and practicing Morse code, available in the Android app and the browser console. Once the app or console is on your device, no cloud account, internet connection, or external service is needed.

Work through 40 progressive Koch lessons, listen to five-character groups with adjustable character speed and Farnsworth spacing, and track your accuracy. You can also practice a sample QSO and ITU procedural signals or send your own text. Connect the EN · AN Keyer over your local network to practice sending with a paddle and see the decoded result; listening practice works without the keyer. The interface supports English and German.

In the Android app, select Koch. In a browser, open the ENAN console and select Koch Trainer with JavaScript and audio enabled. See the trainer guide for controls and practice details.

On-device decoding

The keyer decodes its own keying locally. Text appears to the left of the battery indicator in place of the UTC clock and scrolls for longer sequences. The clock returns ten seconds after the last text change. This works without Wi-Fi and with TCI output selected. In straight-key mode, mark duration is classified as a dit or dah using the configured speed, so uneven timing can produce incorrect characters. Unknown patterns appear as ?. The decoder does not decode an incoming CW audio signal. The existing browser decoder is independent of this display.

Browser tools and WebSocket interfaces

Open the ENAN console directly in a browser. It combines setup, paddle monitor, decoder and Koch trainer in one interface; the ASDR section is available when TCI is selected. Enter the device address once at the top and select Connect; the sections share the connection. For the simulator, use 127.0.0.1:8765 or localhost. The optional browser sidetone can be toggled in the header. On the first opening per browser tab the logo appears for two seconds; if autoplay is blocked, use the intro sound button. The HTML file includes the browser tools and does not require a web server. When a keyer is connected, straight-key marks are classified using the configured WPM; uneven hand timing can still be ambiguous.

The browser and ESP32 must be on the same trusted network. The console includes BLE discovery; this finds devices but does not configure Wi-Fi.

The firmware provides the following WebSocket endpoints:

Endpoint Purpose
ws://<device-ip>/ws Eight-byte CW v2 state and Unix UTC microsecond timestamp events for paddle practice and monitoring.
ws://<device-ip>/settings Runtime settings such as WPM, volume, sidetone frequency, brightness, day/night, mode and paddle mapping.
ws://<device-ip>/setup Read and write the TCI URI and eight persistent message slots.
ws://<device-ip>/power Read or set the deep-sleep inactivity timeout, or request sleep.
ws://<device-ip>/clock Query clock quality, synchronization status and dropped-event counts.

See the WebSocket specification for frame details. These endpoints have no authentication or encryption. Use them only on a trusted local network.

TCI output

ENAN can control AetherSDR directly over Wi-Fi. The keyer connects over the local network to AetherSDR’s built-in TCI server. Select TCI on the device or its setup page and enter the WebSocket address of the computer running AetherSDR, for example ws://<TCI-server-ip>:50001. The same output works with other compatible TCI servers. ENAN sends keyer:0,true; on key-down and keyer:0,false; on key-up; the sidetone is still generated locally. The ESP32 needs the server host's LAN address; localhost would refer to the ESP32 itself. TCI can key a transmitter: test with transmission disabled and confirm the disconnect behavior before on-air use. See the AetherSDR TCI server documentation for that example.

TCI input and ASDR

The Android app and browser console can also receive information directly from a compatible TCI server. With TCI selected as the keyer output and the server WebSocket address configured in Setup, open ASDR to see the reported VFO A frequency, operating mode and transmit state. The controls can also set frequency and mode and provide a hold-to-transmit button.

Enable Receiver audio to listen to receiver 1 on the phone or computer. The waterfall displays spectrum data from AetherSDR's spectrum_event TCI extension, with frequency limits and a VFO marker. The phone or browser must be able to reach the TCI server separately from the keyer; availability of audio and waterfall depends on server support. The audio bridge receives audio only and does not use the microphone. See the Android ASDR guide and TCI protocol.

Wireless Flex API with SmartSDR on Windows

ENAN supports wireless CW operation with FlexRadio SmartSDR on Windows. Select Flex as the ENAN output and enter the radio’s LAN IPv4 address under Flexradio. In SmartSDR, select the transmit slice and set it to CW. ENAN initiates the connection and keys the radio directly over Wi-Fi. There is no need to enter ENAN’s IPv4 address in SmartSDR or on the FlexRadio.

macOS simulator

The LVGL simulator displays the device interface on a Mac using the existing keyer and sidetone logic. Its guide covers setup, controls, local connection and tests. It is a desktop environment; Wi-Fi, battery and TCI connection behavior are simulated or unavailable. The new on-device decoding has been built and checked with host tests and the simulator; an ESP32 firmware build and a physical-board test remain outstanding.

Project contents

Path Contents
main/ Firmware, display, paddle, audio, networking and message handling.
components/ Board support and CST3530 touch controller component.
web/ Standalone browser console and shared JavaScript modules.
android/ Qt 6 Android app source and development guide.
apk/ Prebuilt Android APK.
simulator/ macOS LVGL simulator and its tests.
tools/build_console.py Generates the standalone browser console from templates and JavaScript modules.
koch/ Browser-based Koch listening and paddle practice tool.
test/ Host-side unit, protocol and UI tests; hardware validation records.
hardware/pinout/ Connector and wiring notes.
assets/ Project photos, display previews and the ITU recommendation.

License and image credits

Except for the separately licensed Android application, original firmware and other non-Markdown project files are distributed under the PolyForm Noncommercial License 1.0.0. Original Markdown documentation is © DM1AR and licensed under CC BY-NC 4.0. Third-party components retain their own licenses; see components/cst3530/LICENSE.

The keyer photograph assets/261031_paddle-keyer_wip.jpg and the Celestial logo artwork are by DM1AR and licensed under CC BY-NC 4.0.