ESP32 resets on mechanical shock

GLFURTADO61
Posts: 6
Joined: Thu Jul 04, 2019 12:37 pm

ESP32 resets on mechanical shock

Postby GLFURTADO61 » Thu Jul 04, 2019 12:51 pm

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

GLFURTADO61
Posts: 6
Joined: Thu Jul 04, 2019 12:37 pm

Re: ESP32 resets on mechanical shock

Postby GLFURTADO61 » Wed Jul 10, 2019 5:52 pm

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.

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

Re: ESP32 resets on mechanical shock

Postby ESP_Sprite » Thu Jul 11, 2019 8:45 am

Strange. Perhaps one of your connectors is a bit wonky, and the acceleration makes it loose contact?

PatrikB
Posts: 16
Joined: Tue Aug 07, 2018 7:43 pm

Re: ESP32 resets on mechanical shock

Postby PatrikB » Thu Jul 11, 2019 12:08 pm

Could also be the crystal oscillator, vibrations will modulate the output signal.

GLFURTADO61
Posts: 6
Joined: Thu Jul 04, 2019 12:37 pm

Re: ESP32 resets on mechanical shock

Postby GLFURTADO61 » Thu Jul 11, 2019 10:54 pm

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

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

Re: ESP32 resets on mechanical shock

Postby ESP_Sprite » Fri Jul 12, 2019 1:27 pm

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.

PatrikB
Posts: 16
Joined: Tue Aug 07, 2018 7:43 pm

Re: ESP32 resets on mechanical shock

Postby PatrikB » Sun Jul 21, 2019 2:52 pm

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.

VladTheImpaler
Posts: 16
Joined: Fri Jul 05, 2019 4:35 am

Re: ESP32 resets on mechanical shock

Postby VladTheImpaler » Sun Jul 21, 2019 3:20 pm

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".
Attachments
DSC02364.jpg
DSC02364.jpg (1.06 MiB) Viewed 685 times

GLFURTADO61
Posts: 6
Joined: Thu Jul 04, 2019 12:37 pm

Re: ESP32 resets on mechanical shock

Postby GLFURTADO61 » Mon Jul 22, 2019 8:10 pm

Good hint VladTheImpeler. I´ll try to reconfigure 6050 less sensive..
I´ll came back with results...
Thank you all for replies...

GLFURTADO61
Posts: 6
Joined: Thu Jul 04, 2019 12:37 pm

Re: ESP32 resets on mechanical shock

Postby GLFURTADO61 » Tue Jul 23, 2019 5:44 pm

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...

Who is online

Users browsing this forum: No registered users and 2 guests