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?
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?
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
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
https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role
I used this code
and my segger file don't include m_environment.c and drv_motion.c
Can I add this file?Which code did you use from this github repository? The "ble_peripheral" or any other?
I am wondering about the same as Anish. What example are you using for the Thingy? I Couldn't find any examples for the thingy in the link you provided. Take a look at the Nordic Thingy:52 SDK which is intended for users to develop their own custom firmware for the Thingy.