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

The output of the raw value is too fast in thingy sdk

I program in nrf52840 using thingy sdk

I succeeded in receiving the motion service.

The output speed of some motion services is too fast. such as raw, heading, gravity

how to change output speed of raw value or other motion service?

Parents
  • In order to change the output speed of the different sensor values, you would need to modify the firmware (as far as I know). This can be done either over-the-air using nRF Connect mobile/desktop, or by using a programmer. If you would like more control and to debug your code, I would recommend you to use a programmer. However, the thingy is not provided with a programmer, and you would need to connect your thingy to an nRF52 DK as explained here.

    Regarding the issue of changing the sampling frequency of the sensor values, this can be done by modifying the files m_environment.c (temperature, pressure and humidity sensors) and drv_motion.c (motion sensor). Each sensor is associated with a timer, and by changing the parameter timeout_ticks when calling app_timer_start(..) the output speed can be changed.

    Best regards,

    Simon

Reply
  • In order to change the output speed of the different sensor values, you would need to modify the firmware (as far as I know). This can be done either over-the-air using nRF Connect mobile/desktop, or by using a programmer. If you would like more control and to debug your code, I would recommend you to use a programmer. However, the thingy is not provided with a programmer, and you would need to connect your thingy to an nRF52 DK as explained here.

    Regarding the issue of changing the sampling frequency of the sensor values, this can be done by modifying the files m_environment.c (temperature, pressure and humidity sensors) and drv_motion.c (motion sensor). Each sensor is associated with a timer, and by changing the parameter timeout_ticks when calling app_timer_start(..) the output speed can be changed.

    Best regards,

    Simon

Children
Related