Thread: IR Sensors
View Single Post
  #3   Spotlight this post!  
Unread 25-01-2014, 21:42
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: IR Sensors

If it's the Sharp 2D120X IR reflective sensor here's a snippet of Labview code that I used on our trainer. I set the threshold to 2 volts which corresponds to a object being sensed at about 7 cm from the sensor.
Attached Thumbnails
Click image for larger version

Name:	IR senser - begin.PNG
Views:	16
Size:	5.1 KB
ID:	15956  Click image for larger version

Name:	IR sensor - Timed Tasks.PNG
Views:	13
Size:	6.4 KB
ID:	15957  
Reply With Quote