Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By tytower
#20225 Mate! You have missed the point.
You refer to the early modules .
The later ones may be different I think
Thats not the data sheet on the ESP12's

If you have a look at the PCB layout images postet on pretty much every vendor site, you will notice that the pad labeled "ADC" is connected directly to the ESPs pin 6 (TOUT).


You do not steer me anywhere .Got one for this version? If so produce it please
This is the only one I can find and I cannot see a thing!
Perhaps you are right ,thats what I am trying to establish
You do not have the required permissions to view the files attached to this post.
User avatar
By Tawhiz20
#20241 I am using the ESP-201 and connected a LDR to ADC T_OUT.
Image
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/391

I 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?
User avatar
By tytower
#20245 Your image does not print out properly in your post. You might have to attach a small one here
In your program then I dont understand what you are doing .
If the LED is connected to ground and adc then you are probably getting a 0 ground reading one way and a capacitance reading the other . I have used LED's like this to get a light value like a light dependant resistor and the reading is dependant on the timing.

If there is nothing on the ADC pin then it will fluctuate with random readings.
User avatar
By Tawhiz20
#20248
tytower wrote:Your image does not print out properly in your post. You might have to attach a small one here
In your program then I dont understand what you are doing .
If the LED is connected to ground and adc then you are probably getting a 0 ground reading one way and a capacitance ...


I am not using a LED... I am using a LDR to create a Voltage of 0-1V on the ADC.. but that is not the problem (since it works under NodeMCU and Lua)

This is the ESP I am using (with the pin-out-picture on the page: http://smarpl.com/content/esp8266-esp-2 ... mpressions

It is just a small testprogram to show the values of the ADC, but it shows erratic behaviour like described in my last post.

THNX