Quick answer: the Arduino Nano ESP32 is an ESP32-S3 in the classic Nano layout: D0–D13 digital, A0–A7 analog, I2C on A4 (SDA) / A5 (SCL), SPI on D10–D13, 3.3 V logic and no 5 V pin (VBUS gives 5 V only on USB power). Every D/A label maps to an ESP32-S3 GPIO, for example D2 = GPIO5, D13 = GPIO48 and A0 = GPIO1 (full table below). In the Arduino IDE, always write pins as D2 or A0 and they work in both numbering modes. Use A0–A3 (ADC1) for analog readings while Wi-Fi is on, because A4–A7 sit on ADC2. VIN accepts 6–21 V.
The Arduino Nano ESP32 is Arduino's own official answer to the question every ESP32 project eventually asks: why can't this run on an actual Arduino board? It's a genuine ESP32-S3 underneath -- WiFi, Bluetooth, native USB, all of it -- wrapped in the classic Nano form factor and pin layout Arduino users already know, with a pin numbering scheme designed to feel familiar rather than throwing raw GPIO numbers at you from the start.
That familiarity is also where the pinout gets genuinely different from a typical ESP32 board. Arduino gives this board its own default pin-numbering mode -- matching the classic Nano's D0-D13/A0-A7 layout -- alongside the option to fall back to raw ESP32-S3 GPIO numbers. Knowing which mode a piece of code assumes matters more here than on almost any other ESP32 board, and it's the single most common source of confusion for anyone coming to this board from a generic ESP32-S3 tutorial.
This guide covers the board's dual numbering systems, its full digital, analog, and communication pinout, and the power-pin design Arduino changed specifically because the ESP32-S3 underneath isn't 5V tolerant like classic Nano boards were.
Nano Label to ESP32-S3 GPIO Table
| Nano label | ESP32-S3 GPIO | Functions and notes |
|---|---|---|
| D0 / RX | GPIO44 | UART0 RX (Serial0) |
| D1 / TX | GPIO43 | UART0 TX (Serial0) |
| D2 | GPIO5 | PWM, touch |
| D3 | GPIO6 | PWM, touch |
| D4 | GPIO7 | PWM, touch |
| D5 | GPIO8 | PWM, touch |
| D6 | GPIO9 | PWM, touch |
| D7 | GPIO10 | PWM, touch |
| D8 | GPIO17 | PWM |
| D9 | GPIO18 | PWM |
| D10 | GPIO21 | SPI CS |
| D11 | GPIO38 | SPI COPI (MOSI) |
| D12 | GPIO47 | SPI CIPO (MISO) |
| D13 | GPIO48 | SPI SCK, LED_BUILTIN |
| A0 | GPIO1 | ADC1_CH0, touch |
| A1 | GPIO2 | ADC1_CH1, touch |
| A2 | GPIO3 | ADC1_CH2 (strapping pin, avoid pulling at boot) |
| A3 | GPIO4 | ADC1_CH3, touch |
| A4 / SDA | GPIO11 | I2C SDA, ADC2_CH0 |
| A5 / SCL | GPIO12 | I2C SCL, ADC2_CH1 |
| A6 | GPIO13 | ADC2_CH2 |
| A7 | GPIO14 | ADC2_CH3 |
| RGB LED | GPIO46 (R), GPIO0 (G), GPIO45 (B) | Active-low; LED_RED, LED_GREEN, LED_BLUE |
Every digital pin can do PWM (LEDC), and all inputs have internal pull-ups and pull-downs. ADC2 caution: on the ESP32-S3, ADC2 readings can fail while Wi-Fi is active, so put analog sensors on A0–A3 in Wi-Fi projects.
Two Pin Numbering Systems
This is the single most important thing to understand about this board before wiring anything. Arduino IDE offers a choice: Nano form-factor numbering (the default -- D0, D1, A0, A1, and so on, matching older Nano boards) or GPIO numbering (the raw ESP32-S3 pin numbers used by most ESP32 tutorials and libraries).
pinMode(D2, OUTPUT); // Nano-style numbering (default)
digitalWrite(D2, HIGH);In the IDE this is Tools → Pin Numbering → By Arduino pin (default) or By GPIO number (legacy). Code using pin labels like D2 or A0 works under either numbering mode, since those labels always point to the same physical pin regardless of the selected scheme. Code that references a bare integer (digitalWrite(14, HIGH)) means something different depending on which mode is active -- this single detail explains most "my ESP32 tutorial doesn't work on my Nano ESP32" reports, since most ESP32 example code assumes raw GPIO numbers.
Not Every Pin Is Physically Accessible
A handful of ESP32-S3 GPIOs referenced in some example code (GPIO15 for a chip-select line, for instance) aren't broken out on this board's physical header at all -- the Nano form factor simply doesn't have room for the S3's full pin count. Definitions at the top of a given code example typically flag which specific pins need manual reassignment for this reason. Since the underlying chip is the same ESP32-S3 covered in this site's full-size S3 pinout guide, its strapping pins (GPIO0, 3, 45, and 46) still apply the same way here, even though most of them aren't directly wired to the Nano's own labeled pins.
Digital, Analog, and PWM Pins
The board follows the classic Nano header layout: digital pins D0 through D13, and a separate analog header with A0 through A7. Every pin can function as a plain GPIO regardless of its default role, thanks to the ESP32-S3's pin flexibility underneath.
int reading = analogRead(A0);
analogWrite(D3, 128); // PWM, ~50% duty cyclePWM works through the same software-mapped LEDC approach as any ESP32-S3 board -- not restricted to a fixed set of pins the way an AVR-based Nano's PWM is, even though the board deliberately presents itself with a classic-Nano-style layout.
No 5V Pin -- VBUS Instead
A genuinely unusual choice for a board wearing the Nano form factor: there is no 5V pin. In its place is VBUS, which only supplies 5V when the board is powered via USB. Powering the board through VIN instead disables VBUS entirely, meaning no 5V is available from the board at all in that scenario.
This is a deliberate safety measure -- the ESP32-S3 underneath runs 3.3V logic and isn't 5V tolerant, so Arduino chose to prevent accidental 5V exposure rather than risk it the way a traditional 5V-tolerant Nano could. A project relying on a steady 5V rail regardless of power source needs an external supply or a level shifter, not the board's own VBUS pin.
I2C, SPI, and UART
I2C: Default pins follow the classic Nano's SDA/SCL header position, though like any ESP32-S3 board, Wire.begin(sda, scl) can reassign to any free pin pair.
Wire.begin(); // uses the default SDA/SCL pinsSPI: The classic Nano SPI pin positions are wired through as expected, with the ESP32-S3's usual flexibility to remap if a project needs it.
UART: This is where the board's underlying ESP32-S3 shows through most clearly -- it has three separate serial ports. Serial is the USB connection to a computer. Serial0 is the first hardware UART, on the D0/D1 header pins. Serial1 and Serial2 are two additional hardware UARTs with no fixed default pins at all -- their TX and RX need to be manually assigned to any free GPIO before use.
Serial1.begin(9600, SERIAL_8N1, RX_PIN, TX_PIN);That's one more usable UART than most ESP32 boards offer out of the box, and it means a project can run USB debugging, a GPS module, and a Bluetooth serial module simultaneously without any of them conflicting.
How the Nano ESP32 Compares
| Board | Chip | Form factor | 5V pin | Best for |
|---|---|---|---|---|
| Classic Arduino Nano | ATmega328P | Nano | Yes, always available | Simple 5V-tolerant sketches, existing AVR shields |
| Arduino Nano ESP32 | ESP32-S3 | Nano | No — VBUS (USB only) | Nano-familiar layout with real WiFi/BLE/USB |
| Generic ESP32-S3 DevKit | ESP32-S3 | Standard devkit | No, 3.3V board | Raw GPIO access, no Nano-shield compatibility needed |
The Nano ESP32 is best understood as a translation layer -- the same ESP32-S3 capability as a generic devkit, presented through a header and numbering scheme built to feel like a drop-in Nano replacement rather than a new board to learn from scratch.
Power Pins
| Pin | Function | Notes |
|---|---|---|
| VIN | External power input | 6–21 V, regulated down to 3.3 V on the board |
| VBUS | 5 V from USB | Only live when powered over USB-C; off on VIN power |
| 3V3 | Regulated 3.3 V output | The board's logic voltage; keep external loads modest |
| GND | Ground | Two pins |
Every GPIO runs 3.3 V logic. Treat this board like any other ESP32-S3 design for voltage, not like a classic 5 V Nano, regardless of the familiar header.
Practical Pin Usage Tips
- Write pins as
D2,A0,LED_BUILTIN, never as bare numbers. Labels work in both numbering modes; bare integers don't. - Use A0–A3 for analog with Wi-Fi on (ADC1). A4–A7 are on ADC2.
- Keep A2 (GPIO3) and the RGB LED pins (GPIO0, 45, 46) free of external pull-ups or pull-downs at boot: they're strapping pins.
- Plan 5 V separately: VBUS disappears on VIN power, so give 5 V peripherals their own supply.
- Use the extra UARTs:
Serial(USB),Serial0(D0/D1), andSerial1/Serial2, which you assign to any free pins. - Check shields before stacking: a classic Nano shield fits, but anything expecting 5 V logic or a 5 V pin needs level shifting or a different supply.
Which Projects the Nano ESP32 Actually Fits
A strong fit: anyone with an existing Arduino Nano-based project or shield collection wanting to add real WiFi and Bluetooth without redesigning the physical layout, classroom or workshop settings where students already know the Nano form factor and Arduino IDE workflow, or any project that specifically wants three independent hardware UARTs in a small, familiar package.
A weaker fit: projects needing the ESP32-S3's full 45-pin GPIO budget (only a subset reaches this board's header), or anyone who's comfortable working with raw GPIO numbers and doesn't need the Nano-familiar numbering layer at all -- a generic ESP32-S3 devkit is simpler and cheaper in that case.
Migrating a Classic Nano Project
For anyone moving an existing ATmega328P-based Nano project over, the practical migration path is usually smoother than it first appears. Digital I/O, PWM, and analog reads translate directly once pin labels (D3, A0, and so on) are kept rather than bare integers. The places migrations most often stall are libraries written specifically for AVR hardware registers rather than the portable Arduino API -- anything directly manipulating PORTB or similar AVR-specific registers won't work on the ESP32-S3 at all and needs rewriting against the standard digitalWrite()/pinMode() calls instead. Timing-sensitive code written assuming the classic Nano's 16MHz clock also deserves a second look, since the ESP32-S3 runs its cores considerably faster and any hand-tuned delay loops (rather than proper delay()/millis() calls) will behave differently.
Quick Answers to Common Nano ESP32 Pin Questions
Why doesn't my ESP32 tutorial's pin numbers work on this board? It's almost certainly a numbering-mode mismatch -- most generic ESP32-S3 tutorials assume raw GPIO numbers, while this board defaults to Nano-style D/A labels. Switch numbering modes or convert the pin references.
Why is there no 5V pin? A deliberate safety choice -- the ESP32-S3 isn't 5V tolerant, so Arduino replaced the traditional 5V pin with VBUS, which only supplies 5V over USB and stays off entirely when powered via VIN.
How many serial ports does this board really have? Four total, counting USB: Serial (USB), Serial0 (D0/D1), and two more (Serial1, Serial2) that need their pins manually assigned before use.
Can I use classic Nano shields on this board? Physically the header matches, but check the specific shield's voltage assumptions -- anything expecting a true 5V pin won't find one here.
Is every ESP32-S3 GPIO available on this board? No -- the Nano form factor doesn't have room for the S3's full pin count, so some GPIOs referenced in generic ESP32-S3 example code simply aren't accessible here.
Does this board have the same strapping pins as a generic ESP32-S3 devkit? Yes -- GPIO0, 3, 45, and 46 remain the chip's strapping pins, though most aren't directly exposed on the Nano ESP32's own labeled header.
What's the onboard LED pin? LED_BUILTIN is D13 (GPIO48). There's also an RGB LED on GPIO46/0/45 (LED_RED, LED_GREEN, LED_BLUE), which is active-low: digitalWrite(LED_RED, LOW) turns red on.
My Nano ESP32 won't upload any more. What now? Double-tap the reset button to enter the bootloader, or, if the board is badly stuck, short the B1 pad to GND and press RESET to force the ESP32-S3 ROM bootloader, then re-upload.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Example sketch drives the wrong pin | Bare GPIO numbers used in Arduino-pin mode (or the reverse) | Use D/A labels, or switch Tools → Pin Numbering |
analogRead(A5) returns 0 or errors with Wi-Fi on | A4–A7 are ADC2 | Move the sensor to A0–A3 |
| Board boots into download mode or won't start | Something pulling A2 (GPIO3) or the RGB LED pins at reset | Remove external pulls from strapping pins |
| 5 V module dead when powered from VIN | VBUS is off on VIN power | Separate 5 V supply |
Library won't compile (PORTB, TCCR1A) | AVR-only register code | Use a portable or ESP32-compatible library |
| Port missing in the IDE | Sketch crashed USB, or charge-only cable | Double-tap reset; use a data cable |
| RGB LED colours inverted | It's active-low | LOW = on, HIGH = off |
Where to Go From Here
- ESP32-S3 pinout guide: the chip underneath, with every GPIO.
- Arduino Nano pinout (classic): compare with the ATmega328P Nano.
- ESP32 Wi-Fi tutorial: works unchanged on the Nano ESP32.
- ESP32 ADC pins: ADC1 vs ADC2.
- ESP32 vs Arduino: which should you choose?
Official reference: Arduino Nano ESP32 documentation.



