MPU 6050 and Raspberry pi
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Gayatri Menon
2022 年 2 月 8 日
Hi,
mypi = raspi;
sensor = mpu6050(mypi,'Bus','i2c-1');
sensor.readAcceleration
Hope this helps.
Thanks
Gayatri
0 件のコメント
参考
カテゴリ
Help Center および File 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!