Page 1 of 2

ESP32 resets on mechanical shock

Posted: Thu Jul 04, 2019 12:51 pm
by GLFURTADO61
Hi
I have a project with ESP32 and GY521, powered by an ion-lithium rechargable battery, to measure the angular velocity of a door. All the connections are soldered.
It runs nicely, but when the velocity is high, there is a high slowdown when the door knocks.
Is there any known reason for this ? Is it possible that reset button (EN) inertia cause it?
Thanks in advance
Gustavo Furtado

Re: ESP32 resets on mechanical shock

Posted: Wed Jul 10, 2019 5:52 pm
by GLFURTADO61
Sorry. I noticed that I didn´t define the problem...
If I close the door with a somehow high velocity, ESP32 resets itself. Only and always above a certain velocity.
Has somebody have this kind of issue?
My board is Wemos ESP32 D1 Minikit and giroscope is GY-571.

Thanks in advance for any help.

Re: ESP32 resets on mechanical shock

Posted: Thu Jul 11, 2019 8:45 am
by ESP_Sprite
Strange. Perhaps one of your connectors is a bit wonky, and the acceleration makes it loose contact?

Re: ESP32 resets on mechanical shock

Posted: Thu Jul 11, 2019 12:08 pm
by PatrikB
Could also be the crystal oscillator, vibrations will modulate the output signal.

Re: ESP32 resets on mechanical shock

Posted: Thu Jul 11, 2019 10:54 pm
by GLFURTADO61
Hi ESP_Sprite
There is no conectors. All connections are made by soldering. I already bypassed the on/off switch, thinking like you, but nothing...

Hi PatrikB
I thougth this possibility. I posted this my issue to see if somebody had this problem, to share a possible solution...
I am working on it, but if one have a ligth please share with us...

Thank you for reply you two.

Gustavo

Re: ESP32 resets on mechanical shock

Posted: Fri Jul 12, 2019 1:27 pm
by ESP_Sprite
Theoretically, the only other thing I can think of is ceramic capacitors that are microphonic... theoretically, for instance, if the cap on the reset line had this really really bad, it could reset the chip. I doubt that this is the case, it's more of a problem in analog circuits.

Re: ESP32 resets on mechanical shock

Posted: Sun Jul 21, 2019 2:52 pm
by PatrikB
To test the hypothesis you could feed the ESP32 using an external signal generator through a flexible coax cable. Or try a MEMS based oscillator which should be more shock resistant than a crystal.

In one design I have seen the oscillator mounted on a cushion of foam to reduce vibrations/shock.

If you have access to a real-time spectrum analyzer you could use that to plot frequency vs. time (spectogram) to see how the oscillator behaves during the door closing.

Re: ESP32 resets on mechanical shock

Posted: Sun Jul 21, 2019 3:20 pm
by VladTheImpaler
Your 6050 data goes over an angular velocity limit and crashes the esp32? Try lowering the sensivity in the 6050 setup.
I do fly quadcopters with esp32 + mpu6050 and never have this problem, not even on "hard landings".

Re: ESP32 resets on mechanical shock

Posted: Mon Jul 22, 2019 8:10 pm
by GLFURTADO61
Good hint VladTheImpeler. I´ll try to reconfigure 6050 less sensive..
I´ll came back with results...
Thank you all for replies...

Re: ESP32 resets on mechanical shock

Posted: Tue Jul 23, 2019 5:44 pm
by GLFURTADO61
Hey VladTheImpeler
And what is the sensitivity of your 6050 (250 to 2000)? I had no success in this direction...
Maybe a poor power supply. What do you use as power supply for your quad-copter? What battery? Some capacitor, what value (uF)?
The answer for this questions may help me.
Thanks in advance...