View Full Version : Question about encoders and degree measurements?
NHoffmann
17-02-2015, 14:24
Our team needs to use encoders to get degree measurements out of a wheel. Only problem is, the encoders are mounted on the motor, and we cannot re-mount them anywhere else. The gear ratio is 1 motor rotation is 1.2 wheel rotations, and 497 encoder pulses is 1 motor revolution. How would we go about getting the wheel degree measurements from the encoder on the motor?
Our team needs to use encoders to get degree measurements out of a wheel. Only problem is, the encoders are mounted on the motor, and we cannot re-mount them anywhere else. The gear ratio is 1 motor rotation is 1.2 wheel rotations, and 497 encoder pulses is 1 motor revolution. How would we go about getting the wheel degree measurements from the encoder on the motor?
1 motor rev per 497 encoder pulses
times
1.2 wheel revs per motor rev
times
360 degrees per wheel rev
(1/497)*(1.2/1)*(360/1) = 0.869 degrees per encoder pulse
Our team needs to use encoders to get degree measurements out of a wheel. Only problem is, the encoders are mounted on the motor, and we cannot re-mount them anywhere else. The gear ratio is 1 motor rotation is 1.2 wheel rotations, and 497 encoder pulses is 1 motor revolution. How would we go about getting the wheel degree measurements from the encoder on the motor?
One motor rotation is 1.2 wheel rotations, so you geared up by 20%?
Anyway, 497 encoder pulses = 1 motor rotation = 1.2 rotation = 436 degrees.
Therefore, one pulse = 432 degrees / 497 = 0.869 degrees.
1 motor rev per 497 encoder pulses
times
1.2 wheel revs per motor rev
times
360 degrees per wheel rev
(1/497)*(1.2/1)*(360/1) = 0.869 degrees per encoder pulse
The way I showed the solution above is known as the Factor-Label Method (http://www.chiefdelphi.com/forums/attachment.php?attachmentid=18401&stc=1&d=1424204119) and is an extremely useful skill to learn because one mastered it makes it easy to solve any conversion problem.
And as GeeTwo mentioned, make sure that 1.2 number is correct.
:eek: 1 motor rev per 497 encoder pulses
times
1.2 wheel revs per motor rev
times
360 degrees per wheel rev
(1/497)*(1.2/1)*(360/1) = 0.869 degrees per encoder pulse
If you get confused when using this method, you could include the units as well. This makes it easier to verify that you've properly canceled units. This one would be:
(1 motor revolution / 497 pulses) * (1.2 wheel revolution / 1 motor revolution) * (360 wheel degrees / 1 wheel revolution)
The revolutions all cancel each other, leaving the units as wheel degrees / pulse.
OOPS - didn't see the picture there:eek:
Alan Anderson
17-02-2015, 15:56
497 encoder pulses is 1 motor revolution
What sort of encoder produces something odd like that?
the encoders are mounted on the motor ... 497 encoder pulses is 1 motor revolution.
If you are using the same definition of "pulses" that US Digital uses, for a quadrature encoder you cannot have an odd number of encoder pulses per motor rev if the encoder is mounted directly on the motor shaft.
Are you sure the encoder is mounted directly on the motor?
AndyMark sells a 7 "PPR" encoder, but that spec probably means 7 CPR (cycles per rev).
Interestingly, 497 = 71*7. Coincidence?
Joe Ross
17-02-2015, 16:35
Interestingly, 497 = 71*7. Coincidence?
Probably not. http://www.andymark.com/product-p/am-2971.htm
Our team needs to use encoders to get degree measurements out of a wheel. Only problem is, the encoders are mounted on the motor, and we cannot re-mount them anywhere else. The gear ratio is 1 motor rotation is 1.2 wheel rotations, and 497 encoder pulses is 1 motor revolution. How would we go about getting the wheel degree measurements from the encoder on the motor?
Interestingly, 497 = 71*7. Coincidence?
Probably not. http://www.andymark.com/product-p/am-2971.htm
That would explain why you might want to gear up a bit. I'm guessing that the SpinBox (http://www.andymark.com/product-p/am-2462.htm) drives the wheel.
NHoffmann
04-03-2015, 21:36
Alright, now that first competition is over, team secrecy is over. We're using these things: http://www.andymark.com/product-p/am-3009.htm. We need to get rotation correct by mapping joystick degrees to wheel rotation. We got everything else working, but the wraparound is a major problem. Thanks for all the help so far, everyone!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.