ESP32: 2 UARTS plus 1 CAN bus possible?

Turtle64
Posts: 1
Joined: Mon Nov 28, 2022 4:55 pm

ESP32: 2 UARTS plus 1 CAN bus possible?

Postby Turtle64 » Mon Nov 28, 2022 5:22 pm

Hi, in a project I will need one CAN bus and two UARTs, all in both directions.
I have some questions:

As far as I understand, one of the three UARTS is in use for programming. That leaves two UARTs for other usage, right?

When the CAN bus is used, does the CAN bus take one of the three built-in UARTS or is it another piece of hardware inside the ESP32?

If the CAN bus takes one UART, then there is only one unused UART left, but I need two. Can I use an ESP32SOFTWARESERIAL in addition to the hardware UARTS? What are the limitations or restrictions of the ESP32SOFTWARESERIAL compared to the hardware UARTs?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: ESP32: 2 UARTS plus 1 CAN bus possible?

Postby ESP_igrr » Mon Nov 28, 2022 5:51 pm

CAN is supported by a separate piece of hardware inside the chip, so using 2 UARTs + 1 CAN in your application should be possible.

Who is online

Users browsing this forum: No registered users and 60 guests