> -----Original Message-----
> From: pic microcontroller discussion list
> [
.....PICLISTKILLspam
.....MITVMA.MIT.EDU]On Behalf Of Sean H. Breheny
> Sent: Thursday, October 11, 2001 6:11 AM
> To:
EraseMEPICLISTspam_OUT
TakeThisOuTMITVMA.MIT.EDU
> Subject: Re: [ot]: little gyro question
>
>
> Hi!
>
> You don't want to use tiny gyros (which are, AFAIK, all rate
> gyros) because
> they only output rate of rotation. So, you actually have to
> integrate their
> output to get angle. This means that they do not know the difference
> between level and a 45 deg angle, they can only tell you how much you
> rotated from a starting angle. In addition, any tiny offset error in their
> output gets integrated to a continuous drift (rise or fall in output
> angle). They are best for situations where you need to determine how
> something is rotating even when it is not an inertial frame
> (i.e., if it is
> accelerating).
>
> If you simply want to make a level which will sit still on top of
> something
> and tell you whether it is tilted, an accelerometer would be a better
> choice. Accelerometers can measure the force of gravity (indirectly, by
> actually measuring the force which is preventing the accelerometer from
> falling) and so if they are tilted, they will register a somewhat reduced
> value for gravity. You can even get a 2-axis accelerometer (ADXL202 from
>
http://www.analog.com) and then you can read out not only tilt angle but also
> direction (is it tilted with the left end up or the right end up?). You
> could actually do this with only a single axis accelerometer, but you can
> get a more accurate reading by using both accelerometers and I don't think
> the 202 is any more expensive than its single axis cousins, and it has a
> PWM output (instead of pure analog) which makes it easier for a PIC to
> handle. I think Analog Devices even has an app note on using them as level
> sensors. Note that this only works when the thing is sitting still(or
> moving at a constant velocity). It is not accurate if you are jerking it
> around or otherwise accelerating it, since it actually measures applied
> force, not gravity itself.