Be careful with the low cost MEMS gyros. They suffer both from drift and large zero rate outputs. This means that if you continuously take readings when the device is not in motion, the MEMS gyro will say you have turned a full circle after an hour or so. They can be fun used measuring motion on one plane, but for 3 dimensional movement the calculations involved in figuring out where you are are beyond the wit of an embedded micro-controller. (not to mention the capabilities of some engineers - it's not the simple like an accelerometer)
I agree - it was a fun lesson and very interesting. I have not given much thought to MEMS gyroscopes before this. I enjoyed the video you posted - Cabe. It simplified the concept for me and I can visualize its application more clearly.
Gyros, like all instruments come in different grades. For the short term RC-style stabilization mentioned in the video, noise and bias of a gyro don't make much difference and can be compensated for. However if you are navigating a plane full of passengers across the country - it's a much more complex requirement as you noted requiring a different grade of instrument.
I doubt that they are beyond the microcontroller. Most calculations like this break down to very simple expressions when properly discretized. However, doing that analysis may well be beyond most programmers who are trying to tell the microcontroller what to do.
The algorithms for 3 dimensional position calculations can be found in application notes, but they involve matrix multiplications and basic controllers like PIC and M0 are not up to the job, not if they are controlling motors at the same time. Factoring in all the errors a MEMS gyro is capable of and you realize it's not really useful for navigation. In practical terms, there is no way you will accurately follow a corkscrew motion with these sensors.
I'd be a little careful about saying no. Often enough, people put constraints on these things that are way beyond what is necessary. For example, you added the "controlling motors" constraint. I've done real time adaptive servo position control with a PIC that was also monitoring a half dozen inputs. It is all in when and how often you do the tasks. Reading the encoder (a very simple task) has to be very fast, or you will miss counts. The inner loop of the servo control has to be in the 100 to 1000 Hz range. The adaptivity can be done in the 1 to 10 Hz range.
Reading a gyro has to be very fast. Compensation can be slower. Navigation can be much slower. A 3D matrix-vector multiply is only 9 multiplies and six additions. That isn't much, especially if you have some hardware help to do it (which some PICs do). If you had to do that at 100 kHz, that would be beyond a PIC, but I doubt that you do.
Having said that. the inherent errors in a MEMs gyro will cause them to drift. You will need other input to compensate for that. But that is not a processor limitation. An array of high speed DSPs would have the same problem.
The legacy endpoint devices that control our critical infrastructure (utility systems, water treatment plants, military networks, industrial control systems, etc.) are some of the most vulnerable devices on the Internet.
In a switched-capacitor filter, capacitors and switches take the place of resistors and accurately reproduce the characteristics of continuous-time Bessel, Butterworth, and elliptical filters.
From Dell / Intel® New Paradigms in Design Work Scott Hamilton, vertical market strategist for Dell Precision workstations, 5/2/2013 5
Early in my career, I worked as a draftsman and remember the days of drawing on vellum with numbered pencils and Mylar with plastic lead. This was a fun experience in the sense that I ...
I've been using workstations for more than 10 years and love finding ways to get more performance from my system. With demanding professional applications that require more power each ...
A lasting memory from my first job as an engineer in an auto assembly plant is standing on hard concrete at six in the morning, vending-machine coffee clutched in hand, listening to ...
For industrial control applications, or even a simple assembly line, that machine can go almost 24/7 without a break. But what happens when the task is a little more complex? That’s where the “smart” machine would come in. The smart machine is one that has some simple (or complex in some cases) processing capability to be able to adapt to changing conditions. Such machines are suited for a host of applications, including automotive, aerospace, defense, medical, computers and electronics, telecommunications, consumer goods, and so on. This radio show will show what’s possible with smart machines, and what tradeoffs need to be made to implement such a solution.
To save this item to your list of favorite Design News content so you can find it later in your Profile page, click the "Save It" button next to the item.
If you found this interesting or useful, please use the links to the services below to share it with other readers. You will need a free account with each service to share an item via that service.