This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf51dk accelerometer

Hi,

I recently started working with the NRF51DK,I need to read data from KX022 accelerometer via I2C and transmit the results over BLE.

I am using TWI_SENSOR example from nRF5_SDK_12.3.0_d7731ad SDK but i am unable to get the ack .so please suggest is there any other I2C example to start with?

Parents
  • If you have modified the TWI_SENSOR example to configure the twi driver correctly to match the sensor and transmitting the correct commands, then you should first figure out why the sensor is NACKing the data. I would say that it does not matter what example you use as template as long as the configuration for twi drvier does not suit the sensor. And unfortunately we do not have any example for that accelerometer

Reply
  • If you have modified the TWI_SENSOR example to configure the twi driver correctly to match the sensor and transmitting the correct commands, then you should first figure out why the sensor is NACKing the data. I would say that it does not matter what example you use as template as long as the configuration for twi drvier does not suit the sensor. And unfortunately we do not have any example for that accelerometer

Children
No Data
Related