ATmega32u4 keyboard emulation
- vigge7614
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
06 May 2023 18:34 #270805
by vigge7614
ATmega32u4 keyboard emulation was created by vigge7614
Hi!I have created a USB pendant using an Arduino Micro to emulate a keyboard. The pendant has selection buttons to choose the axis to jog and a jog wheel to move the selected axis. When I jog the X axis by rotating the jog wheel, the pendant sends an "Arrowright" keystroke for each pulse of the jog wheel.However, I have noticed that the GUI in LinuxCNC seems to have some kind of debounce that slows down the response time of the keystrokes. When I test the jog wheel in a text document, it works perfectly. I am quite new to LinuxCNC and cannot find any information on how to reduce the keyboard debounce.Do you have any suggestions for how to adjust the debounce parameter in LinuxCNC to reduce the debounce time and increase the responsiveness of the GUI to my pendant?Thank you!
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Platinum Member
Less
More
- Posts: 634
- Thank you received: 183
16 May 2023 10:37 #271447
by HansU
Replied by HansU on topic ATmega32u4 keyboard emulation
I would strongly suggest not to use the keyboard interface to jog the machine. Latency or missed key-up events can cause an axis to move longer than intended and may result in a crash.
One solution I can suggest to use the Mesa 7i73 pendant interface card together with a Mesa I/O card.
If you would like a cheaper solution, there are some implementations for an Arduino here in the forum using an own protocol or you can interface an I/O card via modbus (I use that).
One solution I can suggest to use the Mesa 7i73 pendant interface card together with a Mesa I/O card.
If you would like a cheaper solution, there are some implementations for an Arduino here in the forum using an own protocol or you can interface an I/O card via modbus (I use that).
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds