Skip to content
A node.js library for communicating with the MPU-9150 9 Degrees of freedom board
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is even with imoceanic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
tests
README.md
index.js
package.json
version2.js

README.md

mpu9150

A node.js library for communicating with the MPU-9150 9 Degrees of Freedom board.

Based initially on the mpu6050 library (https://github.com/jstapels/mpu6050) by Jason Stapels

Install

npm install mpu9150

How to use it

var mpu9150 = require('mpu9150');

// Instantiate and initialize.
var mpu = new mpu9150();
mpu.initialize();

// Test the connection before using.
if (mpu.testConnection()) {
  console.log(mpu.getMotion9());
}

// Put the MPU9150 back to sleep.
mpu.setSleepEnabled(1);
You can’t perform that action at this time.