Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Question about encoders and degree measurements? (http://www.chiefdelphi.com/forums/showthread.php?t=134776)

NHoffmann 17-02-2015 14:24

Question about encoders and degree measurements?
 
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?

Ether 17-02-2015 14:34

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by NHoffmann (Post 1445793)
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



GeeTwo 17-02-2015 14:35

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by NHoffmann (Post 1445793)
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.

Ether 17-02-2015 15:13

Re: Question about encoders and degree measurements?
 
1 Attachment(s)
Quote:

Originally Posted by Ether (Post 1445805)
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 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.



GeeTwo 17-02-2015 15:32

Re: Question about encoders and degree measurements?
 
:eek:
Quote:

Originally Posted by Ether (Post 1445805)
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

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by NHoffmann (Post 1445793)
497 encoder pulses is 1 motor revolution

What sort of encoder produces something odd like that?

Ether 17-02-2015 16:06

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by NHoffmann (Post 1445793)
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

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by Ether (Post 1445876)
Interestingly, 497 = 71*7. Coincidence?

Probably not. http://www.andymark.com/product-p/am-2971.htm

GeeTwo 17-02-2015 17:05

Re: Question about encoders and degree measurements?
 
Quote:

Originally Posted by NHoffmann (Post 1445793)
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?

Quote:

Originally Posted by Ether (Post 1445876)
Interestingly, 497 = 71*7. Coincidence?

Quote:

Originally Posted by Joe Ross (Post 1445904)

That would explain why you might want to gear up a bit. I'm guessing that the SpinBox drives the wheel.

NHoffmann 04-03-2015 21:36

Re: Question about encoders and degree measurements?
 
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!


All times are GMT -5. The time now is 10:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi