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.

Compiler/LAUNCHXL-CC2650: Any working example for accelerometer for cc2650 Launch pad?

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650, CC2650STK

Tool/software: TI C/C++ Compiler

Hello,

Can someone please let me know if there is any working example of accelerometer for cc2650 Launch pad?

I found sensorTag example in cc2650stk, which doesnot give any values when flashed on cc2650 Launchpad. If there is any example that works for cc2650 please let me know.

Thanks,

Rathna

  • Since the launchpad doesn't have a accelerometer we don't have any examples directly for the launchpad that include this. You have to port the code for the accelerometer found in the code examples for the CC2650STK into an existing example for the launchpad.
  • Hello,

    Thank you for reaching out to me. I am connected to an external MPU9250 sensor. I was able to put all the files in the application folder of simple BLE peripheral example.

    I found these board initialization for cc2650STK,

    /* Interface #1 */
    #define     Board_MPU9250_ADDR      (0x68)
    #define     Board_MPU9250_MAG_ADDR  (0x0C)
    
    /* Sensor outputs */
    #define Board_MPU_INT               IOID_7
    #define Board_TMP_RDY               IOID_1
    
    /* Power control */
    #define Board_MPU_POWER             IOID_12
    #define Board_MPU_POWER_ON          1
    #define Board_MPU_POWER_OFF         0

    The SCL and SDA is connected to IOID_23 and IOID_22 of Launch pad and the int is connected to 27. 

    How do I change it to work with cc2650 Launchpad?

    Please help me out.

    Thank you,

    Rathna

  • This is a frequently asked question, have you tried to search the forum for "MPU9250 CC2650 launchpad"?

    Also, why are you using CC2650 and not CC2640R2 since the software offering is much more up to date on the latter.
  • Hello Ter,

    I tried to search the forum for Mpu9250 for 2650 Launchpad, but did not find anything thatmight help me.

    And for some reason I have to work with cc2650 Launchpad, so I do not have a option to switch as of now.

    Please let me know if I can try doing something about it.

    Thank you,
    Rathna
  • I did a google search for "Mpu9250 CC2650 Launchpad" and found this: e2e.ti.com/.../585977 as one candidate
  • Hello Ter,

    I do not have a logic analyzer or oscilloscope, but I can check if there is any voltage at that pin.

    I have a doubt regarding interrupt pin,

    /* Sensor outputs */
    #define Board_MPU_INT               IOID_27//IOID_7

    The board I am connected to has IOID_27 as the int pin number, so I changed this in the Board.h file. Is it the right way, or am I missing something?

    Thanks and regards,

    Rathna

  • Any progress on this?

    A logic analyser is a low investment that will save you for a lot of time.