resolution of PING))) module?
timbak
Posts: 3
Hello! Sorry for this question, but i haven't found an answer in datasheet. What resolution of PING))) module and what width of pulse for 1 cm?
Thank you!
Thank you!
Comments
You have to convert the time measurement to a distance measurement by using the speed of sound in the medium (air) which is highly dependent on temperature as shown in the formula on page 3 of the documentation. All of the demo programs use a "room temperature" estimate. For best accuracy, you need to know the temperature over the path of the ultrasonic signal. Chapter 2 of the Smart Sensors and Applications tutorial goes into detail on this. Download it and have a look at Chapter 2 as mentioned in the PING)))'s documentation.
Detecting range: 4cm-5m
Resolution: 1cm
PWM - PWM Output 0-25000US. Every 50US represent 1cm
http://www.gadgetgangster.com/find-a-project/56?projectnum=138 Prop Sonar
http://www.gadgetgangster.com/find-a-project/56?projectnum=361 Ping reflector
http://www.ebay.com/itm/270810920267 $4.50 BIN Ebay SRF-04 sensor
You mentioned above that some of the Stamp micros have a time resolution of 0.4us of the input pins.
On page 343 of the current Basic Stamp Reference, the BS2sx, BS2p and BS2px are all listed as having 0.8us resolution with the Pulsein command. Is there another Stamp micro that has 0.4us resolution?
Jack Hidley
While I'm a huge fan of Propeller chips and I don't use any of the Basic Stamps any more, I don't think trying to gain resolution from a Ping in a good reason to switch to a Prop (there are lots of other good reasons though).
At 25C sound travels 0.27716mm in 0.8us. I don't think you're timing ability will be the limiting factor with the Ping's accuracy. I think other factors (mainly temperature) will play a larger role in causing a lack of resolution in the Ping's ability to measure distance.
I recently played with my Ping and found it to be dead on accurate (down to the mm). I found it harder to accurately measure distances with my tape measure than with my Ping. I used nice flat hard surfaces as targets for the Ping in these tests.
I'm planning on incorporating a thermistor into the hardware so the micro will compensate for the air temperature when calculating the distance.
The acoustic environment that the distance measurements are taken in is 100% controlled. I need to get as much distance resolution as possible. 0.002" is the minimum acceptable, so it looks like I need to use a Propeller.
Jack,
I'm not sure 0.002" is going to be achievable with a PING sensor. That sounds more like a job for a Laser Inerferometer.
You might want to contact (PM) Ed_T here on the forums, as he has a Propeller based Acoustic Distance Sensor.
User Manual
As it is more robust that the PING, Ed might be able to tell you the accuracy of his product.
Just a couple of checks:
If you are trying to measure to .002" at 1 foot that is 0.017% error. My calcs show that the speed of sound changes about 0.17%/degC at room temp. So you would need to measure your temp to 1/10 deg C and have that temp over the path of the sound. I certainly don't achieve that on my lab bench. Also at the 40kHz frequency of the PING or PADS sensor the wavelength of the sound is about 0.33". So your .002" requires measuring the distance to 1/165th of the sound wavelength or about 2deg of phase. The PING and the PADS both use the magnitude of the signal to determine the distance. The PING timing is determined by when the trigger level is first exceeded. So changes in the transmitted signal or its reflection will affect where on the slope of the sound pulse magnitude the trigger is exceeded and thus the distance measurement. The P.A.D.S does a little better than this by sensing the rising edge of an echo pulse exceeding a trigger level and then finding the time of the peak magnitude of that echo. But this is certainly not accurate to 1/165 of a wavelength. The P.A.D.S is measuring phase sensitive quadrature signals as part of its calcs and they are available to the user. However from what I have seen these jump around quite a bit in standard measurements meaning that the phase is changing hundreds of degrees. I have wanted to take a closer look at the phase signals, if I get a chance I will.
--Ed