Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.
/ node-i2c-mpu6050 Public archive

Read data from MPU6050 with i2c

License

Notifications You must be signed in to change notification settings

emersion/node-i2c-mpu6050

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-i2c-mpu6050

Read data from MPU6050 with i2c.

var i2c = require('i2c-bus');
var MPU6050 = require('i2c-mpu6050');

var address = 0x68;
var i2c1 = i2c.openSync(1);

var sensor = new MPU6050(i2c1, address);

var data = sensor.readSync();
console.log(data);

Values are in degrees.

Docs

About

Read data from MPU6050 with i2c

Resources

License

Stars

Watchers

Forks

Packages

No packages published