AnsweredAssumed Answered

I2C motion processing unit (MPU6050) for Kinetis MK70

Question asked by Angelo Lerro on Jul 1, 2015
Latest reply on Jul 2, 2015 by David E Seymour

Hello, I'm trying to use the MPU6050 Gyroscope with tower MK70 on I2C communication protocol but I have some problems.

To read temperature (for example) values I used the following code:


GI2C1_ReadAddress(DEVICE_ADDRESS, 0x41, 1, &xyz[0], sizeof(xyz));


but it seems that the data I read are  always the same. I tried to write in a register with the following code:


GI2C1_WriteAddress(DEVICE_ADDRESS, 0x23, 1, 197, 1);


but it seems that the register values don't change.

Maybe it is necessary to initialize the device but I don't know how to do it.

Thanks in advance.