Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Gyro problem..HELP! (http://www.chiefdelphi.com/forums/showthread.php?t=66875)

zivo123 12-04-2008 13:42

Gyro problem..HELP!
 
Hi everyone,
we have entered the last day of training for us (we are flying to america on monday!) and our Gyro suddenly became odd- when we turn it somewhere, it begins to count and gets to 15000~..
has anyone expirienced something like this before?
is it a problem with the sensor, the wiring, or the program?
Any comment or advice would be extremely helpful!
Thanks, Ziv

SL8 12-04-2008 14:30

Re: Gyro problem..HELP!
 
Which direction are you turning and at what speed?
Is it any different than what you were doing before?
Are you using Kevin's or your own code, EasyC, or RobotC?

Tottanka 12-04-2008 14:36

Re: Gyro problem..HELP!
 
Quote:

Originally Posted by SL8 (Post 735476)
Which direction are you turning and at what speed?
Is it any different than what you were doing before?
Are you using Kevin's or your own code, EasyC, or RobotC?

i know they are using Kevin's code.
i think the direction doesn't meeter, happens in both, and they did not have a gyro before.
don't count on the i think thing though =]

zivo123 12-04-2008 14:53

Re: Gyro problem..HELP!
 
Almost correct Liron :)
We've had a gyro and it is acting the same way as the new one..:confused:
if you have any more questions we would love to help you help us.

BornaE 12-04-2008 16:04

Re: Gyro problem..HELP!
 
Quote:

Originally Posted by zivo123 (Post 735449)
Hi everyone,
we have entered the last day of training for us (we are flying to america on monday!) and our Gyro suddenly became odd- when we turn it somewhere, it begins to count and gets to 15000~..
has anyone expirienced something like this before?
is it a problem with the sensor, the wiring, or the program?
Any comment or advice would be extremely helpful!
Thanks, Ziv

Are you using any interrupts?

zivo123 12-04-2008 16:06

Re: Gyro problem..HELP!
 
yes, we are using Kevin's original code..

BornaE 12-04-2008 16:13

Re: Gyro problem..HELP!
 
Quote:

Originally Posted by zivo123 (Post 735510)
yes, we are using Kevin's original code..

Interrupts can corrupt the gyro variable.

To solve this problem, you need to make a secondary variable that holds the gyro value from the last cycle, and if your actual value changes drastically, then you will replace it with the old value and continue.

We had the same exact problem and now it is fixed.

Hope that this helped,
have a safe trip,
see you in Atlanta;)

11Mort11 13-04-2008 12:09

Re: Gyro problem..HELP!
 
are you letting it calculate the bias?

zivo123 13-04-2008 14:09

Re: Gyro problem..HELP!
 
yes.. we are letting it calculate as in Kevin's original code - j < 300

tdlrali 13-04-2008 14:22

Re: Gyro problem..HELP!
 
Is it increasing even when you stand still?
Also, look at the ADC input - is that fairly static or is it rapidly changing when the robot stands still?

Tom Line 13-04-2008 19:21

Re: Gyro problem..HELP!
 
Check your wiring to your analog input.

An unconnected analog input will "count" up like you describe. I suspect you may have a broken wire, or a disconnected wire.

Jared Russell 14-04-2008 00:15

Re: Gyro problem..HELP!
 
I second that. The pullup resistor and low pass capacitor in the analog input circuitry will combine to pull the voltage up to VCC slowly in the absence of an input.

zivo123 14-04-2008 03:44

Re: Gyro problem..HELP!
 
Could you possibly tell us hoe to wire it? and if you have ready we also need the wiring of the GTS and the IR..:)

Tom Line 14-04-2008 12:06

Re: Gyro problem..HELP!
 
The usfirst.org website has a sensor guide that will describe the different pins and what they are for. Likewise, the email they sent out in December has a link that has a .pdf file that describes how to wire the IR board.


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

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