Comparing "z coordinate" between 2 sensors

Hi, I'm new to arduino and I am struggling to proceed with my project.

I'm tyring to using 2 gyro sensors to find the "z-coordinate" difference between them.

I need to make a system that has to have two points 20~30cm apart in z-direction only. I don't need the distance. Just the z-coordinate difference (let's say vertical distance).

Is it possible to implement this using 2 gyro sensors?

Try using a paper sketch to tell what's it all about.

1 Like

So what I'm trying to do is to build a system that inhibits electric scooter users from riding without wearing a helmet. When a person doesn't wear it (say, they just hang it on the handle), it will make a beep sound. So I just want to compare two sensors, whether they are at least 20cm apart (only in 'z direction').
One will be attached on the handle, and the other on the helmet. Does that make sense to you?

Thanks. I don't see how gyros will measure distance.
Distance measuring like this, in general, is often asked for but not often solved.

Maybe it's easier to have a sensor inside the helmet so you can tell if it's being worn or not.

1 Like

Yeah I've done that method already. I just wanted to try something else :confused:

Maybe if I just use one gyro sensor and double integrate it and see if the z-coordinate fluctuates (from original reference value) by large amount or not.

Would that work?

IMUs have too much drift for that to work for long. You'd be better off using pressure sensors to measure height. Although any sensor sensitive enough to report a 2' different in height (in air) will probably produce too much noise to be usable.

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