USB question - ESP32 S3 Serial with Python

kaxx1975
Posts: 13
Joined: Wed Jan 24, 2024 9:49 pm

USB question - ESP32 S3 Serial with Python

Postby kaxx1975 » Fri Aug 08, 2025 12:29 pm

ESP32- with the S3 Chipset
4.3" Cheap Yellow Display model JC4827W543

I am trying to send my CPU temperature to this ESP32 to display to the LCD. But the ESP32 reboots and stays off when using Python. I am using the serial module for Python and plugged into my USB on my PC. Prior to connecting, everything works fine with the ESP32 showing the time on display, until I start the python script to send the info. Then it reboots and stays seems to stay in reboot state. I have noticed that it often gets and displays the info from the PC one single time before rebooting, so it seems to be getting through.

This Arduino code and Python script works fine on my other Cheap Yellow Display chipset. I only change the USB Port in python and the Display settings in Arduino.

I have noticed with this chipset, I need to use CDC on Boot when programming with Arduino IDE, and the ESP32 board resets every time I close Arduino Serial Monitor. My other ESP32's chipsets work fine, and coincidentally I do not have to use CDC on Boot with those.

Is there anything you would like me to check or verify that could help me fix this? My code is quite long, but let me know of any info you may need and I can happily get it for you.

kaxx1975
Posts: 13
Joined: Wed Jan 24, 2024 9:49 pm

Re: USB question - ESP32 S3 Serial with Python

Postby kaxx1975 » Sat Aug 09, 2025 11:19 am

Fixed it

I don't think I can be the only person with these USB problems, but lack of any responses on this and a prior post has me thinking that. I guess there just aren't many S3 users out there.


Anyway, just in case there are other users having USB Boot issues, setRTS and DTS to false as follows in the Python sketch:

port = serial.Serial(p.device, 115200, timeout=0.02)
------> port.setRTS(False)
------> port.setDTR(False)

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User and 1 guest