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

ADC reading fluctuates when updating characteristic value (notify)

Hi I developed a program in zephyr that reads ADC unfortunately I stumbled upon a bug which can not be solved currently.

https://github.com/zephyrproject-rtos/zephyr/issues/25917

So I created a new code with SES based on ble_app_template + saadc reading examples. Debug log values is stable but when updating the values over ble the adc values fluctuates like it has some kind of pattern. Btw I changed the saadc SAMPLES_IN_BUFFER from 5 to 50, then take its average.

Here is the debug log which shows it has small deviation

Here is the app view which has a large fluctuation and creates some pattern.

Related