i2c read

1 Ansicht (letzte 30 Tage)
rafa sh
rafa sh am 24 Nov. 2017
Beantwortet: Samuel Louise am 30 Dez. 2018
in matlab 2017 and after downloading arduino support packages i have a block called i2c read
i am trying to read the pitch,roll and yaw angles of mpu9250,
i entered the slave device address(0x68) and entered the slave address to read from (0x43)(gyro_x_H) for example and i keep having wrong values like 1,3,255
any one have experience in this??

Antworten (1)

Samuel Louise
Samuel Louise am 30 Dez. 2018
you might have been reading the data in a different format. check your uint8 or uint16. this may be the problem. Also it could be because of the noises to the MPU, you may need to calibrate it, refer to your datasheet for more information into how to recalibrate your data...

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by