TCRT5000 IR Sensor Infrared Reflective Sensor
In stock
Order before 12.00PM
Specifications:
- IR sensor with transistor output
- Operating Voltage: 5V
- Diode forward Current: 60mA
- Output: Analog or digital data
- Transistor collector current: 100mA (maximum)
- Operating temperature: -25°C to +85°C
Applications:
- Commonly used in proximity detection applications
- Line follower or maze solver robots
- Distinguish between reflective and non-reflective surface
- Obstacle detection and avoidance
How to interface with Arduino?
The TCRT5000 is an IR reflective sensor module used for detecting objects and measuring distances by emitting and reflecting infrared light. To interface the TCRT5000 with an Arduino Uno, you'll connect the sensor to the Arduino and read its output.
Materials Needed:
- TCRT5000 IR Reflective Sensor Module
- Arduino Uno
- Jumper wires
- Breadboard (optional)
Connections:
-
Power Supply:
- VCC on TCRT5000 to 5V on Arduino.
- GND on TCRT5000 to GND on Arduino.
-
Output Signal:
- OUT on TCRT5000 to Analog Input (e.g., A0) on Arduino for analog readings, or to a Digital Input pin (e.g., D2) if you want to use it as a digital sensor.
Code Example:
Here are examples for both analog and digital readings.
Analog Reading:
This code reads the analog value from the sensor, which changes based on the distance of the object from the sensor.
const int sensorPin = A0; // Analog pin connected to OUT int sensorValue = 0; // Variable to store the sensor value void setup() { Serial.begin(9600); // Initialize serial communication } void loop() { sensorValue = analogRead(sensorPin); // Read the sensor value Serial.print("Sensor Value: "); Serial.println(sensorValue); // Print the sensor value to the serial monitor delay(500); // Wait for 0.5 seconds before the next reading }
Digital Reading:
If you want to use the TCRT5000 as a digital sensor, you can read its output as either HIGH or LOW. In this mode, the sensor typically outputs LOW when it detects an object and HIGH otherwise.
const int sensorPin = 2; // Digital pin connected to OUT int sensorState = 0; // Variable to store the sensor state void setup() { pinMode(sensorPin, INPUT); // Set the sensor pin as input Serial.begin(9600); // Initialize serial communication } void loop() { sensorState = digitalRead(sensorPin); // Read the digital value if (sensorState == LOW) { Serial.println("Object detected"); } else { Serial.println("No object detected"); } delay(500); // Wait for 0.5 seconds before the next reading }
Additional Notes:
- Power Requirements: The TCRT5000 typically operates at 5V, which is compatible with the Arduino Uno.
- Output Type: The TCRT5000 has both analog and digital output pins. If you're using the analog output, you'll get a varying voltage depending on the distance of the detected object. If you're using the digital output, you'll get a simple HIGH or LOW signal based on the object's presence.
- Calibration: Depending on your specific application, you may need to calibrate the sensor's sensitivity by adjusting the potentiometer on the module (if available).
Request Stock
Recently viewed products
You might also be interested in...
Customers who bought this also bought...
General Questions
-
What is the latest price of the TCRT5000 IR Sensor Infrared Reflective Sensor in Bangladesh?
The latest price of TCRT5000 IR Sensor Infrared Reflective Sensor in Bangladesh is BDT 15.00 . You can buy the TCRT5000 IR Sensor Infrared Reflective Sensor at the best price on BDTronics.com or contact us via phone.
-
Where to buy TCRT5000 IR Sensor Infrared Reflective Sensor in Bangladesh?
You can buy TCRT5000 IR Sensor Infrared Reflective Sensor online by ordering on BDTronics.com or directly collect by visiting our store in person. BDTronics is a trusted provider of high-quality electronics, 3D printers, solar systems, and robotics parts. We offer fast shipping across the country via courier service.
-
What are the delivery options of TCRT5000 IR Sensor Infrared Reflective Sensor in Bangladesh?
We provide home delivery service all over Bangladesh. We support cash on delivery, bKash and Credit Card (Visa/ MasterCard/ Amex) payment solutions. The delivery time usually takes 1-2 days inside Dhaka and 2-3 days outside Dhaka.