distance sensor

Thread Starter

bug13

Joined Feb 13, 2012
2,002
Hi guys

Just curious, what does a distance sensor output if the object is outside of the sensor range. Say I have a laser or ultrasound distance sensor. it can measure between min 10m and max 100m.

What could the output be if the object is at 5m or 200m?

Thanks guys!
 

GopherT

Joined Nov 23, 2012
8,009
I you have a Ping))) ultrasound sensor, they have a signal pin that you pop high for 5 uSec and drop low. Oshortly after (few predefined microseconds of delay), the signal pin becomes an output pin. It goes high as it sends the 40khz signal. It stays high until it detects an echo or until it times out (equivalent of 10 m at 1 ATM and 20 C).

It takes a few hundred microseconds to reset itself before it can be popped again. You can get one every 20 milliseconds or so.
 

sirch2

Joined Jan 21, 2013
1,071
Probably depends on the specific sensor type but if you are thinking of using one it would be worth checking the specs to see what the out of range indication is, if any.
 
Top