Shop OBEX P1 Docs P2 Docs Learn Events
PSC Servo operation — Parallax Forums

PSC Servo operation

Brian CarpenterBrian Carpenter Posts: 728
edited 2005-08-22 03:19 in BASIC Stamp
i am trying to make a program that will read a Memsic sensor and depending on weather x is 6900<x<6700 it will move a servo "left" or "right"· i only want the servo to move 45 degrees "left" or 45 degrees "right"· right now the program makes the servo max to its limit and stay there.· i want to be able to tip the Memsic and get a response from the servo.· thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


It's Only A Stupid Question If You Have Not Googled It First!!

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-22 03:19
    Hello,

    ·· Do you want to move the servo proportionally to the tilt within 45 degrees?· Or are you just trying to get 45 degrees currently instead of full turn?· If that's all you're trying to do all you need to do is adjust the 500 and 800 pulse width values for where they need to be for your servo.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.