I have an issue which drives me crazy in the last week.
Long story short: i have an ESP32 custom board which drives a relay, which I plan to use it to control a water pump. There is a pressure sensor, and a flow meter connected to the board. All pretty simple. I wrote a small Android application which communicates over BLE with ESP32 to set-up the running parameters.
The board is designed by myself and i have used it in several applications around my home since 2 years. I had no single hardware issue.
All good, but during final tests i started to face random hardware reset... or something which makes my board to reboot. And this reset happens randomly. It might take few seconds or few minutes. I call it hardware reset because it behaves like i push the reset button. The console, connected over JTAg/USB , display only this message
--- Error: ClearCommError failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
--- Waiting for the device to reconnect
And after that i see the logs from the boot sequence. No brownout, no sw crash, nothing.
Since i struggle with this issue I changed everything: cables, connectors, esp32 module, shield board ... everything.
The only way i can avoid the reset is to solder a floating wire (~8cm) to the enable pin of the module. Avoiding here means that in more than 2hrs i got no reset.
Did anybody face similar issues and found the cause?
Does this floating, wire soldered to EN pin, have some meaning for someone of you?
Any suggestion is more than welcome.
random hardware reset
Re: random hardware reset
Please post the schematic and the PCB design of that board.Long story short: i have an ESP32 custom board which drives a relay
Re: random hardware reset
Here they are
Thera are 3 shields mounted in a sandwich.
From bottom to top: 1 - relay shield, 2 - cpu, 3 - leds and sensors shield
On the relay shield board only 1 relay is populated
the floating wire i'm talking about is soldered to J2 Reset - pin 2
Hope the resolution is good enough to get the needed details
Thera are 3 shields mounted in a sandwich.
From bottom to top: 1 - relay shield, 2 - cpu, 3 - leds and sensors shield
On the relay shield board only 1 relay is populated
the floating wire i'm talking about is soldered to J2 Reset - pin 2
Hope the resolution is good enough to get the needed details
Re: random hardware reset
I'm not seeing much bulk decoupling capacitance - 3x100nf at some ics and that's about it. I'd put some large-ish (say 22uF to 100uF) capacitors between 3.3V and ground and 5V and ground. Not having much decoupling can be an issue as you're switching inductive loads, namely the relay coils.
Re: random hardware reset
Thanks @Sprite for your quick review.
+5V already has 2x100uF caps. 1 on the power board and 1 on the sensors shield (not shown in the schematics, because i added it later to reduce the noise at the ADC level). Will place another 100uF on 3.3V and let you know if any improvment.
Anyway the issue happens no matter the relay is switched or not.
+5V already has 2x100uF caps. 1 on the power board and 1 on the sensors shield (not shown in the schematics, because i added it later to reduce the noise at the ADC level). Will place another 100uF on 3.3V and let you know if any improvment.
Anyway the issue happens no matter the relay is switched or not.
Re: random hardware reset
I place the cap but it doesnt help
Anyway its a good finding. Will keep it there.
Anyway its a good finding. Will keep it there.
Re: random hardware reset
No, nothing connected. Just a 2 pin header, the same like IO0, just in case i need to plug a switch.
Yesterday i tested it "in production" with the pump and sensors connected and all good but with the floating wire connected.
Its amazing and puzzling how that bloody wire does the trick!?!?!?!
Yesterday i tested it "in production" with the pump and sensors connected and all good but with the floating wire connected.
Its amazing and puzzling how that bloody wire does the trick!?!?!?!
Re: random hardware reset
It's odd for sure. Do you have more boards like these, and do they have similar issues?
Who is online
Users browsing this forum: No registered users and 3 guests
