cal wrote:This adc stuff is somewhat strange.
It seems to be related to RF.
Cal
Strange is the correct word.. :
I had it working... broke it again.. now its working.. here is what happened:
after I first flashed my ESP i tryed the analogToSerial-program... it gave correct stable values... YEEHHH!! (the problem seemed solved)
I setup some other sensor on my board: DS18-temperature sensor.. with a little program.. it worked..
I setup my DHT22 with a little program.. it worked..
made a little program to connect it to Thingspeak.. worked also..
now... i wanted to report temperatur, humidity AND LDR-value... BANG!.. the same errors as before.. the ADC reported values that were incorrect!!
So I flashed my ESP again..
I tried the analogToSerial-programm... correct stream of values from the ADC!
then I went straight to my Thingspeak-program to see if the ADC-values would show up correct.. and they were just fine!
Somehow the routine of reading the ADC-values (in the firmware?) gets broken...
as you said: Strange!!!