Go to Post Maybe next season I want to develop and test a new metric for FRC scouting: Bumper Quality Rating (BQR). BQR-5: The platonic ideal of FRC bumpers. ... BQR-0: Moderate to heavy use of duct tape. I believe BQR would outperform OPR as a predictor of on-field robot performance. - Nate Laverdure [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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-2011, 23:32
exprg:melonhead's Avatar
exprg:melonhead exprg:melonhead is offline
The Teamless/ Travelling Mentor
AKA: Justin Sticht
FRC #3278 (Qwerty)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2004
Location: Fargo, ND
Posts: 34
exprg:melonhead has a spectacular aura aboutexprg:melonhead has a spectacular aura aboutexprg:melonhead has a spectacular aura about
Re: Rotation sensors?

With some intense calculations made in the code, you could use the accelerometer, but this only gives you position of your robot and will not account for slippage. I don't think there will be any sensor that would work best for that. I would lean towards calculations in code but that might be because I'm a little biased.

Didn't even think about potentiometers. I like that. And code calculations
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2011, 23:33
Grim Tuesday's Avatar
Grim Tuesday Grim Tuesday is offline
Registered User
AKA: Simon Bohn
FRC #0639 (Code Red)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Baltimore MD (JHU)
Posts: 1,606
Grim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond repute
Re: Rotation sensors?

Use a potentiometer if you want to know an exact position of something (ie, a winch)

Use a Rotary Encoder if you want to know the speed of something (ie, the speed of a motor)
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2011, 23:40
Jason Law's Avatar
Jason Law Jason Law is offline
Team Captain
FRC #2834 (Bionic Barons)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Michigan
Posts: 92
Jason Law is just really niceJason Law is just really niceJason Law is just really niceJason Law is just really niceJason Law is just really nice
Re: Rotation sensors?

Quote:
Originally Posted by Grim Tuesday View Post
Use a potentiometer if you want to know an exact position of something (ie, a winch)

Use a Rotary Encoder if you want to know the speed of something (ie, the speed of a motor)
The potentiometer that we have "stops" after a certain degrees of rotation (<360). Is there a potentiometer that has "unlimited" amount of rotation? Or how else/what sensor could I use?

Edit: It took me a while to actually reply so by the time I replied, the answer was already given... So my new question is how do I attach an encoder to a window motor and what encoder should I use? Also, what is the difference between magnetic encoders and digital encoders? We have used encoders on the AM gen 1 shifter before but don't know how to use it in any other application.

Last edited by Jason Law : 16-01-2011 at 23:47.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2011, 23:42
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Rotation sensors?

Quote:
Originally Posted by Jason Law View Post
The potentiometer that we have "stops" after a certain degrees of rotation (<360). Is there a potentiometer that has "unlimited" amount of rotation? Or how else/what sensor could I use?
You could use a multi-turn pot (one that has a range covering more than one turn)

Or you could use a magnetic encoder. When you attach the circular magnet to a shaft, it measures the angle of the magnet and outputs a value which is analog which you can read with the cRio's ADC. Two of them come in the kit. Note that every time the angle hits 0 degrees, it wraps around to 360 degrees (same with 360 degrees to 0 degrees).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2011, 23:48
Jason Law's Avatar
Jason Law Jason Law is offline
Team Captain
FRC #2834 (Bionic Barons)
Team Role: Mechanical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Michigan
Posts: 92
Jason Law is just really niceJason Law is just really niceJason Law is just really niceJason Law is just really niceJason Law is just really nice
Re: Rotation sensors?

Quote:
Originally Posted by apalrd View Post
You could use a multi-turn pot (one that has a range covering more than one turn)

Or you could use a magnetic encoder. When you attach the circular magnet to a shaft, it measures the angle of the magnet and outputs a value which is analog which you can read with the cRio's ADC. Two of them come in the kit. Note that every time the angle hits 0 degrees, it wraps around to 360 degrees (same with 360 degrees to 0 degrees).
Great thanks!
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2011, 09:16
Brandon_L Brandon_L is offline
Back @ it again with the white vans
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,207
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Rotation sensors?

Where can we get an frc legal potentiometer?
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2011, 10:53
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: Rotation sensors?

Quote:
Originally Posted by Brandon_L View Post
Where can we get an frc legal potentiometer?
Wherever fine potentiometers are sold. There are no particular restrictions on what kind you can use (as long as you don't violate any other robot rules).
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2011, 12:26
Brandon_L Brandon_L is offline
Back @ it again with the white vans
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,207
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Rotation sensors?

Quote:
Originally Posted by Alan Anderson View Post
Wherever fine potentiometers are sold. There are no particular restrictions on what kind you can use (as long as you don't violate any other robot rules).
Ok, and then you wire them to where?
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
Reply With Quote
  #9   Spotlight this post!  
Unread 26-01-2011, 13:11
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: Rotation sensors?

A potentiometer has three connections. They all go to an input on the Analog Breakout. Using a standard PWM extension cable, the black wire (ground) goes to one end of the pot, the red wire (+5 volts) goes to the other end, and the white wire (signal) goes to the pot's wiper.
Reply With Quote
  #10   Spotlight this post!  
Unread 26-01-2011, 13:57
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Rotation sensors?

In general, single turn pots have ~270 degrees of rotation. Don't depend on all of them having this specification. Check the data to be sure and then expect something less. Never use the entire 270 degrees.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #11   Spotlight this post!  
Unread 16-01-2011, 23:34
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Rotation sensors?

Is this axle on your drivetrain? If so, you want to use an encoder because it can rotate more than 360 degrees.

A pot can't rotate past a certain degree.
Reply With Quote
  #12   Spotlight this post!  
Unread 16-01-2011, 23:36
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Rotation sensors?

You have an axle you want to measure. It is probably for an arm (the OP did not specify). Assuming its for an arm (which has a rotational limit), a potentiometer would measure the exact position at all times and output an analog signal to the cRio. No math necessary (Except to scale the 0-5v into a different range if you want, but you could use the voltage raw without issue). Whenever we have a rotational joint which software has control to adjust, it is standard practice for us to put a potentiometer on it and automate control of it. We always use potentiometers, because they are absolute (you know where you are even if you just booted up, something a quadrature encoder does not give you) and reliable.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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 08:15.

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