Go Down

Topic: ADXRS Gyro question (Read 921 times) previous topic - next topic

SgtJimmmy

Sep 20, 2009, 11:25 pm Last Edit: Sep 20, 2009, 11:26 pm by SgtJimmmy Reason: 1
I have the ADXRS610 Gyro from Sparkfun

http://www.sparkfun.com/commerce/product_info.php?products_id=9058

I have been having a hard time figuring out how to convert the data from raw data to degrees.  If anyone has any code or can describe the process of converting that would be a great help.
(toCode || !toCode)

AWOL

Quote
from raw data to degrees


The output of a gyro is a rate (rad/sec or degrees/sec) - you can't get just "degrees".
According to the spec, the  device has a sensitivity of 6mV per degree per second.
The zero degrees per second point is halfway up the scale at 2.5V.
So, if your gyro is attached to an analogue pin, and the analogue reference is set to 5V, if the gyro isn't rotating, you should get a reading around 512.
Since your minimum sensitivity of the Arduino' analogue pins is about 4.9mV, you'll get just over one count per degree per second.

Post your code and your circuit if you don't get these sorts of values.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

SgtJimmmy

You are correct, the no movement values are about 512.  If it's 6 Mv per second then do I divide it by how many milliseconds I am taking the reading?  I am trying to take a reading every 20 milliseconds to get a decent refresh rate.
(toCode || !toCode)

Go Up