Espressif ESP32
Output Voltage | Operating Voltage | Maximum Current | WiFi | BLE | USB Connector |
---|---|---|---|---|---|
3.3V | 3.3V | Type C |
Detailed Pinout
⚠️
ESP32 boards are available in 30- and 38-pin configurations. While the detailed pinout above is for 38 pins, the simplifed pinout below is for 30 pins.
Simplified Pinout
Notes:
- Pins in green are digital GPIO pins.
- Pins in blue marked ADC are analog input pins.
- Pins in orange are for Software Serial UART.
- I2C and SPI pins are named accordingly.
- The primary pin function is indicated closest to the board, secondary functions going outwards. If the pin is not required for the primary function it can be used for the secondary function.
- All GPIO pins are capable of PWM signals and Interrupts.
- Pin numbers shown are to be used in code. They may be different from the numbers printed on the board.
- The ~ prefix for a GPIO indicates PWM support.
- The * suffix for a GPIO indicates Interrupt support.
- Do not use the pins marked with an X:
- X1 and X2: Hardware UART TX and RX pins.
- X3: Reset pin.
- X4 and X5: Analog input pins need +ve and -ve input signals, safer to not use unless sure.
Pin Functions
Board # | Code # | Preferred Function | Alternate Functions |
---|---|---|---|
D13 | 13 | Software UART TX | Digital GPIO / PWM |
D12 | 12 | Digital GPIO | PWM |
D14 | 14 | Software UART RX | Digital GPIO / PWM |
D27 | 27 | Digital GPIO | PWM |
D26 | 26 | Digital GPIO | PWM |
D25 | 25 | Digital GPIO | PWM |
D33 | 33 | Digital GPIO | PWM |
D32 | 32 | Digital GPIO | PWM |
D35 | 35 | Analog In | Digital GPIO |
D34 | 34 | Analog In | Digital GPIO |
D23 | 12 | SPI COPI | Digital GPIO |
D22 | 22 | I2C SCL | Digital GPIO |
TX0 | 1 | Board UART TX | DO NOT USE |
RX0 | 3 | Board UART RX | DO NOT USE |
D21 | 21 | I2C SDA | Digital GPIO |
D19 | 19 | SPI CIPO | Digital GPIO |
D18 | 18 | SPI SCK | Digital GPIO |
D5 | 5 | SPI CS | Digital GPIO |
TX2 | 17 | Hardware UART TX | Digital GPIO |
RX2 | 16 | Hardware UART RX | Digital GPIO |
D4 | 4 | Digital GPIO | PWM |
D2 | 2 | Digital GPIO | PWM |
D15 | 15 | Digital GPIO | PWM |