7i77 and single ended MPG-Wheel encod er - read-out problem

More
23 Oct 2021 15:36 - 23 Oct 2021 15:38 #223998 by Baderbahn
we're getting closer :P

So, I need to change the onboard pullups from 2k to 330Ohm ? :O

Edit: saw your edit, right now. That's what I thought and wanted to express with the sinking- inputs "P.S" in my prior post. 

But then, we are at the HAl-Connection point, which I asked yesterday :D
Last edit: 23 Oct 2021 15:38 by Baderbahn.

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

More
23 Oct 2021 15:47 #223999 by PCW
To use the 7I77 encoder input you would need to
add external 330 ohm pull downs to A and B

You could use the 7I77s MPG inputs directly.

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

More
23 Oct 2021 15:56 #224000 by Baderbahn
Yeah, that's clear now to me.

I'm just not completely sure, how to set up the HAL for this.

Actually, I have:
net axis-selected-count  <= hm2_5i15.0.encoder.03.count

The count and axis selection is (more or less), as PNCconf proposes it.

As I saw in an other thread, I have to add a mux4 and send the signals into it. That's exactly, where I'm not sure, how to do it :D

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

More
23 Oct 2021 16:08 #224001 by PCW
if you want to use the MPG counter, it would be something like:

hm2_5i25.0.7i77.0.0.enc0.count
The following user(s) said Thank You: Baderbahn

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

More
23 Oct 2021 16:15 - 23 Oct 2021 16:49 #224003 by Baderbahn
Ah, so I don't need a mux4- element ?
Just net the hm2_5i25.0.7i77.0.0.enc0.count ?


Edit:
I tried the following:
Set 7i77 to Mode 3 by
sserial_port_0=003xxx
and connect the signal
net axis-selected-count    <=    hm2_5i25.0.7i77.0.0.enc0.count

but get an error "pin doesn't exist"
so I'll try to figure out by searching halshow, which pin it is  :P

Edit 2:
Note to myself: I'm stupid. It should be [...] 300xxx[...] istead of [...]003xxx[...}
I am able to read the count now! thank you very much, PCW !
Last edit: 23 Oct 2021 16:49 by Baderbahn.

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

More
23 Oct 2021 19:59 #224028 by PCW
The mux4 is used to select the jog increments

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

More
23 Oct 2021 20:42 - 23 Oct 2021 20:45 #224031 by bevins
Put this in your custom.hal. It should get you a working mpg using enc0. You are using 7i77 you you will need to change to suit your mesa setup.
 
Attachments:
Last edit: 23 Oct 2021 20:45 by bevins.

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

Moderators: PCWjmelson
Time to create page: 0.064 seconds
Powered by Kunena Forum