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!