Crowpanel 7 Advance UART1

How use UART1 for serial output? Serial1.begin(115200, SERIAL_8N1, 19, 20); Serial1.println("Hello"); not working

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:

    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.

    Thanks!
    Best regards,

Sign In or Register to comment.