Reflective Optical Sensor TCRT5000
- On sale!
- -€0.50
This IR reflective sensor module uses TCRT5000 IR sensor to detect color (black to white difference) and distances (1mm~25mm). This sensor module consists of an IR transmitter and an IR receiver. The IR transmitter continuously emits an IR signal which is then reflected by an obstacle and then detected by the IR receiver.
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
TCRT5000 Infrared Reflective Sensor Module is often used in line following robots, object sorting Robots because this module can sense if a surface is white or black. The measuring distance range from 1mm to 8mm and the central point is about 2.5mm.
There is also an onboard potentiometer to adjust the sensitivity. The infrared diode will be emitting the infrared continually when the module is powered ON, when the emitted infrared light has not been reflected or the strength is not big enough, the receiver diode will in the off state and output pin i.e. DO will be LOW.
Applications:
Notes:
Ex code:
// for Arduino microcontroller
const int digital_pin = 7;
const int analog_pin = A0;
// for ESP8266 microcontroller
//const int digital_pin = D7;
//const int analog_pin = A0;
// for ESP32 microcontroller
//const int digital_pin = 4;
//const int analog_pin = 0;
void setup(){
Serial.begin(9600);
pinMode(digital_pin,INPUT);
}
void loop(){
Serial.print("Analog Reading=");
Serial.print(analogRead(analog_pin));
Serial.print("\t Digital Reading=");
Serial.println(digitalRead(digital_pin));
delay(1000);
}
Related products