Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Tooltime
#12745 Hi,

I'm pretty new to the ESP8226 and did some tests with the ADC (TOUT).

I'm calling in a 1000 ms timer the adc_read(); method and can see (also I have a static resistor attached to it) completely different values:
148
59
440
473
475
703
628
481
933
630
442
477
629
...

Has anybody seen the same behavior?
Is there any workaround for this?
User avatar
By HolgerW
#12788 I had that too. Which software version you use ?
Make sure the pin doesnt float and only 0..1V, more then 1V will kill the ADC...

You can try out:
//read ADC
unit16 value = test_tout();

If you cant compile that there is a workaround, but i must search ab bit ...

Holger
User avatar
By mmcginty
#13991 > 1V will actually kill the hardware, so that, for example, the ADC always reads 1024 no matter what the voltage is on the pin? That's... special. :-)