Deep sleep current usage too high with esp32 after WI-FI was on

javaproxy
Posts: 1
Joined: Sat Aug 17, 2019 10:08 pm

Deep sleep current usage too high with esp32 after WI-FI was on

Postby javaproxy » Sun Aug 25, 2019 7:05 pm

Hello,
There is following code

[Codebox]
#include <AWS_IOT.h>
#include <WiFi.h>
#include "time.h"
#include <stdio.h>
#include <esp_bt_main.h>
#include <esp_bt.h>
#include <esp_wifi.h>

char WIFI_SSID[]="zzz";
char WIFI_PASSWORD[]="zzzz";

void callback(){
//placeholder callback function
}

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

WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.println("Connected to wifi");

WiFi.mode(WIFI_OFF);
btStop();
esp_bluedroid_disable();
esp_bt_controller_disable();
esp_wifi_stop();

delay(1000);

touchAttachInterrupt(T0, callback, 50);
esp_sleep_enable_touchpad_wakeup();
esp_sleep_enable_timer_wakeup(86400000000);
esp_deep_sleep_start();
}

void loop() {
}
[/Codebox]

This is current when it is run:
with_wifi.png
with_wifi.png (66.54 KiB) Viewed 8689 times

This is current when WiFi.begin is commented:
without_wifi.png
without_wifi.png (42.32 KiB) Viewed 8689 times


This one is with https://www.espressif.com/en/products/h ... c/overview
But it is similar with https://docs.espressif.com/projects/esp ... o-kit.html

How is it possible to reduce current in deep sleep?

Who is online

Users browsing this forum: No registered users and 67 guests