Shop OBEX P1 Docs P2 Docs Learn Events
HitachiH48C3AxisAccelerometer — Parallax Forums

HitachiH48C3AxisAccelerometer

MorfeasMorfeas Posts: 2
edited 2008-11-17 18:07 in BASIC Stamp
I buy a 3 Axis Accelerometer and i try from the demo code. I want in this programm to use the <if..then>·with a value·and send high low in one output when my robot it is in wrong angle. Please tell me what value in the demo code i can use to do this.

Comments

  • SRLMSRLM Posts: 5,045
    edited 2008-11-16 22:28
    Use the gForce variable. Note that the demo code uses the same variables for each axis, and simply displays them in different places each time through the loop.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-11-17 17:32
    Hello,

    This sensor question is being moved to the BASIC Stamps forum. Sorry for any inconvenience this has cause. The sensors forum is being removed. Please see announcements for further details. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • MorfeasMorfeas Posts: 2
    edited 2008-11-17 18:07
    sorry for the wrong forum. The gforce variable is not a one value all the time i think and i have problem to trig a output when the robot is in wrong place. Can you write to me a simple code with all the g value in different variable? Thanks
Sign In or Register to comment.