Maslow Home Maslow Community Garden Newsletter

Motor encoder question

I’ve installed a faster Z motor from Metalmaslow. I’m trying to get it to move the distance the gcode commands. My original pitch was -8. I assume this is the pitch of the lead screw driving the Z lift. One revolution of the shaft moves the lift 8mm? The faster motor moves the lift many times 8mm. I’m guessing the ratio of motor revolution versus output shaft revolutions is very different between the two motors. I’ve tried changing the pitch setting to 93 which is close. Is there a way to calculate the exact adjustment to make to the pitch?

If you got the motor from @metalmaslow, I’d ask them the appropriate setting. But, basically you need to find the specs on the motor encoder and the gear ratio. If the motor has a 10 PPR and a gear ratio of 240, then the encoder count setting would be 10 x 240 x 4 = 9600 (the factor of 4 is needed because the encoder library produces 4 counts per pulse).

Thanks, I’ve asked @metalmaslow. He may not understand my question.

Just two values you need… “Maslow Settings->Z-Axis Pitch” and “Advanced Settings->Z-Axis Encoder Steps per Revolution”

1 Like

I’ve found specs for the magnetic encoder. 3PPR or 7PPR. Does that in any way relate to steps per revolution?

I see the answer in your first response!! thanks

1 Like

I edited the formula in my post because I used * instead of x… an * is a special code in the forum for markup text.

10*240*4=9600

results in 102404=9600 being shown on the screen.

Now I need to find the gear ratio!

This is the chart from the motor mfg. Clear as mud to me. I’m going to measure the gear box to narrow it down a little.

Just note that you can’t always trust what is in the spec sheets. When Maslow started out, the spec sheet of the main motors said the gear ration was 290:1 but in reality it was 289.776:1. People opened up the gear box, counted the teeth, and computed the ratio.

I would assume the ratio is 810:1. perhaps @dlang can chime in. He’s good that this.

I cheated and changed the pitch from 8 to 100. The results are within a mm. Is there a way to calculate that back to get the encoder setting?

What are the current encoder steps?

They list 3 or 7PPR for their encoders. I’ve emailed the company in Japan to see if they can be specific about the motor ET-SGM37D-24120

What does it say in Advanced Settings->ZAxis Encoder Steps Per Rotation on your maslow?

7560 is what it’s set for

I was hoping it would come out to some nice number I’ve seen before (like 22 or 8). Can you measure the shaft and see how far it is between, say, five turns?

Does this make any sense? If 7560 x 100 pitch gives results within a mm and 7560x100/8 =9450. Would 9450 be close to the desired steps? 3PPRx810GRx4=9720. All the other gear ratio times 3PPR are lower than 7560. 7PPR times gear ratio are much higher.

Figured it out. Pitch is 22 mm. Gear ratio is 90 (your motor is the ‘shorter’ version with only 4 stages, encoder ppr is 7, which gives a encoder steps of 90 * 7 * 4 = 2520.

Edit. hold on, let me check something

without opening the gearbox to count teeth, it’s not possible to know for sure

but what you can do is put something on the output that lets you know where it
is, make your estimate of PPR, run it through 50-100 complete rotations, and see
if it stops at exactly the same point. If so, you have it right. If it goes too
far, you have the PPR too high, if it doesn’t go far enough, you have it too
low.

you obviously need to do this without the motor connected to the machine.

I would say that the odds of the gear box being eactly 810:1 with 6 steps is
rather low

David Lang