Control panel, MUX wiring help

More
23 Oct 2020 21:09 #187023 by lois
Hi there. I've this old bosch panel but no idea how to connect this to MESA7i77. No ideia how to MUX wiring this.



Panel routing layout as follows:



So, looking at this, do i need to use a MUX chips to wire against 7i77? Something like this?



I'm searching some info, pic's or drawings about this subject, to compare and aply, i'm having some dificults here... not so skilled on electronics.
Attachments:

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

More
23 Oct 2020 21:19 - 23 Oct 2020 21:20 #187027 by PCW
Replied by PCW on topic Control panel, MUX wiring help
You could scan that directly from the 7I77 if you can afford to spare
8 outputs and 5 inputs (assuming the schematic is correct and there are no
electronic parts other than the diodes)
Last edit: 23 Oct 2020 21:20 by PCW.
The following user(s) said Thank You: lois

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

More
23 Oct 2020 21:49 #187030 by lois
Replied by lois on topic Control panel, MUX wiring help
Yes, only diodes inside.
I've multimeter checked and each push button is just closing the loop between Scan# and Data#.

Only inputs/outputs i spend were to limit switches and emergency so, free to do this :woohoo:

So, direct wiring 8 outputs(data#) and 5 inputs(scan#) to 7i77? What kind of code do i need to inplement this on hal config?

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

More
23 Oct 2020 22:04 #187037 by PCW
Replied by PCW on topic Control panel, MUX wiring help
I was afraid you would ask...

I think the matrix_kb component would do most of the work
but it will be a fair amount of hal plumbing

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

More
24 Oct 2020 09:01 #187085 by lois
Replied by lois on topic Control panel, MUX wiring help
After read some posts about matrix_kb, no chance to me.
Is there any other simplier options to reuse this old panel? Multiple mux components? or just create a sized simplier panel with direct push buttons to inputs?

I don't want all the fancier jigs on this machine, if possible reuse things, if not, keep it simple.

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

More
24 Oct 2020 09:31 #187088 by rodw
Replied by rodw on topic Control panel, MUX wiring help
Well another solution would be to write your own component that turned those inputs and outputs into meaningful stuff. It would reduce the hal plumbing, but probably not make it much easier if you don't understand C

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

More
24 Oct 2020 09:59 #187090 by BeagleBrainz
Grab a 7i70 remove the diodes, connect to the 7i70 inputs to what used to be the Cathode side of the diode and connect all the scan lines to VField. Diagram as shown should use all 48 inputs. Then it should be a one to one button to hal pin setup.

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

More
24 Oct 2020 14:12 - 24 Oct 2020 15:28 #187106 by PCW
Replied by PCW on topic Control panel, MUX wiring help
Not sure why you would _not_ use matrix_kb, since its designed for that exact
task. Any other solution that reads all the switches would be more complex
(as you would just be re-creating matrix_kb)

The basics are:

loadrt matrix_kb config=6x8s
setp matrix_kb.0.negative-logic false
addf matrix_kb.0 servo-thread

net row0 matrix_kb.0.row-00-out some_7I77_output_a
net row1 matrix_kb.0.row-01-out some_7I77_output_b
net row2 matrix_kb.0.row-02-out some_7I77_output_c
net row3 matrix_kb.0.row-03-out some_7I77_output_d
net row4 matrix_kb.0.row-04-out some_7I77_output_e
net row5 matrix_kb.0.row-05-out some_7I77_output_f

net col0 matrix_kb.0.col-00-in some_7i77_input_a
net col1 matrix_kb.0.col-01-in some_7i77_input_b
net col2 matrix_kb.0.col-02-in some_7i77_input_c
net col3 matrix_kb.0.col-03-in some_7i77_input_d
net col4 matrix_kb.0.col-04-in some_7i77_input_e
net col5 matrix_kb.0.col-05-in some_7i77_input_f
net col6 matrix_kb.0.col-06-in some_7i77_input_g
net col7 matrix_kb.0.col-07-in some_7i77_input_h
Last edit: 24 Oct 2020 15:28 by PCW. Reason: Oops its 6x8 not 5x8
The following user(s) said Thank You: lois

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

More
28 Oct 2020 21:06 #187628 by lois
Replied by lois on topic Control panel, MUX wiring help
Understood.
I can't get there with my "self knowledge about this programming level. Can you recommend some topics, so i can follow, about this subject?

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

More
28 Oct 2020 21:56 #187639 by PCW
Replied by PCW on topic Control panel, MUX wiring help
I would read the hal tutorial:

linuxcnc.org/docs/html/hal/tutorial.html

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

Time to create page: 0.256 seconds
Powered by Kunena Forum