.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. 👉 Ready to explore and create with us? Click [|link_sf_facebook|] and join today! .. _cpn_track: Line Tracking Module ================================ .. image:: img/line_track.png :width: 400 :align: center * S: Usually low level, high level when the black line is detected. * V+: Power supply, 3.3v~5V * G: Ground This is a 1-channel Line Tracking module which, as the name suggests, tracks black lines on a white background or white lines against a black background. .. image:: img/tcrt5000.jpg :width: 200 :align: center The module uses a TCRT500 infrared sensor, which consists of an infrared LED (blue) and a photosensitive triplet (black). * The blue infrared LED, when powered on, emits infrared light that is invisible to the human eye. * The black phototransistor, which is used to receive infrared light, has an internal resistor whose resistance varies with the infrared light received; the more infrared light received, the lower its resistance decreases and vice versa. There is a LM393 comparator on the module, which is used to compare the voltage of the phototransistor with the set voltage (adjusted by potentiometer), if it is greater than the set voltage, the output is 1; otherwise the output is 0. Therefore, when the infrared emitter tube shines on a black surface, because the black will absorb light, the photosensitive transistor receives less infrared light, its resistance will increase (voltage increase), after LM393 comparator, the output high level. Similarly, when it shines on a white surface, the reflected light will become more and the resistance of the photosensitive transistor will decrease (voltage decreases); therefore, the comparator outputs a low level and the indicator LED lights up. * `TCRT5000 `_ **Features** * Using infrared emission sensor TCRT5000 * Detection distance: 1-8mm, focal length of 2.5mm * Comparator output signal clean, good waveform, driving capacity greater than 15mA * Using potentiometer for sensitivity adjustment * Operating voltage: 3.3V-5V * Digital output: 0 (white) and 1 (black) * Uses wide voltage LM393 comparator. * Size: 42mmx10mm **Example** * :ref:`ar_line_track` (Basic Project) * :ref:`follow_the_line` (Car Project) * :ref:`sh_protect_heart` (Scratch Project)