> I need tt measure distance somehow - i.e. whether there is an object in > front of a sensor or not... is it possible to use a PIC to measure a very > rough calculation of reflection distance, - you know the same way one of > those tapeless tape measures work? > > anyone any experience/ideas? Sharp makes an IR sensor (#GP2D12) that gives an analog voltage out you can measure with an ADC on any PIC. The range is 8cm to 80cm for that particular part. Tim -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads