ESP32 DevKit V1 vs ESP8266 NodeMCU
Two Espressif Wi-Fi boards with very different pin resources.
The ESP8266 made Wi-Fi microcontrollers affordable for hobbyists, and the ESP32 is its much larger successor. Both use 3.3 V logic and are programmed in much the same way in the Arduino IDE, but at the pin level they differ a lot. The NodeMCU board with the ESP8266 offers only about eleven freely usable GPIOs and a single analog input (A0, 10 bit). The ESP32 DevKit V1 breaks out 38 pins, including up to 18 ADC channels with 12 bits, two DAC outputs and capacitive touch inputs.
When switching, pay attention to the special pins. On the ESP8266, GPIO0, GPIO2 and GPIO15 (D3, D4, D8) select the boot mode and must not be pulled the wrong way at reset. On the ESP32 these are GPIO0, 2, 12 and 15; GPIO6 to 11 are wired to the flash and must not be used, and GPIO34 to 39 are input-only without pull-ups. ADC2 is also unavailable while Wi-Fi is active. The ESP32 can route I2C and SPI to almost any pin through its GPIO matrix, while the ESP8266 uses a software I2C implementation, by default on D1 (SCL) and D2 (SDA).
The tables below put both boards side by side using the pinout data: which signals exist on both, where the interfaces are and which pins only one of the boards has.
The pinouts differ. Use the tables below to rewire the signals.
Overview from the pinout data
| Property | ESP32 DevKit V1 | NodeMCU V2 |
|---|---|---|
| Manufacturer | Espressif Systems | Espressif Systems |
| Type | Board | Board |
| Compared pinout | ESP32 DevKit V1 Pinout | 30-Pin Dual-Inline Pinout |
| Pins | 38 | 30 |
| Supply pins | 3V3, 5V | 3V3, VIN |
| Ground pins | 3 | 4 |
| Interfaces | ADC, DAC, I2C, SPI, UART | ADC, I2C, SPI, UART |
Interface pins
| I2C | ESP32 DevKit V1 | NodeMCU V2 |
|---|---|---|
| SDA | 25 · IO21 | 18 · D2 |
| SCL | 22 · IO22 | 17 · D1 |
| SPI | ESP32 DevKit V1 | NodeMCU V2 |
|---|---|---|
| MOSI / COPI | 18 · CMD21 · IO2336 · D1 | 6 · SD125 · D7 |
| MISO / CIPO | 27 · IO19 | 8 · SD024 · D6 |
| SCK | 28 · IO1837 · D038 · CLK | 9 · CLK23 · D5 |
| CS / SS | 29 · IO5 | 7 · CMD26 · D8 |
| UART | ESP32 DevKit V1 | NodeMCU V2 |
|---|---|---|
| TX | 23 · TX30 · IO17 | 28 · TX |
| RX | 24 · RX31 · IO16 | 25 · D727 · RX |
| RTS | – | – |
| CTS | – | – |
Pin number · pin name. "+n" = further pins with the same function.
Pin by pin
The pins are numbered differently, so they are matched by signal: 22 signals exist on both.
| Signal | ESP32 DevKit V1 | NodeMCU V2 |
|---|---|---|
| 3V3 | 1 · 3V3 | 11 · 3V3 |
| EN | 2 · EN | 12 · EN |
| GPIO14 | 12 · IO14 | 23 · D5 |
| GPIO12 | 13 · IO12 | 24 · D6 |
| GND | 14 · GND | 10 · GND |
| GPIO13 | 15 · IO13 | 25 · D7 |
| GPIO9 | 16 · D2 | 5 · SD2 |
| GPIO10 | 17 · D3 | 4 · SD3 |
| GPIO11 | 18 · CMD | 7 · CMD |
| GND | 20 · GND | 14 · GND |
| GPIO1 | 23 · TX | 28 · TX |
| GPIO3 | 24 · RX | 27 · RX |
| GND | 26 · GND | 22 · GND |
| GPIO5 | 29 · IO5 | 17 · D1 |
| GPIO16 | 31 · IO16 | 16 · D0 |
| GPIO4 | 32 · IO4 | 18 · D2 |
| GPIO0 | 33 · IO0 | 19 · D3 |
| GPIO2 | 34 · IO2 | 20 · D4 |
| GPIO15 | 35 · IO15 | 26 · D8 |
| GPIO8 | 36 · D1 | 6 · SD1 |
| GPIO7 | 37 · D0 | 8 · SD0 |
| GPIO6 | 38 · CLK | 9 · CLK |
Only on ESP32 DevKit V1
3 · VP4 · VN5 · IO346 · IO357 · IO328 · IO339 · IO2510 · IO2611 · IO2719 · 5V21 · IO2322 · IO2225 · IO2127 · IO1928 · IO1830 · IO17Only on NodeMCU V2
1 · A013 · RST15 · VIN21 · 3V329 · GND30 · 3V3Verdict
For simple Wi-Fi sensors and switches the ESP8266 is enough and cheaper. If you need Bluetooth, more analog inputs, more GPIOs or two cores, pick the ESP32.