Shop OBEX P1 Docs P2 Docs Learn Events
usinf (Ping) range finder with bs2px — Parallax Forums

usinf (Ping) range finder with bs2px

stamp_demonstamp_demon Posts: 69
edited 2005-05-18 01:39 in BASIC Stamp
I was wondering if anyone had tryed using the ping with the new bs2px? It doesnt seem to work with mine, I belive it is because of the different timming. In the code sample there are trigger and scale values for each of the bs2 moduals with the exception of the new one. A snippet of the code follows..
·#SELECT $STAMP
· #CASE BS2, BS2E
··· Trigger···· CON···· 5······················ ' trigger pulse = 10 uS
··· Scale······ CON···· $200··················· ' raw x 2.00 = uS
· #CASE BS2SX, BS2P
··· Trigger···· CON···· 13
··· Scale······ CON···· $0CD··················· ' raw x 0.80 = uS
· #CASE BS2PX
··· Trigger···· CON···· 5
··· Scale······ CON···· $1E1··················· ' raw x 1.88 = uS
· #ENDSELECT
·Could that be the trouble??? Thank you _Duane
·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-05-18 01:39
    Hello,

    ·· The timing for the PULSOUT and PULSIN commands are the same as the BS2P.· Please try those values instead.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.