A while ago I needed to learn how the I2C protocol worked, so I set about writing some code to understand it better. I find the best way to learn something is to try and teach it, so this code is written as an introduction to I2C with myself as the teacher; however before I started writing this code I had very little knowledge of how the whole thing worked. Anyways, before I post the code I should mention that I am using a Teensy 3.2 to communicate with a Kootek GY-521, which is a breakout board for the MPU 6050 IMU (3 axis accelerometer and 3-axis gyroscope). I found out that recent batches of the GY-521 had a capacitor with an incorrect value, which caused horribly noisy readings. Here is my post on the Arduino forums detailing this.

And here is my code:

 

MPU 6050 Example – I2C Primer
Spread the love
Tagged on:             

8 thoughts on “MPU 6050 Example – I2C Primer

  • March 6, 2019 at 6:45 pm
    Permalink

    Absolutely NEW update of captcha solving software “XRumer 16.0 + XEvil”:
    captchas solution of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM programms: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of impessive videos about XEvil in YouTube.

    Free XEvil Demo available.

    See you later 😉

    Reply
  • April 17, 2019 at 4:19 pm
    Permalink

    Ekstrakcja danych Warszawa oferuje usługi przywracania dostępu do sformatowanych danych po wszystkich typach uszkodzeń nośników, jak: zniszczenia logiczne typu formatowanie dysku. Wejdź tutaj aby zapoznać się z informacjami dotyczącymi odzyskiwania danych

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *