Shop OBEX P1 Docs P2 Docs Learn Events
Why does my Ping Servo do this? — Parallax Forums

Why does my Ping Servo do this?

DouglasDouglas Posts: 8
edited 2009-04-21 12:08 in BASIC Stamp
Hi,

· I got my Ping Servo install and working, but I've noticed one thing;··· When the Ping Servo moves to the Left Limit (of 1250) in a FOR NEXT loop, it goes to 180 degrees left, but when the loop is done, the Ping Servo moves slightly to the right.· I have a video, but it's 7 megs.· Too big to upload to the forum, but I've uploaded my code.· Any assistance would be greatly appreciated.

Doug

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-04-20 22:21
    Are you sure that you want those values for left and right? Technically, the servo is supposed to operate on a 1-2 ms pulse. Some servos have variations in manufacture where the left and right bounds are somewhere else, but normally you only want to pulsout (with BS2 or BS2e) 500 - 1000.
  • DouglasDouglas Posts: 8
    edited 2009-04-21 01:20
    Hi,

    · I tried 500 and 1000.· I get 45 degree movements.· I took the pause statements out and got smooth movement.· I just slowed it down for cal.· My intent is to do a couple 180 degree scans to determine best path to take.



    Doug
  • roadrunner3groadrunner3g Posts: 36
    edited 2009-04-21 12:08
    you may have reached the servos end limit. try readjusting center pulsout with 745 or 755 +-# as needed and recentering the ping on the servo.
Sign In or Register to comment.