This set includes sensor boards and reflective wheels to add quadrature encoding to two micro metal gearmotors with extended back shafts (motors are not included with this kit). 3-tooth and 5-tooth encoder wheels are included to provide options of 12 counts per revolution and 20 counts per revolution of the motor shaft (to compute the encoder counts per revolution of the gearbox output, multiply by the gear ratio). Because the encoder board outputs are direct phototransistor outputs, some signal conditioning is often necessary between the sensor and a digital system processing the signals. For an encoder solution that can be connected directly to a microcontroller or other digital circuit, consider our magnetic encoder pair kit for micro metal gearmotors.
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 middle of the circuit board. The better aligned the board, the better the output signal quality will be. One way to achieve good alignment is to tack down the board to one motor pin and to solder the other pin only when the board is 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 pads along the edge of the board, along with the power for the sensors and the two quadrature outputs:
The edge connections are on a 2 mm pitch. The board can be soldered perpendicularly to another PCB, to a 2 mm connector, or to individual wires as shown here:
|Example of an installed micro metal gearmotor reflective optical encoder.|
Once the board is soldered to the motor, the plastic encoder wheel can be pushed onto the motor shaft. The encoder wheel should be pushed on far enough that the gap between the wheel and sensors is approximately 0.5 mm. One way to get consistent gaps is to use a few sheets of paper or a business card as a shim when installing the encoder wheel. The best way to confirm optimal placement of the encoder wheel is to look at the signal with an oscilloscope. The following sequence of screen captures show the output for a 5-tooth wheel spinning at approximately 30,000 RPM as the wheel is pushed closer and closer to the sensors.