Can the output current of the esp32 GPIO be reduced?

Neuer_User
Posts: 2
Joined: Tue Apr 16, 2019 3:28 pm

Re: Can the output current of the esp32 GPIO be reduced?

Postby Neuer_User » Wed Apr 17, 2019 8:03 am

Thanks. If it is fine for the esp32 I will use it as is for the time being. I plan to develop a second version some time later, which should have additional peripherals on an external pcb and I will add a FET there then.

billys7
Posts: 5
Joined: Tue Feb 22, 2022 4:00 pm

Re: Can the output current of the esp32 GPIO be reduced?

Postby billys7 » Wed Sep 17, 2025 8:20 pm

What will happen if i set the drive strength of a pin output to 20mA and the load will be 50mA?

eriksl
Posts: 242
Joined: Thu Dec 14, 2023 3:23 pm
Location: Netherlands

Re: Can the output current of the esp32 GPIO be reduced?

Postby eriksl » Thu Jul 30, 2026 9:50 am

If you're driving a MOSFET, especially at a frequency (e.g. PWM), I'd really recommend using a MOSFET gate driver. They can supply up to several amperes to charge/discharge the gate of a power MOSFET in time. They're dead cheap and can also be used for driving relays. In some cases you can leave out the power MOSFET altogether.

MicroController
Posts: 2705
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Can the output current of the esp32 GPIO be reduced?

Postby MicroController » Thu Jul 30, 2026 10:09 am

What will happen if i set the drive strength of a pin output to 20mA and the load will be 50mA?
The impedance ("resistance") of the output (~50-100Ohms) becomes significant, causing the voltage put out on the pin to drop below the specified "high" output voltage (or rise above the specified "low" output voltage). The ESPs appear to be pretty robust however; I saw some spec (for the S3, IIRC) which reported no failure after 24 hours of running with "high" outputs short-circuited to GND. (Obviously not recommended or guaranteed as this exceeds the specified maximums.)

burtrum
Posts: 24
Joined: Mon Dec 28, 2015 1:34 pm

Re: Can the output current of the esp32 GPIO be reduced?

Postby burtrum » Fri Aug 14, 2026 2:00 am

I always treated the ESP32 drive strength as signal “slew-rate” control.
That is, control the rise and fall times of the gpio transitions, espescially to meet timing requirements of attached devices. Higher “slew-rate” means faster rise/fall times. This is an AC transient, and in my opinion, not in any way a steady-state DC specification.

The primary use-case for adjusting drive strengh is:
A. Increasing drive strength to increase “slew-rate” to meet timing specs into a problematic wire capacitance.
B. Decreasing drive strength to decrease “slew-rate” to reduce radiated noise (EMI, FCC …).

I design a single gpio to handle no moe than 20 mA DC, regardless of the datasheet. A single LED pulling more than 20 mA or more is a special case of - oh well it works fine. Other logic chips should not pull large currents.

When there is more than one gpio at higher currents, then all thermal consierations become a concern.

The internal drivers of an ESP32 might have some sort of DC level control, but I have not proved it myself.
And I certainly made up the 20 mA number, but don’t think of your hot power-hungry SOC as a H-bridge motor driver.

Burtrum

Who is online

Users browsing this forum: Applebot and 1 guest