However, even with just the module and this barebones board I'm still getting 1.7mA of deep sleep current consumption - rather than the ~20uA that many others seem to be able to get. What could I be doing wrong? So far I'm just testing, so there is nothing else connected to the board and the code is incredibly simple (blink the LED and go to sleep).
I have two of the same boards and get the same results with both. I'm confident that I am measuring correctly as I've used a known load (resistor) and measured the correct about of current with my DMM. The DMM is capable of measuring uA and I have tested this via the known load.
Thanks!
#include <ESP8266WiFi.h>
#define LED_BUILTIN 2
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
Serial.setTimeout(2000);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("LED ON");
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
Serial.println("LED OFF");
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("LED ON");
delay(1000);
ESP.deepSleep(0);
}