Shop OBEX P1 Docs P2 Docs Learn Events
Timing Issues - BS2 vs. BS2px24 — Parallax Forums

Timing Issues - BS2 vs. BS2px24

edited 2006-03-02 22:10 in Robotics
Hello All,

Its been posted over and over again, but here we go.

I have switched from using the BS2 to the BS2px24. And, yes, you guessed it, I'm in trouble with the timing differences. I'm trying to alter the Roaming with the PING))) sensor program to run on a BS2px24. I am reading the documentation, but am suffering from 'C.R.S' at the moment. What I'm stuck on is 'how' to calculate the duration differences. When using the pulsout = 750 (servo centre) under the BS2 it works fine, switch to the BS2px24 and it doesn't. Can anyone enlighten me?

Thanks for your time and assistance.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-02 22:06
    It's easy.· For the BS2 the centering pulse for a servo is 750.·· Here's the math:

    · 1500 us / 2.0 us = 750

    So for the BS2px the math works out to:

    · 1500 us / 0.8 us = 1875

    And remember... Conditional Compilation is your friend. See the sticky thread at the top of the BASIC Stamp forum for notes on C/C.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • edited 2006-03-02 22:10
    Thanks Jon for the enlightment! That was the missing piece of information I lacked.

    -Michael
Sign In or Register to comment.