| Main centres: | 1-3 business days |
| Regional areas: | 3-4 business days |
| Remote areas: | 3-5 business days |
The 4-pin TCRT5000 module is significantly more versatile than the 3-pin version because it provides both a Digital Output (D0) and an Analog Output (A0).
The Digital pin is perfect for "Yes/No" detection (like staying on a line), while the Analog pin allows you to see the intensity of the reflection, which is useful for measuring varying shades of gray or very small changes in distance.
Features
Specifications
Due to different batches, there may be differences in product printed text, which will not affect use.
What's in the box?
1 x Infrared Reflective Sensor
Resources
The 4-pin TCRT5000 module is significantly more versatile than the 3-pin version because it provides both a Digital Output (D0) and an Analog Output (A0).
The Digital pin is perfect for "Yes/No" detection (like staying on a line), while the Analog pin allows you to see the intensity of the reflection, which is useful for measuring varying shades of gray or very small changes in distance.
1. Hardware Connections (4-Pin Module)
| Module Pin | Raspberry Pi Pin | Physical Pin # | Function |
| VCC | 3.3V Power | Pin 1 | Power for the IR LED and comparator. |
| GND | Ground | Pin 6 | Common ground. |
| D0 | GPIO 17 | Pin 11 | Goes LOW when a reflection is detected. |
| A0 | See Note Below | Provides a voltage (0V to 3.3V) based on reflection. |
Important: The Raspberry Pi does not have a built-in Analog-to-Digital Converter (ADC). You cannot plug the A0 pin directly into a Pi GPIO and read its value. You have two choices: