qixinwei-pcba
QTR-8RC Reflectance Sensor Array 8-Channel IR Line Sensor Module Digital Output 3.3-5V Robot Line Following
QTR-8RC Product Overview
The QTR-8RC is a high-performance 8-channel reflectance sensor array, designed for line following, edge detection, and general-purpose proximity/reflectance sensing applications. It integrates 8 pairs of infrared emitters (LEDs) and receivers (phototransistors) evenly spaced at 0.375-inch (9.525mm) intervals, providing a wide detection range. The QTR-8RC's unique RC output method allows direct digital reading without an ADC, simplifying microcontroller integration.
QTR-8RC Core Features
The QTR-8RC uses an RC charge/discharge time measurement principle, outputting digital I/O-compatible signals that can be read without an ADC. Compared to traditional analog voltage outputs, the QTR-8RC's RC output offers higher sensitivity and noise immunity. The QTR-8RC's infrared LEDs are arranged in a series-parallel configuration to reduce total current consumption. An onboard MOSFET on the QTR-8RC allows independent control of the LEDs, enabling PWM dimming or complete shutdown when not in use to save power.
The QTR-8RC operates from 3.3V to 5.0V. Its current-limiting resistors feature a two-stage bypass design to support 3.3V operation. The QTR-8RC module measures 75mm × 12.7mm and weighs approximately 3.1g. The optimal sensing distance for the QTR-8RC is 3mm, with a maximum recommended distance of 9.5mm.
QTR-8RC Applications
The QTR-8RC is most commonly used for robot line following, with 8 sensors providing more precise path information. It is also suitable for general-purpose proximity detection, reflectance measurement, edge detection, speed/position measurement, interactive installations, and industrial automation inspection. These diverse use cases highlight the QTR-8RC's versatility and robust design.
QTR-8RC Key Advantages
A key advantage of the QTR-8RC is its ADC-free RC output, which connects directly to digital I/O pins and measures pulse width to determine reflectance, simplifying hardware design. The QTR-8RC's integrated MOSFET enables independent LED control, allowing PWM dimming or complete shutdown for low-power standby. The 8 sensors on the QTR-8RC, set at 0.375-inch spacing provide sufficient resolution and width for complex line-following paths. The QTR-8RC's wide voltage support (3.3-5V) ensures compatibility with both 3.3V and 5V systems. A mature software ecosystem for the QTR-8RC (official Arduino library and application notes) further lowers the development barrier.
Why Choose QIXINWEI
Years of experience in the electronics industry. Trusted by global customers.
Massive In-Stock Inventory – Ready to ship promptly
BOM Matching Service – One-stop solution, save time
PCBA Customization – Professional engineering team creates tailor-made solutions based on your needs
Cost-Effective & Efficient – Better channel, better cost
A dedicated team makes your procurement smoother.
Contact us for BOM quotes or PCBA inquiries











FAQ:
What is the QTR-8RC and what are its key features?
The QTR-8RC is an 8-channel infrared reflectance sensor array designed for robot line following. Each channel pairs an IR emitter with a phototransistor and provides a digital output (active low) with a dedicated threshold potentiometer. The QTR-8RC operates from 3.3V or 5V and can be directly connected to Arduino, STM32, and other MCUs, making it a core sensing element for line-following robots.How do I wire the QTR-8RC? What are the power and data connections?
The QTR-8RC module has a single row of standard 2.54mm-pitch headers. Connect VCC to 3.3V or 5V power, GND to ground, and OUT1 through OUT8 to eight digital I/O pins on your microcontroller. No level-shifting circuitry is needed; simply use jumper wires or a ribbon cable.What kind of digital output signal does the QTR-8RC provide? How do I interpret the line detection?
The outputs of the QTR-8RC are TTL-level digital signals, active low. When a sensor is over a reflective (white) surface, its output goes low (~0V). When over a dark (black) surface, the output goes high (~VCC). By reading the eight GPIO states, the robot can determine its position relative to the line.What is the difference between the QTR-8RC and QTR-8A? Which one should I choose?
The QTR-8RC provides digital outputs with onboard potentiometer threshold adjustment—ideal for simple, direct line following without analog sampling. The QTR-8A outputs analog voltages and requires ADC readings, offering finer gray-scale information. Choose the RC for easy digital detection; choose the A if you need precise intensity values for PID control.How do I adjust the QTR-8RC's potentiometers? How can I optimize line following performance?
Each channel on the QTR-8RC has a tiny potentiometer that can be turned with a small Phillips screwdriver. Turning clockwise generally raises the threshold (requires stronger reflection to trigger). The best tuning method is to place the sensor over a white background, rotate clockwise until the output just stabilizes low, then back off slightly to ensure reliable black-line detection.What is the optimal mounting height for the QTR-8RC sensor?
A distance of 3mm to 6mm between the QTR-8RC and the reflecting surface is recommended. Too low may risk hitting the ground, while too high weakens the signal. For typical line-following robots, start around 3–5mm and fine-tune for stable readings.Can I use the QTR-8RC with 3.3V microcontrollers like STM32 or ESP32?
Absolutely. The QTR-8RC module operates from 3.3V to 5V, and the output high voltage equals the supply voltage. When powered at 3.3V, the outputs are 3.3V-tolerant, so they can be directly connected to 3.3V I/O pins without any level shifting.Can I daisy-chain multiple QTR-8RC modules to get 16 channels?
Yes. Each QTR-8RC module's outputs are independent. To expand to 16 channels, simply connect VCC and GND of both QTR-8RC modules in parallel, then wire all 16 outputs to 16 digital I/O pins on your controller. This provides a wider sensor array for better line coverage.How do I write an Arduino line-following program for the QTR-8RC? Are there example codes?
Programming the QTR-8RC is straightforward. Define an array of the 8 output pins and use digitalRead() in a loop to poll each sensor. Common approaches use a weighted average or PID algorithm to compute the robot's offset from the line. Numerous open-source examples and tutorials exist online, ranging from simple bang-bang control to advanced PID implementations.What are the dimensions, weight, and mounting options of the QTR-8RC?
The QTR-8RC board measures approximately 75mm × 12.7mm, with a sensor pitch of 9.525mm. It weighs about 3g. Several mounting holes allow attachment to a robot chassis using M2 or M3 screws. Its compact, lightweight design is well suited for small racing robots with limited space.
- Model:
- QTR-8RC
- Sensor Type:
- Reflective Infrared Sensor Array
- Number of Channels:
- 8
- Output Type:
- Digital I/O-compatible
- Operating Voltage:
- 3.3V – 5.0V DC
- Sensor Pitch:
- 0.375 inch
- Optimal Sensing Distance:
- 3 mm
- Maximum Recommended Sensing Distance:
- 9.5 mm
- LED Control:
- MOSFET-controlled on/off and PWM dimming
- Applications:
- Robot line following, edge detection, proximity sensing, reflectance measurement