max voltage for ADC(0)?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
oyster
Posts: 26
Joined: Tue Feb 16, 2021 1:21 pm

max voltage for ADC(0)?

Post by oyster » Tue Feb 16, 2021 1:59 pm

8. Analog to Digital Conversion says
Please note that this input can only tolerate a maximum of 1.0 volts
while esp8266-adc-reading-analog-values-with-nodemcu says
The ESP8266 ADC pin input voltage range is 0 to 1V if you’re using the bare chip. However, most ESP8266 development boards come with an internal voltage divider, so the input range is 0 to 3.3V. So, in sumary:

-ADC Voltage range in ESP8266 development boards: 0 to 3.3V (for example: ESP8266 12-E NodeMCU Kit, WeMos D1 Mini, …)
-ADC Voltage range in ESP8266 chip: 0 to 1V (for example: ESP-07 chip, ESP-12E chip, …)
if so, is it better to mention the later one in 8. Analog to Digital Conversion?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: max voltage for ADC(0)?

Post by Roberthh » Tue Feb 16, 2021 2:55 pm

I do not agree to the statement "most ESP8266 development boards"
It's more like "some ESP8266 development boards". Next to the listed ones for instance all Adafruit and Sparkfun boards come without voltage divider.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: max voltage for ADC(0)?

Post by kevinkk525 » Tue Feb 16, 2021 2:58 pm

So the expensive versions have no voltage divider and all the cheap chinese ones do? That's interesting.. But I'd say most of the boards are chinese versions and those (afaik) have voltage dividers. At least all my NodeMCUs do.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: max voltage for ADC(0)?

Post by Roberthh » Tue Feb 16, 2021 3:16 pm

Without the pre-built voltage divider you have more design choices when using it.
Adding the voltage divider is a valued attempt of protecting against wrong use. Especially all inputs then have the same voltage range.

P.S.: I would call all NodeMCU variants 1 model, which is made by various sources

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: max voltage for ADC(0)?

Post by kevinkk525 » Tue Feb 16, 2021 4:31 pm

Yeah you're probably right. They might protect themselves against claims from people using the ADC wrong and frying their chips.

PS: Absolutely, the nodeMCU is the same design from multiple manufactures. (Which is actually something nice with the esp8266 because it makes it easy to work with the same board whereas there are so many esp32 boards, you can't even design a PCB for a common esp32 board because there are so many..)
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Wimphot
Posts: 4
Joined: Sun Mar 07, 2021 10:01 pm

Re: max voltage for ADC(0)?

Post by Wimphot » Sat Mar 27, 2021 9:39 pm

Other than finding a spec sheet. Is there a way of telling whether the board you have/are looking at has a voltage divider.
A measured impedance between the pin and ground perhaps.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: max voltage for ADC(0)?

Post by pythoncoder » Sun Mar 28, 2021 10:33 am

I would apply 1V and see what reading came out. The voltage could be produced with series 100Ω and 390Ω resistors between Gnd and 5V.
Peter Hinch
Index to my micropython libraries.

Post Reply