Can I detect that an object is moving in the vertical direction using the mpu6050 sensor?

0

I have mpu6050 sensor and esp32.I will hang my mpu6050 sensor in a well, I want to find out whether it is hung in the well or not from the mpu6050 sensor. How can I do this or can it be done with this sensor? The sensor will be inside a casing and I want to detect it when it touches the ground, how do I do this?

I'm trying to do this by taking acceleration data. Since the sensor will be perpendicular to the y axis, I expect an acceleration of 9.8 m2/s or more. I do not expect any acceleration in the X and Z axis, but I can ignore small accelerations since it will oscillate while hanging into the well. I have no idea how to detect it when it touches the ground. Maybe I can determine a threshold value from the fluctuations in the acceleration value, but I am not sure if the same threshold value will be read every time it lands on the ground.

How fast/slow will it hit the ground? Will it tip when it hits?

Are you lowering it from a wire and bumping it on the ground by hand and waiting for a signal?

These small oscillations might reduce significantly when it’s sitting on the bottom and their presence or absence might tell you what you want.

It is not clear how fast or slow on the ground.
It will be lowered from the well to the ground with a reel.

The acceleration data comes very sensitive when I move the sensor. Is there a filter that I can read more accurately and properly?
I think it will be stuck on angle, even if there is no complete overturning when it touches the ground.

If you made a cone shaped enclosure and mounted 4 tilt switches on the base of the cone and then lowered the cone downthe well pointy end first, then one or more of the switches should close when it hits bottom and falls on it's side
If I can draw a picture I will.

2 Likes

An angle should be easy to measure with the MPU6050.

It sounds like you have a device on hand. Wire it up, use some demo examples from your library to calibrate it and make it operate, then hook it to a string and take some data.


it looks like this.
The second part was made of iron for weight.
I dont have a switch and i am wondering can i understand only using mpu6050.
Can I determine a threshold value for the acceleration value and understand it based on that value?
How should I configure the mpu6050?
There are 2g, 4g, 8g and 16g settings in the data sheet.
Which library should I use? I am currently using Adafruit mpu6050 and there are 3 or 4 more mpu6050 libraries.

I have no recommendations on using an accelerometer for your application.

1 Like

How fast are you lowering it? From your sketch, assuming it is in a close-fitting tube, it looks like it has to come to a stop on the order of about 0.1m, and you could find the (de)acceleration from:

v^2 = (v_0)^2 + 2*a*s

with v=0, s=0.1m so a = -(v_0)^2/(2*s)

The faster you lower it, the harder the jolt/larger the deceleration when it stops, and the larger your threshold could be.

This is not a well, it is the enclosure itself where I put the esp32 and mpu6050.
The wells will vary between 10 meters and 40 meters.
I read in a few forum posts that reading acceleration data from mpu6050 would not give accurate results.
I was thinking of doing it as you said, I guess there is no other way to determine the threshold value other than trying it in a field test.

1 Like

I meant that if the well is close in diameter to that housing, the furthest the bottom mud could displace would be to fill up the space outside the cone, and make the deceleration distance be the height of the cone. (Actually just 2/3 the height of the cone, since a cone is 1/3 the volume of its cylinder.) I guessed ~10cm and popped it into that kinematic equation of motion.

If you are lowering it at 1m/s and it decelerates evenly as the cone sinks 10cm into the mud, then you'd get a spike of a=-(1^2)/((2*-0.1)=5m/s^2, or about 0.5g. That should be easy to detect. A harder bottom would stop quicker, and a slower lowering would need less deceleration to stop.

So how will you know when it hits bottom?
Are there wires connected to the device that go to the surface with a display or something?

1 Like

We have a battery and we provide power from the battery.
That's exactly what I'm asking, how can I tell if it's touching the ground?
A threshold value can be determined and control can be achieved from that threshold value.
I'm not sure how to determine the threshold value.
I am thinking of writing the sensor data to esp32 and then transferring it via Bluetooth, which section of esp32 should I use for this?
How can I get rid of the noise of acceleration data?

If there is water in the well, Bluetooth won't work and probably won't work in a metal pipe. If the antenna isn't pointing straight up it also may not work.
Are you trying to measure the depth of the well.

As I have already said I can't recommend the use of an accelerometer in your application.

Yes, I am trying to measure the depth of the well, but I will not do this with mpu6050.
I want to detect with mpu6050 whether the design whose image I posted above has actually been lowered into the well.
To do this, I try to detect vertical movement or try not to see any horizontal movement.
Or I'm asking if anyone has a better method for this.
Transfer via Bluetooth: The sensor data will be recorded locally on the eSP32 while it is in the well, and then transferred via Bluetooth when the equipment comes to the surface.
The device consists of two parts: the upper part is plastic, the lower part is metal, and the part containing the esp32 and mpu6050 is plastic.
Also, to which part of the esp32 should I write the sensor data? Is there enough space to save the sensor data?
I am also thinking of deleting this data after transferring it via Bluetooth, this way I want to avoid the memory space problem.
Is this something sustainable?

So you would need to calculate the speed of your probe and measure the time it took from the instant you dropped it till it hit bottom. Then compute the distance from those measurements.
Well, maybe an expert who has done this before will come along and tell you how to do it.

Actually, I have a pulley above and I can sense how far it will go into the well from the pulley that lowers the prop.
If anyone has any other ideas on this subject, I need your suggestions and advice. However, there must be a system that takes precautions against manipulations.
But I need to understand whether this movement occurred in the vertical direction.

Then I see no use for the ESP or accelerometer.

I use esp32 an mpu6050 to prevent manipulation by moving it horizontally instead of hanging it into the well. as i said.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.