I have a few Raspberry PI Hat’s laying around and I wonder if I should make a ESP32 based replacement for Raspberry PI Zero W. The IO on ESP32 is far more capable than the one on the PI, but we have a few limitations and less pins to play with.This is an early draft with the 3D above and PIN mapping below.
Raspberry PI Pin | ESP32 PI | Description |
1 | – | 3.3V |
2 | – | 5V |
3 | 8 – GPIO32 | GPIO2 / I2C-SDA |
4 | – | 5V |
5 | 9 – GPIO33 | GPIO3 / I2C-SCL |
6 | – | GND |
7 | 10 – GPIO25 | GPIO4 |
8 | 11 – GPIO26 | GPIO14 / UART-TXD |
9 | – | GND |
10 | 12 GPIO27 | GPIO15 / UART-RXD |
11 | 13 GPIO14 | GPIO17 |
12 | 14 GPIO12 | GPIO18 |
13 | 16- GPIO13 | GPIO27 |
14 | – | GND |
15 | GPIO9 | GPIO22 |
16 | GPIO10 | GPIO23 |
17 | – | 3.3V |
18 | GPIO11 | GPIO24 |
19 | 27 GPIO15 | GPIO10 / MOSI |
20 | – | GND |
21 | 28 GPIO2 | GPIO9 / MISO |
22 | 7 GPIO35 | GPIO25 |
23 | 30 GPIO4 | GPIO11 / CLK |
24 | 31 GPIO16 | GPIO8 / CE0 |
25 | – | GND |
26 | 33 GPIO17 | GPIO7 / CE1 |
27 | ID_SD I2C ID EEPROM | |
28 | ID_SC I2C ID EEPROM | |
29 | GPIO5 | GPIO5 |
30 | – | GND |
31 | GPIO18 | GPIO6 |
32 | GPIO19 | GPIO12 |
33 | GPIO21 | GPIO13 |
34 | – | GND |
35 | GPIO22 | GPIO19 |
36 | GPIO26 | GPIO16 |
37 | GPIO6 | GPIO26 |
38 | GPIO7 | GPIO20 |
39 | – | GND |
40 | GPIO8 | GPIO21 |