|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Quote:
32768(2.5 volts) -32282(Bias)=486. 486/64 = 7.59 a/d counts * 5 mV/count = 38 mV above 2.50. Null bias should equal 2.538 volts. Verfied with DVM. Hooray! Sampling rate was 1600 Hz, samples per update rate set to 64, ADXRS300EB utilized, #define TENTHS__OF_A_DEGREE. #define GYRO_CAL_FACTOR = 1000/1000 (no change). Simple 180 degree spin test executed. Learn bias at 0 degrees, verify for 4/5 readings on terminal that angle = 0 degrees. Next, spun gyro 180 degrees - reading about 900 counts (90 degrees * 10 counts/degree). Return to 0 degree position - read 0 counts (plus/minus 30 - remember, very coarse test). Next, tried the GEI GYROCHIP AQRS_00075. Changed the #define GYROCHIP_75 at top of gyro.h. Same spin test gave similiar results. Spun 360 degrees and back - similiar results. Sampling rate 1600 Hz, samples per update rate equal 64, #define TENTHS_OF_A_DEGREE, #define GYRO_CAL_FACTOR = 1000/1000 (no change). Quote:
Did you work some new magic in the new 01/30/05 software release, or do you think the 1600 Hz, samples = 64 is what made this work? I did not have time last night to experiment with various settings. I tried the 01/22/05 software and found my head bloody from beating it against the wall to make it work. BTW, thanks for responding to previous e-mail and publishing 01/30/05 release. |
|
#2
|
||||
|
||||
|
Re: FRC/Kevin 01/30/05 Gyro code Operational - Team 1286
Quote:
Quote:
-Kevin |
|
#3
|
|||||
|
|||||
|
Re: Example gyro code released.
Hi, I just wanted to let you know we implemented your code with the ADXRS300EB last weekend and it has been performing *perfectly* all week. Thanks for the excellent work
. Now the camera is another story.... |
|
#4
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
Quote:
-Kevin |
|
#5
|
|||||
|
|||||
|
Re: Example gyro code released.
Quote:
![]() |
|
#6
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#7
|
|||
|
|||
|
Re: Example gyro code released.
Hi,
i used your gyro code with a ADXRS300. The user_routines.c executes pretty good, the gyro bias is mostly stable there is almost no change in angle. But the autonomous mode is giving us a lot of trouble. I am trying to accomplish two tasks, one give robot an angle and have to turn, like turn(90) and it should turn 90 degree, The other thing is being able to go in a straight line with out drifting. But after about 2-3 seconds in the autonomous i encounter an runtime error( the program state starts blinking red). Here is my user_routines_fast.c please take a look and help me out. Quote:
|
|
#8
|
||||
|
||||
|
Kevin,
I tried working last night with all three gyros and none worked like the last time. So, first time was bad. Second time was like a good dream. Third time was bad again. Gryo angle had drift and bias reported unusual numbers. Voltmeter on output agreed with gyro angle drift output. I can't remember the number right now (like 3.0 volts). At one point I measured a solid 4.98 volts powering one of the gyro's over the PWM cable. Same laptop. software, gyros, FRC controller -- the works. Has there been any reported FRC_Board sensitivity to electical noise like issues? Should I be extra careful with noise sources? Should I get away from using A/d channel 01? I didn't have any caps to place on output to see if that would help to stabilize the gyro output. Will all three gyros flaky performance, however, I am leaning away from viewing the gyro's as the problem but the FRC controller. Have you tried same software on multiple platforms yourself and/or seen strange problems like this on FRC controllers? I hope some of the high school student's end up reading this thread so that they can see how difficult it can be to make what seems to be something simple work properly. |
|
#9
|
||||
|
||||
|
Follow up to previous message.
I went home to try the gyro software on a new controller. So, same software, gyro, different FRC controller. Gyro operational again. Rotate 180 degrees and get 1800 on display. Return slowly to 0 degrees, get 0 on display. No gyro drift. I suspect some funny issues with the FRC controller that we are using in our old robot. When I get a chance, I will power up the 2005 FRC controller and see what happens with the gyro. I will continue to explore different angles as to the reason for the differing results and update this message accordingly. |
|
#10
|
|||
|
|||
|
Re: Gyro problems - again - Team 1286
This may seem like a weird question, but oh well... How do you wire the BEI AQRS-0075-FIRST gyrochip?
I read the readme but it only gives instructions for wiring other gyros. I suppose you need to wire the white cable to rate out pin1, the ground black wire to common pin2, and the red wire to +5 VDC input pin3. I think that is how it goes, but i just want to make sure is right before i blow something out. Any quick reply will be greatly appreciated. Thanks. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| Wierd gyro code problems...pls help | Salik Syed | Programming | 4 | 14-03-2004 01:29 |
| Infrared Beacon and Sensor Diagnostics Code Released | Kevin Watson | Programming | 3 | 25-02-2004 17:50 |
| gyro code | odin892 | Programming | 2 | 08-04-2003 14:50 |