Timing Issues - BS2 vs. BS2px24
Dobermann (Black Dog Systems, LLC)
Posts: 71
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.
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
· 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
-Michael