This compact module packs three IR LED/phototransistor pairs onto a 1.25″ × 0.3″ board. The sensors are mounted on a 0.375″ pitch, making this array a great minimal sensing solution for a line-following robot. Each sensor provides a separate analog voltage output.
|Description||Specs (3)||Pictures (7)||Resources (8)||FAQs (0)||On the blog (2)|
The QTR-3A reflectance sensor array requires analog inputs to take readings. The similar QTR-3RC reflectance sensor array is available with digital I/O-compatible outputs.
The QTR-3A reflectance sensor array is intended as a line sensor, but it can be used as a general-purpose proximity or reflectance sensor. The module is a convenient carrier for three IR emitter and receiver (phototransistor) pairs. With sensors spaced at intervals of 0.375″ (9.525 mm) along of the board’s longer axis, this array works well as a minimal detector for line-following robots, as line-following courses are commonly made using 3/4″ (19 mm) black electrical tape. The middle sensor is slightly offset along the short axis of the board.
Each phototransistor is connected to a pull-up resistor to form a voltage divider that produces an analog voltage output between 0 V and VCC (which is typically 5 V) as a function of the reflected IR. Lower output voltage is an indication of greater reflection.
The LED current-limiting resistors are set to deliver approximately 17 mA to the LEDs when VCC is 5 V, making the total board consumption just over 50 mA. The schematic diagram of the module is shown below:
This schematic is also available as a downloadable pdf (115k pdf).
For an alternative array with eight sensors and the ability to turn off the IR LEDs to limit power consumption, consider our QTR-8A reflectance sensor array. For individual reflectance sensors, consider our QTR-1A and QTR-L-1A.
|QTR sensor size comparison. Clockwise from top left: QTR-3RC, QTR-1RC, QTR-L-1RC, QTR-8RC.|
- Dimensions: 1.25″ × 0.3″ × 0.1″ (32 × 8 × 3 mm) (without header pins installed)
- Operating voltage: 5.0 V
- Supply current: 50 mA
- Output format: 3 analog voltages
- Output voltage range: 0 V to supplied voltage
- Optimal sensing distance: 0.125" (3 mm)
- Maximum recommended sensing distance: 0.25" (6 mm)
- Weight without header pins: 0.02 oz (0.6 g)
Interfacing with the QTR-3A Outputs
There are several ways you can interface with the QTR-3A outputs:
- Use a microcontroller’s analog-to-digital converter (ADC) to measure the voltages.
- Use a comparator with an adjustable threshold to convert each analog voltage into a digital (i.e. black/white) signal that can be read by the digital I/O line of a microcontroller.
- Connect each output directly to a digital I/O line of a microcontroller and rely upon its internal comparator.
This last method will work if you are able to get high reflectance from your white surface as depicted in the left image, but will probably fail if you have a lower-reflectance signal profile like the one on the right. (Please note that these images show the output of a QTR-1A, which uses a sensor with slightly different characteristics than the ones on the QTR-3A.)
Our Pololu AVR library provides functions that make it easy to use these sensors with our Orangutan robot controllers; please see the QTR Reflectance Sensors section of our library command reference for more information. We also have a Arduino library for these sensors.
This module has two mounting holes intended for #2 screws (not included); if the mounting holes are not needed, the ends of the PCB can be ground off to make the unit even smaller (less than 1″ wide). The reflectance sensor array ships with a 1×5 straight male header strip and a1×5 right-angle male header strip as shown below. You can also solder wires, such as ribbon cable, directly to the pads for the smallest installation.
People often buy this product together with:
|QTR-1A Reflectance Sensor (2-Pack)|
|QTR-8A Reflectance Sensor Array|
|QTR-3RC Reflectance Sensor Array|