OCCRA
Go to Post There's a fine line between insanity and healthy obsesion with FIRST ... and sometimes I wonder which one I'm on - srawls [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Events   CD-Media   CD-Spy   FRC-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 02-06-2012, 07:13 PM
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
which sensor to use

we want to be able to get the angle of a sensor mounted onto the robot, and aren't sure which sensor to use. We tried the gyro but there are some flaws (such as it infinitly going up after we turn in circles). What should we use?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-06-2012, 07:20 PM
DuaneB's Avatar
DuaneB DuaneB is offline
Registered User
FRC #1731
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Virginia
Posts: 19
DuaneB is an unknown quantity at this point
Re: which sensor to use

Quote:
Originally Posted by tilky View Post
we want to be able to get the angle of a sensor mounted onto the robot, and aren't sure which sensor to use. We tried the gyro but there are some flaws (such as it infinitly going up after we turn in circles). What should we use?
This sounds more like a software error than a sensor error. Have you verified you're getting the correct voltage from the gyro? How does the sensor output feed back into your control loop? Are you trying to measure absolute angle, or angular rate of change? The rotary magnetic encoder will measure absolute angle. The gyro is only good for rate of change. If you're trying to measure the angle of a mechanism on the robot, like arm tilt or turret pan, a multi-turn potentiometer might be good for this.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-06-2012, 07:25 PM
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: which sensor to use

we want to measure the absolute angle of the robot itself. so a potentiometer would be good?
Reply With Quote
  #4   Spotlight this post!  
Unread 02-06-2012, 07:33 PM
DuaneB's Avatar
DuaneB DuaneB is offline
Registered User
FRC #1731
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Virginia
Posts: 19
DuaneB is an unknown quantity at this point
Re: which sensor to use

Quote:
Originally Posted by tilky View Post
we want to measure the absolute angle of the robot itself. so a potentiometer would be good?
The angle of the robot relative to what? The field? I don't know of a way to do this, except maybe to use a potentiometer or the rotary magnetic encoder on a follower wheel - but that will have issues depending on your drivetrain.

What our team usually does is to assume the robot starts aligned with the field at power-up and integrate all the rate-of-change inputs from the gyro over time to get an absolute rotation. Note that the gyro will tend to drift a bit over time, and you'll probably want a driver station button to reset the baseline gyro output (that is, the voltage reading from the gyro which the software interprets as zero rate of change).
Reply With Quote
  #5   Spotlight this post!  
Unread 02-06-2012, 07:36 PM
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: which sensor to use

we want to be able to read the angle of the robot relative to horizontal so when we go on the bridge, it will balance itself. we got it to work, but we have to reset it before and i didn't know if there was a better way
Reply With Quote
  #6   Spotlight this post!  
Unread 02-06-2012, 07:46 PM
DuaneB's Avatar
DuaneB DuaneB is offline
Registered User
FRC #1731
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Virginia
Posts: 19
DuaneB is an unknown quantity at this point
Re: which sensor to use

Quote:
Originally Posted by tilky View Post
we want to be able to read the angle of the robot relative to horizontal so when we go on the bridge, it will balance itself. we got it to work, but we have to reset it before and i didn't know if there was a better way
Ah, you want to measure tilt angle. The accelerometer (on the same board as the gyro, but with a separate digital interface) will work well for that. Keep in mind that the vector magnitude will be higher than 1G while the robot is moving, so you may need to compensate for that.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-07-2012, 04:49 AM
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: which sensor to use

so there really is no "perfect" sensor to use?
Reply With Quote
  #8   Spotlight this post!  
Unread 02-07-2012, 07:08 AM
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: 7,824
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
Send a message via AIM to Alan Anderson
Re: which sensor to use

For measuring tilt? A multi-axis accelerometer is the only reasonable choice. But no single sensor is "perfect". If you want the best possible information about the robot and its environment, you have to use many different sensors and a good algorithm for combining imprecise, noisy, and sometimes contradictory signals.
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 05:01 PM.

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


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