# node-i2c-mpu6050 **Repository Path**: mirrors_emersion/node-i2c-mpu6050 ## Basic Information - **Project Name**: node-i2c-mpu6050 - **Description**: Read data from MPU6050 with i2c - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-24 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-i2c-mpu6050 Read data from MPU6050 with i2c. ```js 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 * MPU6050 datasheet: https://www.invensense.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf * MPU6050 on I2Cdevlib: http://www.i2cdevlib.com/devices/mpu6050#registers * How to set up i2c:https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c * Allow i2c to be used without root privileges: `sudo usermod -G i2c pi` then logout and login