{"product_id":"3499-magnetic-encoder-pair-kit-for-20d-mm-metal-gearmotors-20-cpr-2-7-18v","title":"Magnetic Encoder Pair Kit for 20D mm Metal Gearmotors, 20 CPR, 2.7-18V","description":"\u003cp\u003eAdd quadrature encoders to your 20D mm metal gearmotors (extended back shaft version required) with this kit that uses a magnetic disc and Hall effect sensors to provide 20 counts per revolution of the motor shaft. The sensors operate from 2.7 V to 18 V and provide digital outputs that can be connected directly to a microcontroller or other digital circuit. This module is compatible with \u003cstrong\u003eall\u003c\/strong\u003e of the dual-shaft 20D mm metal gearmotors we carry.\u003c\/p\u003e\n\n\u003cbr\u003e\u003ch2\u003e Overview\u003c\/h2\u003e\n\n \u003cp\u003eThis kit includes two dual-channel Hall effect sensor boards and two \u003ca href=\"https:\/\/www.pololu.com\/product\/3498\"\u003e10-pole magnetic discs\u003c\/a\u003e that can be used to add quadrature encoding to two \u003ca href=\"https:\/\/www.pololu.com\/category\/167\/20d-metal-gearmotors\"\u003e20D mm metal gearmotors\u003c\/a\u003e \u003cstrong\u003ewith extended back shafts\u003c\/strong\u003e (motors are not included with this kit). The encoder board senses the rotation of the magnetic disc and provides a resolution of 20 counts per revolution of the motor shaft when counting both edges of both channels. To compute the counts per revolution of the gearbox output shaft, multiply the gear ratio by 20. (We also have a \u003ca href=\"https:\/\/www.pololu.com\/product\/3449\"\u003e6-pole magnetic disc\u003c\/a\u003e available separately that can work with this encoder to provide 12 counts per revolution of the motor shaft.)\u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7471.1200.jpg?395be9a7d554ec61370e6c96e5d3e7d0\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors assembled on a gearmotor with extended motor shaft. data-picture-id=\"0J7471\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7471.450.jpg?395be9a7d554ec61370e6c96e5d3e7d0\"\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 \u003cp\u003eThis compact encoder solution fits within the 20 mm diameter cross section of the rear of the motors on three of the four sides. The fourth side of the encoder has the signal and power connections, and it extends 3 mm past flat edge of the motor. The assembly does not extend past the end of the extended motor shaft, which protrudes 6 mm beyond the back of the motor. \u003c\/p\u003e\n\n\u003ctable class=\"side_by_side_pics\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7473.1200.jpg?96a724efe02a3df1ff32ac18ab0a9b47\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors assembled on a gearmotor with extended motor shaft. data-picture-id=\"0J7473\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7473.420.jpg?96a724efe02a3df1ff32ac18ab0a9b47\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7472.1200.jpg?0bd65969416552d80ac6af4a4afadc7e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors assembled on a gearmotor with extended motor shaft. data-picture-id=\"0J7472\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7472.150.jpg?0bd65969416552d80ac6af4a4afadc7e\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp class=\"note_warning\"\u003e \u003cstrong\u003eNote:\u003c\/strong\u003e This sensor system is intended for users comfortable with the physical encoder installation. It only works with 20D mm meta gearmotors that have extended motor shafts.\u003c\/p\u003e\n\n\u003ch2\u003e Pinout and installation\u003c\/h2\u003e\n\n \u003cp\u003eThe encoder board is designed to be soldered directly to the back of the motor, with the back shaft of the motor protruding through the hole in the middle of the circuit board. One way to achieve good alignment between the board and the motor is to tack down the board to one motor pin and to solder the other pin only when the board is flat and well aligned. Be careful to avoid prolonged heating of the motor pins, which could deform the motor case or brushes. Once the board is soldered down to the two terminals, the motor leads are connected to the M1 and M2 pads along the edge of the board; the remaining four pads are used to power the sensors and access the two quadrature outputs: \u003c\/p\u003e\n\n\u003ctable class=\"side_by_side_pics\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7468.1200.jpg?b2724a13f565ad16a9502a1910b54693\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors magnet-side view of pcb with labeled pinout. data-picture-id=\"0J7468\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7468.230.jpg?b2724a13f565ad16a9502a1910b54693\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7467.1200.jpg?4be297c964ce0cd582d892665e0966ec\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors motor-side view of pcb with dimensions. data-picture-id=\"0J7467\" data-picture-longest_side=\"1199\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7467.360.jpg?4be297c964ce0cd582d892665e0966ec\"\u003e\u003c\/a\u003e\n\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n \u003cp\u003eThe sensors are powered through the VCC and GND pins. VCC can be 2.7 V to 18 V, and the quadrature outputs A and B are digital signals that are either driven low (0 V) by the sensors or pulled to VCC through 10 kΩ pull-up resistors, depending on the applied magnetic field. The sensors' comparators have built-in hysteresis, which prevents spurious signals in cases where the motor stops near a transition point. \u003c\/p\u003e\n\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"max-width: 600px\"\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7470.1200.png?415a0b6e9be5b460d0bf2c7412cf0c4b\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id a and b outputs of magnetic encoder on metal gearmotor running at data-picture-id=\"0J7470\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7470.600.jpg?415a0b6e9be5b460d0bf2c7412cf0c4b\"\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: 600px\"\u003e\u003cp\u003e Encoder A and B outputs of a magnetic encoder on a 6V 20D mm metal gearmotor running at 6V.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e The board's six pads have a 0.1″ (2.54 mm) pitch, so they are compatible with common 0.1″ connectors, or you can just solder individual wires directly to the board.\u003c\/p\u003e\n\n \u003cp\u003eOnce the board is soldered to the motor, the magnetic encoder disc can be pushed onto the motor shaft. One easy way to accomplish this is to press the motor onto the disc while it is sitting on a flat surface, pushing until the shaft makes contact with that surface. From here, we recommend further pushing the disc a little closer to the PCB (by approximately 1 mm) to help ensure a strong signal and good performance. The exact position doesn't matter; just make sure not to push it so close that the magnet is rubbing against the sensors. \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\/0J7490.1200.jpg?8777c2550087db798ce565699b876f27\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id the magnetic disc onto motor shaft so protrudes approximately past disc. data-picture-id=\"0J7490\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7490.400.jpg?8777c2550087db798ce565699b876f27\"\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 Push the magnetic disc onto the motor shaft so the shaft protrudes approximately 1 mm past the disc.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003ch2\u003e Schematic diagram\u003c\/h2\u003e\n\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\n\u003ctd\u003e \u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7469.1200.png?b9f21a5259e49f2def9801132cd90f7f\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id encoder kit for metal gearmotors schematic diagram. data-picture-id=\"0J7469\" data-picture-longest_side=\"775\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7469.600.jpg?b9f21a5259e49f2def9801132cd90f7f\"\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 \u003cp\u003eThis schematic is also available as a \u003ca href=\"\/en\/file\/0J1241\/magnetic-encoder-for-20d-metal-gearmotors.pdf\"\u003edownloadable pdf\u003c\/a\u003e (54k pdf).\u003c\/p\u003e","brand":"Pololu","offers":[{"title":"2-4 Weeks","offer_id":47696628121945,"sku":"POL-3499","price":13.1,"currency_code":"EUR","in_stock":true},{"title":"1 day","offer_id":47885974569305,"sku":"POL-3499\/A","price":13.1,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0J7466.1200.jpg?v=1705455046","url":"https:\/\/xernuqvalzi.pro\/en\/products\/3499-magnetic-encoder-pair-kit-for-20d-mm-metal-gearmotors-20-cpr-2-7-18v","provider":"Robot Italy","version":"1.0","type":"link"}