Re: NodeMCU ADC (A0) correct operation
![Post Post](./styles/FLATBOOTS/imageset/icon_post_target.gif)
songa wrote:Both are correct...
And it was exactly in this way that I mounted the circuit being analyzed here.
so you removed the resistors connected to pin A0 on esp-12 module on NodeMCU board?
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
songa wrote:Both are correct...
And it was exactly in this way that I mounted the circuit being analyzed here.
schufti wrote:songa wrote:Both are correct...
And it was exactly in this way that I mounted the circuit being analyzed here.
so you removed the resistors connected to pin A0 on esp-12 module on NodeMCU board?
schufti wrote:A0 or ADC (that's what it is called in the schematic) of the ESP-12 module is connected to junction R9/R11 on the NodeMCU board. Especially R11 leading to gnd is interfering with ESP.getVcc();
alternatively you could connect ADC_EX pin of the NodeMCU board to 3V3pin and do an analogRead(A0) to get a reading on Vcc, or connect via 180k resistor to Vin to get a reading on raw voltage (up to 5V). For higher Vin use (Vin-1)*100-220 in kOhms.