{"product_id":"4760-magnetic-encoder-pair-kit-with-top-entry-connector-for-micro-metal-gearmotors-12-cpr-2-7-18v","title":"Magnetic Encoder Pair Kit with Top-Entry Connector for Micro Metal Gearmotors, 12 CPR, 2.7-18V","description":"\u003cp\u003eAdd quadrature encoders to your micro metal gearmotors (\u003ca href=\"https:\/\/www.pololu.com\/category\/141\/micro-metal-gearmotors-with-extended-motor-shafts\"\u003eextended back shaft version\u003c\/a\u003e required) with this kit that uses a magnetic disc and Hall effect sensors to provide 12 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.  These encoders have a \u003cstrong\u003etop-entry, 6-pin male JST SH-type connector\u003c\/strong\u003e, and we have cables that work with them available in several lengths (\u003ca href=\"https:\/\/www.pololu.com\/product\/4762\"\u003e12 cm\u003c\/a\u003e, \u003ca href=\"https:\/\/www.pololu.com\/product\/4763\"\u003e30 cm\u003c\/a\u003e, and \u003ca href=\"https:\/\/www.pololu.com\/product\/4764\"\u003e75 cm\u003c\/a\u003e). This module is compatible with \u003cstrong\u003eall\u003c\/strong\u003e of the dual-shaft micro metal gearmotors we carry, including the HPCB versions.\u003c\/p\u003e\n\u003cbr\u003e\u003ch2\u003eOverview\u003c\/h2\u003e\n\u003cp\u003eThis kit includes two dual-channel Hall effect sensor boards and two \u003ca href=\"https:\/\/www.pololu.com\/product\/2599\"\u003e6-pole magnetic discs\u003c\/a\u003e that can be used to add quadrature encoding to two \u003ca href=\"https:\/\/www.pololu.com\/category\/141\/micro-metal-gearmotors-with-extended-motor-shafts\"\u003emicro metal gearmotors with extended back shafts\u003c\/a\u003e (motors and cables are not included with this kit).  The encoder board senses the rotation of the magnetic disc and provides a resolution of 12 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 12.  This compact encoder solution fits within the 12 mm × 10 mm cross section of the motors on three of the four sides, and it extends 2.8 mm past the edge of the fourth side.\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\/0J10601.1200.jpg?158896b3d3695dae899a138c330c3a97\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder with top-entry connector assembled on a micro metal gearmotor extended motor shaft. data-picture-id=\"0J10601\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10601.300.jpg?158896b3d3695dae899a138c330c3a97\"\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\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10613.1200.jpg?b07e83c1eb41c0373e12bae41cb5ba3a\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder with top-entry connector assembled on a micro metal gearmotor extended motor shaft. data-picture-id=\"0J10613\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10613.425.jpg?b07e83c1eb41c0373e12bae41cb5ba3a\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe encoders include a \u003cstrong\u003etop-entry\u003c\/strong\u003e, 6-pin male JST SH-type connector.  We also carry a version of this encoder \u003ca href=\"https:\/\/www.pololu.com\/product\/4761\"\u003ewith a side-entry connector\u003c\/a\u003e; the following pictures show comparisons of the top-entry and side-entry versions:\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\/0J10602.1200.jpg?be9c21f41160d1944ad06feb3b98a9f2\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoders with top-entry connector and side-entry assembled on micro metal gearmotors extended motor shafts cables not included data-picture-id=\"0J10602\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10602.300.jpg?be9c21f41160d1944ad06feb3b98a9f2\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eMagnetic Encoders with Top-Entry Connector (left) and Side-Entry Connector (right) assembled on Micro Metal Gearmotors with Extended Motor Shafts (JST cables not included).\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: 425px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10618.1200.jpg?ae4b0a695fbf9aeba01a93920e2baa32\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder with top-entry connector and side-entry assembled micro metal gearmotors extended motor shafts cables not included data-picture-id=\"0J10618\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10618.425.jpg?ae4b0a695fbf9aeba01a93920e2baa32\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 425px\"\u003e\u003cp\u003eMagnetic Encoder with Top-Entry Connector (top) and Side-Entry Connector (bottom) assembled Micro Metal Gearmotors with Extended Motor Shafts (JST cables not included).\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 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 micro metal gearmotors that have \u003cstrong\u003e\u003ca href=\"https:\/\/www.pololu.com\/category\/141\/micro-metal-gearmotors-with-extended-motor-shafts\"\u003eextended back shafts\u003c\/a\u003e\u003c\/strong\u003e.\u003c\/p\u003e\n\u003ch2\u003eCable options\u003c\/h2\u003e\n\u003cp\u003eWe have two types of cables with matching JST SH-style connectors that can be used with these encoders.\u003c\/p\u003e\n\u003cp\u003eSingle-ended cables, with a connector on one end and unterminated wires on the other end, are available in three lengths:\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption left\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10624.1200.jpg?0c93e23838a0a7e406516fd7b46ecc7e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id single-ended female jst sh-style cables cm top center bottom data-picture-id=\"0J10624\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10624.200.jpg?0c93e23838a0a7e406516fd7b46ecc7e\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cul\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4762\"\u003e12 cm \u0026amp;lpar;4.5″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4763\"\u003e30 cm \u0026amp;lpar;12″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4764\"\u003e75 cm \u0026amp;lpar;30″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp class=\"clear\"\u003eTwisted female-female cables with connectors on both ends are available in five lengths:\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption left\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10987.1200.jpg?edc99448de45d0dc4ddac805e4161f43\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id female-female jst sh-style cables to right: data-picture-id=\"0J10987\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10987.300.jpg?edc99448de45d0dc4ddac805e4161f43\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cul\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4765\"\u003e10 cm \u0026amp;lpar;4″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4766\"\u003e16 cm \u0026amp;lpar;6.3″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4767\"\u003e25 cm \u0026amp;lpar;10″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4768\"\u003e40 cm \u0026amp;lpar;16″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/4769\"\u003e63 cm \u0026amp;lpar;25″\u0026amp;rpar;\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp class=\"clear\"\u003eThese double-ended cables can be used with our JST SH-style connector breakout boards (available in \u003ca href=\"https:\/\/www.pololu.com\/product\/4770\"\u003etop-entry\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/product\/4772\"\u003eside-entry\u003c\/a\u003e versions) to easily access the motor and encoder pins on a standard \u003ca href=\"https:\/\/www.pololu.com\/category\/28\/solderless-breadboards\"\u003esolderless breadboard\u003c\/a\u003e.\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: 225px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10622.1200.jpg?a1572614b297ab684f265df9c9a078a0\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id female jst sh-style cable. data-picture-id=\"0J10622\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10622.225.jpg?a1572614b297ab684f265df9c9a078a0\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 225px\"\u003e\u003cp\u003e6-Pin Female JST SH-Style Cable.\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: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10972.1200.jpg?fe3a61b59b7b0664ab41e529e3acf0e7\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id and side-entry breakout boards for jst sh-style connectors male. data-picture-id=\"0J10972\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10972.250.jpg?fe3a61b59b7b0664ab41e529e3acf0e7\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eTop-Entry and Side-Entry Breakout Boards for JST SH-Style Connectors, 6-Pin Male.\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: 350px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10989.1200.jpg?70f5af81587eb15482da378b6c9da8bb\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id jst sh-style connector breakout board in a breadboard female-female cable and encoder with mounted on micro metal gearmotor. data-picture-id=\"0J10989\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10989.350.jpg?70f5af81587eb15482da378b6c9da8bb\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 350px\"\u003e\u003cp\u003eSide-entry JST SH-style connector breakout board in a breadboard, female-female cable, and encoder with connector mounted on a Micro Metal Gearmotor.\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\u003ch2\u003ePinout and installation\u003c\/h2\u003e\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 plastic end cap of the motor or the motor brushes.  Once the board is soldered down to the two terminals, the motor leads are connected to the M1 and M2 connector pins as labeled below, and they can be accessed via the red and black wires when used with our corresponding JST cables. The remaining four connector pins are used to power the sensors and access the two quadrature outputs:\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\/0J10599.1200.jpg?c9cbeeea72fa143391c0daceef3336e2\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id of magnetic encoder with top-entry connector for micro metal gearmotors magnet-side view pcb jst cable plugged in not included data-picture-id=\"0J10599\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10599.300.jpg?c9cbeeea72fa143391c0daceef3336e2\"\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\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10598.1200.jpg?68fc962cf9dd3817933b3ff84b74a1b8\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id encoder with top-entry connector for micro metal gearmotors cpr motor-side view of pcb dimensions. data-picture-id=\"0J10598\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10598.300.jpg?68fc962cf9dd3817933b3ff84b74a1b8\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe sensors are powered through the VCC (blue wire) and GND (green wire) pins.  VCC can be 2.7 V to 18 V, and the quadrature outputs A and B (yellow and white wires) 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\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J5831.1200.png?b37c879d2899289012b77d9281c4dc51\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id a and b outputs of magnetic encoder on high-power micro metal gearmotor running at data-picture-id=\"0J5831\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J5831.600.jpg?b37c879d2899289012b77d9281c4dc51\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eEncoder A and B outputs of a magnetic encoder on a high-power (HP) micro metal gearmotor running at 6 V.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch2\u003eSchematic diagram\u003c\/h2\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10594.1200.png?74aa5bbbcc81d83c0e25dfc77d10f58d\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id diagram of the magnetic encoder pair kit with jst sh-type connector or side-entry for micro metal gearmotors. data-picture-id=\"0J10594\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10594.600.jpg?74aa5bbbcc81d83c0e25dfc77d10f58d\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cp\u003eThis schematic is also available as a \u003ca href=\"\/file\/0J1718\/pololu-4760-4761-schematic.pdf\"\u003edownloadable pdf\u003c\/a\u003e (80k pdf).\u003c\/p\u003e\n\u003ch2\u003eComparison to previous version\u003c\/h2\u003e\n\u003cp\u003eThis encoder module is a modification of the \u003ca href=\"https:\/\/www.pololu.com\/product\/3081\"\u003eprevious version\u003c\/a\u003e that adds a connector to enable the use of removable cables.  The basic schematic is unchanged, and the electrical performance is identical.  The following picture shows the two new encoders with JST SH-type connectors next to the previous (green) one:\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J10615.1200.jpg?e9356291eb56cbe713cae286629580de\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id comparison of magnetic encoder with top-entry connector side-entry and through-holes data-picture-id=\"0J10615\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J10615.600.jpg?e9356291eb56cbe713cae286629580de\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eSide-by-side comparison of Magnetic Encoder with Top-Entry Connector (left), Side-Entry Connector (center), and 2mm-pitch through-holes (right).\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e","brand":"Pololu","offers":[{"title":"2-4 Settimane","offer_id":47700126138713,"sku":"POL-4760","price":11.64,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47886026473817,"sku":"POL-4760\/A","price":11.64,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0J10597.1200_dd7e3a77-87c7-4ff8-824a-3e11e49db6b0.jpg?v=1705513771","url":"https:\/\/xernuqvalzi.pro\/products\/4760-magnetic-encoder-pair-kit-with-top-entry-connector-for-micro-metal-gearmotors-12-cpr-2-7-18v","provider":"Robot Italy","version":"1.0","type":"link"}