custom ESP32 board produces "garbage" on serial
custom ESP32 board produces "garbage" on serial
I'm having some trouble with a ESP32 based custom board I had created recently. I had 5 prototypes created, 3 of them work fine, but 2 of them only spit out garbage on the serial output, like this:
I can't get these boards into programming mode, not even when I manually pull gpio0 lo and reset them.
The board is using a ft232rl ic as usb to serial bridge.
The odd thing is that with a previous batch of prototypes, I had the same kind of problem (2 out of 4 boards working) while using a different usb to uart bridge (CP2102N) and while having them assembled at a different party.
I tried reflowing the boards, but that did not make any difference (although that could easily be due to my soldering skills).
Is there anything I can do in my design to prevent these kind of issues?
I can't get these boards into programming mode, not even when I manually pull gpio0 lo and reset them.
The board is using a ft232rl ic as usb to serial bridge.
The odd thing is that with a previous batch of prototypes, I had the same kind of problem (2 out of 4 boards working) while using a different usb to uart bridge (CP2102N) and while having them assembled at a different party.
I tried reflowing the boards, but that did not make any difference (although that could easily be due to my soldering skills).
Is there anything I can do in my design to prevent these kind of issues?
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: custom ESP32 board produces "garbage" on serial
Hi,
Maybe sharing your schematic/design could let others help you!
Maybe sharing your schematic/design could let others help you!
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: custom ESP32 board produces "garbage" on serial
Generally, given that there's some repeating boot messages in your terminal, I suggest you check your power supply. If the ESP32 gets 3.3V somehow, but the power supply can't even deliver enough current to get through the initial boot process, this is something you can see.
Re: custom ESP32 board produces "garbage" on serial
Sorry, forgot to attach the schematic
I basically started out with the schematic of the Adafruit Huzzah32 and adopted it to my needs
I basically started out with the schematic of the Adafruit Huzzah32 and adopted it to my needs
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: custom ESP32 board produces "garbage" on serial
Hi,
Not sure if I can read the part numbers properly. The image is in low resolution for me.
As my colleague ESP_Sprite mentioned, you need to be sure that you are providing enough current or using a good quality USB cable (if powering using USB).
I think you are using the AP2112 LDO. Is that right?
Not sure if I can read the part numbers properly. The image is in low resolution for me.
As my colleague ESP_Sprite mentioned, you need to be sure that you are providing enough current or using a good quality USB cable (if powering using USB).
I think you are using the AP2112 LDO. Is that right?
Re: custom ESP32 board produces "garbage" on serial
One more question, what XTAL you are using?
Re: custom ESP32 board produces "garbage" on serial
Hi,
Sorry for my late reply. I'm indeed using the AP2112 3.3.
What do you mean by xtal? I do not have any crystal on the board I believe.
Sorry for my late reply. I'm indeed using the AP2112 3.3.
What do you mean by xtal? I do not have any crystal on the board I believe.
-
- Posts: 9770
- Joined: Thu Nov 26, 2015 4:08 am
Re: custom ESP32 board produces "garbage" on serial
+1 for a better resolution schematic. How is your LiIon fuel gauge connected, btw? Because as it is, I see a 0.01 resistor effectively shorting Vbat and +3.3V... the ESP32 is not gonna like running from a fully charged LiIon in that case.
Re: custom ESP32 board produces "garbage" on serial
Attached a better resolution image
The fuel gauge (BQ27411) circuit does indeed have a 0.01 ohm resistor between 3.3v and VBATT, I copied that part of the circuit from the sparkfun battery babysitter: https://cdn.sparkfun.com/assets/learn_t ... ematic.pdf and it does seem to work well for the boards that do not produce "garbage".
One more note about the AP2112, I do have another issue that when the ESP32 is in deep sleep, the board still uses to much power (3mA), so I am considering swapping the AP2112 for a different LDO. I found this guide in which they conclude that the LDO on the FireBeetle (RT9080-33GJ5 ) consumes less power, so I might go for that one.
The fuel gauge (BQ27411) circuit does indeed have a 0.01 ohm resistor between 3.3v and VBATT, I copied that part of the circuit from the sparkfun battery babysitter: https://cdn.sparkfun.com/assets/learn_t ... ematic.pdf and it does seem to work well for the boards that do not produce "garbage".
One more note about the AP2112, I do have another issue that when the ESP32 is in deep sleep, the board still uses to much power (3mA), so I am considering swapping the AP2112 for a different LDO. I found this guide in which they conclude that the LDO on the FireBeetle (RT9080-33GJ5 ) consumes less power, so I might go for that one.
Re: custom ESP32 board produces "garbage" on serial
I think you are misunderstanding the sparkfun schematic. It should go battery->resistor-->vbat. Vbat is not directly connected to the battery.
Who is online
Users browsing this forum: No registered users and 64 guests