How to Use TCRT5000 IR Sensor Module With Arduino UNO
by mybotic in Circuits > Electronics
89705 Views, 29 Favorites, 0 Comments
How to Use TCRT5000 IR Sensor Module With Arduino UNO
![tcrt 5000 ir sensor module.jpg](/proxy/?url=https://content.instructables.com/FCN/Y8L9/JBQU496O/FCNY8L9JBQU496O.jpg&filename=tcrt 5000 ir sensor module.jpg)
In this tutorial, we are going to teach you some basics on using TCRT5000 IR Sensor Module. These basic are showing you the analog and digital values at serial monitor.
Description:
This IR reflective sensor utilizes a TCRT5000 to detect color and distance. It emits IR and then detects if it receives the echo. This sensor is often used in line following robots, auto data logging on utility meters, 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 on-board potentiometer to adjust the sensitivity. The infrared diode will emitting the infrared continuously when the module connect to the power, when the emitted infrared light has not been reflected or the strength is not big enough,the module will in the off state, at this time, D0 output logic HIGH and the signal indicate LED off.
Features:
- Supply Voltage: 3.3V~5V
- Detect distance: 1mm-8mm
- Digital Outputs LOW when objects detected
- On-board indicator LED to show the results
- On-board potentiometer to adjust the sensitivity
- On-board LM393 chip
Pin Definition
![Reflective-Sensor-Pin-Outs.jpg](/proxy/?url=https://content.instructables.com/F3R/NI9H/JBQU4BU8/F3RNI9HJBQU4BU8.jpg&filename=Reflective-Sensor-Pin-Outs.jpg)
Material Preparation
![Arduino Uno.jpg](/proxy/?url=https://content.instructables.com/FV4/9RRG/JBQU4CRP/FV49RRGJBQU4CRP.jpg&filename=Arduino Uno.jpg)
![TCRT5000 Module-500x500.jpg](/proxy/?url=https://content.instructables.com/F1K/0WXF/JBQU4CS9/F1K0WXFJBQU4CS9.jpg&filename=TCRT5000 Module-500x500.jpg)
![MALE TO FEMALE.jpg](/proxy/?url=https://content.instructables.com/FDK/BYTX/JBQU4CRZ/FDKBYTXJBQU4CRZ.jpg&filename=MALE TO FEMALE.jpg)
For this tutorial, we require these items:
1. Arduino UNO.
2. TCRT 5000 IR sensor module.
3. Wire male to female.
Pin Connection
![pin connectio of tcrt500 ir sensor module.jpg](/proxy/?url=https://content.instructables.com/FGA/P333/JBQU4CXB/FGAP333JBQU4CXB.jpg&filename=pin connectio of tcrt500 ir sensor module.jpg)
![Capture.PNG](/proxy/?url=https://content.instructables.com/FI9/CHJ8/JBQU4D4B/FI9CHJ8JBQU4D4B.png&filename=Capture.PNG)
Sample Source Code
The attachment is the sample source code for TCRT 5000 IR Sensor Module. You may download it and upload it into your Arduino Uno.
Downloads
Open the Source Code and Upload to Arduino UNO
![upload.png](/proxy/?url=https://content.instructables.com/F0I/4Y75/JBQU4DN8/F0I4Y75JBQU4DN8.png&filename=upload.png)
Way to Open the Serial Monitor
![serial monitor.PNG](/proxy/?url=https://content.instructables.com/FI1/1AHS/JBQUGWGA/FI11AHSJBQUGWGA.png&filename=serial monitor.PNG)
Result
![betul.PNG](/proxy/?url=https://content.instructables.com/FJV/LLDS/JBQUGWPD/FJVLLDSJBQUGWPD.png&filename=betul.PNG)
The picture above shows the result on the Serial Monitor for the TCRT5000 IR Sensor Module.
TCRT5000 IR Sensor Module detects the obstacle infront
- The "Digital Reading" shows 1
- The "Analog Reading" shows value which less than 50
TCRT5000 IR Sensor Module detects nothing
- The "Digital Reading" shows 0
- The "Analog Reading" shows value around 900 above