Read / Writa Data from primary serial interface U0RXD (GPIO44) and U0TXD (GPIO43) (device ESP32-S2-DevKitC-1)

Hi all,

I use the ESP32-S2-DevKitC-1 device and basic functions using ESPHome

  • Reading Temp & Humi from HTU21 GY-21 Board
  • Switching LED
  • MQTT
    already work:

But now I want to read / write data on the primary serial interface U0RXD (GPIO44) and U0TXD (GPIO43) …

… which should be configured like this (it is already running on my Raspberry Pi 4B using Node-RED):

Unfortunately, I haven’t managed to sort it out on my own so far.
Can anyone give me more detailed instructions on how to configure my ESP32-S2-DevKitC-1 devicefor this?
That would be great!

A big thank you to everyone in advance!
Best regards, Thomas

What are you actually looking for to accomplish? Afaik esphome doesn’t have general serial terminal component.

@Karosm

Thank you for quick reply!

I really know next to nothing about Home Assistant or the device I’ve bought.

Does that mean I can’t use the following component for serial communication, as I did with my Raspberry Pi 4B?

How could I achieve this differently using Home Assistant and/or ESPHome without having to buy another expensive Raspberry Pi?

Danke und Gruß
Thomas

I haven’t tried this, but there is the following:

I may be way off on a tangent, but I have used the TX and RX GPIO pins to view the log from ESP32 microcontrollers on my linux PC with minicom terminal emulation. Hopefiully this should be relatively easy to test.

To do this you probably only need

logger:
  hardware_uart: uart0    # on S3-mini this gives idf bootloader only
  level: debug

and to decide what baud rate to use (ESP32 defaults to 115200). See the UART and Logger components in the ESPHome documentation.

Of course you can.
But it doesn’t come with terminal UI.
You get better suggestions if you describe what are you actually looking for to accomplish.