{"product_id":"mag-1419-zumo-reflectance-sensor-array","title":"Zumo Reflectance Sensor Array","description":"\u003cp\u003eThis reflectance sensor module is designed for use with the \u003ca href=\"https:\/\/www.pololu.com\/product\/2521\"\u003eZumo shield for Arduino\u003c\/a\u003e.  It has six IR LED\/phototransistor pairs that can be used for line following or edge detection; each sensor provides an independent, digital I\/O-measurable output.  The array draws approximately 40 mA when the emitters are on, and an optional input allows the emitters to be turned off for additional sensing or power-saving options.\u003c\/p\u003e\n\u003cbr\u003e\u003cp class=\"note_warning\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e This product is specifically designed to work with the \u003ca href=\"https:\/\/www.pololu.com\/product\/2521\"\u003eZumo shield for Arduino\u003c\/a\u003e.  For an alternative that works with our newer \u003ca href=\"https:\/\/www.pololu.com\/category\/170\/zumo-32u4-oled-robot\"\u003eZumo 32U4 robots\u003c\/a\u003e, see the \u003ca href=\"https:\/\/www.pololu.com\/product\/3122\"\u003eZumo 32U4 Front Sensor Array\u003c\/a\u003e.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 300px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4208.1200.jpg?c05f3e07444297921744f2c24058bcc3\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array with labeled sensors and dimensions. data-picture-id=\"0J4208\" data-picture-longest_side=\"799\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4208.300.jpg?c05f3e07444297921744f2c24058bcc3\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eZumo reflectance sensor array with labeled sensors and dimensions.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eOverview\u003c\/h3\u003e\n\u003cp\u003eThe Zumo reflectance sensor array provides an easy way to add line sensing or edge detection to a \u003ca href=\"https:\/\/www.pololu.com\/product\/2509\"\u003eZumo robot\u003c\/a\u003e.  It features six separate reflectance sensors, each consisting of an IR emitter coupled with a phototransistor that responds based on how much emitter light is reflected back to it.  The two outside sensors are positioned at the very edges of the module to maximize their usefulness as edge detectors (e.g. for seeing the white edge of a sumo ring) while the four inner sensors are closer together for better detecting lines.  This sensor is included with the \u003ca href=\"https:\/\/www.pololu.com\/product\/2510\"\u003eassembled version\u003c\/a\u003e of the Zumo robot, but not with the \u003ca href=\"https:\/\/www.pololu.com\/product\/2509\"\u003ekit version\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eThe sensor array plugs into the front expansion header of the Zumo shield, which provides it with power and the necessary I\/O connections.  The default I\/O connections are to pins that are otherwise unused by the Zumo shield, but the sensor module makes it possible to remap these pins or disconnect specific sensors altogether to free up I\/O lines.  Please see the \u003ca href=\"https:\/\/www.pololu.com\/docs\/0J57\/2.c\"\u003eZumo Shield user’s guide\u003c\/a\u003e for detailed information about assembly and use with the Zumo robot.\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 300px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4213.1200.jpg?3d397f540c01698a0bf33e3b2cbdc3e0\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array on a zumo robot. data-picture-id=\"0J4213\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4213.300.jpg?3d397f540c01698a0bf33e3b2cbdc3e0\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eZumo reflectance sensor array on a Zumo robot.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 276px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4214.1200.jpg?fcb59377e1a393539427c563da1f9e1a\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array on a zumo robot bottom view. data-picture-id=\"0J4214\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4214.276.jpg?fcb59377e1a393539427c563da1f9e1a\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 276px\"\u003e\u003cp\u003eZumo reflectance sensor array on a Zumo robot, bottom view.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eIncluded components\u003c\/h3\u003e\n\u003cp\u003eThe Zumo reflectance sensor array ships with all of the components you need to connect it to a Zumo shield:\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4209.1200.jpg?ef179368c8e8e4bc6e1f9a7b36fd5cbb\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array with included hardware. data-picture-id=\"0J4209\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4209.276.jpg?ef179368c8e8e4bc6e1f9a7b36fd5cbb\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 276px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4212.1200.jpg?f06aaa4e9f583820bf6317d5a3cf52de\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array assembled with included male header pins. data-picture-id=\"0J4212\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4212.276.jpg?f06aaa4e9f583820bf6317d5a3cf52de\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 276px\"\u003e\u003cp\u003eZumo reflectance sensor array assembled with included male header pins.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe short ends of the extended 2×12 male header strip should be soldered to the board as shown above (with the solder joints made on the component side of the array).  The included 2×12 female header should be soldered to the front expansion area of the Zumo shield as described in the Zumo shield user’s guide.  The array also ships with two 1×3 male headers: a straight version and a right-angle version.  You can optionally solder the 1×3 header of your choice to the set of three holes along the edge of the board and use the included shorting block to connect the appropriate I\/O line to the LEDON pin for dynamic control of the IR emitters (note: it is generally easier to install the 3-pin header before the larger 24-pin header).  If you are content just having the IR emitters on all the time, you can skip installation of the 1×3 header.  The assembled picture above shows the right-angle header installed.\u003c\/p\u003e\n\u003ch3\u003eHow it works\u003c\/h3\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4215.1200.png?656a43bfa678ee173d1a8e38c20229b2\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id reflectance sensor array phototransistor circuit. data-picture-id=\"0J4215\" data-picture-longest_side=\"201\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4215.201.png?656a43bfa678ee173d1a8e38c20229b2\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\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\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 200px\"\u003e\u003cp\u003eQTR-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\u003c\/table\u003e\n\u003cp\u003eThe array uses the same sensor modules as our \u003ca href=\"https:\/\/www.pololu.com\/category\/123\/pololu-qtr-reflectance-sensors\"\u003eQTR reflectance sensors\u003c\/a\u003e and has the same principle of operation as our \u003ca href=\"https:\/\/www.pololu.com\/product\/961\"\u003eQTR-8RC version\u003c\/a\u003e.  The procedure for reading each sensor is as follows:\u003c\/p\u003e\n\u003col\u003e\n\t\u003cli\u003eTurn on IR LEDs (optional).\u003c\/li\u003e\n\t\u003cli\u003eMake the I\/O line connected to that sensor an output and drive it high.\u003c\/li\u003e\n\t\u003cli\u003eWait several microseconds to give the 1 nF capacitor node time to reach 5 V.\u003c\/li\u003e\n\t\u003cli\u003eMake the I\/O line an input (with internal pull-up disabled).\u003c\/li\u003e\n\t\u003cli\u003eMeasure the time for the voltage to decay by waiting for the I\/O line to go low.\u003c\/li\u003e\n\t\u003cli\u003eTurn off IR LEDs (optional).\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003cp\u003eThese steps can typically be executed in parallel for all six sensors.  Our Zumo Arduino library provides functions for reading the sensors and controlling the emitters (as well as high-level functions for taking calibrated readings and determining the position of a line), so you do not have to program this sequence of steps yourself.\u003c\/p\u003e\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.  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 6 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 40 mA to 4 mA.\u003c\/p\u003e\n\u003cp\u003eTo minimize the required emitter current, the IR LEDs are arranged in two parallel chains of three and powered from the Zumo shield’s boosted 7.45 V.  Each chain of emitters is wired in series with a red LED, making it possible to tell when current is flowing through that chain (it is not possible to tell if the IR LEDs are on by looking at them with the unaided eye).  All of the IR emitter LEDs are controlled by a single MOSFET that is gated by a digital LEDON input that enables the emitters when left disconnected or driven high.  If this input is driven low, the emitters are disabled.  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.  Additionally, reading the sensors with the emitters turned off makes it possible to detect (and potentially compensate for) any ambient IR that might be interfering with readings.  When the emitters are on, the sensor array draws approximately 40 mA.\u003c\/p\u003e\n\u003ch3\u003eSchematic diagram\u003c\/h3\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id diagram for the zumo reflectance sensor array. data-picture-id=\"0J4211\" data-picture-longest_side=\"1449\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4211.650.jpg?53d72d85b1315fea8545992d868c9a88\"\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cp\u003eThis schematic diagram is also available as a \u003cstrong\u003e\u003ca href=\"\/file\/0J602\/zumo-reflectance-sensor-array-schematic-diagram.pdf\"\u003edownloadable pdf\u003c\/a\u003e (211k pdf)\u003c\/strong\u003e.\u003c\/p\u003e","brand":"Pololu","offers":[{"title":"Default Title","offer_id":47169971028313,"sku":"341419","price":21.89,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0j4209.1200.jpg?v=1695769243","url":"https:\/\/xernuqvalzi.pro\/products\/mag-1419-zumo-reflectance-sensor-array","provider":"Robot Italy","version":"1.0","type":"link"}