3

I'm currently working on a project where I am pulling readings from 3 Gyroscopes (STM L3G4200D) to a Microcontroller (TI MSP430) and sending orientation data to the user.

I've been reading up on gyroscope data collection and it sounds as though gyroscope readings tend to "drift" over long periods. Would there be a good way of tracking or correcting for this drift?

HideAndGoSeak3
  • 141
  • 1
  • 4
  • Is this the only sensor you have? Gyroscopes and accelerometers are often used in conjunction to help calibrate eachother. [This page](http://diydrones.com/profiles/blogs/faq-whats-the-difference) has a good write-up. – David Oct 11 '13 at 16:41

1 Answers1

6

You need some other way to measure absolute attitude in order to correct for the long-term drift of your (rate) gyros so that you can use them for meaningful short-term measurements.

Some systems use accelerometers to measure the gravity vector to establish roll and pitch references (but this requires that there are no other accelerations involved) and magnetometers to establish a yaw reference.

Other systems use multiple (two or three) GPS receivers to do interferometry on the GPS signals in order to establish an absolute attitude reference. This is harder to do, but can be done even while on the move (accelerating).

The most sophisticated systems combine all four kinds of information (rate gyro, acceleration, magnetometer and GPS, typically using a Kalman filter) in order to provide the most robust solution.

Dave Tweed
  • 168,369
  • 17
  • 228
  • 393
  • +1 for pointing out that these are **not** gyros but **rate** gyros. They will by definition incur integral errors - i.e. drift. – placeholder Oct 11 '13 at 18:38
  • @rawbrawb: Regular gyros drift, too. It's just that with rate gyros, a simple offset error becomes drift after integration. – Dave Tweed Oct 11 '13 at 19:13
  • I'd just say you nailed the answer. Excellent response. – Bob Oct 11 '13 at 19:37