ESP32 Resets after a Mechanical Shock

devanshtangri
Posts: 1
Joined: Wed Nov 13, 2024 7:40 pm

ESP32 Resets after a Mechanical Shock

Postby devanshtangri » Wed Nov 13, 2024 7:42 pm

devansh_tangri

2
8mpost #1
Hi Everyone,

I am using ESP32 Cam (I know poor choice but i make use of what's laying around) and I've made a system that uses IR Proximity Sensor installed on my cycle and connected and I'm using Blynk app to show the data like speed and distance covered.

When I first made it, it was as simple as this and the board was mounted using hot glue and little bit of tape, jumper wires soldered directly to the sensor and micro USB to power the board. It worked flawlessly other than it losing wifi connection using my hotspot once or twice during my trip.

Then a few days ago i decided to add buttons and led lights to work as an indicator so I made all the connections and the necessary stuff for it to all work (Like using 555 Timer IC for indicator blinking, relay board, a boost convertor to convert 5V to 12V for the LED) on a perfboard but I used female header for the ESP. The perfboard has a screw type power header and is connected to a power bank using a stripped usb cable which I know is not broken from the insides, already tested that.

The problem I'm facing now is that a little big mechanic shok seems to reset the ESP and then it reconnects back showing the data once again. It's happening too frequently like on every road bump. If I'm using indicators then it may stop if I encounter a bad patch of road.

This didn't happen earlier, the connections are proper and soldered other than the fact that ESP sits on a header.

I've tried soldering a 3300uF capacitor directly to the 5V and Ground pin to hopefully fix if this was a wiring issue but didn't help. My next process of debugging this would be to directly solder the positive and negative of the USB cable to 5V and Ground pin.

If it doesn't reset, then it means I did a sloppy job on the perfboard, but if it does then it could only mean one out of two things, either the wire is broken (Highly Unlikely) or mine ESP32 is sensitive to mechanical shocks. But if that's the case why didn't it happen earlier when it was just ESP and the Sensor?

Thanks, and sorry for long question.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Resets after a Mechanical Shock

Postby ESP_Sprite » Thu Nov 14, 2024 1:37 am

Odd. There's nothing in the ESP32 that would be affected by a shock. (Ceramic capacitors can be, but they aren't in a position that can generate a reset, from what I know.) Maybe take the project back to the bench, apply an oscilloscope to relevant points on the PCB and shock it, see if the signal changes?

Who is online

Users browsing this forum: No registered users and 75 guests