Shop OBEX P1 Docs P2 Docs Learn Events
Servo control with BS2sx — Parallax Forums

Servo control with BS2sx

ManuelManuel Posts: 105
edited 2005-08-24 14:38 in BASIC Stamp
Hello, i have a question. If i have my BS2x do i have to multiply and divide by 2.5 the pulses I used to send with a BS2? Or how should i send the pulses if the servo is PWC 1500µsec Neutral?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards

Manuel C. Reinhard

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-24 14:38
    Since the BS2sx uses has a PULSOUT resolution of 0.8 uS, what you do is divide your pulse width by that:

    1000 uS / 0.8 uS = 1250
    1500 uS / 0.8 uS = 1875 - center
    2000 uS / 0.8 uS = 2500

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.