Shop OBEX P1 Docs P2 Docs Learn Events
newb question, could someone explain to me why the ServoPAL is necesary? — Parallax Forums

newb question, could someone explain to me why the ServoPAL is necesary?

NewJerseyTNNewJerseyTN Posts: 14
edited 2007-12-14 22:16 in Robotics
Parallax is selling this device called the ServoPAL that sits inline between the basic stamp and a servo continually sending pulses.· So one pulse is sent from the Basic Stamp and the ServoPAL keeps sending that pulse to the servo until another pulse is received from the Basic Stamp.· I was under the impression that with regular servos one pulse was sufficient to set it to a position AND maintain that position until another pulse was recieve.· I guess this might be usefull with a continuous rotation servo since those turn a certain amount with each pulse.· I guess my question is if I want to have a regular servo maintain a certain position against load do I need to keep pulsing or is one pulse sufficient.

Comments

  • Steve JoblinSteve Joblin Posts: 784
    edited 2007-12-14 15:18
    you will still need to send pulses with an unmodified servo... the pulses are what tells the servo what position it should have... as soon as the servo starts to move from that position, it will detect a difference and work to correct it... this constant correction is what helps the servo maintain its position. As soon as you stop sending pulses, the servo will "relax" and you can easily rotate the servo by hand, while you are sending pulses, the servo will fight to keep its position if you try to rotate it by hand.
  • NewJerseyTNNewJerseyTN Posts: 14
    edited 2007-12-14 15:25
    Thanks Steve, I read another page just after I posted that and realized I had misunderstood what I had read about "a servo will maintain position". So my code will have to either loop in under 20ms or I need to get a servoPAL for each discrete line to a servo. For the project I'm looking at some of the servos won't have alot of load so I'm wondering if I can get away without it on those servos.
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-14 15:51
    The main issue is what else you're trying to do between these servo pulses. 20 ms is not a huge amount of time. If you're trying to control 3 servos, the pulses themselves will take up to 7-8ms out of that leaving 12 ms. That leaves about 48 PBasic instructions and most PBasic statements take more than one instruction. You can't do much computation during that time. If your program is simple, that's fine. If you want to read several sensors and search a table for information, you may be out of luck ... hence the servoPAL and other external servo controllers. There are plenty of examples of object avoidance and other fancy stuff using just a BS2 in a BOEBOT so it can be done without the separate servo controller.
  • crgwbrcrgwbr Posts: 614
    edited 2007-12-14 20:00
    NewJerseyTN said...
    I guess this might be usefull with a continuous rotation servo since those turn a certain amount with each pulse.

    Unfortunately, thats not quite accurate. On a continuous rotation servo, the pulse length tells the servo a direction and a speed, not the amount to turn. For that, you'll need an wheel encoder.

    Regards,
    Craig

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.

    "If Python is executable pseudo code, then Perl is executable line noise."

    "Failure is not an option -- it comes bundled with Windows."

    Use The Best...
    Linux for Servers
    Mac for Graphics
    Palm for Mobility
    Windows for Solitaire
  • NewJerseyTNNewJerseyTN Posts: 14
    edited 2007-12-14 21:46
    Ok, related question. Does anyone know if the Parallax serial servo controler that you can connect to the BOE sends constant pulses like the servoPAL?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-14 21:49
    The Parallax Servo Controller works differently, but it does send servo pulses about every 20ms just like the servoPAL.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-14 22:16
    NewJerseyTN said...
    So my code will have to either loop in under 20ms or I need to get a servoPAL for each discrete line to a servo.
    Actually, one ServoPAL will control two servos.

    -Phil
Sign In or Register to comment.