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

-- %USERSIG{UliRaich - 2020-05-09}%

Comments

 

This topic: IoT_Course_English > WebHome > UART
Topic revision: 09 May 2020, UliRaich