sensors pitch size (mm) output max current optimal range LED board 4 8 mm 29.0 × 20.0 RC (digital) 3.5 mA 9 mA 10 mm This array of IR LED/phototransistor pairs is great for precisely identifying changes in reflectance (like line detection).
Special Order
Shipping from $7.90
+94 more from our supplier in 7-10 days
Our Code: SKU-004838
Supplier Link: [Pololu MPN:4344]
These reflectance sensors feature a linear array of IR emitter/phototransistor pair modules in a high-density (4 mm pitch) or medium-density (8 mm pitch) arrangement, which makes them well suited for applications that require detection of changes in reflectivity. This change in reflectivity can be due to a colour change at a fixed distance, such as when sensing a black line on a white background, as well as due to a change in the distance to or presence of an object in front of the sensor. A variety of sensor counts and densities is available so you can pick the ideal arrangement for your application. The sensor outputs are independent, so modules with high channel counts can be useful for attaining irregular sensor spacings even when all channels are not used.
Unlike our original QTR sensor modules, these units have integrated LED drivers that provide brightness control independent of the supply voltage, which can be anywhere from 2.9 V to 5.5 V, while enabling optional dimming to any of 32 possible brightness settings. For modules with five or more sensors, there are separate controls for the odd-numbered and even-numbered LEDs, which gives you extra options for detecting light reflected at various angles. See the “Emitter control” section below for more information on using this feature.
Two different sensor options are available, denoted by “QTR” or “QTRX” in the product name. The “QTR” versions feature lower-cost sensor modules without lenses while the “QTRX” versions feature higher-performance sensor modules with lenses, which allow similar performance at a much lower IR LED current. You can see the two different sensor styles in the pictures below of the 4-channel modules:
|
|
Each sensor option is available in two output types: an “A” version with analogue voltage outputs between 0 V and VCC, and an “RC” version with outputs that can be read with a digital I/O line on a microcontroller by first setting the lines high and then releasing them and timing how long it takes them to read as low (typically anywhere from a few microseconds to a few milliseconds). The lower the output voltage or shorter the voltage decay time, the higher the reflectance. The following simplified schematic diagrams show the circuits for the individual channels:
Our Arduino library makes it easy to use these sensor modules with an Arduino or compatible controller by providing methods for controlling the emitters, calibrating the module, and reading the individual sensor values from either the A or RC versions. It also has a method specifically for line-following applications to compute the location of the line under the array.
Note: Unlike most of our products, these sensor arrays do not ship with any headers or connectors included, so you will need to supply your own or solder wires directly to the board to use it. See our selection of male headers, female headers, and pre-crimped wires for various connector options.
Each sensor on the A versions outputs its reflectance measurement as an analogue voltage that can range from 0 V when the reflectance is very strong to VCC when the reflectance is very weak. The typical sequence for reading a sensor is:
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.
|
|
Each sensor on the RC versions requires a digital I/O line capable of driving the output line high and then measuring the time for the output voltage to decay. The typical sequence for reading a sensor is:
These steps can typically be executed in parallel on multiple I/O lines.
With a strong reflectance, the decay time can be as low as a few microseconds; with no reflectance, the decay time can be up to a few milliseconds. The exact time of the decay depends on your microcontroller’s I/O line characteristics. Meaningful results can be available within 1 ms in typical cases (i.e. when not trying to measure subtle differences in low-reflectance scenarios), allowing up to 1 kHz sampling of all sensors. If lower-frequency sampling is sufficient, you can achieve substantial power savings by turning off the LEDs. For example, if a 100 Hz sampling rate is acceptable, the LEDs can be off 90% of the time, lowering average current consumption from 125 mA to 13 mA.
These reflectance sensor arrays maintain a constant current through their IR emitters, keeping the emitters’ brightness constant, independent of the supply voltage (2.9 V to 5.5 V). The emitters can be controlled with the board’s CTRL pins, and the details of the control depends on the array size and density:
Driving a CTRL pin low for at least 1 ms turns off the associated emitter LEDs, while driving it high (or allowing the board to pull it high) turns on the emitters with the board’s default (full) current, which is 30 mA for “QTR” versions and 3.5 mA for “QTRX” versions. For more advanced use, the CTRL pin can be pulsed low to cycle the associated emitters through 32 dimming levels.
|
To send a pulse, you should drive the CTRL pin low for at least 0.5 μs (but no more than 300 μs), then high for at least 0.5 μs; (it should remain high after the last pulse). Each pulse causes the driver to advance to the next dimming level, wrapping around to 100% after the lowest-current level. Each dimming level corresponds to a 3.33% reduction in current, except for the last three levels, which represent a 1.67% reduction, as shown in the table below. Note that turning the LEDs off with a >1 ms pulse and then back on resets them to full current.
Dimming level (pulses) |
Emitter current (%) |
Dimming level (pulses) |
Emitter current (%) |
|
---|---|---|---|---|
0 | 100.00% | 16 | 46.67% | |
1 | 96.67% | 17 | 43.33% | |
2 | 93.33% | 18 | 40.00% | |
3 | 90.00% | 19 | 36.67% | |
4 | 86.67% | 20 | 33.33% | |
5 | 83.33% | 21 | 30.00% | |
6 | 80.00% | 22 | 26.67% | |
7 | 76.67% | 23 | 23.33% | |
8 | 73.33% | 24 | 20.00% | |
9 | 70.00% | 25 | 16.67% | |
10 | 66.67% | 26 | 13.33% | |
11 | 63.33% | 27 | 10.00% | |
12 | 60.00% | 28 | 6.67% | |
13 | 56.67% | 29 | 5.00% | |
14 | 53.33% | 30 | 3.33% | |
15 | 50.00% | 31 | 1.67% |
For example, to reduce the emitter current to 50%, you would apply 15 low pulses to the CTRL pin and then keep it high after the last pulse.
Sensor type |
Supply voltage |
Max LED current |
Optimal range |
Max range |
Board length |
Pitch | Sensor count |
Max board current(2) |
Output type |
Name | 1-piece price |
---|---|---|---|---|---|---|---|---|---|---|---|
QTRX | 2.9 V to 5.5 V | 3.5 mA(1) | 10 mm | 50 mm | 10.2 mm | 4 mm | 2 | 5 mA | RC (digital) | QTRX-HD-02RC | $2.88 |
analogue | QTRX-HD-02A | ||||||||||
17.0 mm | 4 mm | 4 | 9 mA | RC (digital) | QTRX-HD-04RC | $4.78 | |||||
analogue | QTRX-HD-04A | ||||||||||
29.0 mm | 4 mm | 7 | 17 mA | RC (digital) | QTRX-HD-07RC | $8.06 | |||||
analogue | QTRX-HD-07A | ||||||||||
8 mm | 4 | 9 mA | RC (digital) | QTRX-MD-04RC | $4.96 | ||||||
analogue | QTRX-MD-04A | ||||||||||
61.0 mm | 4 mm | 15 | 34 mA | RC (digital) | QTRX-HD-15RC | $16.52 | |||||
analogue | QTRX-HD-15A | ||||||||||
8 mm | 8 | 17 mA | RC (digital) | QTRX-MD-08RC | $9.43 | ||||||
analogue | QTRX-MD-08A | ||||||||||
QTR | 2.9 V to 5.5 V | 30 mA(1) | 5 mm | 50 mm | 10.2 mm | 4 mm | 2 | 32 mA | RC (digital) | QTR-HD-02RC | $2.12 |
analogue | QTR-HD-02A | ||||||||||
17.0 mm | 4 mm | 4 | 62 mA | RC (digital) | QTR-HD-04RC | $3.26 | |||||
analogue | QTR-HD-04A | ||||||||||
29.0 mm | 4 mm | 7 | 125 mA | RC (digital) | QTR-HD-07RC | $5.40 | |||||
analogue | QTR-HD-07A | ||||||||||
8 mm | 4 | 62 mA | RC (digital) | QTR-MD-04RC | $3.44 | ||||||
analogue | QTR-MD-04A | ||||||||||
61.0 mm | 4 mm | 15 | 250 mA | RC (digital) | QTR-HD-15RC | $10.82 | |||||
analogue | QTR-HD-15A | ||||||||||
8 mm | 8 | 125 mA | RC (digital) | QTR-MD-08RC | $6.39 | ||||||
analogue | QTR-MD-08A | ||||||||||
1 Independent of supply voltage; can be dynamically reduced to any of 32 available dimming levels. 2 With all LEDs on at their maximum brightness setting. |
Size: | 29.0 × 20.0 × 3.0 mm |
---|---|
Weight: | 1.5 g |
Maximum range: | 50 mm |
---|---|
Optimal range: | 10 mm |
Minimum operating voltage: | 2.9 V |
Maximum operating voltage: | 5.5 V |
LED current: | 3.5 mA1 |
Peak wavelength: | 940 nm |
Maximum current draw: | 9 mA2 |
Sensor type: | QTRX |
Sensor pitch: | 8.0 mm |
Sensor count: | 4 |
Output type: | RC (measurable by digital I/O) |
PCB dev codes: | irs27j3 |
---|---|
Other PCB markings: | 0J113833 |
This guide explains how to use the QTRSensors library to read Pololu QTR sensors with an Arduino or A-Star 32U4 controller.