Go to Post In my opinion, if it can light a fire in your heart to burn with passion, and you can maintain that fine line between passionate and crazy; then go for it. Power to Passion. - RKElectricalman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2006, 06:17
naor52 naor52 is offline
Registered User
FRC #1578
 
Join Date: Dec 2005
Location: ISREAL
Posts: 23
naor52 is an unknown quantity at this point
Gyro not accurate - Problem

Hi,

without calibrating the gyro too much, just by letting it calculate bias and then moving it (connected to a solid block of wood) 180 degrees and back, we saw that the gyro does not return to zero and actualey is off by 200-500 "numbers" each time (have not calibrated to radians or degrees yet).

so after one turn and back, instead of being at zero or very close it is around 500 and then after doing it again it will be at 700 or 300....

anything I can do to make it more accurate??

-Naor

Last edited by naor52 : 26-01-2006 at 09:40.
  #2   Spotlight this post!  
Unread 26-01-2006, 10:33
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Gyro not accurate - Problem

If you try to turn the gyro faster than its maximum rated rotational velocity, you will saturate the output and your counting will be off.

The kit gyro is good for +/- 80 degrees/second, which is actually quite slow for a turning robot.
  #3   Spotlight this post!  
Unread 26-01-2006, 10:36
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

What do those numbers (the error) come out to in degrees?

and how are you turning the block of wood so it returns exactly to where it started?

does the gyro output drift while its sitting still?
  #4   Spotlight this post!  
Unread 26-01-2006, 12:31
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Gyro not accurate - Problem

I think the max rotational velocity is the main issue. I will try and rotate it more slowly to see if this solves it.
can anyone point to other sensors which are compatible but have a higher max rotational velocity limit?
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #5   Spotlight this post!  
Unread 26-01-2006, 12:57
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

Analog devices has pretty much cornered the market for MEMs solid state gyros.

They have several. The ADXRS300 will track up to 300°/S. I have not looked at the gyro that is included in the kit of parts this year. The ADXRS familiy has analog outputs that must be handled as analog signals into the robot controller.

www.analogdevices.com
  #6   Spotlight this post!  
Unread 26-01-2006, 13:06
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Gyro not accurate - Problem

Quote:
Originally Posted by KenWittlief
Analog devices has pretty much cornered the market for MEMs solid state gyros.

They have several. The ADXRS300 will track up to 300°/S. I have not looked at the gyro that is included in the kit of parts this year. The ADXRS familiy has analog outputs that must be handled as analog signals into the robot controller.

www.analogdevices.com

Thanks Ken,

I have heard that there are two types of gyros, one that tells you angular speed, and one that tells you angular position.

correct me if i'm wrong, but wouldn't an angular position gyro work better for our purposes and be simpler?

-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #7   Spotlight this post!  
Unread 26-01-2006, 14:48
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

Im not aware of a solid state MEMs gyro that gives angular position.

The NS ADXRSxxx devices output angular rate (degrees / second). This is exactly what you want for motion control feedback if you have an input that is commanding desired degree/S turn rate (ie, a joystick)

you simply compare the joystick input to the sensor output to see if the bot is turning as fast as the driver is commanding it to turn. That is your error signal for a feedback PID loop.

The same sensor can be integrated to get relative compass heading. Its simple to do.

assuming you scale the yaw rate sensor down to 8 bits, you would have a 16 bit variable, initialized to 32,000. Then on every loop through your code read the sensor, add it to that HEADING variable, and subtract 128 (for the zero reading offset)

then as your bot turns one way, the HEADING variable will increase, and decrease when turning the other way.

you can also let the bot sit still for a few seconds at power-up, and read the 'not moving' output of the sensor. That will be your zero point (might be 126 or 130... instead of 128). This way you compensate for drift, and you have control over the 'calibration'.

If there are MEMs gyro chips that output heading, Id be interested in seeing the spec sheets. I know there are magnetic sensors that work that way, they tell you which way magnetic north is (in 3 dimensional space).
  #8   Spotlight this post!  
Unread 26-01-2006, 15:17
Rick TYler Rick TYler is offline
A VEX GUy WIth A STicky SHift KEy
VRC #0010 (Exothermic Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Redmond, Washington
Posts: 2,000
Rick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond reputeRick TYler has a reputation beyond repute
Re: Gyro not accurate - Problem

Quote:
Originally Posted by KenWittlief
you can also let the bot sit still for a few seconds at power-up, and read the 'not moving' output of the sensor. That will be your zero point (might be 126 or 130... instead of 128). This way you compensate for drift, and you have control over the 'calibration'.
This is a really good (hint) suggestion. Remember that you have power to your robot when you set it up for autonomous. There is no reason to wait for the referee to turn on your motor controls to "fire up" and set the "not moving" value of the gyroscope. (Thanks to the Titan Robotics Club, FRC 492, for teaching us about this in the off-season.)
__________________
Exothermic Robotics Club, Venturing Crew 2036
VRC 10A, 10B, 10D, 10Q, 10V, 10X, 10Z, and 575

Last edited by Rick TYler : 27-01-2006 at 14:04.
  #9   Spotlight this post!  
Unread 26-01-2006, 21:24
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Gyro not accurate - Problem

Quote:
Originally Posted by Rick TYler
This is a really good (hint) suggestion. Remember that you have power to your robot when you set it up for autonomous. There is no reason to wait for the referee to turn on your motor controls to "fire up" and set the "not moving" value of the gyroscope. (Thanks to Team Titan Robotics, FRC 492, for teaching us about this in the off-season.)
Just be careful not to move your robot around the starting zone once you've powered up if this is the case
  #10   Spotlight this post!  
Unread 27-01-2006, 00:39
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

when the robot is powered but disabled by FIRST field control system at the start of the match, the inputs are still being fed to the robot, the inputs from the user interface, and any analog or digital inputs on your robot itself. Only the outputs are disabled, that is what keeps the robot from moving until auton mode is started

so you could have your bot look for the auton or regular play bits to not be set yet, and use that time to calibrate your sensors. Your bot will always see several seconds of 'disabled time' after its been turned on, and before auton modes starts.
  #11   Spotlight this post!  
Unread 27-01-2006, 13:22
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Gyro not accurate - Problem

Is calibrating before auton legal?

And wouldn't the judges moving the bot fudge the calibration?
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
  #12   Spotlight this post!  
Unread 27-01-2006, 14:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Gyro not accurate - Problem

Quote:
Originally Posted by gnirts
Is calibrating before auton legal?

And wouldn't the judges moving the bot fudge the calibration?
No, it's not illegal. Only driving away while disabled would be illegal.

Actually the calibration on powerup should help if the referees decide to reposition your robot. Your robot will know when it gets moved and be able to correct for it. Calibration need only take a second and should be over and done with long before the referees get around to deciding to move it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-01-2006 at 14:41.
  #13   Spotlight this post!  
Unread 27-01-2006, 15:04
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Gyro not accurate - Problem

yeah, but you need to control when that 'second' is - so your team is not bumping the robot while turning the power on, and the ref is not moving the bot....

the second before the match starts would be best - you could calibrate continuously, and keep the last result when auton = T.
  #14   Spotlight this post!  
Unread 27-01-2006, 15:12
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Gyro not accurate - Problem

What we did in 2003 and 2004 for auto-calibrating the gyro was pretty simple: our custom circuit sampled the gyro for it's "center" position after a 5 second delay when powered on. (Note that the gyro's "center" position can be different every time you power it up!). So, setting up on the field was simple: just make sure the robot is off when you move it onto the field, position the robot, then as the last step before the team members leave the field to go to the driver's station, power on the robot. That ensures that it's not moving 5 seconds later when the gyro is sampled.

Finally, while disabled we'd keep zeroing out the integral that was used as the heading - this prevents it from drifting as the robot sits there before the match began.
  #15   Spotlight this post!  
Unread 27-01-2006, 16:15
Tom Saxton's Avatar
Tom Saxton Tom Saxton is offline
Registered User
no team (Issaquah Robotics Society)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2003
Location: Sammamish, WA
Posts: 98
Tom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud ofTom Saxton has much to be proud of
Re: Gyro not accurate - Problem

I don't know if this is an issue with the gyro from the KOP, but we use an ADXSR150 in a Robo-Magellan robot and found that the gyro gives different values when rotating clockwise vs. counterclockwise. So, when doing integration/averaging we use different denominators for values above and below the centerpoint.

Until we did this, it was impossible to rotate one way and back and get a angle value close to the starting value.
__________________
Tom Saxton
http://www.idleloop.com/
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
atan Problem - Need Help the_undefined Programming 0 18-02-2005 11:16
Physics Problem Venkatesh Math and Science 13 30-11-2004 20:30
No Signal From Gyro colt527 Programming 12 19-10-2004 07:30
Ok one problem cantwell03 Programming 3 13-02-2003 07:28
Have YOU used the gyro chip? FotoPlasma Technical Discussion 10 31-01-2002 13:26


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

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