{"product_id":"mag-961-qtr-8rc-reflectance-sensor-array","title":"QTR-8RC Reflectance Sensor Array","description":"\u003cp\u003eThis sensor module has 8 IR LED\/phototransistor pairs mounted on a 0.375\" pitch, making it a great detector for a line-following robot. Pairs of LEDs are arranged in series to halve current consumption, and a MOSFET allows the LEDs to be turned off for additional sensing or power-savings options. Each sensor provides a separate \u003cstrong\u003edigital I\/O-measurable output\u003c\/strong\u003e .\u003c\/p\u003e\n\n\u003cbr\u003e\u003cp class=\"note\"\u003e \u003cstrong\u003eNote:\u003c\/strong\u003e The QTR-8RC reflectance sensor array requires digital I\/O lines to take readings. The similar \u003ca href=\"https:\/\/www.pololu.com\/product\/960\"\u003eQTR-8A reflectance sensor array\u003c\/a\u003e is available with analog outputs, and the reflectance sensor is available individually as a \u003ca href=\"https:\/\/www.pololu.com\/product\/2459\"\u003eQTR-1RC reflectance sensor\u003c\/a\u003e or \u003ca href=\"https:\/\/www.pololu.com\/product\/2458\"\u003eQTR-1A reflectance sensor\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption right\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J620.1200.jpg?bd107c597db7e9bd09f79da3e8d3f56e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array on a line with quarter for size reference. data-picture-id=\"0J620\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J620.250.jpg?bd107c597db7e9bd09f79da3e8d3f56e\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n\u003ch3\u003e Functional Description\u003c\/h3\u003e\n\n \u003cp\u003eThe QTR-8RC 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 eight IR emitter and receiver (phototransistor) pairs evenly spaced at intervals of 0.375\" (9.525 mm). To use a sensor, you must first charge the output node by applying a voltage to its OUT pin. You can then read the reflectance by withdrawing that externally applied voltage on the OUT pin and timing how long it takes the output voltage to decay due to the integrated phototransistor. Shorter decay time is an indication of greater reflection when coupled with the ability of the QTR-8RC module to turn off LED power:\u003c\/p\u003e\n\n\u003cul\u003e\n\n\u003cli\u003e No analog-to-digital converter (ADC) is required\u003c\/li\u003e\n\n\u003cli\u003e Improved sensitivity over voltage-divider analog output\u003c\/li\u003e\n\n\u003cli\u003e Parallel reading of multiple sensors is possible with most microcontrollers\u003c\/li\u003e\n\n\u003cli\u003e Parallel reading allows optimized use of LED power enable option\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n \u003cp\u003eThe outputs are all independent, but the LEDs are arranged in pairs to halve current consumption. The LEDs are controlled by a MOSFET with a gate normally pulled high, allowing the LEDs to be turned off by setting the MOSFET gate to a low voltage. Turning the LEDs off might be advantageous for limiting power consumption when the sensors are not in use or for varying the effective brightness of the LEDs through PWM control.\u003c\/p\u003e\n\n\u003cp\u003e This sensor was designed to be used with the board parallel to the surface being sensed.\u003c\/p\u003e\n\n\u003cp\u003e The LED current-limiting resistors for 5 V operation are arranged in two stages; this allows a simple bypass of one stage to enable operation at 3.3 V. The LED current is approximately 20–25 mA, making the total board consumption just under 100 mA. The schematic diagram of the module is shown below: \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id diagram of the qtr-8rc reflectance sensor array. data-picture-id=\"0J629\" data-picture-longest_side=\"650\" src=\"https:\/\/a.pololu-files.com\/picture\/0J629.650.png?3eefac30beca66e1919bcfe3dfa78bf3\"\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n \u003cp\u003eFor a similar array with three sensors, consider our \u003ca href=\"https:\/\/www.pololu.com\/product\/2457\"\u003eQTR-3RC reflectance sensor array\u003c\/a\u003e . The sensors on the QTR-8RC are also available individually as the \u003ca href=\"https:\/\/www.pololu.com\/product\/2459\"\u003eQTR-1RC reflectance sensor\u003c\/a\u003e , and the \u003ca href=\"https:\/\/www.pololu.com\/product\/2455\"\u003eQTR-L-1RC\u003c\/a\u003e is an alternative designed to be used with the board perpendicular to the surface. \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"max-width: 400px\"\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4642.1200.jpg?9ae24a3959a88fee8dd66d333023e2dc\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id sensor size comparison. top row: qtrx-hd-07 qtr-hd-07 middle qtr-3 qtr-1 qtr-l-1 bottom qtr-8. data-picture-id=\"0J4642\" data-picture-longest_side=\"934\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4642.400.jpg?9ae24a3959a88fee8dd66d333023e2dc\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\u003cth style=\"max-width: 400px\"\u003e\u003cp\u003e QTR sensor size comparison. Top row: QTRX-HD-07, QTR-HD-07; middle row: QTR-3, QTR-1, QTR-L-1; bottom row: QTR-8.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003ch3\u003e Specifications\u003c\/h3\u003e\n\n\u003cul\u003e\n\n\u003cli\u003e Dimensions: 2.95\" x 0.5\" x 0.125\" (without header pins installed)\u003c\/li\u003e\n\n\u003cli\u003e Operating voltage: 3.3-5.0V\u003c\/li\u003e\n\n\u003cli\u003e Supply current: 100 mA\u003c\/li\u003e\n\n\u003cli\u003e Output format: 8 digital I\/O-compatible signals that can be read as a timed high pulse\u003c\/li\u003e\n\n\u003cli\u003e Optimal sensing distance: 0.125\" (3 mm)\u003c\/li\u003e\n\n\u003cli\u003e Maximum recommended sensing distance: 0.375\" (9.5 mm)\u003c\/li\u003e\n\n\t \u003cli\u003eWeight without header pins: 0.11 oz (3.09 g) \u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n\u003ctable class=\"picture_with_caption right\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"max-width: 200px\"\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J632.1200.png?5b1e274b8d9da6f434b2673cfbfbd2fe\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id output when above a black line and microcontroller timing of that data-picture-id=\"0J632\" data-picture-longest_side=\"1024\" src=\"https:\/\/a.pololu-files.com\/picture\/0J632.200.jpg?5b1e274b8d9da6f434b2673cfbfbd2fe\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\u003cth style=\"max-width: 200px\"\u003e\u003cp\u003e QTR-1RC output (yellow) when 1\/8\" above a black line and microcontroller timing of that output (blue).\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003ch3\u003e Interfacing the QTR-8RC Outputs to Digital I\/O Lines\u003c\/h3\u003e\n\n\u003cp\u003e The QTR-8RC module has eight identical sensor outputs that, like the Parallax QTI, require 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:\u003c\/p\u003e\n\n\u003col\u003e\n\n\u003cli\u003e Turn on IR LEDs (optional).\u003c\/li\u003e\n\n\u003cli\u003e Set the I\/O line to an output and drive it high.\u003c\/li\u003e\n\n\u003cli\u003e Allow at least 10 μs for the sensor output to rise.\u003c\/li\u003e\n\n\u003cli\u003e Make the I\/O line an input (high impedance).\u003c\/li\u003e\n\n\u003cli\u003e Measure the time for the voltage to decay by waiting for the I\/O line to go low.\u003c\/li\u003e\n\n\u003cli\u003e Turn off IR LEDs (optional).\u003c\/li\u003e\n\n\n\u003c\/ol\u003e\n\n\u003cp\u003e These steps can typically be executed in parallel on multiple I\/O lines.\u003c\/p\u003e\n\n \u003cp\u003eWith a strong reflectance, the decay time can be as low as several dozen 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 (ie when not trying to measure subtle differences in low-reflectance scenarios), allowing up to 1 kHz sampling of all 8 sensors. If lower-frequency sampling is sufficient, substantial power savings can be realized 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 100 mA to 10 mA.\u003c\/p\u003e\n\n \u003cp\u003eOur \u003ca href=\"https:\/\/www.pololu.com\/docs\/0J20\"\u003ePololu AVR library\u003c\/a\u003e provides functions that make it easy to use these sensors with our \u003ca href=\"https:\/\/www.pololu.com\/category\/8\/robot-controllers\"\u003eOrangutan robot controllers\u003c\/a\u003e ; please see the \u003ca href=\"http:\/\/www.pololu.com\/docs\/0J18\/16\"\u003eQTR Reflectance Sensors section\u003c\/a\u003e of our library command reference for more information. We also have an \u003ca href=\"https:\/\/www.pololu.com\/docs\/0J19\"\u003eArduino library\u003c\/a\u003e for these sensors.\u003c\/p\u003e\n\n\u003ch3\u003e Breaking the Module in Two\u003c\/h3\u003e\n\n\u003cp\u003e If you don't need or cannot fit all eight sensors, you can break off two sensors and still use all 8 sensors as two separate modules, as shown below. The PCB can be scored from both sides along the perforation and then bent until it snaps apart. Each of the two resulting pieces will function as an independent line sensor. \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id qtr-8a reflectance sensor can separate into two smaller functional arrays of length and data-picture-id=\"0J617\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J617.600.jpg?102e6e98a6f6ebbcc3720907b3ab9dc3\"\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n\u003cbr\u003e\n\u003ch3\u003e Included Components\u003c\/h3\u003e\n\n\u003cp\u003e This module ships with a 25-pin 0.1\" header strip and a 100 Ohm through-hole resistor as shown below. \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id reflectance sensor array with included header strip and through-hole resistor. data-picture-id=\"0J616\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J616.600.jpg?a5ee3588b721c1b00abed3493254096e\"\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n \u003cp\u003eYou can break the header strip into smaller pieces and solder them onto your reflectance sensor array as desired, or you can solder wires directly to the unit or use a \u003ca href=\"https:\/\/www.pololu.com\/product\/967\"\u003eright-angle header strip\u003c\/a\u003e for a more compact installation. The pins on the module are arranged so that they can all be accessed using either an 11×1 strip or an 8×2 strip.\u003c\/p\u003e\n\n\u003cp\u003e The resistor is required to make the two-sensor array functional after the original eight-sensor array is broken into two pieces. This resistor is only needed once the board has been broken. \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"max-width: 300px\"\u003e\u003cimg alt=\"\" class=\"\" data-gallery-pictures=\"[{\" id the included resistor to array piece as shown make separated functional. data-picture-id=\"0J619\" data-picture-longest_side=\"600\" src=\"https:\/\/a.pololu-files.com\/picture\/0J619.300.jpg?641a4a815d8d27ec4fbcc7b0fd1abdd3\"\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003e Solder the included resistor to the 2-sensor array piece as shown to make the separated piece functional.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003ch3\u003e How it works in detail\u003c\/h3\u003e\n\n\u003cp\u003e For more information about how this sensor works, see the “How it works in detail” section of the \u003ca href=\"https:\/\/www.pololu.com\/product\/2459\"\u003eQTR-1RC product page\u003c\/a\u003e .\u003c\/p\u003e","brand":"Pololu","offers":[{"title":"Default Title","offer_id":47169974403417,"sku":"340961","price":14.57,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0j615.1200.jpg?v=1695769387","url":"https:\/\/xernuqvalzi.pro\/en\/products\/mag-961-qtr-8rc-reflectance-sensor-array","provider":"Robot Italy","version":"1.0","type":"link"}