Shop OBEX P1 Docs P2 Docs Learn Events
Servos and The Hitachi accelerometer. — Parallax Forums

Servos and The Hitachi accelerometer.

Brian5084Brian5084 Posts: 9
edited 2008-11-27 12:05 in Learn with BlocklyProp
How do I get the servo to turn in direct proportion to the x axis tilt?

Thanks in advance.

Brian

Comments

  • SRLMSRLM Posts: 5,045
    edited 2008-11-27 06:19
    Please do not cross post. You posted the question in your other thread, and that's where I replied. You can use the X in the top right hand corner to clean up this one.

    Cheers.
  • sylvie369sylvie369 Posts: 1,622
    edited 2008-11-27 12:05
    There is some really good stuff on this in the "Smart Sensors" text, page 76. You can download it here:

    www.parallax.com/Portals/0/Downloads/docs/prod/sic/3rdPrintSmartSensors-v1.0.pdf

    You'll need to be able to read the accelerometer, and you'll need to be able to send controls out to your servo to get it to rotate to a particular orientation. I assume you can do those two things, and that what you're looking for is help on the "in-between stuff". If not, you should read the documentation on the accelerometer and on the servo first, and get comfortable with those.
Sign In or Register to comment.