-->
Page 1 of 2

Unstable ADC?

PostPosted: Fri Mar 27, 2015 11:39 am
by Tooltime
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?

Re: Unstable ADC?

PostPosted: Fri Mar 27, 2015 6:40 pm
by MeNoGeek
That's normal behavior when the ADC pin is floating.

Re: Unstable ADC?

PostPosted: Sat Mar 28, 2015 4:03 am
by HolgerW
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

Re: Unstable ADC?

PostPosted: Thu Apr 09, 2015 10:16 am
by mmcginty
> 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. :-)