ESP32 power consumption during sleep

I was trying to have power consumption as low as possible during deep sleep.
I observed however that the power consumption with a pin floating (GPIO0 to LED->resistor->GND) was lower than adding the following lines to keep its state LOW during sleep:

  digitalWrite(0, LOW);
  gpio_deep_sleep_hold_en();
  gpio_hold_en(GPIO_NUM_0);

I cannot find any explanation on this so far. Why is this? It is a development board with 38 pins.
I think that it might be because of the usb to serial converter?

Could be, GPIO0 is often connected to the USB to Serial converter in order to switch to program upload mode.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.