Page 1 of 1

Number of UARTs in ESP32

Posted: Fri Jun 28, 2019 11:24 am
by Piaceni
Hi All

I am working on an IoT project using ESP32. The datasheet for ESP32 says that it has three UARTs, however some pinout images show only two UARTs. Does the ESP32 have three UARTs or are the GPIOs used for the other two UARTs apart from the main one? I am new to this board so kindly ignore my lack of technical knowledge.

Thanks. :D

Re: Number of UARTs in ESP32

Posted: Fri Jun 28, 2019 5:10 pm
by WiFive
https://docs.espressif.com/projects/esp ... /uart.html

The first rule of ESP32 is use any pin you want! (Sort of)

Re: Number of UARTs in ESP32

Posted: Fri Jun 28, 2019 6:33 pm
by bonmotwang
Nice rule, I like it.
I was in the same boat and had the prototype made with the impression that I can only use 2 UARTs.
I just into programming about 2 weeks. Got LCD driver working, keypad driver working. ESP32 platform is really good!

Back to UART story.
In my design, I used TXD0 and RXD0 for my RS485 communication. IO22 and IO23 (Plan to be UART1) for talking to the XBEE module.
Because UART0 was used for firmware upgrading and monitoring (I didn't know!), I cannot use it as my RS485 port anymore.

But now according to your rule and the datasheet, it seems like I have UART3 for my RS485 channel?
I can just fly wire the RS485 to any two free GPIO's.

It seems to be too good for me. LOL