Matrix Keyboard controlling LinuxCNC
- AlexMagToast
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 67
23 Sep 2023 17:18 #281491
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
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
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.
23 Sep 2023 18:12 #281494
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
Excellent work. It would be very nice to add an I2C controlled LCD.
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 67
23 Sep 2023 21:32 #281505
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
I've been thinking about this too.
I'm not shure what to do with that LCD. What do you have in mind?
I'm not shure what to do with that LCD. What do you have in mind?
Please Log in or Create an account to join the conversation.
23 Sep 2023 21:46 #281506
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
See this thread.
forum.linuxcnc.org/41-guis/50116-new-ard...d-usb-pendant#281283
forum.linuxcnc.org/41-guis/50116-new-ard...d-usb-pendant#281283
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 67
23 Sep 2023 22:07 #281509
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
I think what would be doable is showing the current positions for XYZ for example or Spindle Speed and such.
Also to keep this thread to the topic of Matrix Keyboards we should propably switch to this thread forum.linuxcnc.org/show-your-stuff/48630-arduino-io-expansion
Also to keep this thread to the topic of Matrix Keyboards we should propably switch to this thread forum.linuxcnc.org/show-your-stuff/48630-arduino-io-expansion
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
28 Sep 2023 02:09 #281758
by panming
Replied by panming on topic Matrix Keyboard controlling LinuxCNC
Sorry for the late reply, I've been a bit busy with work lately, I don't have time for further testing, it's China's National Day in a few days, I may need to update a few days later. Sorry again.
I may not be able to continue until after October 15th, but in any case, I will keep updating you on the latest developments and sending you a test video
I may not be able to continue until after October 15th, but in any case, I will keep updating you on the latest developments and sending you a test video
The following user(s) said Thank You: AlexMagToast
Please Log in or Create an account to join the conversation.
29 Sep 2023 20:15 - 29 Sep 2023 20:22 #281878
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
I have already tried all the functions of this application. But with the latest version the Latching Potentiometers / Selector Switches are not working for me, they always appear at zero:
Type Dir Value Name
4 s32 OUT 0 arduino.LPoti.3.out
4 s32 OUT 0 arduino.LPoti.4.out
4 s32 OUT 0 arduino.LPoti.5.out
4 s32 OUT 0 arduino.LPoti.6.out
4 float OUT 497 arduino.ain.7
4 float OUT 437 arduino.ain.8
4 s32 OUT 0 arduino.counter.0
4 s32 OUT 0 arduino.counter.1
4 s32 OUT 0 arduino.counter.2
4 bit OUT TRUE arduino.din.29
4 bit OUT TRUE arduino.din.30
4 bit OUT TRUE arduino.din.31
4 bit OUT TRUE arduino.din.32
4 bit OUT TRUE arduino.din.33
4 bit OUT TRUE arduino.din.34
4 bit OUT TRUE arduino.din.35
4 bit OUT TRUE arduino.din.36
4 bit OUT TRUE arduino.din.43
4 bit OUT TRUE arduino.din.44
In the previous version they worked for me without problem.I also found that the Trigger INPUTS (SINPUTS) inputs always start in the on state (TRUE), I don't know if this is a problem, I think they should start in the off state (FALSE)I attach my ,ini and .py files to see if the problem is a bad configuration.
Type Dir Value Name
4 s32 OUT 0 arduino.LPoti.3.out
4 s32 OUT 0 arduino.LPoti.4.out
4 s32 OUT 0 arduino.LPoti.5.out
4 s32 OUT 0 arduino.LPoti.6.out
4 float OUT 497 arduino.ain.7
4 float OUT 437 arduino.ain.8
4 s32 OUT 0 arduino.counter.0
4 s32 OUT 0 arduino.counter.1
4 s32 OUT 0 arduino.counter.2
4 bit OUT TRUE arduino.din.29
4 bit OUT TRUE arduino.din.30
4 bit OUT TRUE arduino.din.31
4 bit OUT TRUE arduino.din.32
4 bit OUT TRUE arduino.din.33
4 bit OUT TRUE arduino.din.34
4 bit OUT TRUE arduino.din.35
4 bit OUT TRUE arduino.din.36
4 bit OUT TRUE arduino.din.43
4 bit OUT TRUE arduino.din.44
In the previous version they worked for me without problem.I also found that the Trigger INPUTS (SINPUTS) inputs always start in the on state (TRUE), I don't know if this is a problem, I think they should start in the off state (FALSE)I attach my ,ini and .py files to see if the problem is a bad configuration.
Attachments:
Last edit: 29 Sep 2023 20:22 by COFHAL.
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 67
29 Sep 2023 20:35 #281880
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
Thank you for the feedback. I suspect there is a Bug in the LPoti section.
Not neccessarily related: i found two issues in your config.
1. SetLPotiValue = [1,1,1,1] should be SetLPotiValue = [1,1,2,1], since you entered float values (0.001) etc.
2. somebody else discovered the bug already and reported it back to me:
i didn't think somebody would want encoders and Joystick in one build.
So at this moment encoder 0 is used by the first encoder and if you connect the Joystick to A0, by it too.
Solution right now iis to connect both Joystick axis to Analog inputs with higher number than present Encoders.
So for example you could switch it with two LPotis.
Also i found a bug, i apparently missed to change LPoti to lpoti to have same pin scheme in Hal everywhere. I'll change that too.
Right now i am traveling, so unfortunately you have to wait for my update till monday at least.
Not neccessarily related: i found two issues in your config.
1. SetLPotiValue = [1,1,1,1] should be SetLPotiValue = [1,1,2,1], since you entered float values (0.001) etc.
2. somebody else discovered the bug already and reported it back to me:
i didn't think somebody would want encoders and Joystick in one build.
So at this moment encoder 0 is used by the first encoder and if you connect the Joystick to A0, by it too.
Solution right now iis to connect both Joystick axis to Analog inputs with higher number than present Encoders.
So for example you could switch it with two LPotis.
Also i found a bug, i apparently missed to change LPoti to lpoti to have same pin scheme in Hal everywhere. I'll change that too.
Right now i am traveling, so unfortunately you have to wait for my update till monday at least.
Please Log in or Create an account to join the conversation.
29 Sep 2023 21:00 #281883
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
You are right about the joystick and encoder. I'm going to use both, because the MPG allows me to make more precise movements than with the Joystick.
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 86
- Thank you received: 67
30 Sep 2023 08:24 #281912
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
Please let us switch to this thread: forum.linuxcnc.org/show-your-stuff/48630-arduino-io-expansion
I'll answer you there.
I'll answer you there.
Please Log in or Create an account to join the conversation.
Time to create page: 0.101 seconds