Description
The TCRT1000 have a compact construction where the emitting-light source and the detector are arranged in the same direction to sense the presence of an object by using the reflective IR-beam from the object. The operating wavelength is 950 nm. The detector consists of a phototransistor.
FEATURES
• Package type: leaded
• Detector type: phototransistor
• Dimensions (L x W x H in mm): 7 x 4 x 2.5
• Peak operating distance: 1 mm
• Operating range within > 20 % relative
collector current: 0.2 mm to 4 mm
• Typical output current under test: IC = 0.5 mA
• Daylight blocking filter
• Emitter wavelength: 950 nm
• Lead (Pb)-free soldering released
APPLICATIONS
• Optoelectronic scanning and switching devices i.e., index sensing, coded disk scanning etc. (optoelectronic
encoder assemblies for transmissive sensing).
Getting started with TCRT1000 reflective optical sensor
In this Arduino Tutorial Optical Sensor TCRT1000 was used for object detection.
Parts required
- Arduino UNO
- TCRT1000 reflective optical sensor
- Jumper wires
- Breadboard
- resistor 150 ohm, 20k ohm
Connecting the Hardware
Assemble all the parts by following the schematics below.
CODES
In this example a LED will light up when object is detected.
Upload the following code
int sensor = A0;
int ledIntensity;
int led = 13;
void setup() {
Serial.begin(9600);
pinMode(led,OUTPUT);
}
void loop() {
sensor = analogRead(0);
ledIntensity = map(sensor,30,1023,0,255);
analogWrite(led,ledIntensity);
Serial.println(sensor);
delay(1000);
}
Reviews
There are no reviews yet.