-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ADC raw max value issue on ESP12E #3168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you running the latest build out of the GIT or a released version? I believe the problem is still in the released 2.3.0 code. |
version=2.2.0 in platform.txt |
No - 2.3.0 is too old. You need to follow the instructions in the section "Using git version" so you are running the latest code in the repository (the files that are days old not from June 2016) |
Thank you lawrence, I've test it with the latest clone of this repository, nothing changed. |
Hello, I've an issue similar to the already closed post here: #2672
I get ADC raw values lower than 1024 by analogRead(A0), when A0 is almost 1V.
Tested on NodeMCU v3 board. It has a voltage divider formed by 220k and 100k resistor attached to A0.
A0 is connected to 3.272 board output.
Using analogRead(A0) i get almost 978 value. I read 1.02V with a multimeter on A0 (which is a right voltage value according to the voltage divider), what's wrong is the ADC raw value? I expect it to be 1024, but it's lower.
Two different NodeMCU v3 board, and one NodeMCU Amica tested, same results.
ESP.getVcc() return 2.7V almost, on each of the 3 boards tested, it sounds strange.
Compiled and uploaded using Windows or Linux, doesn't make difference.
I use PlatformIO, but with Arduino IDE I get the same error.
WiFi on or off doesn't make difference.
Thanks for help.
Sample sketch below:
The text was updated successfully, but these errors were encountered: