I am creating a project that needs to detect a change in tilt. Say its like a garbage shoot bin door. When its open, the door changed about 15 degrees. I don't need to ever know the exact angle, just when it changes and when it goes back to original. (see image)
I originally bought this tilt sensor but the ball bearing isnt sensitive enough, basically it seems like I have to tilt a full 180 for it to detect. But the simplicity of the code was right, either the switch was at LOW or HIGH (tilted or not). When it was tilted I did one function, when it was not I performed a different one.
So then I bought this Accelerometer. This might be overkill since I don't need to know exact angles, just either its not changing (stationary) or its moved open.
Lastly I came across a Gyro that tells tilt change. I admit I dont know much about this so not sure if this will work.
A tilt sensor or accelerometer will work, but a gyro probably won't, because gyros drift.
A switch type tilt sensor is the easiest to use. If the first one you tried did not work, try a different type. Much easier than using an accelerometer. These will certainly work, but it is illegal to ship mercury in many countries.
packytagliaferro:
I am creating a project that needs to detect a change in tilt. Say its like a garbage shoot bin door. When its open, the door changed about 15 degrees.
Door/window alarm sensors (reed switch with bar magnet) do just that.
And they are probably more garbage resistant than optical or other sensors.
Leo..