Skip to content

Incorrect ADC readings while WiFi enabled #2159

Closed
@Gorkde

Description

@Gorkde

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions