hello,
i am using a Gyro LISY300AL with dspic30f4011 ( the same development plate from sparkfun),
how can i convert adc result from gyro to SI unit, for example to rad/sec.
resolution of adc is 10 bit,
and the sensetivity of the gyro is 3.3 mv.
15/mv/degree/sec.
thanks.
Replies
By the way, the conversion factor depends on whether or not you configure the A/D to produce left justified or right justified results. My preference is left justified, it improves the resolution of downstream computations when you oversample. But, coming back to this discussion....
In the case of right justified, there are 1024 steps on the ADC.
With a reference voltage of 3.3 volts, that is 3.22 millivolts per step.
The sensitivity of the LISY gyro is 3.3 millivolts per degree per second.
You divide 3.22 millivolts per step by 3.3 millivolts per degree per second to get 0.9765 degrees per second per step.
Which comes out to be 0.017 radians per second per step.
Best regards,
Bill
so you have 1024 steps on your ADC
I assume that you reference volatge is 3.3V
-> each ADC step is 3.22mV
-> each ADC step is 0.465°/s
conversation to rad/s -> 0.00812rad/s/step