Hi,
I search a arduino program to use all serials ports in ESP32 ?
Sincerely
Eric
Examples for many serials ports
Re: Examples for many serials ports
How many do you need?
Tom Meyers
Tom Meyers
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Re: Examples for many serials ports
HI,
I would like to use all serials ports with ESP32 module, 3.
Eric
I would like to use all serials ports with ESP32 module, 3.
Eric
Re: Examples for many serials ports
I explored that recently. Here is how I quickly tested them: Connected (tx+rx) to (rx+tx) then sent messages between them. The test was < 10 lines of code.
I don't remember exactly but I think those 3 use a UART and one is connected to USB. I also don't remember if there are serial libraries for software serial which would increase the number of serial, maybe.
That is pretty vague sounding, sorry.
Tom Meyers
I don't remember exactly but I think those 3 use a UART and one is connected to USB. I also don't remember if there are serial libraries for software serial which would increase the number of serial, maybe.
That is pretty vague sounding, sorry.
Tom Meyers
IT Professional, Maker
Santiago, Dominican Republic
Santiago, Dominican Republic
Re: Examples for many serials ports
There are three hardware based serial ports (0,1,2) on the ESP32 without using hardware serial
Have a look at an IO cross reference for the IO associated with each port
You can use by calls such as this
HardwareSerial Serial1(1);
#define SERIAL1_RXPIN 25
#define SERIAL1_TXPIN 26
Serial1.begin(57600, SERIAL_8N1, SERIAL1_RXPIN, SERIAL1_TXPIN);
Serial1.setRxBufferSize(1024);
Have a look at an IO cross reference for the IO associated with each port
You can use by calls such as this
HardwareSerial Serial1(1);
#define SERIAL1_RXPIN 25
#define SERIAL1_TXPIN 26
Serial1.begin(57600, SERIAL_8N1, SERIAL1_RXPIN, SERIAL1_TXPIN);
Serial1.setRxBufferSize(1024);
Who is online
Users browsing this forum: No registered users and 61 guests