{"product_id":"mag-960-qtr-8a-reflectance-sensor-array","title":"QTR-8A 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\u003eanalog voltage output\u003c\/strong\u003e .\u003c\/p\u003e\n\n\u003cbr\u003e\u003cp class=\"note\"\u003e \u003cstrong\u003eNote:\u003c\/strong\u003e The QTR-8A reflectance sensor array requires analog inputs to take readings. The similar \u003ca href=\"https:\/\/www.pololu.com\/product\/961\"\u003eQTR-8RC reflectance sensor array\u003c\/a\u003e is available with digital I\/O-compatible outputs, and the reflectance sensor is available individually as a \u003ca href=\"https:\/\/www.pololu.com\/product\/2458\"\u003eQTR-1A reflectance sensor\u003c\/a\u003e or \u003ca href=\"https:\/\/www.pololu.com\/product\/2459\"\u003eQTR-1RC 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-8A 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). Each phototransistor is connected to a pull-up resistor to form a voltage divider that produces an analog voltage output between 0 V and VIN (which is typically 5 V) as a function of the reflected IR Lower output voltage is an indication of greater reflection.\u003c\/p\u003e\n\n\u003cp\u003e The 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\u003eThe 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-8a reflectance sensor array. data-picture-id=\"0J614\" data-picture-longest_side=\"650\" src=\"https:\/\/a.pololu-files.com\/picture\/0J614.650.png?25f5763bc23fdfd2eb66b7df13404e77\"\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n\u003cp\u003e For a similar array with three sensors, consider our \u003ca href=\"https:\/\/www.pololu.com\/product\/2456\"\u003eQTR-3A reflectance sensor array\u003c\/a\u003e . The sensors on the QTR-8A are also available individually as the \u003ca href=\"https:\/\/www.pololu.com\/product\/2458\"\u003eQTR-1A reflectance sensor\u003c\/a\u003e , and the \u003ca href=\"https:\/\/www.pololu.com\/product\/2454\"\u003eQTR-L-1A\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\t \u003cli\u003eDimensions: 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 analog voltages\u003c\/li\u003e\n\n\u003cli\u003e Output voltage range: 0 V to supplied voltage\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.25\" (6 mm)\u003c\/li\u003e\n\n\u003cli\u003e Weight without header pins: 0.11 oz (3.09 g)\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n\u003ch3\u003e Interfacing with the QTR-8A Outputs\u003c\/h3\u003e\n\n\u003cp\u003e There are several ways you can interface with the QTR-8A outputs:\u003c\/p\u003e\n\n\u003cul\u003e\n\n\u003cli\u003e Use a microcontroller's analog-to-digital converter (ADC) to measure the voltages.\u003c\/li\u003e\n\n\u003cli\u003e Use a comparator with an adjustable threshold to convert each analog voltage into a digital (ie black\/white) signal that can be read by the digital I\/O line of a microcontroller.\u003c\/li\u003e\n\n\u003cli\u003e Connect each output directly to a digital I\/O line of a microcontroller and rely upon its internal comparator.\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n \u003cp\u003eThis 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. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ctable\u003e\u003ctr\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"max-width: 300px\"\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J638.1200.png?25e328bebc696eac190e4b40f70e1d06\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id output away from a spinning white disk with black line on it. data-picture-id=\"0J638\" data-picture-longest_side=\"1024\" src=\"https:\/\/a.pololu-files.com\/picture\/0J638.300.jpg?25e328bebc696eac190e4b40f70e1d06\"\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: 300px\"\u003e\u003cp\u003e QTR-1A output 1\/8\" away from a spinning white disk with a black line on it. \u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\n\u003ctr\u003e\u003ctd style=\"max-width: 300px\"\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J640.1200.png?8f9afe41d5408ff1438c62379e599c5a\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id output away from a spinning white disk with black line on it. data-picture-id=\"0J640\" data-picture-longest_side=\"1024\" src=\"https:\/\/a.pololu-files.com\/picture\/0J640.300.jpg?8f9afe41d5408ff1438c62379e599c5a\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\u003c\/tr\u003e\n\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003e QTR-1A output 3\/8\" away from a spinning white disk with a black line on it. \u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\u003c\/td\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/tr\u003e\u003c\/table\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e\u003cbr clear=\"all\"\u003e\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","brand":"Pololu","offers":[{"title":"Default Title","offer_id":47169974993241,"sku":"340960","price":14.57,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0j615.1200_2.jpg?v=1695769405","url":"https:\/\/xernuqvalzi.pro\/en\/products\/mag-960-qtr-8a-reflectance-sensor-array","provider":"Robot Italy","version":"1.0","type":"link"}