|
Re: BEI Gyro Accuracy
Quote:
Originally Posted by John Gutmann
What is the not moving voltage on your gyro end up being? (Your using a BEI right?) I know it is supposed to be 2.5, but mine is 2.1 volts. That just seems a littles too far off to just be a tolerance issue.
-John
|
Honestly, I don't know what my offset, or "bias", is for this gyro. But as I recall it is near 2.5vdc. In the code below, I do a 30 sample average of the gyro while it is stationary during initialization to determine what my "bias" is. 30 samples takes 3 seconds.
Code:
for(int i=0; i<=29;i++) // Collect 30 samples of Gyro output while stationary.
//The average will become the value for the BIAS.
{
bias_acum += analogRead(GyroPin);
delay(100);
}
gyroBias = (bias_acum/30);
The gyro I am using is a Analog Devices ADXRS150 equivalent. In fact the chip is a 22304, but the specs are the same as the 150. It came in the 2005 KOP.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|