usinf (Ping) range finder with bs2px
stamp_demon
Posts: 69
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
·
·#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
·· 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