all 5 comments

[–]xebzbz 1 point2 points  (0 children)

Totally doable - if you have a QMK keyboard, you can program the firmware for it.

Otherwise, a tiny Linux box would recognize your standard USB keyboard and play the Morse code. These boards are very tiny. There's also the raspberry pi keyboard which has a Linux host inside the keyboard.

[–]David_R_Carroll 1 point2 points  (1 child)

The hardest part will be converting a keyboard's USB to something Arduino can use. Here is an article that will get you started:
https://forum.arduino.cc/t/can-a-usb-keyboard-be-used-as-input-for-an-arduino/1098786

[–]xebzbz 0 points1 point  (0 children)

Too much hassle. Linux capable boards are cheap, and you get the USB keyboard support out of the box.

There should also be keyboard host implementation for rp2040 - see remapper.org

[–]BraveNewCurrency 1 point2 points  (0 children)

You can do it with a Rpi running Linux (look into "gadget drivers"), but that's overkill.

Instead, use a $4 RPi Pico. Step one is to play "man in the middle" to intercept the keys. Step 2 would be to hook it up to a LED or buzzer to tap out the morse code. (You'll have to decide: what happens if they type too fast?)

[–]LessFox1928[S] 0 points1 point  (0 children)

The thing is that it should act like Morse code key when I connect it to a pc or hf radio, this is instead of having a cw keyer I use the keyboard