MPU 6050 and Raspberry pi

1 次查看(过去 30 天)
Vibin Kumar
Vibin Kumar 2018-2-6
I have MPU6050(acce and Gyro) interface with Raspberry pi via I2C. My goal is to get the 'g' values corresponding to x,y,z axis.This accelerometer contains registers of Higher bit and Lower bit for all (x,y,z) axis and for eg.(higher bit gives values as 18 and Lower bit gives values as -198 ).My question is how can I get actual 'g' values using Higher and Lower bit. Please help.

回答(1 个)

Gayatri Menon
Gayatri Menon 2022-2-8
Hi,
Use mpu6050() to do this. Refer this link for more info.
mypi = raspi;
sensor = mpu6050(mypi,'Bus','i2c-1');
sensor.readAcceleration
Hope this helps.
Thanks
Gayatri

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by