
airwave1206
Using multiple pings sensors
Hello all, I was pondering on how to configure multiple pings sensors. If I mount 4 ping sensors on all 4 sides of my bot, could I use one trigger signal for all 4 sensors with 4 separate returns to the ez-b. In other words, 4 pings using 5 I/O's instead of 4 pings and 8 I/O's. The main issue is the ping sensors the DJ uses are 4 pin, one trigger and one return and they are about $3.00 US on EBay. I have been using the parallax ping sensor that has 3 pins. The Parallax sensor is $30.00 US. The 4 pin is cheaper, but uses more I/O's. I am just trying to get the biggest bang for my buck and save on I/O pins. any ideas???
The way an ultrasonic distance sensor works is by the time between the trigger and echo signal at the speed of sound. Each function call for the distance of a sensor is determined on a per sensor basis. So they would need to be seperate calls for each sensor - therefore seperate I/O's.