Sure you can! You can buy a little perf at Radio Shack and make one yourself... here is a small write up about it...
[font=Arial+Narrow+Bold0]Infrared Sensor Kit (#28019)[/font] · · Using the S.S.I.R Sensor This documentation shows how to use the Parallax S.S.I.R board with the Parallax Basic Stamp® single-board computer. · Packing List The contents of the Infrared Sensor Kit package include: q·····(1) SSIR Infrared Sensor q·····(2) 4-40 Machine Screws, 3/8. q·····(2) 4-40 Nut, Zinc Plated q·····(1) 90 Degree Mounting Bracket q·····(1) 10. Servo Extension Cable · Description The S.S.I.R board is an infrared detection unit. This unit incorporates a standard IR LED with a 40 kHz IR receiver. This unit can be configured for basic object detection. Size: Width = 15.8 mm, Length = 18.2 mm Power Requirements: + 5vdc, 2.6 mA [font=Arial+Narrow0][/font][font=Arial+Narrow0][/font][font=Arial+Narrow0][/font]· Software Interface '{$STAMP BS2} DIR0 = 1 .Sets pin 0 to input Holdbit VAR BIT .Sets up a variable for the echo Start: FREQOUT 0,1,38500 .sends out signal to IR LED Holdbit = in0 .Stores reply DEBUG 1,"sensor = ",DEC Holdbit,cr .displays results GOTO Start
Post Edited (Steve Joblin) : 3/13/2006 1:02:29 AM GMT
Comments
[font=Arial+Narrow+Bold0]Infrared Sensor Kit (#28019)[/font]
·
·
Using the S.S.I.R Sensor
This documentation shows how to use the Parallax S.S.I.R board with the Parallax Basic Stamp®
single-board computer.
·
Packing List
The contents of the Infrared Sensor Kit package include:
q····· (1) SSIR Infrared Sensor
q····· (2) 4-40 Machine Screws, 3/8.
q····· (2) 4-40 Nut, Zinc Plated
q····· (1) 90 Degree Mounting Bracket
q····· (1) 10. Servo Extension Cable
·
Description
The S.S.I.R board is an infrared detection unit. This unit incorporates a standard IR LED with a 40
kHz IR receiver. This unit can be configured for basic object detection.
Size: Width = 15.8 mm, Length = 18.2 mm
Power Requirements: + 5vdc, 2.6 mA
[font=Arial+Narrow0][/font][font=Arial+Narrow0][/font][font=Arial+Narrow0][/font]·
Software Interface
'{$STAMP BS2}
DIR0 = 1 .Sets pin 0 to input
Holdbit VAR BIT .Sets up a variable for the echo
Start:
FREQOUT 0,1,38500 .sends out signal to IR LED
Holdbit = in0 .Stores reply
DEBUG 1,"sensor = ",DEC Holdbit,cr .displays results
GOTO Start
Post Edited (Steve Joblin) : 3/13/2006 1:02:29 AM GMT