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

To collect multiple sensor values and transmit it over bluetooth using nrf52840 DK

Hello!

I'm looking to build an application on nrf52840 DK that collects multiple sensor values and transmits it over Bluetooth. For now, I don't have a bluetooth application of my own so it's enough if I'm able to read those values using nrf connect app. I'm planning to retrieve values from the onboard temperature sensor and two other sensors that are connected using i2c. I have gone through the posts and tutorials but I find that most of them aren't ported to nrf52840 board. Can anyone point me to right example/ tutorial/ blog that can help me achieve this on nrf52840?

Parents Reply
  • Hey Var,

    That header file which you are looking for is in

    components/ble/ble_services/ble_mpu/

    To build the example shared by Karthikeyan you can follow these steps:

    Use Preprocessor->Preprocessor Definitions to define the following

    • MPU9255
    • MPU_USES_TWI

    Include "components/ble/ble_services/ble_mpu" in Preprocessor->User Include Directories

    Add drivers for twi and mpu twi in nRF_Drivers folder of the project

    Add mpu files from ble_services/ble_mpu in ble folder of the project

    Enable TWI in sdk_config.

Children
No Data
Related