PING))) Ultrasonic Distance Sensor + controller
adreal
Posts: 1
Hello!
I am new to PING))) so I would like to get an advice for choosing the best controller for the sensor. I need to detect people from 0.5-4 meters outputing an array of distances via USB. The final array would be "date&time - distance". Sensor will be used indoors. The controller will be powered by PC PSU or optional adapter.
Best,
Martti
I am new to PING))) so I would like to get an advice for choosing the best controller for the sensor. I need to detect people from 0.5-4 meters outputing an array of distances via USB. The final array would be "date&time - distance". Sensor will be used indoors. The controller will be powered by PC PSU or optional adapter.
Best,
Martti
Comments
If you haven't used a controller before, I think the Propeller it the most useful.
Here's code I wrote for a QuickStart board using a Ping and 4 digit 7-segment LED display.
The objects used a freely available and I'll post the code as an archive if you'd like.
Duane
For my initial experiments I am using a Freetronics Eleven controller board (an Arduino clone). Wether I stick with that will depend on how sophisticated the controller software ends up needing to be, but for now it is working fine and I had an Arduino sketch up and running in about 5 min. (Mostly because there was already an example using a PING))) sensor that I could modify.)
So far I have found the PING))) to be fairly noisy, so I will need some sort of filter on the output. I haven't collected any data yet but I am hoping to when I get back from holiday in a couple of weeks.
If, by noisy, you mean that the readings vary widely, remember that the PING))) responds to the first echo received. If you have a complex environment out there, there may be secondary echoes that, depending on the air temperature, air currents, object movement, etc., may return with sufficient amplitude to trigger the PING))) and give you what effectively looks like noise. In that case, some filtering of the distance measurements would indeed be in order. You could exclude values outside of the range you expect, maybe adjust the acceptable range based on relatively long-term trends.