Encoder for Pololu Wheel 42x19mm

SKU: POLOLU-1217 Brand: Pololu

Retired Product

Search for an alternative
This product has been retired. It is no longer available, but this page has been kept for reference.

Overview

This quadrature encoder board is designed to work with Pololu micro metal gearmotors by holding two infrared reflectance sensors inside the hub of a Pololu 42×19mm wheel and measuring the movement of the twelve teeth along the wheel’s rim. The two sensors are spaced to provide waveforms approximately 90 degrees out of phase, allowing the direction of rotation to be determined and providing four counts per tooth for a resolution of 48 counts per wheel rotation. Each analog sensor signal is fed to a comparator with hysteresis to provide glitch-free digital outputs. The compact layout of the board fits all of the components within the envelope of the hub and tire, allowing the board to be mounted between the motor and a chassis. The encoder is calibrated for operation from 4.5 V to 5.5 V, but it can be recalibrated for operation at 3.3 V.

Example code for the encoders is provided with the Pololu AVR Library. The example shows how the encoders can be used with AVR-based robot controllers, including the Orangutan Robot Controllers and the Arduino platform.

Note that this encoder will only work with the Pololu 42×19mm wheel. If you are looking for a higher-resolution quadrature encoder that works with micro metal gearmotors and arbitrary wheels, consider the magnetic encoder pair kit for micro metal gearmotors. We also have versions of Pololu's larger 25D mm and 37D mm metal gearmotors with integrated quadrature encoders.

Note: This encoder is designed to work with Pololu's 5:1 to 298:1 micro metal gearmotors. Motors are not included and must be purchased separately. This encoder will not work with the 1000:1 gear ratio version of Pololu's micro metal gearmotors due to the longer gearbox.

Feature summary

  • operating voltage: 4.5 V to 5.5 V (encoder can be modified for lower voltages)
  • two digital outputs (quadrature)
  • 14 mA current consumption at 5.0 V
  • 48 counts per revolution (linear resolution of just under 3 mm or 1/8")
  • small size: fits between motor and chassis.
  • weight: 1.6 g (0.06 oz)

Using the Encoder

The encoder is designed to fit within the outline of the extended micro gearmotor brackets that are in turn designed to work with the Pololu 42×19mm wheel and Pololu micro metal gearmotors, so most applications that can use that bracket should require little or no modifications, though it should be noted that the 1/16" thickness of the PCB will change the height of a chassis relative to the wheel. For convenience, Pololu offer an encoder set that includes two encoders, a pair of 42×19mm wheels, and a pair of extended brackets; the micro metal gearmotors are sold separately. These encoders are only compatible with the 42×19mm wheel, extended micro gearmotor bracket, and 5:1 to 298:1 versions of the micro metal gearmotors.

The power and output connections are brought out to the end of the PCB under the motor terminals so that wiring to all six terminals can be routed together. Wires can be soldered directly to the through-hole power and output pads, or some connectors with a 0.1" spacing, such as Pololu's 0.1" female header or 0.1" male header strip, can also be used.

The two outputs of the encoder are digital outputs that can be connected directly to digital input pins on most microcontrollers (inputs that can generate interrupts on change are recommended). With 48 state changes per revolution of the 42 mm wheel, a speed of 1 m/s (a bit over 3 feet per second) generates approximately 360 state changes per second. With two encoders used simultaneously, as is the case for most differential-drive robots, the encoders will require attention almost every millisecond. Decoding the encoder outputs should only take a few percent of the processing power of a high-performance microcontroller such as the Atmel AVR used in the Pololu Orangutan robot controllers, but the encoders might be difficult to use with slower microcontrollers without available external interrupts.

Oscilloscope capture of encoder outputs with the wheel spinning at 630 RPM.

Modifying the Encoder for 3.3 V Operation

The encoder is calibrated for 5.0 V operation, but it can be modified for operation at 3.3 V. The modification consists of two steps: reducing the IR emitter current-limiting resistance, and calibrating for the two phototransistor sensors (a simplified schematic diagram of the encoder is shown below). The IR emitter current-limiting resistance for the two emitters, which are in series, is implemented by R1 and R4; bypassing R4 with a short halves the resistance from power to the LEDs. R4 is labeled on the circuit board silkscreen; one simple way to bypass it is to solder a thin solid wire (such as the lead of a 1/4-watt resistor) to both sides of the resistor and then to clip off the excess wire. With the resistor bypassed and the circuit powered at 3.3 V, the encoder will draw approximately 10 mA.

Schematic diagram of the encoder for the Pololu wheel 42×19mm.

Next, the encoder must be calibrated (to compensate for the dimmer IR LEDs). Each channel has a separate trimmer potentiometer that can be adjusted such that at a constant wheel speed, the output of the channel is a square wave with 50% duty cycle. This is easiest with an oscilloscope connected to the outputs, but it can also be done with a microcontroller programmed to measure the duty cycle of the outputs. If the duty cycle is too high (or there are no low pulses at all), the potentiometer should be turned clockwise; if the duty cycle is too low, the potentiometer should be turned counter-clockwise.

Note: The trimmer potentiometer is very small, and it can be damaged by using a screwdriver that is not the correct size.

This product is listed in:

Retired

Product Comments

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):

  • $3+ for Stamped Mail (typically 10+ business days, not tracked, only available on selected small items)
  • $6+ for Standard Post (typically 6+ business days, tracked)
  • $10+ for Express Post (typically 2+ business days, tracked)
  • Pickup - Free! Only available to customers who live in the Newcastle region (must order online and only pickup after we email to notify you the order is ready). Orders placed after 2PM may not be ready until the following business day.

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:

  • $11+ for Pack and Track (3+ days, tracked)
  • $16+ for Express International (2-5 days, tracked)

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):

Unit 18, 132 Garden Grove Parade
Adamstown
NSW, 2289
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!

Write Your Own Review

Guides

The Maker Revolution

The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...
The Maker Revolution celebrates the creation of new devices and the modification of existing ones - ...

Projects

Raspberry Pi Video Looper Display Installation | Overshare Video Festival

IntroductionA suspended ceiling display of forty repurposed screens and displays, each screening cr...
IntroductionA suspended ceiling display of forty repurposed screens and displays, each screening cr...

Mailbox Delivery Notification System

Introduction During the Covid lockdown, I needed something to do. The Postman or woman does not de...
Introduction During the Covid lockdown, I needed something to do. The Postman or woman does not de...

PiicoDev Schematic System

Introduction: Hi everybody. Over the past few weeks, I have been working on an intuitive system th...
Introduction: Hi everybody. Over the past few weeks, I have been working on an intuitive system th...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.