Mesa 7i96S MPG encoder on P1
- masterjuggler
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 6
17 Sep 2022 15:15 #252175
by masterjuggler
Mesa 7i96S MPG encoder on P1 was created 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.
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.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18948
- Thank you received: 5230
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_
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.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18948
- Thank you received: 5230
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
hm2_7i96s.0.inm.01.enc1-count would be on pins 45,46
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
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.
- masterjuggler
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 6
18 Sep 2022 03:42 #252235
by masterjuggler
Replied by masterjuggler on topic Mesa 7i96S MPG encoder on P1
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.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18948
- Thank you received: 5230
18 Sep 2022 15:45 - 19 Jul 2025 15:17 #252272
by PCW
This moves the encoders up by one GPIOso encoder 2 is on GPIO 46/47
Note that you may need to swap A/B to get the correct count direction
EDIT: updated firmware to fix 7I96 isolated input 0 bug
Replied by PCW on topic Mesa 7i96S MPG encoder on P1
This moves the encoders up by one GPIOso encoder 2 is on GPIO 46/47
Note that you may need to swap A/B to get the correct count direction
EDIT: updated firmware to fix 7I96 isolated input 0 bug
Attachments:
Last edit: 19 Jul 2025 15:17 by PCW.
The following user(s) said Thank You: masterjuggler
Please Log in or Create an account to join the conversation.
- masterjuggler
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 6
18 Sep 2022 17:59 #252277
by masterjuggler
Replied by masterjuggler on topic Mesa 7i96S MPG encoder on P1
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.
I attached my current hal for anyone who wants to see how I have it set up.
Please Log in or Create an account to join the conversation.
- roland100
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
19 Jul 2025 14:04 #332014
by roland100
Replied by roland100 on topic Mesa 7i96S MPG encoder on P1
Hello PCW,
A few days ago i flashed my 7i96s with the 7i96sd_inmp1v2.bin file. Flashing was without error.
Since then, the X-axis-homing does not work anymore.
Homing of y-axis and z-axis works fine, as expected.
I would be glad to get your help to solve this issue
Is there a way to get the 7i96s in the state before flashing ?
Tanks a lot
A few days ago i flashed my 7i96s with the 7i96sd_inmp1v2.bin file. Flashing was without error.
Since then, the X-axis-homing does not work anymore.
Homing of y-axis and z-axis works fine, as expected.
I would be glad to get your help to solve this issue
Is there a way to get the 7i96s in the state before flashing ?
Tanks a lot
Please Log in or Create an account to join the conversation.
- roland100
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
19 Jul 2025 14:39 #332017
by roland100
Replied by roland100 on topic Mesa 7i96S MPG encoder on P1
Hello PCW,
I found a solution:
I flashed my 7i96s with the 7i96sd_mpgp1.bi file from the mesa homepage. Now everything works as expected.
My goal is to wire my MPG to P1, I think, this bin-file is for realizing this too.
Thanks a lot
I found a solution:
I flashed my 7i96s with the 7i96sd_mpgp1.bi file from the mesa homepage. Now everything works as expected.
My goal is to wire my MPG to P1, I think, this bin-file is for realizing this too.
Thanks a lot
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18948
- Thank you received: 5230
19 Jul 2025 14:48 - 19 Jul 2025 15:21 #332023
by PCW
Replied by PCW on topic Mesa 7i96S MPG encoder on P1
Yeah, sorry about that, made a quick change in the V2 version, and had a typo
that broke 7I96 input 0
EDIT:
Note that the 7i96sd_mpgp1 firmware has a different pinout on P1 and not a close match
to the common wired MPGs. I just fixed and re-uploaded the 7i96sd_inmp1v2 firmware
if that's more appropriate (and the 7i96sd_inmp1v1 firmware was always OK )
that broke 7I96 input 0
EDIT:
Note that the 7i96sd_mpgp1 firmware has a different pinout on P1 and not a close match
to the common wired MPGs. I just fixed and re-uploaded the 7i96sd_inmp1v2 firmware
if that's more appropriate (and the 7i96sd_inmp1v1 firmware was always OK )
Last edit: 19 Jul 2025 15:21 by PCW.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.272 seconds