Accelerometer-Gyroscope with I2C Address 0x68 or 0x69
Magnetometer with I2C Address 0x0C
From the scanI2CBus output you posted, seems like there is only one unit. MPU6050 also has the I2C address 0x68 and looks similar to MPU9250. Can you check if the right sensor is connected.
I have the same problem, at first i thought the sensor was damaged, so i bought a new one, but the same problem occured, so i test the sensor on a differente board (NodemCu) and both sensors works perfelctly fine. Do you know how to fix this error on matlab?
Greetings! Have you found the solution for this problem? I have gy-6500/9250 sensor. Using mpu6050 MatLab command, I have the following warning: Warning: Incorrect device ID read from the connected sensor. Expected device ID (value stored in WHO_AM_I register) for MPU6050 is '104'. Make sure that the correct device is connected.
Using mpu9250 command, I have an error: Expected sensor not detected. Connect the right sensor to the hardware and try again.
Pins connection:
3.3V -> VCC
GND -> GND
A5 -> SCL
A4 -> SDA
My code (only arduino is connected to my notebook):
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.