-->
Page 1 of 13

analogread won't work

PostPosted: Sun May 24, 2015 6:05 am
by bernd331
Hi,

downloaded newest Arduino IDE 1.6.4 (see here viewtopic.php?f=26&t=3094) plus ESP8266 Support via Board Manager. Then tryed analogread example. But I get only random values and the ESP8266 resets very often.

Can someone confirm?

Greetz, Bernd

Re: analogread won't work

PostPosted: Thu May 28, 2015 4:40 am
by tytower
So which board and are you using an analoge pin . I was surprised to find the ESP12 version only has one analog pin called ADC on it .
Are you connected to the right pin?

Re: analogread won't work

PostPosted: Fri May 29, 2015 4:16 pm
by bernd331
Hi,

I use the ESP-ADC. It have one analog in caled TOUT.

I think I use the right pin cause with a older realese analog in works fine.

Greets, Bernd

Re: analogread won't work

PostPosted: Thu Jun 11, 2015 5:57 pm
by Tawhiz20
Yupppp....
I have the same problem.

Just switched from Lua to the Arduino-envirement and tested without rearranging my breadboard (so I am absolutely sure it works)
Started out with 1.6.4 - wrong values
1.6.3 - wrong values
1.6.0 - wrong values

I used the simpe analogToSerial example that was provided.
Sometimes it shows the "correct" values (I connected the port to gnd and it sometimes shows me 0 but most of the time 480-isch values)

sommmmmmewhere I read about switching off interrupts when reading analoge-values??
could this be causing the errors?

I hope someone can shed some light into my darkness.

THNX