Matrix Keyboard controlling LinuxCNC

More
30 Oct 2023 00:38 #284092 by panming
Replied by panming on topic Matrix Keyboard controlling LinuxCNC
@COFHAL You might want to search for SYNTEC 4022 on your local shopping platform. If you really can't find it, I can provide purchasing, it just so happens that our company has foreign trade business. It's just that shipping costs can account for more than half of the price of the keypad.

Please Log in or Create an account to join the conversation.

More
19 Jan 2024 03:29 #291086 by blazini36
Replied by blazini36 on topic Matrix Keyboard controlling LinuxCNC
Little confused how this worked out with panming's control panel. Per the note on the git page:

If your Keyboard shares pins with the LEDs, you have to check polarity. The Matrix Keyboard uses Pins as such:rowPins[numRows] = {} are Pullup Inputs colPins[numCols] = {} are GND Pinsthe matrix keyboard described in the thread shares GND Pins between LEDs and KEYs, therefore LedGndPins[] and colPins[numCols] = {} use same Pins, LedVccPins[] are Outputs and drive the LEDs.

On panming's schematic, the "column pins" are the VCC outputs, so did you just treat the rows as columns?

Looking to make my own keypanel using this firmware, judging by the wording in the git I assume it should work with this?:
 

This browser does not support PDFs. Please download the PDF to view it: Download PDF


 
Attachments:

Please Log in or Create an account to join the conversation.

  • AlexMagToast
  • AlexMagToast's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
19 Jan 2024 10:24 #291106 by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
Hi,
Yes I think you can use the Firmware with this Keypanel.
You made me aware that I forgot to update the Documentation after I updated the Code to hopefully make it less confusing.

#ifdef MULTIPLEXLEDS

const int numVccPins = 8; // Number of rows in the matrix
const int numGndPins = 8; // Number of columns in the matrix
const int LedVccPins[] = {30,31,32,33,34,35,36,37};
const int LedGndPins[] = {40,41,42,43,44,45,46,47};

Let me know If you have Issues, so I can improve the Firmware for you.

Please Log in or Create an account to join the conversation.

More
19 Jan 2024 15:07 #291123 by blazini36
Replied by blazini36 on topic Matrix Keyboard controlling LinuxCNC
Thanks, I was  hoping you'd reply.

I'm making the key panel myself, it's my schematic so I'm trying to make it the way this Arduino firmware was intended to be used. Does this look like what you had in mind?

Please Log in or Create an account to join the conversation.

  • AlexMagToast
  • AlexMagToast's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
19 Jan 2024 16:44 #291131 by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
yes, I think your schematic looks good. I think it will work right away.
The following user(s) said Thank You: blazini36

Please Log in or Create an account to join the conversation.

More
19 Jan 2024 17:09 #291133 by blazini36
Replied by blazini36 on topic Matrix Keyboard controlling LinuxCNC
I've got an Arduino Mega break out board going for this as well.

Please Log in or Create an account to join the conversation.

More
16 Apr 2024 12:07 - 16 Apr 2024 12:09 #298359 by kofsky0328
Replied by kofsky0328 on topic Matrix Keyboard controlling LinuxCNC
@ Hello, how can I contact you?
Last edit: 16 Apr 2024 12:09 by kofsky0328.

Please Log in or Create an account to join the conversation.

More
17 Feb 2025 09:36 #321818 by Mr. Mass
Replied by Mr. Mass on topic Matrix Keyboard controlling LinuxCNC
Trying to figure out a similar industrial keyboard from SYNTEC. The upper part is a regular PS/2 keyboard, and the lower part is a matrix keyboard with combined LEDs. The buttons on the matrix worked fine, only they are rotated 90 degrees. But there is a strange problem with the LEDs. They are shifted and some of them double. For example, button 0 and LED also 0, work normally. But if we try to light up LED 6, it lights up again 0. And to light up the LED on button 6, it is 12. I checked the wiring several times, everything seems to be correct. Maybe someone can see with fresh eyes what I'm wrong because I'm out of ideas. 

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum