This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am currently doing a project with MPU6050 sensor, and i found the example code for MPU9150 from TivaWare.
I tried to run the code for MPU9150 to MPU6050, and it works (but iam not sure if the data is correctly)
But i tried to change the code to MPU6050 and run again. Then errors occurs
I found that my program stops here
// // Initialize I2C3 peripheral. // I2CMInit(&g_sI2CInst, I2C3_BASE, INT_I2C3, 0xff, 0xff, ROM_SysCtlClockGet()); // // Initialize the MPU6050 Driver, preparing it for operation. // MPU6050Init(&g_sMPU6050Inst, &g_sI2CInst, MPU6050_I2C_ADDRESS, MPU6050AppCallback, &g_sMPU6050Inst); // // Wait for transaction to complete //
// program stops here MPU6050AppI2CWait(__FILE__, __LINE__);
Thanks
Hi,
This is the continuation from your post below.
Question about MPU9150 sample code from TI
The MPU9150 library works as I have tested it with the Sensor Hub. As mentioned at the post above, there is some bugs with it.
How are you connecting MPU6050 sensor to your Tiva kit? Also, what is the Tiva kit that you are using.
Happy Smile said:// program stops here MPU6050AppI2CWait(__FILE__, __LINE__);
The program will stop there if certain flags are not set.
- kel
I use TM4C123GH6PM ( EK - TM4C123GXL)
i connect:
SCL to PD0
SDA to PD1
AD0 t0 Ground
INT to PB2
Which are the same as the sample code for MPU9150
But i already ran the sample code from MPU9150, and it works although for MPU6050 sensor.
Happy Smile said:i connect:
SCL to PD0
SDA to PD1
AD0 t0 Ground
INT to PB2
Same circuitry with MPU9150 at SensorHub? Verify I2C signals using oscilloscope, if you have one.
- kel
i searched on the forum, i and saw that somebody said that they found some errors with the mpu6050 library.
i think that there may be problems with the configuration for mpu6050 leading to errors!