Matrix Keyboard controlling LinuxCNC
01 Oct 2023 01:46 #281963
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
Where can I get a panel for a lathe?
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
01 Oct 2023 20:12 #282021
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
In this Post @panming is showing his Panel, which looks decent and apparently is cheap. Maybe you can find it on Alibaba or something similar?
forum.linuxcnc.org/show-your-stuff/49606...uxcnc?start=0#280587
forum.linuxcnc.org/show-your-stuff/49606...uxcnc?start=0#280587
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
05 Oct 2023 14:00 #282365
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
I just uploaded a bunch of Videos, explaining the arduino-connector Features.
The one showcasing Matrix Keyboards can be seen here:
The one showcasing Matrix Keyboards can be seen here:
Please Log in or Create an account to join the conversation.
09 Oct 2023 23:35 - 10 Oct 2023 01:19 #282652
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
I try the last versión, and any analog Input work.
Last edit: 10 Oct 2023 01:19 by COFHAL.
Please Log in or Create an account to join the conversation.
10 Oct 2023 19:54 #282700
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
I already checked and I think the problem is in the Python file. When verifying the programming of the Arduino on the serial monitor, all the Lpots respond when the position is changed. but when running LNC the Lpots do not respond and are always at zero.
Please Log in or Create an account to join the conversation.
16 Oct 2023 11:13 - 16 Oct 2023 11:52 #283119
by panming
Replied by panming on topic Matrix Keyboard controlling LinuxCNC
Hello Alex, I'm sorry to just start getting back to our work now.I successfully used the arduino.keypad component in linuxcnc.But arduino.mled shows that it is not writable, what conditions does he need to be writable?
Last edit: 16 Oct 2023 11:52 by panming.
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
22 Oct 2023 17:53 - 22 Oct 2023 17:53 #283520
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
Sorry, i didn't get notified by your replys for some reason.
@COFHAL i think you need to check the python file settings. They need to match the ones in the Arduino code.
@panming you found a bug. You can fix it by changing
c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_OUT)
to
c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_IN)
or updating to the latest version on Github.
cheers,
Alex
@COFHAL i think you need to check the python file settings. They need to match the ones in the Arduino code.
@panming you found a bug. You can fix it by changing
c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_OUT)
to
c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_IN)
or updating to the latest version on Github.
cheers,
Alex
Last edit: 22 Oct 2023 17:53 by AlexMagToast.
Please Log in or Create an account to join the conversation.
23 Oct 2023 17:16 - 23 Oct 2023 17:19 #283618
by COFHAL
I've already checked everything and I can't find the problem. I'm attaching my files so you can check if there is an error. I can't find it.
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
Attachment not found
Attachments:
Last edit: 23 Oct 2023 17:19 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
24 Oct 2023 15:38 #283714
by AlexMagToast
Replied by AlexMagToast on topic Matrix Keyboard controlling LinuxCNC
hmm, honestly i don't see anything wrong either.
Unfortunately i am traveling rigth now, so i don't have equipment with me to test your code.
Could you please try the DEBUG function in the py file? Set Debug = 1, save your file to usr/bin/arduino-connector and open Terminal. Also connect your Arduino to the pc.
Then run:
halrun
loadusr arduino-connector
Then you should see some messages when you play with the lpotis.
I'm curious, what you see then. I hope you can post some of it here.
greetings from Spain
- Alex
Unfortunately i am traveling rigth now, so i don't have equipment with me to test your code.
Could you please try the DEBUG function in the py file? Set Debug = 1, save your file to usr/bin/arduino-connector and open Terminal. Also connect your Arduino to the pc.
Then run:
halrun
loadusr arduino-connector
Then you should see some messages when you play with the lpotis.
I'm curious, what you see then. I hope you can post some of it here.
greetings from Spain
- Alex
Please Log in or Create an account to join the conversation.
24 Oct 2023 16:54 #283724
by COFHAL
Replied by COFHAL on topic Matrix Keyboard controlling LinuxCNC
When you activate DEBUG and run arduino-connector from halrun, when playing with the lpot they respond without problem. Also when I run LCN from the console I see that the Lpot respond without problem.
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds