PING sensor returning erratic values above certain distance
Claudia Bernett
Posts: 3
hello,
i'm working on an art piece using the PING sensor with the ARDUINO, and i seem to be getting very erratic values above about 20" of distance. it jumps to very high values and back to the accurate reading at this point. can anyone recommend a solution? it basically becomes unusable after only about 20".
thanks.
claudia
i'm working on an art piece using the PING sensor with the ARDUINO, and i seem to be getting very erratic values above about 20" of distance. it jumps to very high values and back to the accurate reading at this point. can anyone recommend a solution? it basically becomes unusable after only about 20".
thanks.
claudia
Comments
Please describe your project in more detail. If you can include the part of your Arduino code that deals with the PING, that would help. Include a description of how you have the PING connected. Remember that the forum software gobbles extra spaces and generally messes up the formatting. Best is to use the "Post Reply" button so you get the Attachment Manager for including your code as an attachment.
-Phil
let me describe the project - the code is standard code developed to interface the ping with the arduino.
i'm basically using the ping to detect the proximity of a person or people and brightening/dimming LEDs in response. since i posted this, i read that proximity sensors in general (IR, ultrasonic) have some trouble with detection of people (as opposed to walls or objects). is this true, and is there any way to optimize the experience or code to helpt his out?
thanks so much for your help!
claudia
Is the sensitivity (or lack thereof) a function of the target angle? The Pings have a fairly narrow acceptance cone, outside of which they're mostly blind. Also, do you have anything obscuring the tranducers?
-Phil
People usually have irregular shapes, and things like wrinkled clothes (and cloth itself) don't help in reflecting a clean ultrasonic echo.
Same thing happens with I/R, but that can be compounded by the fact that any life form is also creating its own I/R emissions.
Motion doesn't help make detection easier in this case either
Try having the human wear a nice "plasticized" apron or maybe a rain coat and pants. That might help the sound reflect better, and/or at least confirm the source of the problem.
Better yet, at least for testing, try using a sheet of cardboard or something else big and flat. That would at least help you define the problem, and start to explore the limits.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
There was another project that used the Ping in a manner very similar to yours. It's described here:
····http://forums.parallax.com/showthread.php?p=873572
There was no mention of distance issues, and the project is well-documented. Perhaps you can glean something from it.
-Phil