|
Re: Gyro ADXRS150 rate out
Are you shifting down two bits? The serial out is probably set up to send unsigned char (8-bit) whereas the analog port reads in an unsigned int, as you said, with 10 bits of resolution. Try sending (gyro >> 2).
If that's not the problem...Does it still vary correctly when rotated? Maybe it's just got a fairly large offset and 177 is the "center."
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS
|