Skip to content

Commit cbcefa7

Browse files
SarenTdevyte
authored andcommitted
Analog input voltage can be 3.3V (#5020)
* Analog input voltage can be 3.3V According to this tutorial and my personal test with my Amica, 1.0V delivers 320 and 3.3V delivers 1024 at 10-bit resolution. I guess 3.3V is possible. * Update reference.rst Added warnings. * Update reference.rst * Update reference.rst requested changes
1 parent a0e6d22 commit cbcefa7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/reference.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ either to read voltage at ADC pin, or to read module supply voltage
4242
(VCC).
4343

4444
To read external voltage applied to ADC pin, use ``analogRead(A0)``.
45-
Input voltage range is 0 — 1.0V.
45+
Input voltage range of bare ESP8266 is 0 — 1.0V, however some many
46+
boards may implement voltage dividers. To be on the safe side, <1.0V
47+
can be tested. If e.g. 0.5V delivers values around ~512, then maximum
48+
voltage is very likely to be 1.0V and 3.3V may harm the ESP8266.
49+
However values around ~150 indicates that the maximum voltage is
50+
likely to be 3.3V.
4651

4752
To read VCC voltage, use ``ESP.getVcc()`` and ADC pin must be kept
4853
unconnected. Additionally, the following line has to be added to the

0 commit comments

Comments
 (0)