Shop OBEX P1 Docs P2 Docs Learn Events
Digital Servos — Parallax Forums

Digital Servos

David CalkinsDavid Calkins Posts: 4
edited 2005-11-03 08:05 in Robotics
Is there special BASIC to control digital servos over analag servos on the BOE? (using HiTec HS-5645MG's...)

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-10-26 00:33
    David,

    ·· To my knowledge most Digital Servos are completely compatible with standard Analog Servos.· Given that then you should be able to use the same commands.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • David CalkinsDavid Calkins Posts: 4
    edited 2005-11-02 23:37
    Doesn't seem to be working...

    Perhaps it's just that I'm used to continuous rotation servos, and this is for a normal servo - changing from a neutral position to +/- 90 deg in varying positions.

    PULSOUT 12, 550 (for example) just makes the thing all twitchy...

    Should I be using another command?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-02 23:54
    Are you using a PAUSE 20 between each iteration of your loop?· If not that could explain that.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • David CalkinsDavid Calkins Posts: 4
    edited 2005-11-03 01:15
    I was - but that wasn't the problem...

    I was just being a big dummy. I fixed it.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-03 02:34
    David,

    ·· Perhaps you should share you fix so others know why you had the problem and can avoid it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • David CalkinsDavid Calkins Posts: 4
    edited 2005-11-03 08:05
    The fix:

    1) when programming servos with one of your students, pay careful attention to what actually happens, rather than what the student presumes is happening (especially if you're writing a disertation at the same time (multi-tasking=bad))

    2) Read said students code before presuming it's a HW error and posting to the parallax forum

    3) Wiggling servos dont' mean the servo is bad. It might just be that the student rotates the hub by hand after each run through of the code, so the servo is in fact doing what it's supposed to do - and the code is in fact working - the problem lies in students playing with hubs absent-mindedly while you're not looking, so the hub appears to move irrationally when you're certain it was centered after the last time you centered it.

    Yes Mike, if you're reading this... This means you.
Sign In or Register to comment.