Go to Post How many programmers does it take to change a light bulb? None. They'll just say it's a hardware problem. - crafty [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2012, 15:05
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Question Gyro Doesnt Stop!!!!

We have mounted our gyro in the centre of the robot and ran the FRC Gyro Example. When we move the robot, angle values that gyro gives changes however when we stop robot gyro continues giving different angle values. Is this a problem or does gyro work this way?

Thanks in advance!!!!

Last edited by cilginbilgin : 05-02-2012 at 15:06. Reason: correction
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2012, 15:53
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: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by cilginbilgin View Post
We have mounted our gyro in the centre of the robot and ran the FRC Gyro Example. When we move the robot, angle values that gyro gives changes however when we stop robot gyro continues giving different angle values. Is this a problem or does gyro work this way?
When stopped, is the change in angle a slow drift? Like a couple of degrees per minute or less?

Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2012, 18:23
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: Gyro Doesnt Stop!!!!

There is a brief calibration performed when the gyro is first initialized. If the robot is moving during that time, the calibration will be incorrect and the computed heading will continue to increase or decrease when everything is stationary.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2012, 07:00
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by Ether View Post
When stopped, is the change in angle a slow drift? Like a couple of degrees per minute or less?

When we stop the robot the change in angle is the same as when we moved the robot. Mostly it is a lot more than a couple of degrees per minute.


Quote:
Originally Posted by Alan Anderson View Post
There is a brief calibration performed when the gyro is first initialized. If the robot is moving during that time, the calibration will be incorrect and the computed heading will continue to increase or decrease when everything is stationary.
We ran the code and didnt move the robot for five minutes. During that five minutes we read 0.015... degree from gyro. Than we moved the robot and when we stopped the robot we had the same problem. Gyro continued giving different angle values.

Last edited by cilginbilgin : 06-02-2012 at 07:09. Reason: correction
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2012, 07:04
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: Gyro Doesnt Stop!!!!

we noticed that two. When you turn the robot or drive in circles, it keeps going either up or down. Just Reset the gyro and Set the Gain again before you are going to use it.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2012, 07:13
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by tilky View Post
we noticed that two. When you turn the robot or drive in circles, it keeps going either up or down. Just Reset the gyro and Set the Gain again before you are going to use it.
I thought gain was a constant value which is 0.0125 voltsperdegree/second. At least in the example gain is 0.0125 voltsperdegree/second. Should we change this value? When we reset the gyro it continues going up or down.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2012, 07:16
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: Gyro Doesnt Stop!!!!

just create a constant and leave it as the default. I don't know why but if we didn't do this each time we reset it, it doesn't work at all (When you turn it on it would just keep going up to 5000 degrees without even driving in circles). When we set the gain, it worked for what we needed
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2012, 09:00
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by tilky View Post
just create a constant and leave it as the default. I don't know why but if we didn't do this each time we reset it, it doesn't work at all (When you turn it on it would just keep going up to 5000 degrees without even driving in circles). When we set the gain, it worked for what we needed
When we turn the robot on, gyro doesnt go directly to 5000 degrees. Once we move the robot, angle of the gyro starts changing and doesnt stop even if the robot is stationary. We are deploying the Gyro Example Code in Labview, we tried to wire a constant to set gain as you said whereas it didnt work for us.
What might be the problem??
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2012, 12: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: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by cilginbilgin View Post
When we turn the robot on, gyro doesnt go directly to 5000 degrees. Once we move the robot, angle of the gyro starts changing and doesnt stop even if the robot is stationary. We are deploying the Gyro Example Code in Labview, we tried to wire a constant to set gain as you said whereas it didnt work for us.
What might be the problem??
If you have the sensor board wired properly and the Gyro Example does not work, you might just have a bad sensor.

How do you have it wired? How many wires are connected, and where does each of them go at each end?
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2012, 16:05
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Re: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by Alan Anderson View Post
How do you have it wired? How many wires are connected, and where does each of them go at each end?
http://www.usfirst.org/sites/default...meter-Gyro.pdf

We have wired it according to the pdf above.
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2012, 21:27
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: Gyro Doesnt Stop!!!!

Quote:
Originally Posted by cilginbilgin View Post
We have wired it according to the pdf above.
That doesn't answer my question at all. Please look at your wiring and describe for me where the wires are connected on the sensor board, and where each of those wires goes.
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 22:28.

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