Skip to content

Brownout during wifi startup #863

Closed
Closed
@tehKaiN

Description

@tehKaiN

Hardware:

Board: ESP-WROOM-32 + breakout board
Core Installation/update date: 8/jun/2016
IDE name: Platform.io
Flash Frequency: ?40Mhz?
Upload Speed: 115200

Description:

I'm developing ESP32-based module for board which has 500mA 3v3 power supply.

After using code attached below, each time during WiFi startup I get brownout. On scope there is quite big voltage drop. This doesn't happen on a breadboard with larger capacitor attached (470uF), so you could assume that's the problem, however AT firmware from https://github.com/espressif/esp32-at works flawlessly under same electrical conditions and starts WiFi without any problems. Unfortunately this firmware is closed source, so my question is: what can I do differently to reduce init voltage drop to have same results as in AT firmware?

I've tried esp_wifi_set_max_tx_power but it works only after esp_wifi_start() but then it's too late to make any difference.

Also, at first I've tried using Arduino functions for Wifi, but they result in brownouts too.

Sketch:

#include <Arduino.h>
#include "esp_wifi.h"

#define SSID "ESP32AP"

void setup() {
	wifi_init_config_t wifiInitializationConfig = WIFI_INIT_CONFIG_DEFAULT();

	esp_wifi_init(&wifiInitializationConfig);

	esp_wifi_set_storage(WIFI_STORAGE_RAM);

	esp_wifi_set_mode(WIFI_MODE_AP);

	wifi_config_t ap_config;
	strcpy((char *)ap_config.ap.ssid, SSID);
	ap_config.ap.channel = 0;
	ap_config.ap.authmode = WIFI_AUTH_OPEN;
	ap_config.ap.ssid_hidden = 0;
	ap_config.ap.max_connection = 1;
	ap_config.ap.beacon_interval = 100;

	esp_wifi_set_config(WIFI_IF_AP, &ap_config);

	esp_wifi_start();
}

void loop()
{
}

Debug Messages:

ets Jun  8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1                         
load:0x3fff0010,len:4                     
load:0x3fff0014,len:588                    
load:0x40078000,len:0                
load:0x40078000,len:9768                          
entry 0x400789b8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions