This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

To find angle made by accelerometer

Hi
How to find the angle made by the accelerometer using arm lpc2138 ? also help me to implement the cordic algorithm to find arctan ?

Thanks in advance

Parents Reply Children
  • "I have connected the analog accelerometer and converted the analog input to digital output. i wanted to measure the tilt angle made by the accelerometer. how to find the tilt angle using cordic algorithm."

    Presumably, you have a 3-axis accelerometer? You need at least 2 axes to measure tilt...

    Finding the tilt is then a matter of doing some trigonometry on the separate signals.
    Think about how you would do this with pencil & paper - this part has nothing specifically to do with electronics, or microcontrollers, or CORDIC algorithms.

    CORDIC provides a simple and efficient way to calculate trigonometric functions

    en.wikipedia.org/.../CORDIC

  • Actually, I guess you could use just one axis provided your system is suitably constrained...

  • ... you could try something like this to see what you get from an accelerometer:

    play.google.com/.../details

    (I guess there'll be similar stuff for other devices)

  • Hi The apps works great.. but it was not showing the tilt angle made by the accelerometer. I wanted to find the tilt made by accelerometer. Is there any method for finding that.. ?

    Thanks

  • You missed my point!

    The apps demonstrate the outputs that you get from an accelerometer; I suggested that you use this to think about how you could deduce tilt from that information.

    Again, it is really just basic trigonometry.

    Probably the sinlge biggest market for MEMS accelerometers today is in phones and similar devices precisely for determining how the screen is being tilted so that the display can be adjusted accordingly. So it is a very well-known and well-documented subject - just a little googling should soon get you plenty of information...