Angle sensor

Discussion in 'General Electronics Chat' started by Dritech, Feb 21, 2014.

1. Dritech Thread Starter Well-Known Member

Sep 21, 2011
756
5
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.

Nov 9, 2007
5,005
515

Jan 11, 2009
820
47

4. bwilliams60 Active Member

Nov 18, 2012
734
94
Can you be more specific about size and space available as well as voltage and amperage specifications?

Dec 12, 2012
158
29
6. BillB3857 Senior Member

Feb 28, 2009
2,402
348
How about using an accelerometer. As an example, MXP7205VF will measure static acceleration (gravity).

7. THE_RB AAC Fanatic!

Feb 11, 2008
5,435
1,305
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.

8. Dritech Thread Starter Well-Known Member

Sep 21, 2011
756
5
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?

Sep 21, 2011
756
5
10. KMoffett AAC Fanatic!

Dec 19, 2007
2,586
234
Second this! How about a photo of the location where you are trying to mount an angle sensor? It may open up other possibilities.

Ken

11. THE_RB AAC Fanatic!

Feb 11, 2008
5,435
1,305
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.