ESP32C3 power consumption

Hi!
I am currently working on a BLE based Buzzer (emulating a 1 key keyboard). It can be configured and updated by connecting to a WiFi on demand.
When checking power consumption of my XIAO ESP32C3 board, I encountered a strage behavior.
Runing my Arduino sketch that implements a BLE service causes a current of about 80mA. When going to deep sleep, the consumption drops to around 40µA. So far so good.
What surprised me is the fact, that connecting to a WiFi network along with running the BLE service causes the current to drop to around 40-45mA. That’s a reduction to approximatly 50% that could double battery life!
What is going on in the module, that both WiFi and BLE will draw less current than BLE only?
I tried to actively switch off WiFi (to prevent an idle WiFi module from consuming power) but didn’t get the expected result.
During Setup the consuption is around 80mA but drops as soon as the WiFi connection succeeded.
Is there a way to reduce power consumption without connecting to a WiFi?

TIA,
Helge

Hi there,
All seems normal for the BLE , all default setting for Transmit power , advertising interval , etc.Is the USB connected?
What does the code look like?
Post up more info.
HTH
GL :slight_smile: PJ

Thanks for the quick reply.
I had to leave on an unexpected business trip and don’t have access to the sources right now.
I used settings fron Arduino code samples. The effect can be measured only when disconnected from USB because the device won’t draw power from the battery when connected. I didn’t measure consumption via USB yet.
I was just wondering, why an unused or idle WiFi draws more power than a connected WiFi.
BR, Helge.

Hi there,
Ok , well we are here all week :grinning: :v:
Well with out seeing the code in Question It may Active scanning or configured to be an AP.
All kinds of possibilities. Low power consumption is NOT and automatic thing.
HTH
GL :slight_smile: PJ
:v:

Hi,

I tried several settings. The first was just creating the WiFi instance but leaving it without further initialization.
Then I tried to configure as AP and another try using the mode that should switch off all WiFi activity. The only effect on power consumption was acting as client and connecting to an existing WiFi.
I will present code samples when I am back home.

BR,
Helge

1 Like