Code Monkey home page Code Monkey logo

i2cdev_mpu6050's Introduction

I2CDEV_MPU6050

I2CDEV MPU-6050 6-axis accelerometer/gyroscope Arduino Library adapted for Spark Core by Paul Kourany, April 2015

The MPU6050 combines a 3-axis gyroscope and a 3-axis accelerometer on the same silicon die together with an onboard Digital Motion Processor(DMP) which processes complex 6-axis MotionFusion algorithms.

Original Library

https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

I2CDevlib Website Link

http://www.i2cdevlib.com/devices/mpu6050#source

Installing in the Spark.io Web IDE

  1. Open the Web based IDE on the Spark.io website.
  2. Click on the Library button on the left hand side of the IDE. It looks like a little banner or flag...
  3. Click "Contribute Library" button at the top of the panel that folded out.
  4. Paste "JamesHagerman/MPU6050" into the text field (without quotes, of course).
  5. Click "Add Repository".
  6. Make sure the main window in the IDE says "Library is valid. Ready to import." at the top.
  7. Click "Import".
  8. Click "Got it, Proceed" if it asks you. This is basically because the True MPU6050 library is already there (but it's broken otherwise you wouldn't be reading this...)
  9. You're done!

Look at the next section to actually use the library in a project. The "Use this example" button doesn't work with this library quite yet.

Using the library on the Spark.io Web IDE

  1. Create a new project in the Web based IDE on the Spark.io website. Remember the name for step 6.
  2. Click the Library button the left hand side of the IDE. It still looks like a little banner or flag...
  3. Select the MPU6050 Library from under the "My Libraries" section.
  4. Make sure the version is at least "1.0.1"
  5. Click "Include in App"
  6. Select the app you just created (or whatever app you wanna use this library in)
  7. Click "Add to this App"
  8. You're done!

Now you just need some example code, right? You can find a (hopefully) working example at:

examples/spark_ide_example.c

You'll probably need to modify it pretty heavily to get it to do what you wanna do but at least it's spitting out data now!

Good luck!

i2cdev_mpu6050's People

Contributors

pkourany avatar jameshagerman avatar jenesaisdiq avatar cmcollander avatar avigeilpro avatar

Watchers

James Cloos avatar  avatar

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.