- Fri Jun 12, 2015 3:44 am
#20241
I am using the ESP-201 and connected a LDR to ADC T_OUT.
When using this Chip under Lua it worked well ( so it is not a hardware problem) -I just ran out of memory to fast with Lua because I wanted to use bigger programs and am now trying to switch to C-
other users already reported the error:
https://github.com/esp8266/Arduino/issues/391I have noticed some strange differences:
When using these (
https://github.com/sandeepmistry/esp8266-Arduino ) instructions with 1.6.4.
I get a stream of values from the ADC but most of them are incorrect (8 out of 10 - the other 2 are correct-)
When using these (
https://github.com/esp8266/Arduino ) instructions with 1.6.4.
I get 3 or 4 correct values from the ADC but my ESP resets!
The code I used is very simple:
Code: Select allvoid setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
delay(1000);
}
Anyone have the same experiences?... or (even better) a solution to the problem?