ESP8266 Developer Zone The Official ESP8266 Forum 2022-02-12T22:53:58+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=2286 2022-02-12T22:53:58+08:00 2022-02-12T22:53:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=100659#p100659 <![CDATA[Re: WiFi / ADC issue]]> Statistics: Posted by Gorkde — Sat Feb 12, 2022 10:53 pm


]]>
2022-02-12T22:53:14+08:00 2022-02-12T22:53:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=100658#p100658 <![CDATA[Re: WiFi / ADC issue]]> Statistics: Posted by Gorkde — Sat Feb 12, 2022 10:53 pm


]]>
2016-06-16T22:59:43+08:00 2016-06-16T22:59:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=7368#p7368 <![CDATA[Re: WiFi / ADC issue]]> Statistics: Posted by Gorkde — Thu Jun 16, 2016 10:59 pm


]]>
2016-06-16T23:20:56+08:00 2016-06-16T22:25:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=7367#p7367 <![CDATA[Re: WiFi / ADC issue]]> http://arduino.esp8266.com/stable/packa ... index.json).

In my case the reading should be 66 (or 0 if AIN is put to GND) but once the code has run some time the value goes up around 7 points and jumps up and down in this range.

I found many people complaining about this (nodeMCU and Arduino users) and it's neiter a problem with my power nor one of some kind of radio interference (shielded the comlete board and used battery).

I tried with ESP8266-12 standalone as well as with Wemos D1.

As soon as I WiFi.disconnect(); the reading is correctly at 66 (or 0 if AIN is put to GND)
Most people are interpolating the read values to get a stable result but that's not a good way.



My code for testing is:
(You need to wait a bit since readings in the beginning are correct, then suddenly they start to go up as if some kind of capacitor is filling up)

Code:

#include <ESP8266WiFi.h>

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


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

  WiFi.begin(WLANname, WLANpw);
  Serial.println(" ");
 
  while (WiFi.status() != WL_CONNECTED) {
    delay(300);
    Serial.print(".");
  }
  Serial.println("\nCONNECTED");
 
  // WiFi.disconnect();

}

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


Screen.jpg

Statistics: Posted by Gorkde — Thu Jun 16, 2016 10:25 pm


]]>
2016-06-16T11:28:51+08:00 2016-06-16T11:28:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=7353#p7353 <![CDATA[Re: WiFi / ADC issue]]>
What is the version of your SDK ?

Can you provide your test code and more details about your test steps ? We will have a try.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Thu Jun 16, 2016 11:28 am


]]>
2016-06-14T23:33:49+08:00 2016-06-14T23:33:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2286&p=7333#p7333 <![CDATA[WiFi / ADC issue]]>
I did want to use the ESP as Heart of my new product which needs to read sensors while on the other hand sends data on WiFi.
Since I'm using Blynk whicht checks all the time if still connected I can't just simply disable WiFi.

I'm using Arduino IDE and the available Libs.
Any solution?

Statistics: Posted by Gorkde — Tue Jun 14, 2016 11:33 pm


]]>