Tutorial: Hello UART (EduESP32-S3)
Serial communication on the ESP32-S3 using HardwareSerial.
Available ports
The ESP32-S3 exposes three UARTs. Serial (UART0) is wired to the built-in USB-Serial for debugging.
| Instance | Typical pins |
|---|---|
| Serial | Native USB (debug) |
| Serial1 | TX=GPIO17, RX=GPIO18 |
| Serial2 | TX=GPIO43, RX=GPIO44 |
Arduino code
HardwareSerial MySerial(1);
void setup() {
Serial.begin(115200); // USB console
MySerial.begin(115200, SERIAL_8N1, 18, 17); // RX, TX
Serial.println("Hello UART from ESP32-S3");
}
void loop() {
MySerial.println("Hello, UART world!");
while (MySerial.available()) {
Serial.write(MySerial.read()); // echo to USB monitor
}
delay(1000);
}
Test
- Open the Serial Monitor at 115200 baud.
- On
Serial1, plug a USB-Serial adapter crossed (TX↔RX, common GND).
Next step
Continue with Tutorial: Hello Wi-Fi to bring your board online.