Matrix Keyboard controlling LinuxCNC

More
13 Sep 2023 19:32 #280669 by AlexMagToast
i forgot: you have to set the Serial Monitor to 115200 Baud to connect.

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

More
14 Sep 2023 00:31 #280686 by panming
hello,Alex,I'm happy that I can get yor reply just after waking up.I read the code and it seems to work. Looking at your code, I realized that I had complicated things before, and it seems that your method is much easier to understand.

I will test it on the machine as soon as possible.

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

More
14 Sep 2023 10:03 #280726 by panming
Alex,I'm sorry that I forgot my ssd is breaken.I will test tomorrow.

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

More
15 Sep 2023 12:56 #280844 by panming
Alex,sorry to be late.I tried your program and it doesn't seem to be working correctly.

I'm not sure if it's due to a pinout error in the panel.

to simplify things ,I replaced it with a regular 8*8 matrix keypad.

When I type M5:1 all the led light up at the same time, and type M5:0 the led still work.

Even when I uncommented the delay function that you commented out, the situation remains the same.

Looking at the debug message, it seems that the packet is correct.


E0:0
E0:0
E0:0
E0:0
E0:0
multiplexed Led No:5Set to:1
I Received= M5:1
E0:0
first connect
multiplexed Led No:5Set to:0
I Received= M5:0
multiplexed Led No:5Set to:1
I Received= M5:1
disconnected

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

More
15 Sep 2023 17:30 #280869 by AlexMagToast
are you shure you didn't invert the polarity of the LEDs?

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

More
16 Sep 2023 00:29 #280894 by panming
It seems that there is indeed a problem with the polarity, but even if there is a problem with the polarity, when I type M5:1, he should turn off the led5.

I'll be going to really analyze what the problem is on Sunday. I still have to go to work on Saturday.

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

More
16 Sep 2023 11:42 #280913 by AlexMagToast
Ok, i will too work on it and try to test the code myself.
Do you use Discord? Maybe we can have a video Chat?

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

More
16 Sep 2023 12:08 #280915 by panming
Sorry, due to the special network environment in China, we can't use most foreign instant messaging platforms, my VPN's bandwidth may not support real-time video, maybe we can use other methods, TG or WeChat
The following user(s) said Thank You: rodw

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

More
16 Sep 2023 13:25 #280926 by AlexMagToast
i didn't know you are in China.
Do you manufacture these Keyboards?
I'll update you, if i tested the Code myself.

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

More
16 Sep 2023 14:02 #280929 by panming
I come from a manufacturer of CNC lathes in China, this is the panel is our supplier's product, because I think the price is low (about 600 yuan), so I want to try it.

For me, LinuxCNC is nothing short of torture, and it's good to have you kind people.

Thank you again
The following user(s) said Thank You: rodw

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

Time to create page: 0.098 seconds
Powered by Kunena Forum