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?
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?
Yeah I've done that method already. I just wanted to try something else
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.
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.