Hi Frans,
This 75 vs. 76 pulse phenomenon is really kind of weird, so I also have done some measurements:
First I requested in a tiny RoboPro program the extended Motor control to drive a distance of 750 pulses and checked the counted pulses provided by the RoboPro Counter input element.
=> The motor does reproducibly 10 revolutions without any visible deviation and the counter input also reports the expected 750 pulses, sometimes 751 … ok.
A 10 count deviation would translate into an obvious 10/75.5*360 = 48° offset. I haven't seen that.
This is absolutely consistent with the
ft documentation:
The encoders on the fischertechnik encoder motors generate three pulses with each revolution of the
motor shaft. And because the encoder motors also have a gearbox with a transmission ratio of 25:1
(meaning "25 to 1"), then one revolution of the shaft, which comes out of the gearbox, corresponds to
75 pulses of the encoder.
I have also repeated your independent "logic analyzer" measurement. Ok I took my China scope and a simple one-pulse-per-revolution-reference-encoder, i.e. a ft pushbutton switch as can be seen in the photo, and counted the pulses manually. The motor was running continuously => My result is 75 pulses.
So my encoder does definitely 75 pulses per revolution.
Mhmm, has ft silently replaced the 25:1 by 25 1/3:1 gears? That would be rather mean.
But maybe there's a mechanical problem in your model. The ft encoder is firmly attached directly to the motor shaft, whereas it looks like that your DIY reference encoder is connected via one of those flimsy ft clip couplings to the gears of the motor.
This might cause lots of backlash, from both, the gears and the coupling. This might spoil your measurements when accelerating or braking the motor or even when changing the direction.
But this couldn't explain your 76 counts in your logic analyzer measurement. The pulses are distributed so evenly that I assume that the motor was running at constant speed and that there weren't any backlash caused fake counts. You don’t have any slippage in the drive train?
That's really strange. I would peek into the motor just to see what kind of gears are installed and maybe I would ask ft if they have changed anything.
Kind Regards,
Helmut