Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CW keyer for a STRAIGHT key... #42

Open
cottersay opened this issue Feb 18, 2018 · 12 comments
Open

CW keyer for a STRAIGHT key... #42

cottersay opened this issue Feb 18, 2018 · 12 comments

Comments

@cottersay
Copy link

Would it be possible to add code to make a functional input for straight keys (as opposed to a simple pass-through)?

The idea is that the key input would not only be de-bounced for straight keys, but also automatically send a perfect single dit (when the key is pressed down for a short time) and a perfect dah (when pressed for a longer period of time).

Obviously, it would also have automatic spacing as well as some dit/dah memory.

Just thought I'd throw it out there...

@gsansoucie
Copy link

That is a good idea. There is no straight key decoder, but I've written a straight key decoder in the old days (probably have the code somewhere). Basically decode the straight key input and then send the decoded values (dit or dah).

I imagine it would be tough to tweak though.

@cottersay
Copy link
Author

cottersay commented Feb 18, 2018 via email

@gsansoucie
Copy link

Sidetone might be a concern, question is what is reflected? The straight key down or the output?

My vote would be the output and use the mechanical clicking as your straight key guide.

@cottersay
Copy link
Author

cottersay commented Feb 18, 2018 via email

@k3ng
Copy link
Owner

k3ng commented Feb 18, 2018 via email

@cottersay
Copy link
Author

Thanks Goody. I love straight key and bug operation, but stink at both. I would think that an operational straight key and cootie key electronic keyer function would "round out" the great functionality of modern keyers, but I must be the only one who thinks that!

@k3ng
Copy link
Owner

k3ng commented Feb 18, 2018 via email

@cottersay
Copy link
Author

What I need to do is invent a robotic hand that allows me to send decent code with a straight key, 'cause my god-given hands are apparently too sub-par in that regard!

@behiels
Copy link

behiels commented Nov 28, 2018

Hi Anthony;

I do have made a lot of progress and the whole project is working outstanding now,just one particular little failure I have …

This is your comment and explanation about “the straight key feature” I found on the internet :

There are two straight key modes in the keyer. If you hold down the dah paddle on boot up, the keyer goes into straight key "pass through" mode with the dit paddle pin as the straight key contact. The second mode is setting the straight key pin and compiling, in which the keyer will let you operate a straight key during normal operation, in parallel with paddle and other keyer functions. This does more than pass through and if you activate straight key echo, it will decode what you're sending.

I do have next settings enabled in the K3NG software :

#define FEATURE_STRAIGHT_KEY

#define FEATURE_STRAIGHT_KEY_ECHO (I like to read and seen what I am sending on the LCD for education )

After compiling I receive next error message :

#if defined(FEATURE_DISPLAY) && defined(FEATURE_STRAIGHT_KEY_ECHO)
if (cli_straight_key_echo){display_scroll_print_char(convert_cw_number_to_ascii(decode_character));}
#endif //FEATURE_DISPLAY

The failure is coming from the second command : #define STRAIGHT_KEY_ECHO

Could you help my further on the way with tihis remarcable failure Anthony ?
What could be the reason ..?
Do I have not the last software relaise from your project ?

With kindly regards es 73’s Jean ON4AEF

@jh4vaj
Copy link

jh4vaj commented Jan 3, 2022

That "if statement" is probably unnecessary.
If you simply do the following, no error will occur. The straight key is echoed.

display_scroll_print_char(convert_cw_number_to_ascii(decode_character));

@mamortensen
Copy link

"The second mode is setting the straight key pin and compiling, in which the keyer will let you operate a straight key during normal operation, in parallel with paddle and other keyer functions. "

By "setting the straight key pin" do you mean uncommenting #define FEATURE_STRAIGHT_KEY? I don't see a straight key pin. Either a pin to enable straight key or a pin to connect the straight key to. That option isn't shown in the schematic. Can you elaborate how to enable and connect a straight key in parallel with the paddle?

@mamortensen
Copy link

Ah, I figured it out. The straight key pin is hidden inside an #ifdef that I didn't notice and is set to a pin I don't have. I assigned it to pin 10 and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants