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.

Lsm9ds0 intergration with the cc2541 keyfob

Hi,

I have integrated the lsm9ds0 with the the 2541 keyfob through I2C interface. Now I have to develop the code for accelerometer, gyrometer & magnetometer. can any give me an idea how can I use the profiles from the BLE stack provided by TI. Are their profiles available for gyro & magnetometer. can I use the same accelerometer profile for to develop application code for  LSM9ds0 based accelerometer.

Regards,

sainath

  • Hello. Yes, you should be able to reuse these profiles for your use as you can route the values from I2C into the profile's characteristic. I would recommend looking at the SensorTag project to see how this is done. For example the accelerometer data in SensorTag is stored in the "sensor data" characteristic:

    // Characteristic Value: data
    static uint8 sensorData[SENSOR_DATA_LEN] = { 0, 0, 0};