Angle sensor

Thread Starter

Dritech

Joined Sep 21, 2011
907
Hi all,

Is there a sensor / module which outputs a analogue voltage with angular change? I want to use it for monitoring an object which will rotate 180 degrees. The reason for not using a potentiometer is because I am limited with space.

Any kind of help will be appreciated.
 

THE_RB

Joined Feb 11, 2008
5,438
Ebay has tiny $4 accelerometer modules that output 3 linear voltages for the 3 axes. They have three output wires, marked; X Y Z.

To compute rotary angle you will need to measure two axis voltages and do some simple sine/cos math.
 

Thread Starter

Dritech

Joined Sep 21, 2011
907
Hi,

Thanks for the replies. The tutorial in the link below shows how to use 2 axis for measuring the angle, but the problem is that apparently one can only monitor an angle less than 90 degrees. Is this true? and how accurate can I get?

Thanks in advance.
 

THE_RB

Joined Feb 11, 2008
5,438
...
Thanks for the replies. The tutorial in the link below shows how to use 2 axis for measuring the angle, but the problem is that apparently one can only monitor an angle less than 90 degrees. Is this true? and how accurate can I get?
...
The analogue accelerometers output a voltage representing the G force of gravity. The voltage is centred. (For example) 2.5v for 0G, and 1v for +1G (upright) and 4v for -1G (upside down).

So the voltage will show all angles not just 0-90', but you need two axes and work from sin/cos of the two voltages.

It sounds tricky but is very simple in software. There are tons of "DIY accelerometer inclinometer" projects you could google.
 
Top