Absoloute rotary encoders are expensive, I would suggest what you need here are three simple tilt switches mounted at the appropriate orientation.
Otherwise go for an accelerometer.
Absoloute rotary encoders are expensive, I would suggest what you need here are three simple tilt switches mounted at the appropriate orientation.
Otherwise go for an accelerometer.