Available with a lead time
Expect dispatch between Oct 13 and Oct 16
Pololu's 20D encoder kits include two dual-channel Hall effect sensor boards and two 10-pole magnetic discs that can be used to add quadrature encoding to two 20D mm metal gearmotorswith extended back shafts (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 6-pole magnetic disc available separately that can work with this encoder to provide 12 counts per revolution of the motor shaft.)
This version has a side-entry, 6-pin male JST PH-type connector, which allow compatible cables to be plugged in perpendicular to the motor case and output shaft:
Pololu also carry a version of this encoder with a top-entry connector; the following pictures show comparisons of the side-entry and top-entry versions:
Note: This sensor system is intended for users comfortable with the physical encoder installation. It only works with 20D mm metal gearmotors that have extended motor shafts.
Compatible cables
Pololu have various cables that work with the 2mm-pitch JST PH-style connector these encoders, available in double-sided or single-sided versions of varying lengths. The double-sided versions have twisted wires and female JST PH-type connectors on both ends, and single-sided versions have a female connector on one end female crimp pins for 0.1" housings on the other:
|
|
JST PH-Style 6-Pin Cables | |||||
---|---|---|---|---|---|
Pins | Terminations | Length | Item # | ||
6 | double-sided (JST PH to JST PH) | 10 cm (4") | #5643 | ||
16 cm (6.3") | #5644 | ||||
25 cm (10") | #5645 | ||||
40 cm (16") | #5646 | ||||
63 cm (25") | #5647 | ||||
single-sided (JST PH to 0.1" crimp pins) | 12 cm (4.5") | #5640 | |||
30 cm (12") | #5641 | ||||
75 cm (30") | #5642 |
The double-ended cables can be used with Pololu's JST PH-style connector breakout boards, which are also available in top-entry and side-entry versions.
|
|
Pinout and installation
The 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 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 damage the 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 Pololu's 6-pin JST PH-style cables. The remaining four connector pins are used to power the sensors and access the two quadrature outputs:
The 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 kO 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.
Encoder A and B outputs of a magnetic encoder on a 6V 20D mm metal gearmotor running at 6V. |
---|
Once the board is soldered to the motor, the magnetic encoder disc can be pushed onto the motor shaft. To help ensure a strong signal, the disc should be positioned close to the sensors, but not so close that the magnet makes contact with them. The exact position does not matter, but a good target is having the shaft protrude approximately 1 mm past the outer face of the disc.
Push the magnetic disc onto the motor shaft so the shaft protrudes approximately 1 mm past the disc. |
---|
Schematic diagram
Comparison to previous version
This encoder module is a modification of the previous version 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 PH-type connectors next to the previous (green) one:
![]() |
Comparison of Magnetic Encoder for 20D mm Metal Gearmotors with Top-Entry Connector (left), Side-Entry Connector (center), and 0.1"-pitch through-holes (right). |
---|
Dimensions
Size: | 17.6 mm × 19.4 mm |
---|---|
Weight: | 3.8 g1 |
General specifications
Minimum operating voltage: | 2.7 V |
---|---|
Maximum operating voltage: | 18 V |
Connector: | side-entry, 6-pin JST PH-type (2mm pitch) |
Encoder resolution: | 20 CPR2 |
Identifying markings
PCB dev codes: | enc04b |
---|---|
Other PCB markings: | 0J15679 |
Notes:
File downloads
This file contains dimension diagrams for the Magnetic Encoder Pair Kit with Top-Entry Connector and the Magnetic Encoder Pair Kit with Side-Entry Connector.
This file contains 3D models (in the step file format) of the components for the Magnetic Encoder Pair Kit with Top-Entry Connector and the Magnetic Encoder Pair Kit with Side-Entry Connector.
These DXF drawings show the locations of all of the holes on the Magnetic Encoder Pair Kit with Top-Entry Connector (enc04c) and the Magnetic Encoder Pair Kit with Side-Entry Connector (enc04b).
Recommended links
Exact shipping can be calculated on the view cart page (no login required).
Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).
We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):
Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.
Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.
International Orders - the following rates are for New Zealand and will vary for other countries:
If you order lots of gear, the postage amount will increase based on the weight of your order.
Our physical address (here's a PDF which includes other key business details):
40 Aruma Place
Cardiff
NSW, 2285
Australia
Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.
Have a product question? We're here to help!
Makers love reviews as much as you do, please follow this link to review the products you have purchased.
Product Comments