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

do I need capacitor to use adc??

From this (https://devzone.nordicsemi.com/b/blog/posts/measuring-lithium-battery-voltage-with-nrf51), there is capacitor connected to adc input pin. 

But is it necessary to have the capacitor? what is there is no cap connected to adc input pin? is it possible to measure voltage? 

Thank you. 

Parents Reply Children
  • It depend on your setup, really. The ADC in the nRF51 has an internal capacitor which is 10 pF or less. This has to be fully charged from the circuit you are sampling during the sampling time. So if you are sampling a circuit that has a very limited capability to deliver current you could either use a very long sampling time or an external capacitor as a buffer, so that this can be used to charge the internal capacitor (which is the case in this blog post).

Related