Skip to content
forked from jstapels/mpu6050

Minimal Node.js module for reading the raw data from an MPU6050.

Notifications You must be signed in to change notification settings

lanoche/mpu6050

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MPU6050

Minimal Node.js module for reading the raw data from an MPU6050.

This module has been tested on a BeagleBone Black.

Install

npm install mpu6050

Usage

var mpu6050 = require('mpu6050');

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

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

// Put the MPU6050 back to sleep.
mpu.setSleepEnabled(1);

About

Minimal Node.js module for reading the raw data from an MPU6050.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%