What should be the minimum delay between two measurements for the PING sensor?
Hi,
I am reading a PING sensor over a serial port in a continuous loop. What should be the minimum delay between two measurements for the PING sensor? Even if I do not put any delay in my code, the sensor measurement is accurate and updates very quickly however, the sensor light blinking rate gets tremendously fast and appears like always ON. Is this the correct way to read the sensor or should I put some delay (like 50 or 100ms) between two successive serial out commands?
Please advise.
Thanks.
I am reading a PING sensor over a serial port in a continuous loop. What should be the minimum delay between two measurements for the PING sensor? Even if I do not put any delay in my code, the sensor measurement is accurate and updates very quickly however, the sensor light blinking rate gets tremendously fast and appears like always ON. Is this the correct way to read the sensor or should I put some delay (like 50 or 100ms) between two successive serial out commands?
Please advise.
Thanks.
Comments
Edit changed Pings rated distance amount
Thanks for the advice. Actually, the measurements are accurate and fairly the same whether I use a 20ms delay or don't. The thing which bothers me is the blinking rate of PING light which seems almost ON when no delay is used. Though the measurements are fairly good but I am just worried if this fast polling (without any delay) might not adversely affect its hardware or microcontroller. I am new to programming and sensors and therefore request expert opinion on this.
Thanks.