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

What should I pay attention to when using SADC?

I use nrf_drv_saadc_init(NULL, NULL) to sample AD per second(Blocking type).

But every time the firmware runs, the ADC value always takes several times to stabilize.

Ready!
Battery 0 voltage = 40, ADC = 66
Battery 0 voltage = 82, ADC = 133
Battery 0 voltage = 124, ADC = 201
Battery 0 voltage = 165, ADC = 268
Battery 0 voltage = 207, ADC = 335
Battery 0 voltage = 248, ADC = 402
Battery 0 voltage = 291, ADC = 470
Battery 0 voltage = 332, ADC = 537
Battery 0 voltage = 332, ADC = 537
Battery 0 voltage = 333, ADC = 538
Battery 0 voltage = 333, ADC = 538
Battery 0 voltage = 333, ADC = 538
Battery 0 voltage = 333, ADC = 538
Battery 0 voltage = 333, ADC = 538

What should I pay attention to when using SADC? Thanks!

Parents Reply Children
Related