Angle sensor

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

  1. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    761
    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.
     
  2. studiot

    AAC Fanatic!

    Nov 9, 2007
    5,005
    519
  3. russ_hensel

    Distinguished Member

    Jan 11, 2009
    821
    49
    how about a trim pot, about 1/4 inch around.
     
  4. bwilliams60

    Active Member

    Nov 18, 2012
    841
    136
    Can you be more specific about size and space available as well as voltage and amperage specifications?
     
  5. Ian Rogers

    Member

    Dec 12, 2012
    158
    29
  6. BillB3857

    AAC Fanatic!

    Feb 28, 2009
    2,417
    353
    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,309
    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
    761
    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?

    Thanks in advance.
     
  9. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    761
    5
  10. KMoffett

    AAC Fanatic!

    Dec 19, 2007
    2,641
    249
    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,309
    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.
     
Loading...