Go to Post I looked at it and originally thought it was a crazy idea... then I looked at it again and it still sounds like a crazy idea. But crazy ideas tend to produce some excellent results. - Yipyapper [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-02-2015, 14:24
NHoffmann's Avatar
NHoffmann NHoffmann is offline
Registered User
FRC #0573 (Mech Warriors)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2014
Location: Bloomfield Hills
Posts: 36
NHoffmann is an unknown quantity at this point
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?
__________________
WHO ARE WE?

573!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2015, 14:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by NHoffmann View Post
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


Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2015, 14:35
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by NHoffmann View Post
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.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2015, 15:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by Ether View Post
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.


Attached Thumbnails
Click image for larger version

Name:	Factor-Label Method.png
Views:	38
Size:	15.0 KB
ID:	18401  
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2015, 15:32
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by Ether View Post
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
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2015, 15:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by NHoffmann View Post
497 encoder pulses is 1 motor revolution
What sort of encoder produces something odd like that?
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2015, 16:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by NHoffmann View Post
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?



Last edited by Ether : 17-02-2015 at 16:10.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2015, 16:35
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by Ether View Post
Interestingly, 497 = 71*7. Coincidence?
Probably not. http://www.andymark.com/product-p/am-2971.htm
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2015, 17:05
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Question about encoders and degree measurements?

Quote:
Originally Posted by NHoffmann View Post
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 View Post
Interestingly, 497 = 71*7. Coincidence?
Quote:
Originally Posted by Joe Ross View Post
That would explain why you might want to gear up a bit. I'm guessing that the SpinBox drives the wheel.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #10   Spotlight this post!  
Unread 04-03-2015, 21:36
NHoffmann's Avatar
NHoffmann NHoffmann is offline
Registered User
FRC #0573 (Mech Warriors)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2014
Location: Bloomfield Hills
Posts: 36
NHoffmann is an unknown quantity at this point
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!
__________________
WHO ARE WE?

573!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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