k3ng / k3ng_cw_keyer

K3NG Arduino CW Keyer
http://blog.radioartisan.com/arduino-cw-keyer/
GNU General Public License v3.0
416 stars 216 forks source link

Question: Arduino Pro Micro timing issue - akt's like as in timelaps after powercycle #144

Open klaute opened 3 months ago

klaute commented 3 months ago

Hello,

I'm currently try to get the Keyer firmware to work.

Arduino IDE 2.3.2, and a Arduino Pro Micro board attached to a Mac M1 (latest OS).

I connected a 3D printed CW key to the pins 2 and 5, and also a small speaker to pin 4.

I can hear the dit's and dah's if I press the keys. Also I can see the letters written by the HID keyboard of the firmware and also the letters on the serial monitor in the Arduino IDE.

All I have enabled in the keyer_features_and_options.h:

#define FEATURE_BUTTONS
#define FEATURE_COMMAND_LINE_INTERFACE
#define FEATURE_CW_COMPUTER_KEYBOARD

Issue i'm facing:

After I reconnect (powercycle) the Arduino, the speed of the audio is very slow. Pressing the dah-key cause a low frequency beep for about a second. A dit-key about half of a second.

I filmed it to show the behavior...

After flashing: https://share.icloud.com/photos/04b768W80qP0NPxG7pj9ogWAA

Afte USB reconnect (power cycle): https://share.icloud.com/photos/046mfH6vW-iJAYGX1sYE1B36g

Serial monitor output:

K3NG Keyer Version 2024.03.20.2239

...some key output...

Also on the serial interface the letters are received as slow as the audio output. Same for the USB HID keyboard letters.

Did I missed something to configure?

73 DO4KLA

klaute commented 3 months ago

I don't know the reason. But a workaround is to reset the Arduino manually. This fixed the timing issue.