hi i am interfacing mpu6050 with nrf51 dk. i find some coders in devzone. but they don't work. so i write simple code. but my problem is that if i write any thing in device address. i am getting 0x18 as who am i id. can you help me??MPU6050.rar
hi i am interfacing mpu6050 with nrf51 dk. i find some coders in devzone. but they don't work. so i write simple code. but my problem is that if i write any thing in device address. i am getting 0x18 as who am i id. can you help me??MPU6050.rar
I would take a look at this thread. I also recommend taking a look at this GitHub repository. It is for the mu9150, but it should work for the mpu6050 also. Just note that this is not an official example and it has not been thouroughly tested.
-Bjørn
UPDATE:
I have written an example for the MPU-6050, based on SDK v11 ( should also be compatible with SDK v10). Download the zip file and extract to SKD_v11-folder/examples/peripheral.
ATTACHMENTS:
MPU-6050 Example: mpu_6050_twi.zip
I would take a look at this thread. I also recommend taking a look at this GitHub repository. It is for the mu9150, but it should work for the mpu6050 also. Just note that this is not an official example and it has not been thouroughly tested.
-Bjørn
UPDATE:
I have written an example for the MPU-6050, based on SDK v11 ( should also be compatible with SDK v10). Download the zip file and extract to SKD_v11-folder/examples/peripheral.
ATTACHMENTS:
MPU-6050 Example: mpu_6050_twi.zip
i checked this example. but it is not working for me. when i am trying to read who am i id, i am not getting correct value
i am connecting scl,sda,vdd and ground other pins are open
What about the AD0
pin? THis must be connected to ground in order to set the Device Address to 0x68
or to VDD to set it to 0x69
.
AD0 is connected to ground. i am using sparkfun break out board
i think to get who am i id, it is not required to on mpu6050