Description
overview
This sensor is an Arduino dedicated sensor, and its connector is compatible with the Arduino sensor expansion board. The operating principle of TCRT5000 infrared tube on the sensor is to convert the strength of reflected signal into current signal by using different reflectivity of infrared ray to color. The sensor is active high when black is detected, active low when white is detected, and the detection height is 0-3 cm. In the circuit you can use the knob potentiometer to adjust the sensitivity of the black and white tracking. The sensor comes with a positioning hole, which allows you to fix the sensor to other devices.
Specification
Operating Voltage: 3.3-5 V (DC)
Interface: 3 PIN (1:S, 2: VCC, 3:GND )
Output Signal: digital signal
Detection Height: 0-3 cm
Weight: 2.3 g
Test Code
void setup ()
{
Serial. begin (9600); //
}
void loop ()
{
Serial. println (digital Read (3)); //
delay (500); //
}