ESP32-S2 DevKitC-1

The ESP32-S2 DevKitC-1 is a secure, single-core WiFi SoC optimized for cost-effective IoT applications that require native USB support.

ESP32-S2 DevKitC-1

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Board facts

Board facts
FactValue
Operating voltage3.3 V
FamilyEspressif
Python runtimemicropython
Wi-FiYes
BluetoothNo
Native USBYes

Pinout

Pinout of the ESP32-S2 DevKitC-1. Select a label to see that pin in the table below.

Pins (44)

Pins of this board
PinKindFeaturesAlternate functions
3V3Power3.3V
3V3Power3.3V
RSTSpecialRESET
4GPIOPWM, ADCGPIO4, PWM, ADC1, TOUCH4
5GPIOPWM, ADCGPIO5, PWM, ADC1, TOUCH5
6GPIOPWM, ADCGPIO6, PWM, ADC1, TOUCH6
7GPIOPWM, ADCGPIO7, PWM, ADC1, TOUCH7
15GPIOPWM, ADCGPIO15, PWM, ADC2
16GPIOPWM, ADCGPIO16, PWM, ADC2
17GPIOPWM, ADCGPIO17, PWM, ADC2, DAC1
18GPIOPWM, ADCGPIO18, PWM, ADC2, DAC2
8GPIOPWM, ADCGPIO8, PWM, ADC1, TOUCH8, SDA, I2C
3GPIOPWM, ADCGPIO3, PWM, ADC1, TOUCH3
46GPIOPWMGPIO46, PWM
9GPIOPWM, ADCGPIO9, PWM, ADC1, TOUCH9, SCL, I2C
10GPIOPWM, ADCGPIO10, PWM, ADC1, TOUCH10
11GPIOPWM, ADCGPIO11, PWM, ADC2, TOUCH11
12GPIOPWM, ADCGPIO12, PWM, ADC2, TOUCH12
13GPIOPWM, ADCGPIO13, PWM, ADC2, TOUCH13
14GPIOPWM, ADCGPIO14, PWM, ADC2, TOUCH14
5VPower
GNDGround
GNDGround
TXGPIOPWMUART0
RXGPIOPWMUART0
1GPIOPWM, ADCGPIO1, PWM, ADC1, TOUCH1
2GPIOPWM, ADCGPIO2, PWM, ADC1, TOUCH2
42GPIOPWMGPIO42, PWM
41GPIOPWMGPIO41, PWM
40GPIOPWMGPIO40, PWM
39GPIOPWMGPIO39, PWM
38GPIOPWMGPIO38, PWM
37GPIOPWMGPIO37, PWM, MISO, SPI
36GPIOPWMGPIO36, PWM, SCK, SPI
35GPIOPWMGPIO35, PWM, MOSI, SPI
0GPIOPWMGPIO0, PWM
45GPIOPWMGPIO45, PWM
34GPIOPWMGPIO34, PWM, CS, SPI
33GPIOPWMGPIO33, PWM
21GPIOPWMGPIO21, PWM
20GPIOPWMGPIO20, PWM
19GPIOPWMGPIO19, PWM
GNDGround
GNDGround

The ESP32-S2 DevKitC-1 is a secure, single-core WiFi SoC optimized for cost-effective IoT applications that require native USB support.


1. Hardware Specifications

  • Processor: Single-core Xtensa 32-bit LX7 CPU running at 240 MHz.
  • Logic Level: 3.3V. All pins operate on 3.3V logic.
  • Memory Limits: 4 MB Flash memory, 320 KB SRAM, plus 2 MB external PSRAM for extended buffer spaces (crucial for cryptographic functions and frame buffering).
  • Wireless: Integrated 802.11 b/g/n Wi-Fi. Note: The ESP32-S2 does not support Bluetooth.

2. Detailed Pinout & GPIO Map

Below is the physical-to-code mapping table for the ESP32-S2 DevKitC-1 (36 GPIO pins total):

Physical Pin LabelGPIO IDPin TypePin Functions / MappingsWarnings & Cautions
D11Analog / GPIOADC1_CH0, Touch 1Cap-touch channel 1.
D22Analog / GPIOADC1_CH1, Touch 2Cap-touch channel 2.
D33Analog / GPIOADC1_CH2, Touch 3Cap-touch channel 3.
D44Analog / GPIOADC1_CH3, Touch 4Cap-touch channel 4.
D55Analog / GPIOADC1_CH4, Touch 5Cap-touch channel 5.
D66Analog / GPIOADC1_CH5, Touch 6Cap-touch channel 6.
D77Analog / GPIOADC1_CH6, Touch 7Cap-touch channel 7.
D88Analog / I2CADC1_CH7, Touch 8, I2C SDADefault I2C Serial Data pin.
D99Analog / I2CADC1_CH8, Touch 9, I2C SCLDefault I2C Serial Clock pin.
D1010Analog / GPIOADC1_CH9, Touch 10Cap-touch channel 10.
D1111Analog / GPIOADC2_CH0, Touch 11Cap-touch channel 11.
D1212Analog / GPIOADC2_CH1, Touch 12Cap-touch channel 12.
D1313Analog / GPIOADC2_CH2, Touch 13Cap-touch channel 13.
D1414Analog / GPIOADC2_CH3, Touch 14Cap-touch channel 14.
D1515Analog / GPIOADC2_CH4No touch function on this pin.
D1616Analog / GPIOADC2_CH5No touch function on this pin.
D1717Analog / DACADC2_CH6, DAC1True analog DAC output channel.
D1818Analog / DACADC2_CH7, DAC2True analog DAC output channel.
D1919DigitalGPIOGeneral Purpose Input / Output.
D2020DigitalGPIOGeneral Purpose Input / Output.
D2121DigitalGPIOGeneral Purpose Input / Output.
D3333DigitalGPIOGeneral Purpose Input / Output.
D3434Digital / SPISPI CSDefault SPI Chip Select pin.
D3535Digital / SPISPI MOSIDefault SPI Master Out Slave In pin.
D3636Digital / SPISPI SCKDefault SPI Serial Clock pin.
D3737Digital / SPISPI MISODefault SPI Master In Slave Out pin.
D38–D4238–42DigitalGPIOGeneral Purpose Input / Output (5 pins).
D45, D4645, 46DigitalGPIOGeneral Purpose Input / Output.
D00DigitalGPIO / Boot strapReal ESP32-S2 hardware uses this as a boot-mode strap pin, same role as GPIO0 on plain ESP32.
TX / RX—DigitalUART0Console/programming UART — avoid other serial devices on these two pins during upload.

[!NOTE] Real ESP32-S2 silicon routes native USB (D-/D+) through dedicated USB_D-/USB_D+ pads, not a regular labeled GPIO header pin — and OMS's own board model doesn't tag any pin with a native-USB capability at all. See Section 3 below: native USB HID is not currently supported in OMS regardless.


3. Power Architecture and Native USB

  • Native USB hardware: The ESP32-S2 chip does have a real native-USB peripheral capable of USB HID (keyboard/mouse/MIDI emulation) — but OMS currently has no Blockly extension exposing this. There is no way to program HID behavior on this board from OMS today, despite the hardware supporting it.
  • Power rails: Accepts 5V from USB or DC inputs. Outputs regulated 3.3V to power auxiliary sensors. GPIO logic operates strictly on 3.3V.

4. Compiler Settings & IDE Properties

When targeting this board, the compiler is intended to use the following parameters:

  • FQBN: esp32:esp32:esp32s2
  • Default Flashing Baud Rate: 921600
  • Flash Mode / File Type: esp
  • Flash Memory Offsets: { bootloader: 0x1000, partitions: 0x8000, app: 0x10000 }
  • Programming Runtimes: Supports C++ (Arduino) and MicroPython.

[!WARNING] Known bug: the board id this board actually uses internally (esp32s2) doesn't match any key in the compiler's board-config lookup table (which only has hyphen/underscore forms like esp32-s2) — so compiling currently silently falls back to plain ESP32's FQBN (esp32:esp32:esp32) instead of the S2-specific one above. See Known_Bugs.md §2.0.


5. Supported Blockly Board Blocks

Drawing the blocks…

6. Simulator and Flashing Diagnostics

  • Simulator: Digital write outputs are modeled. Analog DACs and secure partitions bypass web worker simulation and require physical board testing.
  • Flashing Guide: Connect the board over USB. Select the COM port corresponding to your board's serial interface. Click Flash — the board should enter bootloader mode automatically via the standard DTR/RTS reset sequence. If flashing timeouts occur (common on native-USB boards without a full auto-reset circuit):
    1. Press and hold the BOOT (GPIO 0) button.
    2. Press and release the RESET (EN) button.
    3. Release the BOOT button.
    4. The board is now locked in ROM download mode. Click Flash in the IDE. Once the transfer completes, tap RESET to run your sketch.

7. Communication Buses & Electrical Capabilities

Beyond the per-pin table above, here's the board's bus-level capability summary (from its own capabilities config):

BusDetails
UART1 hardware bus (TX/RX pins), shared with the USB programming port.
I2CDefault on D8 (SDA) / D9 (SCL).
SPIDefault on MOSI D35, MISO D37, SCK D36, CS D34.
1-WireNo dedicated 1-Wire hardware peripheral. Sensors like the DHT11 bit-bang the timing on any regular digital pin instead.
Analog (ADC)18 ADC-capable pins (D1–D18), 12-bit resolution.
DAC2 true hardware DAC channels — D17 and D18, 8-bit resolution.
Touch14 capacitive touch-capable pins: D1–D14.
PWMEvery GPIO pin on this board is PWM-capable (36 total).

Electrical limits: check Section 3 above for power-rail details; this board's capabilities config doesn't set custom current limits beyond OMS's standard 40 mA/pin default.


8. Further Reading


ESP32-S2 DevKitC-1 — OMS Parts