Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Gyro Doesnt Stop!!!! (http://www.chiefdelphi.com/forums/showthread.php?t=102040)

cilginbilgin 05-02-2012 15:05

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!!!!

Ether 05-02-2012 15:53

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by cilginbilgin (Post 1120469)
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?


Alan Anderson 05-02-2012 18:23

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.

cilginbilgin 06-02-2012 07:00

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by Ether (Post 1120484)
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 (Post 1120586)
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.

tilky 06-02-2012 07:04

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.

cilginbilgin 06-02-2012 07:13

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by tilky (Post 1120841)
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.

tilky 06-02-2012 07:16

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

cilginbilgin 06-02-2012 09:00

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by tilky (Post 1120844)
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??

Alan Anderson 06-02-2012 12:11

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by cilginbilgin (Post 1120874)
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?

cilginbilgin 06-02-2012 16:05

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by Alan Anderson (Post 1120949)
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.

Alan Anderson 06-02-2012 21:27

Re: Gyro Doesnt Stop!!!!
 
Quote:

Originally Posted by cilginbilgin (Post 1121076)
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.


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

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