Shop OBEX P1 Docs P2 Docs Learn Events
Servo32 and Parallax standard servo - Not turning 90 degrees — Parallax Forums

Servo32 and Parallax standard servo - Not turning 90 degrees

computer guycomputer guy Posts: 1,113
edited 2007-03-24 02:03 in Propeller 1
I have a parallax standard servo that came with my ping))) mounting bracket and am using it with my propeller board.

But when i use it with the servo32 object it only turns 45 degrees when i tell it to go 1000 and 45 degrees when i tell it to go 2000.

It centers perfectly in the middle at 1500 though, and yes i have tried 900 just to be silly and guess what nothing (didn't even turn, because 1000 - 2000 is full left to full right).


Any suggestions on what i can do to get it to turn 90 degrees.

Thank you smile.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-24 00:08
    The Set method in the servo32 object limits the pulse width to the range of 1ms - 2ms. You could try widening the range by modifying the limits in the Set method and experimenting with perhaps 0.5ms and 2.5ms for limits. I have a PING bracket and a Propeller and get about 180 degrees with a range of 0.55ms to 2.30ms.
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-03-24 00:12
    If you have another servo, try it because you may have gotten a bad one
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
  • computer guycomputer guy Posts: 1,113
    edited 2007-03-24 00:34
    Thank you Mike that did it. obviously parallax servos or any servo require a larger range than servo32 was originally designed for.

    Is it normal for the 5v regulator on the proto board to get warm. when you are powering a servo and a ping sensor?

    Thank you smile.gif

    Post Edited (computer guy) : 3/24/2007 1:58:12 AM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-24 02:03
    It doesn't take much current to warm up the regulator, particularly since it doesn't have a heatsink. I've got an xBee and Ping and, even if the switch is in position 1 (so the servos don't get power), my regulator is slightly warm.

    The PING sensor doesn't draw much current. A servo can draw more current (peak) than the regulator can handle. If you can run the servo off a separate 6V or 7.4V power supply, you'll avoid that. If your only power source is more than 7.4V, you'll need to use the 5V regulated supply or some other regulated supply.
Sign In or Register to comment.