Mesa 7i96S MPG encoder on P1

More
17 Sep 2022 15:15 #252175 by masterjuggler
I have one of the 100PPR MPGs and wired it to the P1 header on my 7i96S. I've got it set up in a hal (attached) to use the servo thread for software encoding for the hand wheel, but I'm not able to jog as fast as I'd like. I've been struggling to figure out how to create a firmware file which remaps some of the P1 pins to be encoder inputs. Currently I have A on IO46 and B on IO47.

Is there any idiots guide on how to go about creating the firmware file I need? Short of that, would anyone be willing to help me accomplish this, or tell me why this won't work? I'm sure I'm missing a lot of information, but I don't know what it is that I don't know lol.
Attachments:

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

More
17 Sep 2022 16:58 #252178 by PCW
Replied by PCW on topic Mesa 7i96S MPG encoder on P1
I'll try an make an example later today,
because the boss says we need to go to the
farmers market _Right now_
The following user(s) said Thank You: tommylight

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

More
17 Sep 2022 19:13 #252197 by PCW
Replied by PCW on topic Mesa 7i96S MPG encoder on P1
7I96S configuration with a 8 pin INM module on P1
this includes 4 MPG encoder channels

I chose the INM module rather than a standard encoder
as it supports the 1X mode often desired for MPGs

 

File Attachment:

File Name: 7i96sd_inmp1.zip
File Size:264 KB


hm2_7i96s.0.inm.01.enc1-count would be on pins 45,46


 
Attachments:
The following user(s) said Thank You: Masiwood123, masterjuggler

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

More
18 Sep 2022 03:42 #252235 by masterjuggler
Thanks a lot for doing that for me! Could I get you to switch hm2_7i96s.0.inm.01.enc1-count to pins 46 and 47 like I mentioned? I have the mpg cable all soldered up to a db25 cable I spliced, I'm not sure I want to go and redo it haha.

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

More
18 Sep 2022 15:45 #252272 by PCW
Replied by PCW on topic Mesa 7i96S MPG encoder on P1
 

File Attachment:

File Name: 7i96sd_inmp1v2.zip
File Size:259 KB


This moves the encoders up by one GPIO
so encoder 2 is on GPIO 46/47

Note that you may need to swap A/B to get the correct count direction
 
Attachments:
The following user(s) said Thank You: masterjuggler

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

More
18 Sep 2022 17:59 #252277 by masterjuggler
Alright, it's working great now! I had to resolder a few of the wires to switch the encoder polarity, but now I can't spin the wheel fast enough to get it to skip steps, which is exactly what I was after.

I attached my current hal for anyone who wants to see how I have it set up.
Attachments:

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

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