matrix_kb + 7i93 should work together?

More
2 years 6 days ago #313157 by pingtomi
Hello,

I've tried to set up matrix_kb with 7i93 using 3x3 matrix at a first time but it reads all buttons in one column as pressed (of course I press only one button).
I've tried to use diodes to separate buttons without success.
I see but doesn't clearly understood that matrix_kb is mainly designed for 7i73, is this correct?
Should it work with 7i93 or must I go with 7i73? 7i73 for me wouldn't be a convenient solution because my 7i95's SS ports are configured as SSI interfaces for ABS encoders so it would be difficult to connect an additional 7i73 to it.
Any other ideas/workaround to be able to connect about 30 buttons to Linuxcnc without using 30 inputs?

Thanks a lot.
Tamas
 

Please Log in to join the conversation.

More
2 years 6 days ago #313160 by PCW
The matrix_kb component can work with a 7I73 or any I/O device
that has input and output bits. With a 7I73, it converts a scan code byte
to individual key outputs. With a general I/O device it provides the row and column
output and input bits and converts them to individual key outputs.

Are you sure the 7I93 I/O bits are set in the proper directions?
 

Please Log in to join the conversation.

More
2 years 6 days ago #313176 by COFHAL
Work ok 

Attachment not found

Please Log in to join the conversation.

More
2 years 5 days ago #313229 by pingtomi
thanks indeed I forgot to set 7i93 gpios directions according to the keypad.
It works now.

Please Log in to join the conversation.

More
2 years 2 days ago #313384 by pingtomi
another question on this topic:
is there a way somehow to set up matrix_kb (or do some magic in HAL) to forbid to read any other buttons if one is already pressed? For eg. to avoid unexpected behavior of chip conveyor if both forward and reverse buttons are pressed simultaneously.

Thank you.

Please Log in to join the conversation.

More
2 years 2 days ago #313385 by PCW
Unless you want to change the matrix_kb component,
this is probably most easily fixed with some hal logic
(lut5 can do this in one step)

Please Log in to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum