Shop OBEX P1 Docs P2 Docs Learn Events
H48C 3-Axis Accelerometer — Parallax Forums

H48C 3-Axis Accelerometer

MTompsonMTompson Posts: 4
edited 2008-03-21 22:16 in BASIC Stamp
Hello
Does anyone have any example code to output some angles in degrees from the H48C ? I have the sample program from the product page but can't see a way to get the angles from the outputs that program produces, i have a rough idea but would love some help...
many thanks for any help
Mark

Comments

  • Leo.KLeo.K Posts: 21
    edited 2008-03-21 03:51
    Hi Mark,

    Did you ever manage this?

    Leo
  • MTompsonMTompson Posts: 4
    edited 2008-03-21 20:14
    Hi Leo

    No, I'm afraid not, I dropped that project a while ago now ( but I'll be back smile.gif )

    If you do get anywhere I would still be interested...

    Mark
  • Leo.KLeo.K Posts: 21
    edited 2008-03-21 22:16
    Hi Mark,

    I was looking for a similar solution but I found I couldn't do mine as my accelerometer would also be moving. Which meant that accelerations would be present on the axis as well as some gravity component. As it wasnt possible to determine where the values were coming from ( gravity or actual acceleration ) I had to give up. I would be able to do it but I'd also need a gyroscope which may also have helped you solve your problem.

    If your accelerometer is stationary, I believe you could calculate the percentage of "g" on each axis and calculate angles from there. I think! People's general feelings where that an accelerometer wasnt the right equipment to do it. There are gyroscopes with built in accelerometers that would help solve your problem. I can send you the name of them if you like.

    My project isn't over yet so if I happen to find out any more I will certainly let you know,

    Leo
Sign In or Register to comment.