

Here we show a connection diagram using Arduino Nano v3.0. It must be connected to analog pins of Arduino.

It can be connected to any digital pin of Arduino The TCRT5000 uses four connections (although we won’t, usually, use the digital output): Therefore, this is useful when used as a digital switch. The module has an analog comparator, meaning that with a potentiometer we can adjust a reference value we consider that the amount of light HIGH or LOW on its digital output. In particular, if the ground is dark or black, the reflection is very poor and the signal we measure is close to Vcc, while if the ground is white, then the amount of light reflected is high and the signal received will close to 0V.

In robotics, their main application is to use them as line tracking module to distinguish the color of the ground (gray-scale). This kind of sensors can also be used as obstacles detectors (with a very short-range about 15mm) and eventually they are used as contact-less switches. It has a filter to filter out ambient light, but it’s use outdoors is not recommended, because the sensor becomes “blind” as an effect of infrared components of the sun light. The amount of light received might depend on many aspects, mainly with the distance to the surface and the color of the surface. The next image, when the fotodiode, when the fototransistor receives an amount of light will let the current flow so that the voltage will tend to 0V, while if no source light is receive, the fototransistor will be in ‘open circuit’, meaning that we will be measuring basically Vcc voltage. The light is reflected so that a fototransistor receives the amount of light reflected, which is in the end transformed into a voltage. TCRT5000 module emits an infrared light using a fotodiode that it’s reflected towards the surface. Working principle, connection diagrams and programming examples with Facilino and Arduino. DYOR robot uses this module to track lines on the ground using the contrast (between black and white). Learn how to use the light module (linetracker).
