Accelerometer reading


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Accelerometer reading

    Hi everyone,
    I know this may very easy to some, but can you advice me how to interpret the following values bellow received from USART in order for me to turn a motor clockwise or counter clockwise.
    Code:
    x -17 y 40 z -39
    x -17 y 38 z -35
    x -17 y 39 z -36
    x -15 y 41 z -34
    x -14 y 41 z -34
    x -14 y 43 z -34
    x -14 y 42 z -33
    x -13 y 42 z -34
    x -12 y 42 z -34
    x -13 y 43 z -35
    These values came from a mobile phone with accelerometer sensor.

    Thanks in advance,
    joe

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Accelerometer reading

    It might help to know what the readings are with the phone vertical, about 45 degrees to the right, 90 degrees to the right, and the same for the left. I don't quite understand what you are trying to do. Are you trying to make an application that reads the tilt of your phone?

    I wrote some code for tilt sensing, but my accelerometer only gave me positive values (from analog ports). Its a little complex figuring out actual degrees. Might be easier to figure out just which way you are turning it.

    http://www.picbasic.co.uk/forum/cont...-axis-g-sensor

  3. #3


    Did you find this post helpful? Yes | No

    Thumbs up Re: Accelerometer reading

    Quote Originally Posted by scalerobotics View Post
    It might help to know what the readings are with the phone vertical, about 45 degrees to the right, 90 degrees to the right, and the same for the left. I don't quite understand what you are trying to do. Are you trying to make an application that reads the tilt of your phone?

    I wrote some code for tilt sensing, but my accelerometer only gave me positive values (from analog ports). Its a little complex figuring out actual degrees. Might be easier to figure out just which way you are turning it.

    http://www.picbasic.co.uk/forum/cont...-axis-g-sensor
    Thanks for the info and link, scalerobotics...appreciated it very much.

    regards,
    joseph

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts