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

How to measure light intensity with photodiode, using nrf52832?

Im using PCA10040 nrf52832 to measure light intensity with photodiode,

im using SAADC and SPI  example to measure values but im not able to see any changes on UART as light intensity changes.

please suggest.

Parents Reply
  • Hello Awneil,

    Im trying to configure or set gain in  SAADC example, for various gains it should operate but im not getting how to set gain register so that i get SAADC output depending on various gain and even i tried to change gain values in nrfx.saadc.h file but getting error. gains defined in nrfx.saadc.h files are default one but i want it to work as per my amplifier. So how can i define gains and make it work properly. Im using only 1channel AIN0

    Presently its working properly with default gain values.

    Please Suggest.

Children
Related