OK1CDJ / M5-ESP32-keyer

Build the CW keyerPostav si klíčovač

An M5Stack Atom, a few parts soldered straight into the cable, two 3.5 mm jacks. No box, no circuit board. It keys your radio's CW input, and with an Icom it also reads and sets the frequency and mode over CI-V — kQSO then tunes the radio from the log. M5Stack Atom, pár součástek zapájených přímo do kabelu a dva jacky 3,5 mm. Žádná krabička ani plošný spoj. Klíčuje CW vstup rádia a s Icomem přes CI-V čte i nastavuje kmitočet a mód — kQSO pak rádio ladí z deníku.

What you needCo potřebuješ

Where to buyKde koupit

AtomS3 Lite · Atom Lite · AtomS3 · Atomic Battery Base · Grove–Dupont (M5Stack shop)

In the EU also at Botland (Atom series) and other M5Stack resellers. The small parts and jack cables from any electronics shop. V EU také Botland (řada Atom) a další prodejci M5Stack. Drobné součástky a kabely s jackem v jakémkoli obchodě s elektronikou.

How it goes togetherJak to do sebe zapadá

The Grove cable leaves the Atom; its four wires split into the two jack cables. The parts sit in the cable, soldered wire to wire, under heat-shrink. Grove kabel vede z Atomu; jeho čtyři dráty se rozdělí do dvou kabelů s jackem. Součástky jsou v kabelu, zapájené drát na drát, pod bužírkou.

Atom Grove parts součástky heat-shrink bužírka KEY 3.5 mm CI-V 3.5 mm Icom REMOTE

Grove pinsPiny Grove

wiredrátfunctionfunkceAtomS3 / AtomS3 LiteAtom Lite
blackčernýGNDGNDGND
redčervený5V5V5V
yellowžlutýKEYG2G26
whitebílýCIVG1G32

Jacks: tip = key (or CI-V), sleeve = ground. The colours are the usual Grove ones — check with a multimeter if your cable differs. Jacky: hrot (tip) = klíč (nebo CI-V), objímka (sleeve) = zem. Barvy jsou obvyklé u Grove kabelů — u jiného kabelu je ověř multimetrem.

Keying — pick oneKlíčování — vyber jedno

A · Optocoupler (isolated)Optočlen (oddělený)

The keyer and the radio share no ground. Use it when the radio's ground may sit at another potential (separate supply, a computer on the same cable). Klíčovač a rádio nemají společnou zem. Použij, když může být zem rádia na jiném potenciálu (jiný zdroj, počítač na stejném kabelu).

KEY 330 Ω 10 kΩ PC817 12 43 tipsleeve (key)(klíč) GND (Grove)
330 Ω gives the LED about 6 mA. The 10 kΩ pull-down holds KEY low during a reset. 330 Ω dá LED asi 6 mA. Pull-down 10 kΩ drží KEY dole i během resetu.

B · N-MOSFET (shared ground)N-MOSFET (společná zem)

Fewer parts. The Grove ground connects to the radio's ground through the jack sleeve — and CI-V needs this shared ground anyway. Méně součástek. Zem z Grove se přes objímku jacku spojí se zemí rádia — a CI-V tuhle společnou zem stejně potřebuje.

KEY 100 Ω 10 kΩ DGS AO3400 / BSS138 / 2N7000 tipsleeve (key)(klíč) GND (Grove)
Mind the polarity: the drain goes to the tip. Swapped, the MOSFET's body diode keys the radio all the time. The 10 kΩ keeps the MOSFET off during a reset. Pozor na polaritu: na hrot patří drain. Obráceně vnitřní dioda MOSFETu klíčuje rádio pořád. 10 kΩ drží MOSFET zavřený i během resetu.

CI-V — Icom frequency and modeCI-V — kmitočet a mód z Icomu

The CI-V bus is one wire, pulled up to 5 V inside the radio. One MOSFET shifts it to the Atom's 3.3 V in both directions. Everything comes from the Grove cable. Needs the shared ground (variant B). Sběrnice CI-V je jeden drát, v rádiu vytažený na 5 V. Jeden MOSFET ho oběma směry převede na 3,3 V Atomu. Vše se bere z Grove kabelu. Potřebuje společnou zem (varianta B).

5V 10 kΩ27 kΩ ≈ 3.6 V CIV GND (Grove) DS BSS138 / 2N7000 tip(CI-V)sleeve REMOTE
No pull-up on the keyer side: the firmware turns on the ESP32's own. With the keyer off, the divider has no voltage and the radio's bus is left alone. Na straně klíčovače žádný pull-up: firmware zapne vnitřní pull-up ESP32. Vypnutý klíčovač nemá na děliči napětí a sběrnici rádia nechá být.

Flash the firmwareNahraj firmware

Straight from the browser, no IDE, no drivers: Chrome or Edge on a computer, a USB-C data cable. Přímo z prohlížeče, bez IDE a ovladačů: Chrome nebo Edge na počítači, datový kabel USB-C.

Open the web flasher →Otevřít webový flasher →

Get it goingZprovozni

  1. In the radio: CI-V Transceive ON; any CI-V rate (1200–19200 Bd) or Auto. The keyer finds the rate and the radio's address itself.
  2. V rádiu: CI-V Transceive ON; libovolná rychlost CI-V (1200–19200 Bd) nebo Auto. Rychlost i adresu rádia najde klíčovač sám.
  3. In kQSO: Settings → M5 keyer → Connect. For CW switch on CW keying; for the radio Radio → Yes → Via the keyer.
  4. V kQSO: Nastavení → Klíčovač M5 → Připojit. Pro CW zapni CW klíčování, pro rádio Rádio → Ano → Přes klíčovač.
  5. Other programs (cwdaemon, HTTP, your own scripts): see the protocol and the Bluetooth configuration.
  6. Jiné programy (cwdaemon, HTTP, vlastní skripty): viz protokol a nastavení přes Bluetooth.

CheckKontrola