Multiple PING))) triggering question
![TheGrue](https://forums.parallax.com/uploads/userpics/605/nQWBK07DT1NDW.jpg)
I have a robot with 5 PING)))'s mounted on the front. 3 face forward and two at 45 degree angles like so:
\ | | | /
My question is this, do I need to add a WAITCNT command to space the calls of each PING))) so that echos from the last one don't give false readings to the current PING))) called?
More details and pictures of my robot can be found here at my robot build site
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
TOBI – The Tool Bot
letsmakerobots.com/node/7025/
RoBo Remote - Programmable Remote Controller
letsmakerobots.com/node/18692
Post Edited (TheGrue) : 7/27/2010 5:47:29 AM GMT
\ | | | /
My question is this, do I need to add a WAITCNT command to space the calls of each PING))) so that echos from the last one don't give false readings to the current PING))) called?
PUB SensorArray repeat PngCenter := Ping.Inches(p_CPing) PngLeftAngle := Ping.Inches(p_LAPing) PngRightAngle := Ping.Inches(p_RAPing) PngLeftFront := Ping.Inches(p_LPing) PngRightFront := Ping.Inches(p_RPing)
More details and pictures of my robot can be found here at my robot build site
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
TOBI – The Tool Bot
letsmakerobots.com/node/7025/
RoBo Remote - Programmable Remote Controller
letsmakerobots.com/node/18692
Post Edited (TheGrue) : 7/27/2010 5:47:29 AM GMT
Comments
You need to allow enough time so that the echoes from each PING can die out before the next one is triggered. Remember that the PING itself can respond to an echo up to 18.5ms from emitting a pulse of sound, but returns a response when the first echo is received (as early as 1ms from emitting a pulse of sound).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
TOBI – The Tool Bot
letsmakerobots.com/node/7025/
RoBo Remote - Programmable Remote Controller
letsmakerobots.com/node/18692