Analog Read gives wrong value.
-
I am running a sketch on an ATOM Lite using GPIO 33 as an analog read pin. When connected to 3.3V (which actually measures 3.18V) it gives 4095 as expected. If connected to GND it gives 0 as expected. However if the voltage on GPIO33 is 3.11V it still shows 4095.
By my maths at 3.11V it should show 4004.
Any help appreciated.
-
The adc readings is non linear at both ends of range (flat). So you can't measure voltage below ~0.17V and under ~3.15.
Below is link with explain
https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/ -
Thank you very much for your reply. Very helpful.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login