Problems with Ping))
fitzfitsahero
Posts: 2
I'm doing a robotics competition and we're using the BS2, BOE-BOT, and Ping)) sensors.
What I'm doing is going back and forth along a 12' course, dropping ping-pong balls into
cups. I'm using the ping sensors to control when the robot stops. The problem I'm having
is that sometimes the ping sensor reads at the wrong time and drops a ball. The sensor is
set to stop and drop the balls at 18cm or less. I'm not sure if its a loose connection, or the fact
that the sensor pins are facing upwards.
Any help would be greatly appreciated.
What I'm doing is going back and forth along a 12' course, dropping ping-pong balls into
cups. I'm using the ping sensors to control when the robot stops. The problem I'm having
is that sometimes the ping sensor reads at the wrong time and drops a ball. The sensor is
set to stop and drop the balls at 18cm or less. I'm not sure if its a loose connection, or the fact
that the sensor pins are facing upwards.
Any help would be greatly appreciated.
Comments
and I've just mirrored it depending on the direction that the robot is traveling. So when the robot
is going forward, the front sensor is pinging, and when the robot is going backwards, the back sensor
is pinging. The main problem is that it only happens some of the time.
What sound reflecting surfaces are in the path of your Bot when it's pinging and does the size, angle, distance change while you're competing?
Are there other Bots with PING sensors in the area while your Bot is running? Imagine what would happen if you fired up your Bot and started pinging while pointing it in the direction of another Bot while it's trying to ping (All's fair in love and war (including robot competitions)).
Angle of the sensor relative to the surface it's running on. If you sensor is aimed downward to any degree, you may be picking up an echo from the surface it's running on or imperfections or seams in the surface. Try raising the angle of the sensor (if you start having trouble picking up shorter targets, try lowering the whole sensor.
I don't know if any of these things are causing you particular problem, but they're the kinds of problems that I've run into at times using the PING sensor.
One last thought. You can try using a "rolling average" for your distance measurement instead of a accepting each and every distance as correct and taking action based on the results of a single bad reading. If you average the last 3, 4 or 5 ping distances, a single (or even multiple) bad reading whould not cause a premature drop (in systems design, this is called fault tolerant).
Good luck, Steve
Post Edited (Duffer) : 4/24/2007 3:08:25 AM GMT