Ping Sensor Innaccuracies
Carl Lawhon
Posts: 36
For some reason the Ping sensor on my robot becomes very innaccurate and screwy whenever the motors are turned on and are running. The motors are relatively powerful and do vibrate the frame a good bit, so is it possible these vibrations are causing the problem?·The sensor·is always very accurate and consistent when the motors are not running.
(the robot uses a prop so thats why I put it in this forum)
Thanks,
Carl Lawhon
(the robot uses a prop so thats why I put it in this forum)
Thanks,
Carl Lawhon
Comments
It's much more likely that it's electrical noise from the motors getting into the lines from the Ping.
It would have to be either high amplitude mechanical vibration or ultrasonic vibrations to affect
the Ping the way you suggest. Maybe you need hefty electrical filtering on the motors.
Ken Gracey
my two cents worth,
Mark
I am glad you brought this up, because I have been puzzling over inaccuracies in Ping sensors as well. I have a ping sensor mounted on a servo of a small walker and while it is often accurate, it sometimes is wildly off. You can see what I am working on at: [url=http://
One problem I have notice is that the Ping sensor is that it isn't a very tight "beam". I have never found any information on the angle of the cone of sound coming out of a Ping. In general though you do not want to mount it so that it points parallel to a close wall or floor.
Is there anything special about using a Ping sensor with a prop that could cause it to be less accurate in some cases, either due to the controller timing or the prop I/O? I did not experience as much of a problem with a basic stamp. On the other hand, I never tried to sample as often or as fast with a Stamp.
Any experiences or advice in using a Ping with a Prop would be very helpful.
George Collins
I solved that by putting 0.5" polystyrene foam directly behind the sensor and my readings become much more reliable.
My setup was a custom robot with a turret mounted PING controlled by a servo (much like the BOEBot PING mounting).
Since making that change I only get the occasional odd reading. And yes, decoupling capacitors were the first thing I looked at, but
as I had those everywhere and as motors and sensors were in different branches of the power supply system I was left scratching my
head until that "ah ha" moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
Jo
I conclude, very unscientifically I might add, that your problem is due to electrical noise rather than mechanical noise and the noise is felt on your ping sensor line which causes false positives back at the prop.
Or it could be the same problem that Joao discovered, though I would chalk that up as a bug in the PING))). It should know how to mask out those close range objects - much like RADAR in the military knows that something 20cm away (i.e. the antenna boom) is a false positive and there is actual circuitry to filter those out (it doesn't even get to the firmware level).