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.

Linux/CC2650: Interface MPU6050 with CC2650 LaunchPad

Part Number: CC2650

Tool/software: Linux

I am trying to interface MPU 6050 with CC2650 Launchpad using board-i2c library. While interfacing, I am not getting the correct values. I am new in interfacing I2C sensors in contiki. Kindly provide the I2C code for MPU 6050. 

  • Hello Himanshu,

    Can you give us more information on the data you are reading? When you say incorrect are they totally bad or is it shifted?
    Can you try using a logic analyzer on the I2C SDA line to see what data is being transferred.
    Also please check if MPU6050 I2C is configured in slave mode. CC2650 typically operates in I2C master mode.

    Regards,
    Prashanth
  • Hello Prashanth,

    Thanks for your reply.
    Actually, I am not able to interface MPU 6050 to CC2650 launchpad. I tried but the value is not changing while shaking the sensor.
    If you have any working code in Contiki for MPU 6050 to understand I2C, then please share with me. In Arduino, the same sensor is working fine.
  • Hello Himanshu,
    I don't think we have working code on Contiki for MPU 6050.
    What exact sensor are you using? Can you check the schematics and see if the supply to the sensor is in place?
    Regards,
    Prashanth