Shop OBEX P1 Docs P2 Docs Learn Events
PSC control of HB-25 and victor 883 — Parallax Forums

PSC control of HB-25 and victor 883

kennetkennet Posts: 33
edited 2007-08-17 22:43 in Robotics
Hello everyone,
Does anyone know how to write code that would allow the PSC, or mini-SSC II, to control the parallax HB-25 or victor 883. I've used the PSC many times over the years to control servos, but never modified continuous rotation servos. I've been reading the BOE-BOT book and it seems easy. But, don't want to dedicate the BS2 pulsout command. It would give me more flexability to use a PSC or mini- SSC II.
I may be wrong. Can anybody help?

THANKS
kennet sad.gif

Comments

  • D FaustD Faust Posts: 608
    edited 2007-08-16 23:07
    Modified servos are controlled using the same range (1ms to 2ms) as standard servos. I am not sure about the PSC interface, but for a standard pulsout command a 1 ms pulse (all the way one direction on a standard servo) would make a cont. rotation servo or motor connected to the HB-25 go full speed in one direction. A 1.5 ms pulse (center on a standard servo) would be stop on a cr servo or motor w/HB-25. A 2ms pulse (all the way the other way on a standard servo) would be full speed the opposite direction on a cr servo or HB-25 motor. Using different values in between will allow you to control the speed. Hope this helps.

    Edit:· If you post an example of how to make a servo stop and go one direction with the psc I can be more specific, but I don't have psc experience. (this might not be needed if you understand what I mean.)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-08-17 14:19
    Kennet,

    Usually someone won’t want to use the PULSOUT command to control servos directly because of the refresh rate and time lost in it. In these cases off-loading the task of refreshing the servos onto an external controller is a good idea. But since the HB-25 does not require refreshing the time lost sending serial commands to the PSC could be saved by sending the pulses directly to the HB-25 only when a change is needed. There won’t really be any savings or benefit by using a servo controller to control it. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • kennetkennet Posts: 33
    edited 2007-08-17 22:43
    Thanks for your insight D Faust.

    Chris,this is exactly what I wanted to do all along.My plan is to use microsoft robotic studio to operate my robot. I have a few BS2's lying around, so I have no problem dedicating a BS2 to the HB-25 or a victor 883. Since I am using these motor controllers for propulsion , within microsoft robotic studio, everything· works out.

    Thank You
Sign In or Register to comment.