PING))) and BS2px24
Dobermann (Black Dog Systems, LLC)
Posts: 71
Hi All,
OK, more timing issues when using the BS2px24 and the PING))) sensors. If I'm correct (thanks Jon), I've got the servo PULSOUT values for the BS2px24. They are 1875 (servo centre), 1625 (650 on BS2) and 2125 (850 on BS2). Now I'm trying to determine with the correct timing for the PING))) sensor. Looking at the Roaming with PING))) program I see 'PULSOUT Ping, 5 and PULSIN Ping, 1, distance'. I am assuming that these values need to be modified to run correctly on the BS2px24. Which formula do I use to determine these values? I am having a real tough time trying to wean myself onto the BS2px24, due primarily to the timing issues. Can anyone help this math crippled individual? Thanks for your time.
Arf,
Michael
OK, more timing issues when using the BS2px24 and the PING))) sensors. If I'm correct (thanks Jon), I've got the servo PULSOUT values for the BS2px24. They are 1875 (servo centre), 1625 (650 on BS2) and 2125 (850 on BS2). Now I'm trying to determine with the correct timing for the PING))) sensor. Looking at the Roaming with PING))) program I see 'PULSOUT Ping, 5 and PULSIN Ping, 1, distance'. I am assuming that these values need to be modified to run correctly on the BS2px24. Which formula do I use to determine these values? I am having a real tough time trying to wean myself onto the BS2px24, due primarily to the timing issues. Can anyone help this math crippled individual? Thanks for your time.
Arf,
Michael
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
I've attached Ping demo that works the same on any BS2 module; you can use it as the basis for your program, Michael.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I had to go through the same thing when I upgraded from BS2 to the BS2PX. I am including 2 codes that might help. Please note that in one of the code I am using a different Servo controller that the Parallax but the end result should be the same. If you cannot understand send me a note.
Hope it helps, and maybe I should read again the 'conditional compilation' info.
Gilles
Arf,
Michael