Using a second UART
On the ESP32 UART0 is normally reserved for interactive use with REPL. Sometimes we need a
UART to communicate with external devices. Typical examples are:
- fingerprint readers using a serial communication protocol
- GPS modules
The ESP32 has 3
UARTs of which however UART1 is reserved for use with flash memory.
However UART2 is free.
Connect the USB to Serial adapter to the ESP32 as shown in the table below
USB to Serial adapter |
ESP32 GPIO |
Tx |
16 |
Rx |
17 |
Gnd |
Gnd |
--
Uli Raich - 2020-05-09
Comments