Skip to content
Simurq Labs

Learn

What does a minimum ESP32 schematic need?

By Semih Özbir, Electrical and Electronics Engineer

Published · Last reviewed

In this guide · 8

A minimum ESP32 schematic needs four things around the module: a 3.3 V supply good for 500 mA, with 10 µF and 0.1 µF at its pin; a 10 kΩ and 1 µF delay on the enable pin; pull-ups on the boot pins; and a port to program it. An ESP32-C3-WROOM-02 holds the crystal, flash and antenna.

What the module already holds

The ESP32-C3-WROOM-02 datasheet draws the module's insides in its Figure 8-1: the ESP32-C3, a 40 MHz crystal, the SPI flash, the PCB antenna with its matching network, the chip's supply capacitors, an ESD diode on the 3.3 V pin and a 499 Ω resistor in the serial transmit line. The -N4 and -H4 carry 4 MB of flash, the -N8 8 MB. The module has 19 pins, 15 of them GPIOs.

Block diagram of the ESP32-C3-WROOM-02: inside it, the ESP32-C3 with a 40 MHz crystal, 4 MB or 8 MB of SPI flash, a PCB antenna behind its matching network, supply capacitors, an ESD diode on 3V3 and 499 Ω on TXD; outside, the pins 3V3, EN, IO2, IO8, IO9, TXD, RXD, IO18 and IO19.

What the ESP32-C3-WROOM-02 holds inside, and the pins a board wires, redrawn as a block diagram from Espressif's datasheet (Figures 2-1 and 8-1).

The bare chip needs more. By Espressif's hardware design guidelines, that is 20 resistors, capacitors and inductors, a crystal and an SPI flash, with 50 Ω impedance control on its RF traces. The module leaves you power, reset, boot and programming.

Schematic of the ESP32-C3-WROOM-02's minimum circuit: 10 µF and 0.1 µF on its 3.3 V pin, a 10 kΩ and 1 µF delay on EN with a reset button, 10 kΩ pull-ups on IO2 and IO8, a boot button from IO9 to ground, 22 or 33 Ω on USB D+ and D−, and UART0 to a header.

The ESP32-C3-WROOM-02's minimum circuit, simplified and redrawn from Espressif's datasheet (Figure 9-1) and its hardware design guidelines.

The 3.3 V supply and its capacitors

The module runs from 3.0 to 3.6 V. Espressif asks for a 3.3 V supply that delivers at least 500 mA, as does the module's datasheet (Table 6-2).

With the radio asleep and the processor at 160 MHz, the module draws 23 to 28 mA (Table 6-5). The 500 mA covers the radio: transmitting 802.11b at 20.5 dBm, the module draws peaks of 345 mA (Table 6-4). Size the regulator for 500 mA, not for the average.

Where the supply enters the board, Espressif wants an ESD protection diode and at least 10 µF. At the module, the datasheet's peripheral schematic (Figure 9-1) draws 10 µF and 0.1 µF from the 3.3 V pin to ground, and nothing more: the chip's decoupling is inside.

EN: the reset pin and its delay

EN is the chip enable: high runs the chip, low resets it. The datasheet's pin table is plain: "Do not leave the EN pin floating."

Espressif's timing asks for the 3.3 V rail to settle for at least 50 µs before EN rises, and for a reset to hold EN below a quarter of the supply for at least 50 µs. The usual answer is an RC delay: 10 kΩ from 3.3 V to EN, and 1 µF from EN to ground.

That is a 10 ms time constant, which the RC filter calculator works out with its delays. On a supply that comes up at once, EN passes the datasheet's release level, three quarters of the supply, after about 14 ms, nearly 280 times the 50 µs minimum. Espressif says to fit the values to the supply. Where it rises slowly, cycles often or is unstable, as with battery charging or solar power, the RC alone may not be enough, and it suggests a power monitor chip, its threshold around 3.0 V.

Keep the EN trace short, so interference cannot reboot the chip. A reset button goes from EN to ground, as in the peripheral schematic.

The strapping pins that choose the boot mode

The ESP32-C3 reads three pins at reset and latches their levels: GPIO2, GPIO8 and GPIO9. The ESP32-C3 datasheet gives the modes in its section 3:

  • GPIO9 high: SPI boot. The chip runs the program in its flash. This is the default: GPIO9 has a weak internal pull-up.
  • GPIO9 low, GPIO8 high: download boot. The chip waits for firmware over USB or UART.

GPIO2 and GPIO8 float at reset unless something holds them (Table 3-1). A download needs GPIO8 high, and Espressif asks for GPIO2 to be pulled up too, against glitches, though it does not choose the mode. So each gets a pull-up. GPIO9 needs a way to be pulled low at reset: the module's datasheet draws a jumper to ground, and a button does the same.

Espressif also recommends a pull-up on GPIO9, without a value, and warns that a large capacitor there may put the chip in download mode. The levels must hold for 3 ms after EN rises. Then the pins are ordinary GPIOs, so what you connect to them must not upset those levels during reset.

How the board is programmed: UART or USB

The module brings out both programming ports.

  • UART0, on the TXD and RXD pins (GPIO21 and GPIO20), is Espressif's usual port for downloads and logs, reached through a USB-to-UART converter. The 499 Ω Espressif asks for on the transmit line is already in the module.
  • USB Serial/JTAG, on IO18 and IO19 (D− and D+), is a USB 2.0 full-speed device inside the chip: a connector and two series resistors, no converter. Espressif suggests 22 or 33 Ω to start, close to the chip, with footprints for capacitors to ground left empty.

The download guidelines add two cautions. Over USB, the first download into an empty flash needs download mode set through GPIO9; after that, tools start it over USB, until an application turns USB off or reuses its pins. So keep GPIO9 within reach. And keep UART0 reachable on a USB board too: Espressif's RF test firmware works over UART only.

Where the original ESP32 differs

The original ESP32's guidelines ask for the same 3.3 V supply of at least 500 mA and the same 10 kΩ and 1 µF delay on its enable pin. Its boot pins and programming port differ:

  • Five strapping pins: GPIO0, GPIO2, GPIO5, MTDI and MTDO. GPIO0 high boots from flash; GPIO0 and GPIO2 both low, GPIO2's default, start the download mode. GPIO0 takes the pull-up Espressif recommends and the boot button.
  • MTDI sets the flash voltage. Low at reset, its default, gives the flash 3.3 V; high gives 1.8 V, unless an eFuse overrides it. Keep it low where the flash runs at 3.3 V.
  • No USB download. The download mode takes firmware over UART or SDIO. UART0 sits on GPIO1 and GPIO3, so a board with a USB port needs a USB-to-UART converter.

Where each part of our ESP32-C3 module comes from

Our module library holds the ESP32-C3-WROOM-02, as the -N4 or the 105 °C -H4, with eight parts around it. Each part and figure comes from an Espressif document:

  • The hardware design guidelines: the 500 mA the supply must deliver, the EN delay of 10 kΩ and 1 µF, and 22 Ω in series on USB D+ and D−.
  • The module's datasheet: 10 µF and 100 nF on the supply, as its peripheral schematic draws them, and 10 kΩ pull-ups on GPIO2 and GPIO8, which its Table 4-1 leaves floating.
  • The PCB layout guidelines: two layout rules that put the module in a board corner.

One part is missing on purpose. Espressif recommends a pull-up on GPIO9 but gives no value, and the peripheral schematic draws none, so the module places none: the chip's weak pull-up, about 45 kΩ by the datasheet, holds the pin high. Nor does it add the 499 Ω the module carries inside.

A board connects to the module's ports: 3.3 V and ground, EN and GPIO9, each for a button to ground, USB D+ and D−, UART0, and ten GPIOs that take UART1, I2C and SPI through the chip's GPIO matrix. The module's notes record what Espressif asks without a number, such as a short EN trace, which no rule holds. PCB Agent draws the module as one titled block, on a schematic that has to pass ERC.

Limits

This covers the circuit around a module, not a bare chip, which needs its own crystal, flash and RF design. Nor does it cover layout, such as the clear area the antenna needs: Espressif's layout guidelines suggest putting the antenna past the board's edge, and ESP32 PCB design covers the board around the module. Our module is checked by code, laid out alone and found DRC-clean under two fabs' rules: its files are right, which is not a board built from them working, and the roadmap follows that. Can AI design a PCB? shows a board that passes ERC and DRC with this module in the wrong place, and KiCad fabrication files covers what goes to the fab next.

Sources

  • RC filter calculator

    An RC filter's cutoff is 1/(2πRC) and its time constant RC: 1.59 kΩ and 100 nF give 1.00 kHz and 159 µs. A calculator for gain, phase and settling.

  • Can AI design a PCB?

    Yes, within limits. A board can pass ERC and DRC with its antenna mid-board: what the checks prove, the four things they miss, and what catches them.

  • How does an AI PCB design agent work?

    From a written request to KiCad files: what an AI PCB design agent decides, what code checks at each step, and where a job stops for a person.

Have a board in mind?

PCB Agent is not open to the public yet. Leave your email, and we'll write when early access starts.