Go to Post Now the big question is, does Dave think this is pimp? - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2012, 01:00
eannevelink eannevelink is offline
Registered User
FRC #0114
 
Join Date: Jan 2012
Location: Los Altos
Posts: 4
eannevelink is an unknown quantity at this point
Potentiometer vs. Encoder

I'm not exactly sure where this is coming from, but I read somewhere that encoders are more precise that potentiometers. Is this true? If so, why would you use a potentiometer over an encoder except for the fact that potentiometers are absolute.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2012, 02:35
Mr V's Avatar
Mr V Mr V is offline
FIRST Senior Mentor Washington
FRC #5588 (Reign)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Maple Valley Wa
Posts: 994
Mr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond repute
Re: Potentiometer vs. Encoder

It depends on what you want the sensor to tell you.

As you noted a potentiometer will give you an absolute position within a limited range of motion. So for example connected to an "arm" it can tell you exactly where it is within its range of motion regardless of its starting location.

An encoder can tell you the rpm of a shaft or be used on a device with unlimited rotation to move a certain number of steps relative to where you start counting. It can be useful in autonomous to have your robot move a specific distance from its starting position or to maintain a set rpm with a varying load.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2012, 02:49
eannevelink eannevelink is offline
Registered User
FRC #0114
 
Join Date: Jan 2012
Location: Los Altos
Posts: 4
eannevelink is an unknown quantity at this point
Re: Potentiometer vs. Encoder

Which option will give you a more accurate angle measure?

For example, an encoder gives you 360 pulses for every rotation. Is there a similar measurement for a potentiometer?
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2012, 03:54
Jeremy Germita's Avatar
Jeremy Germita Jeremy Germita is offline
Co-Advisor/Lead Engineering Mentor
AKA: wood is good. plastic is fantastic.
FRC #5012 (Gryffingear) / (Antelope Valley FIRST Teams)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Lancaster, CA
Posts: 282
Jeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond repute
Re: Potentiometer vs. Encoder

Quote:
Originally Posted by eannevelink View Post
Which option will give you a more accurate angle measure?

For example, an encoder gives you 360 pulses for every rotation. Is there a similar measurement for a potentiometer?
It depends on your potentiometer's number of turns.

Remember that the ADC on the cRIO is 10 bit. 1024 unique values.

If you have a 270 degree pot, that's .2636 degrees per 1 value.
Now look at your 360 pulses / rotation encoder. That's 1 degree per 1 value.
Conclusion: the 270 degree pot would be more accurate, at the expense of limited rotation.

Now consider a 10 turn pot. That's 3.515625 degrees per 1 value.
Conclusion: the Encoder would be more precise in this case, at the cost of being relative and not absolute.

So to answer your question about accurate angle measures, you must consider the pot in question.

Encoders
Pros: Infinite rotation.
Cons: Relative, a little more complex to wire up(3-4 lines depending on the encoder), very delicate.

Potentiometers
Pros: Absolute, simple to wire up(3 lines), a little more robust, more widely available
cons: (depending on the pot)Limited rotation.

Each has it's own applications. Encoders are traditionally used in drivetrains and other things requiring velocity and distance readings. Pots are used where absolute angle values are required.
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.

2017 - Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2012, 11:35
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Potentiometer vs. Encoder

Quote:
Originally Posted by jeremypg399 View Post
the 270 degree pot would be more accurate
No, it would be more precise.

----

Potentiometers are often less costly than encoders, but they can be more affected by the environment (vibration, water, etc).
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #6   Spotlight this post!  
Unread 25-03-2013, 23:46
lokeshv lokeshv is offline
Registered User
no team
 
Join Date: Mar 2013
Location: chennai
Posts: 1
lokeshv is an unknown quantity at this point
Re: Potentiometer vs. Encoder

Quote:
Originally Posted by Mr V View Post
It depends on what you want the sensor to tell you.

As you noted a potentiometer will give you an absolute position within a limited range of motion. So for example connected to an "arm" it can tell you exactly where it is within its range of motion regardless of its starting location.

An encoder can tell you the rpm of a shaft or be used on a device with unlimited rotation to move a certain number of steps relative to where you start counting. It can be useful in autonomous to have your robot move a specific distance from its starting position or to maintain a set rpm with a varying load.
what is calculation to find speed with help of encoder.....
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2012, 12:11
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,560
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: Potentiometer vs. Encoder

Quote:
Originally Posted by jeremypg399 View Post
Remember that the ADC on the cRIO is 10 bit. 1024 unique values.


While the ADC on the cRIO analog module is actually 12 bits, it's in range of -10v to 10v. Only 10 bits are in the range of 0-5v, so it's better to use 10 bits in your calculations.



Quote:
Originally Posted by Mr V View Post

An encoder can tell you the rpm of a shaft or be used on a device with unlimited rotation to move a certain number of steps relative to where you start counting. It can be useful in autonomous to have your robot move a specific distance from its starting position or to maintain a set rpm with a varying load.


It's also possible to get continuous turn potentiometers and use them for everything you can use a encoder for. The following whitepaper goes through how to do this. http://www.chiefdelphi.com/media/papers/1743



Quote:
Originally Posted by eannevelink View Post
I'm not exactly sure where this is coming from, but I read somewhere that encoders are more precise that potentiometers. Is this true? If so, why would you use a potentiometer over an encoder except for the fact that potentiometers are absolute.


I will use a potentiometer every time, unless there is a compelling reason to use an encoder. Potentiometers are cheaper, and in my experience is more robust. Rarely have I found the accuracy of a potentiometer to be a problem in FIRST applications.

Last edited by Joe Ross : 16-01-2012 at 20:45.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-01-2012, 20:34
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Potentiometer vs. Encoder

The web site claims the 9201 is a 12 bit ADC. I'm not sure if NI sells a product that has a 10 bit ADC. The comment about range is spot on though.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 17-01-2012, 12:27
Mr V's Avatar
Mr V Mr V is offline
FIRST Senior Mentor Washington
FRC #5588 (Reign)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Maple Valley Wa
Posts: 994
Mr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond reputeMr V has a reputation beyond repute
Re: Potentiometer vs. Encoder

Quote:
Originally Posted by Joe Ross View Post
Potentiometers are cheaper, and in my experience is more robust. Rarely have I found the accuracy of a potentiometer to be a problem in FIRST applications.
No doubt Potentiometers are cheaper but trying to use one on our kicker for Breakaway we found they can not handle a high rate of acceleration. One release of the surgi-tube powered kicker from fully retracted was all it took to break them. We had to switch to an encoder and then add a limit switch to sense a point to start watching the encoder counts from.
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2012, 08:35
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,357
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Potentiometer vs. Encoder

There are absolute rotary position sensors that are sensing over the full 360 range with no mechanical or electrical limits. Vishay 981HE is one model. They are analog voltage from .5 to 4.5 volts so they do not give 10 bit AD resolution. About .5 degrees is the best you can get. Note this is a NI module limitation. Not the limitation of the sensors. There are SSI output sensors that can give 12 bit resolution thru a SPI like interface. We use them to control the steering angle of our pivot module and last year they feed the PID for our arm.
Reply With Quote
  #11   Spotlight this post!  
Unread 20-01-2012, 08:20
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,099
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: Potentiometer vs. Encoder

There are encoders and then there are encoders. FIRST Choice had one of them, the AS5030, available as a demo board. It featured 256-step encoding of a full rotation using a rotating magnet as input. Electronic resetting of the zero point is one of the features, along with magnetic field strength was available.

You can also convert a standard pot into full rotation as long as it's not one of the miniature variety. You just have to support the wiper with an insulator bridge and do a little strategic filing and careful re-assembly. It won't increase the measurement range but it might simplify the construction some. I suppose you could overlap two of them, but I haven't tried it.

The pot route may be easier to understand, i.e. (dare I say it?) more instructional. An added plus is the ability to brag that your 'bot is on pot.
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
Reply With Quote
  #12   Spotlight this post!  
Unread 20-01-2012, 10:32
tsaksa's Avatar
tsaksa tsaksa is offline
Registered User
FRC #0997 (CHS Robotics)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Corvallis Oregon
Posts: 203
tsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond repute
Re: Potentiometer vs. Encoder

I did not see anyone mentioning other issues in actually implementing and wiring these sensors such as noise on encoder digital signals. Or, the issues with poor quality data if the reflective encoder wheel on a KOP encoder is not properly aligned. I was not on the team last year, but I do know the team had a lot of trouble trying to get encoders to work reliably and gave up and used a potentiometer. They did not need high speed position sensing and some analog filtering gave good results with a potentiometer. Noise on the encoder by comparison was producing position drift over time.

From what I can see from last years robot I understand the problems. The team was short handed mentor wise for a while and the team lost some key skills. We are still trying to re-build the level of electrical knowledge and construction skills to use more components properly. But it is no surprise without enough time for training that they had reliability issues last year with encoders. We are trying to learn and address the skills needed to be successful this year. Even if we do, there are some students who still think encoders are unreliable. At least the ones we can get from FIRST Choice.

Bottom line. If you really let the students do the construction and most of the debugging, than you may have to let them select parts based on their current abilities and comfort level, and not just the technical merits. I think our team has the skills this year in SW, HW, and assembly, to have a wider choice in sensor use. But in the short build season, you may need to make other tradeoffs if enough experience with these components is not already present.
__________________
This is the zeroth day of the rest of your life.
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 02:33.

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