distance sensor

Discussion in 'General Electronics Chat' started by bug13, Nov 16, 2014.

  1. bug13

    Thread Starter Senior Member

    Feb 13, 2012
    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!
  2. GopherT

    AAC Fanatic!

    Nov 23, 2012
    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.
    bug13 likes this.
  3. sirch2

    Well-Known Member

    Jan 21, 2013
    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.
    bug13 likes this.