sparkfun / nRF52832_Breakout

Breakout board for the Nordic nRF52832, a BLE/ANT/2.4GHz, Cortex-M4F SoC.
Other
74 stars 39 forks source link

Analog input readings #15

Open TurnerRussell50 opened 3 years ago

TurnerRussell50 commented 3 years ago

Customer states via forums: **It appears that there is a setting for reading analog voltages missing or needs to be added.

Trying to read 0 to 3 volts on an analog input pin. Anything over a few hundred mV over ranges the readings. I've seen code that attempts to fix this but I can't get it to work.

The added line I have seen is:

analogReference(AR_VDD4);**

https://forum.sparkfun.com/viewtopic.php?f=182&t=55650&p=225574#p225574