Here’s a minimal sketch for ESP32-S3 that outputs to both the USB serial (Serial) and a hardware UART (Serial1 on GPIO19/20) at the same time:
void setup() {
// USB Serial (shows up as COM port on your PC)
Serial.begin(115200);
// Hardware UART1 on GPIO19 (RX) and GPIO20 (TX)
Serial1.begin(115200, SERIAL_8N1, 19, 20);
// Small delay to stabilize
delay(100);
// Initial messages
Serial.println("USB Serial ready!");
Serial1.println("Hardware Serial1 ready!");
}
void loop() {
// Print to both every second
Serial.println("Hello from USB Serial!");
Serial1.println("Hello from Serial1 (GPIO19/20)!");
delay(1000);
}
✅ On your PC’s Arduino Serial Monitor → you’ll see the Serial.println messages.
✅ On an external USB-to-TTL adapter connected to GPIO20 (TX) and GND → you’ll see the Serial1.println messages.
I've tried my code upgraded from an 1.0ver and then the code posted above.
No signal on TXD neither on TXD1, instead UART0(only over USB) works only before starting the code sketch.
I've tried my code upgraded from an 1.0ver and then the code posted above.
No signal on TXD neither on TXD1, instead UART0(only over USB) works only before starting the code sketch.
Comments
Dear Algirdas,
ple try the following program:
Here’s a minimal sketch for ESP32-S3 that outputs to both the USB serial (Serial) and a hardware UART (Serial1 on GPIO19/20) at the same time:
✅ On your PC’s Arduino Serial Monitor → you’ll see the
Serial.println
messages.✅ On an external USB-to-TTL adapter connected to GPIO20 (TX) and GND → you’ll see the
Serial1.println
messages.Thanks!
Best regards,
Hello.
I've same problems with UARTS.
I've tried my code upgraded from an 1.0ver and then the code posted above.
No signal on TXD neither on TXD1, instead UART0(only over USB) works only before starting the code sketch.
Please help me.
Thanks
GR
No more problems with serial.
False alarm.
Thanks
GR