A compact, standalone Morse code practice keyer and sidetone oscillator housed in a custom 3D-printed benchtop enclosure. The firmware supports both Dual-Paddle Iambic Mode B squeeze keying and Straight Key Mode (auto-detected at power-on), with paddle debounce, real-time speed milestone audio cues, and an integrated USB serial text decoder.
-
Dual-Paddle & Straight Key Modes (Boot Auto-Detect): Automatically boots into Straight Key Mode if the Ring contact (
D3) is grounded at startup (either by plugging in a mono TS straight-key plug or by holding down the Dah paddle during power-on). Otherwise, boots into Dual-Paddle Iambic Mode B. -
1-Second Audible Boot Mode Indicator: Announces the active mode on startup with a 1-second 700 Hz sequence — Dit-Dah (
.-) for Dual Key mode (200 ms dit, 200 ms gap, 600 ms dah) or a single continuous Dah (-) (1000 ms) for Straight Key mode. - Curtis Mode B Squeeze Keying: Automatic dot/dash insertion with mid-element latching and pause-state insertion logic in Dual Key mode.
-
Speed Range (5 to 35 WPM): Live analog speed potentiometer mapped to standard PARIS timing (
$t_{\text{dit}} = \frac{1200}{\text{WPM}}\text{ ms}$ ) in Dual Key mode. - Audible Speed Milestone Pips: Emits non-blocking audio clicks when crossing key speed boundaries (single 1000 Hz click every 5 WPM, double click every 10 WPM).
-
Direct High-Impedance Audio Drive: Drives a Merry DTR220H high-impedance transducer (
$136\ \Omega$ ) through a passive$1\text{k}\Omega$ rheostat and a series$4.7\ \mu\text{F}$ DC-blocking capacitor directly from the ATmega328P output pin without needing an active transistor stage. - Built-in Serial Morse Decoder: Decodes incoming Morse characters and words live over USB serial (115200 baud) using 3-dit character and 7-dit word spacing logic (disabled in Straight Key mode).
- Adaptive Contact Debounce: Uses an 8 ms transition lockout in Dual Key mode and an instant-attack, 25 ms release hold-off filter in Straight Key mode to bridge mid-press contact bounce on light 3D-printed paddles.
- Rheostat Volume Control: Series variable resistance volume adjustment without a ground shunt.
| Nano Pin | Signal | Description | Wiring Notes |
|---|---|---|---|
| D2 | PIN_DIT |
Dit paddle contact | Active LOW, internal pull-up enabled |
| D3 | PIN_DAH |
Dah paddle contact | Active LOW, internal pull-up enabled |
| D4 | PIN_AUDIO |
700 Hz square-wave sidetone | Feeds volume pot outer terminal |
| D13 | PIN_LED |
Onboard status LED | Synchronized with sidetone output |
| A7 | PIN_SPEED |
Speed pot wiper | Analog ADC (outer legs to 3V3 and GND) |
| 3V3 | Speed Rail | Voltage reference for speed pot | Connected to speed pot outer terminal |
| GND | System Ground | Common return | Speed pot, key jack sleeve, speaker return |
Because the Merry DTR220H transducer features a high coil resistance (
Arduino D4 ────[ Pot Outer Pin ]
│
(1kΩ Track)
│
Arduino D4 ────[ Pot Wiper ]────||────(+) Merry DTR220H (-)──── Arduino GND
4.7µF (136Ω Coil)
(Note: Opposite outer potentiometer pin is left unconnected. No GND on pot.)
-
Series Attenuation: Rotating the wiper adds between
$0\ \Omega$ and$1\text{k}\Omega$ of series resistance to the$136\ \Omega$ coil, smoothly dropping current and acoustic level without clamping the output line to ground. -
DC Blocking Capacitor: The series
$4.7\ \mu\text{F}$ capacitor passes the alternating audio frequencies (700 Hz sidetone and 1000 Hz milestone pips) while blocking continuous direct current from heating the transducer coil.
| Jack Contact | Nano Pin | Typical Connection |
|---|---|---|
| Tip | D2 | Dit contact (Dual Key) / Key contact (Straight Key) |
| Ring | D3 | Dah contact (Dual Key) / Grounded at boot to select Straight Key Mode |
| Sleeve | GND | Common paddle / key frame ground |
Tip
Using a Dual Paddle as a Straight Key: Hold down the Dah paddle (D3 / Ring) while powering on the unit. You will hear a 1-second continuous Dah tone confirming Straight Key mode; you can then release the Dah paddle and use the Dit paddle (D2 / Tip) as a straight key.
Note
A quick apology for the wiring aesthetics: This is very much a rough-and-ready prototype build in classic "ugly construction" fashion — complete with clumpy point-to-point soldering, flying hookup wires, and generous blobs of hot glue anchoring components inside the 3D-printed enclosure. It definitely won't win any electronics beauty pageants under the hood, but it's rugged, reliable on the bench, and easy to tweak!
- 1x Arduino Nano (ATmega328P)
- 1x Merry DTR220H dynamic transducer / miniature capsule (
$136\ \Omega$ DC resistance) - 1x
$4.7\ \mu\text{F}$ electrolytic or film capacitor (DC blocking) - 1x
$1\text{k}\Omega$ linear or audio potentiometer (Volume control, wired as a rheostat) - 1x
$10\text{k}\Omega$ linear potentiometer (Speed control, wired across 3V3 and GND) - 1x 3.5 mm TRS stereo panel-mount jack socket
- 2x Control knobs (6 mm knurled shaft)
- Hookup wire / ribbon cable
- 4x M3 countersunk machine screws (lid retention)
- 4x Rubber adhesive bench feet
- Enclosure:
stl/Enclosure with Lid.stl - Blank Panel:
stl/Blank Panel.stl - Front Panel (CAD):
stl/Front Panel.step - Back Panel (CAD):
stl/Back Panel.step
(Note: The dual-paddle assembly pictured with the build is an external third-party design and is not included in this repository's CAD files).
- Material: PLA, PETG, or ABS
- Layer Height: 0.20 mm
- Infill: 15% to 20% (Grid or Gyroid)
- Perimeters/Walls: 3
- Orientation:
- Print the enclosure flat on its base.
- Print panels flat on a textured PEI plate for a clean exterior finish.
- Clone the repository and open the project directory in VS Code.
- Confirm
platformio.ini:
[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
monitor_speed = 115200
- Connect the Nano via USB and run Upload.
- Open the Serial Monitor at 115200 baud to view live speed adjustments and decoded Morse text.
- Open
main.cpp(or rename it tonano_keyer.ino). - Select Tools > Board > Arduino AVR Boards > Arduino Nano.
- Select Tools > Processor > ATmega328P (or ATmega328P (Old Bootloader) depending on your clone).
- Select the corresponding serial port and click Upload.
This project is licensed under the MIT License — you are free to use, modify, and distribute this design and code for any purpose.

