Serial issue

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Serial issue

Postby hpservertech » Sun May 07, 2023 8:40 pm

I have been working on a design using an esp32-wroom-ue-n8. Having 2 issues and I think they are both related.

In order to upload a sketch in Arudino I have to jumper io0 to gnd. This isn't a huge deal cause I could just add a tact switch but would like to avoid that.

The bigger issue though is that I am not getting any serial output when using serial programs such as Putty or Teraterm but I get serial output when using Serial Monitor within Arduino. I havent seen this happen before. Thinking it may be code I uploaded a simple Wire Scan sketch to rule it out. Same results.

I think the 2 are related. The schematic is based on the Wemos D1 mini esp32.

What do I have wrong on the board that would cause both of these issues?

Screenshot from within Arudino & schematic attached.
Attachments
Screenshot 2023-05-07 153144.jpg
Screenshot 2023-05-07 153144.jpg (127.34 KiB) Viewed 2820 times
esp32 schematic.pdf
(53.38 KiB) Downloaded 215 times

MicroController
Posts: 1738
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Serial issue

Postby MicroController » Mon May 08, 2023 8:50 pm

There seems to be an issue with the RTS/DTR handling.
If the pin names of the transistor IC are correct, there is an error in the wiring: RTS should connect to the base of one NPN ("A") and the emitter of the other NPN ("B"), and vice versa for DTR (base of "B" and emitter of "A").
If you then also connect "COLLECTOR_2" to IO0, you get software control of EN and IO0 and should be able to reset, flash and monitor the chip w/o manually pulling EN or IO0 high/low. See e.g. https://electronics.stackexchange.com/q ... rd-dtr-rts

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Re: Serial issue

Postby hpservertech » Mon May 08, 2023 9:03 pm

Thank you for the reply.

Not sure why the wiring though would explain why Arduino Serial Monitor is able to see output but nothing else can. The above would explain why I have to jumper io0 to ground, I get that. But why cant anything other then Arduino serial monitor see the serial data?

I have loaded the example Wire Scan sketch
connected usb cable to device
Open Putty(as an example)
Set to Com4(com port for device)
Nothing is displayed

User avatar
corz.org
Posts: 80
Joined: Fri Feb 03, 2023 10:44 pm
Location: Aberdeen
Contact:

Re: Serial issue

Postby corz.org » Mon May 08, 2023 10:03 pm

Just curious; why would you be using 9600 baud with an ESP32?

Also, I have this exact same board. It works flawlessly. How old is your board? (i.e. when did you purchase it?)

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Re: Serial issue

Postby hpservertech » Mon May 08, 2023 10:20 pm

The chip is brand new, jut came off the assembly last week. Using 9600 cause that is all that is needed.

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Re: Serial issue

Postby hpservertech » Mon May 08, 2023 10:36 pm

@Microcenter - I am not manually pulling anything high or low when looking at Serial Monitor. Understand why I have to manually jumper io0 now to get it to load the sketch, but not understand why I can't monitor the output once the sketch is loaded using anything but Arduino Serial Monitor.

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Re: Serial issue

Postby hpservertech » Tue May 09, 2023 2:46 pm

Does this schematic look correct? I really messed up the pins on the MBT3904
Attachments
esp32 schematic v2.pdf
(47.75 KiB) Downloaded 530 times

hpservertech
Posts: 7
Joined: Thu Feb 09, 2023 6:24 pm

Re: Serial issue

Postby hpservertech » Sat May 13, 2023 6:52 pm

Anyone have any thoughts?

MicroController
Posts: 1738
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Serial issue

Postby MicroController » Sun May 14, 2023 2:02 pm

1) No current limiting resistors on the bases of the NPNs
2) Swapped RTS/DTR signals.

Who is online

Users browsing this forum: No registered users and 87 guests