Matrix Keyboard controlling LinuxCNC

More
3 years 1 month ago #281083 by panming
I solved it, the correct package name is python3-serial, which can be solved by installing linuxcnc-uspace-dev

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

More
3 years 1 month ago #281086 by panming
I don't know if I understand the program correctly, but I found that the names of the pins are in an array called CHARS, and the 56 keys mean that I have to use almost all capitals and lower case letters and numbers, which I think can be a bit confusing.

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

More
3 years 1 month ago - 3 years 1 month ago #281211 by AlexMagToast
Good to hear you got it working.

There are 2 Arrays you need to set up. Chars and Destination.
The Keyboard implementation is made to fit hopefully all kinds of matrix keyboard usecases. So there are 3 modes for each Key you can specify in the Destination array.
I think in your case you want to set it all to 0, this will create LinuxCNC hal pins for each key. You have to create 56 entrys with 0.

In Chars you can name your keys. As you want hal pins you can name them the key numbers aka ["0","1","2",......"54","55"] or something which helps you identify your key aka ["on","off","sp_left",sp_on","sp_right","sp_off", .... ] or whatever name you want to give your keys. Again you have to set 56 entrys. These will be used when creating the LinuxCNC hal pins by the software.
Last edit: 3 years 1 month ago by AlexMagToast.

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

More
3 years 1 month ago #281328 by AlexMagToast
any updates?
If it works, would you mind to record a Video for me, that i can use to showcase this functionality in the Documentation?

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

More
3 years 1 month ago #281491 by AlexMagToast
since @panming is not replying anymore i assume it works now and he's happy with it.

To kind of close this thread here an update from my side:
I released the multiplexed LED Feature to the projects main branch and added a little bit of explanation to the documentation.

I have now worked with a couple of guys to test the Keyboard funktionality and so far everyone was happy with it.

You can find it here:
github.com/AlexmagToast/LinuxCNC_ArduinoConnector

If you have further ideas how to improve the software please feel free to let me know.

- Alex
The following user(s) said Thank You: COFHAL

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

More
3 years 1 month ago #281494 by COFHAL
Excellent work. It would be very nice to add an I2C controlled LCD.

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

Time to create page: 0.102 seconds
Powered by Kunena Forum