Skip to content

Incorrect ADC readings while WiFi enabled #2159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Gorkde opened this issue Jun 16, 2016 · 1 comment
Closed

Incorrect ADC readings while WiFi enabled #2159

Gorkde opened this issue Jun 16, 2016 · 1 comment

Comments

@Gorkde
Copy link

Gorkde commented Jun 16, 2016

Hardware

Hardware: ESP-12F and Wemos D1

Description

When WiFi is transmitting the ADC is reading incorrectly after some time.
ADC grounded reads 0 in the beginning, later it jumps up to 7 on the other module to 50 even.

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Upload Using: SERIAL

Sketch

include <ESP8266WiFi.h> // ESP8266WiFi.h

char WLANname[] = "_";
char WLANpw[] = "
_";

void setup()
{
Serial.begin(115200);

WiFi.begin(WLANname, WLANpw);
Serial.println(" ");

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("\nCONNECTED");

// WiFi.disconnect();

}

void loop()
{
Serial.println(analogRead(0));
delay(100);
}

*** FOR SOME REASON INSERT CODE DOESNT WORK CORRECTLY ***

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@supersjimmie
Copy link

Looks like #2070

@Gorkde Gorkde closed this as completed Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants