PING sensor problems
Hi,
I asked few questions yesterday but it seems that moderators deleted my message (or it was not posted correctly) so I'll repeat myself (but this time I'll save the text so I can post it again).
Problem is that some of my PING sensors went up in smoke the other day I used them (I must say that no other equipment were damaged - only 2 sensors out of 3). I drive them directly from PIC uC without any resistor in series (as suggested in documentation). Is it possible that sensor can be destroyed regardless of internal protection (if it really exist) when uC and PING are driving the same line with different voltages (+5V,0V)? Also, in documentation there is no reference what happens when PING does not detect any object. What happens then? Do I receive 18.5ms pulse, or I receive nothing, or I receive longer pulse? There is no mention of that in documentation. Also, what are the minimum and maximum ranges (two sets of ranges are stated in docs)? Without correct information I cannot accurately measure distance.·Also in programming examples there is a reference that Sig pin should have series resistor connected (1k). Is that true?
Hopefully this time someone will read this post and, maybe,·answer.
Thanks,
Tom.
I asked few questions yesterday but it seems that moderators deleted my message (or it was not posted correctly) so I'll repeat myself (but this time I'll save the text so I can post it again).
Problem is that some of my PING sensors went up in smoke the other day I used them (I must say that no other equipment were damaged - only 2 sensors out of 3). I drive them directly from PIC uC without any resistor in series (as suggested in documentation). Is it possible that sensor can be destroyed regardless of internal protection (if it really exist) when uC and PING are driving the same line with different voltages (+5V,0V)? Also, in documentation there is no reference what happens when PING does not detect any object. What happens then? Do I receive 18.5ms pulse, or I receive nothing, or I receive longer pulse? There is no mention of that in documentation. Also, what are the minimum and maximum ranges (two sets of ranges are stated in docs)? Without correct information I cannot accurately measure distance.·Also in programming examples there is a reference that Sig pin should have series resistor connected (1k). Is that true?
Hopefully this time someone will read this post and, maybe,·answer.
Thanks,
Tom.
Comments
You may have been on another forum, but this is the first posting you've made on the Parallax Forums. Since this is a PIC related question, might you have been on a PIC Forum somewhere?
Regrds,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When all else fails, try inserting a new battery.
2) If there is no received echo, you will see a pulse from the PING))) of approximately maximum length (18.5ms).
3) The documentation states a range of 2cm to 3m. That would be a typical range. The actual range would depend on temperature, air pressure, and the objects providing the echo (shape, size, materials, texture, etc.)
4) The series resistor (1K) is optional and its use is intended to prevent the damage mentioned in #1.
Under 3) Yes, one of the documents says it like this. Under ideal conditions 18.5ms is 3m. Or 3m and some cm? Because in programming examples conversion factor will convert 18.5ms to value of 3.15m or so. What is correct?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
The PING))) just reports the time taken for the ultrasound pulse to travel outwards, be reflected, and return to the PING))) (plus some fixed times for generating the pulse and detecting and reporting it). Particularly at the extreme of the range, these factors overwhelm any imposed by the PING))).
I said "approximately" because I'm sure there's some variation due to manufacturing, to ambient temperature and supply voltage. I'm sure these variations are small, but you seem to be concerned about accuracy while the technique itself (the use of ultrasound for distance measurement) is subject to all sorts of inaccuracies, particularly as the distance increases.
Any comment is welcome.
Thanks.
P.S. Regarding missing post - it is most likely that I pressed cancel instead submit so I appologize that I wrongly accused you guys for deleting my post.
·
The only circumstance I can think of that would cause this [noparse][[/noparse]other than a defective PING)))] would be subjecting the PING))) to more than 5V, either the supply voltage or the I/O pin. If you think you had a defective PING))), give Parallax Customer Support a phone call or send them an e-mail with as much supporting documentation as possible (circuit diagrams, descriptions of circumstances, etc.)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
If you wish I can attach schematics and/or pcb layout if it would help to determine the problem.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering