Giter Site home page Giter Site logo

mpu6050_driver's Introduction

MPU6050 Accelerometer and Gyroscope driver

Functionalities

This driver provides functions to

  • Configure the MPU6050 into one of 4 operation modes FULL, FULL WITH ITERRUPTS, ACCELEROMETER ONLY, ACCELEROMETER ONLY WITH INTERRUPTS
  • Retreive data from the MPU6050 module
  • Put the MPU6050 into sleep
  • And since all registers are defined, and a write and a write and read functions are provided to interact with the module, any additional functionality is easy to implement.

How to use

Once the MPU6050 object has been instanciated, it should be setup in one of 4 modes, and two scenarios arise from here:

  • Non interruption operation, where you have 3 reading functions to request data immediately from the MPU6050 module.

  • Interruption operation, where you'll have to use the i2c_read_with_interrupt function to access the latest available data from the MPU6050 module.

TODO

  • Every sensor needs calibration since no two modules are exactly the same, and they all come with inperfections, a calibration routine must be implemented.

  • DONE The read upon interrupt routine hasen't been implemented yet, although the "put into mode" functionality is ready.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.