We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Hey some one else debating here in the of mine...I just posted only once... But so many irrelevent comments...i hope this forumn is to help other if they don't know. But peoples are mocking here
"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...