⬆️ ⬇️

Retrieving data from a MEMS gyro (part I)

Introduction

The main goal at this stage was to obtain data from the MEMS gyro connected to the breadboard through the I2C bus. In this article I would like to tell you what happened. Who cares please under the cat (careful traffic).





What it took to purchase



Why did the choice fall on her? Because it was a ratio of pretty optimal price and its capabilities available at that time.





Among the three axial gyroscopes there was no particular choice therefore they took this one, since the essence was for the time being just to study what and how it works, that was quite enough.





What for this had to do



To connect the gyroscope it was required to make a printed circuit board for connection via the I2C bus according to the Datasheet.

')





















What for it it was necessary to implement programmatically





What is the result?



Here, black shows raw data and three methods for obtaining a moving average (red, blue and purple), the gyroscope is at rest



Data from the X axis, the gyroscope rotates



Data from the Y axis, the gyroscope rotates



Data from the Z axis, the gyroscope rotates



Conclusion

In conclusion, I would like to say that work on the project is still going on and I would like to get more accurate values ​​from the gyroscope by applying various filters, get rid of noise and better integrate the data so that I can finally get the gyroscope orientation angles. If anyone has any advice on this matter, I will be happy to hear them. In the next part I will try to talk about what happened with the processing of this data. Thank you all for your attention.

Source: https://habr.com/ru/post/131502/



All Articles