Embodiments of the invention pertain to an optical encoder which has a wide range of resolutions.
Optical encoders offer an inexpensive, accurate, and practical way to determine position, speed, and direction information. As such, optical encoders are utilized in a wide variety of applications. For example, printers often contain an optical encoder to determine the position of the paper being printed upon relative to the printhead. As the paper is fed through the printer, the optical encoder tracks and measures the longitudinal postion of the paper. The optical encoder provides an electrical signal indicating the paper's position so that the printer knows when to print, and the image is printed in the right place on the paper. In other applications, optical encoders are found in machine tools for machining of parts, motors to measure rates of rotation, and other industrial uses. Basically, optical encoders can be used by any application involving spinning or rotating parts which need to monitored or measured.
In many cases, an application requires position information over a wide range of operating speeds. For instance, for print applications, one printer might be a cheap, affordable, but slow printer, whereas another printer may be a fast, expensive, commercial printer. Some printers even have the ability to let the user choose the print speed (e.g., faster low-res prints or slower high-res prints). Accordingly, the optical encoder should have multiple resolutions to effectively accomodate the different print speeds. In the case for machine tools, the drill speed may be drastically increased or decreased, depending on the specific materials, finishes, tolerances, designs, etc. It is important that the optical encoder supports different resolutions to handle the wide range of possible operating speeds. Furthermore, it would be preferable if the same optical encoder could be used across different applications. Being able to use the same optical encoder across a wide array of products would greatly increase the commercial success of that optical encoder. And having different resolutions enables that optical encoder to meet the goal of adapting to different markets.
One prior art method for providing different resolutions entails the use of an interpolator. Basically, the interpolator multiplies the frequency of the optical encoder's base counts per revolution (CPR) by a pre-determined factor. This produces a different resolution other than that of the basic CPR resolution. Unfortunately, the interpolator offers only a limited number of fixed resolutions. One could implement multiple interpolators, but this would increase costs, and besides which, the additional interpolators are restricted to providing fixed multiples of the base CPR as additional resolutions. Finer resolutions inbetween the fixed multiples are not possible by using interpolators.
Embodiments of the invention pertain to an optical encoder. The optical encoder includes a first circuit which generates an analog signal. The analog signal contains position information. A second circuit takes the analog signal and generates a first digital signal at a first frequency. The first frequency is an integer multiple of the frequency of the analog signal. A third circuit takes the first digital signal and generates a second digital signal but at a second frequency. The second frequency is the first frequency divided by an integer value. By selectively changing the integer multiple and integer value, a wide range of different resolutions can be achieved by the optical encoder.
Referring to
The code wheel 110 has a grating of alternating transmissive sections and non-transmissive (or reflective) sections. The measurement resolution is derived from the grating dimensions of the code wheel 110. When light emitted by the measurement circuit 130 is projected through or reflected by the rotating code wheel 110, the intensity of the light will be modulated by the rotating code wheel 110 as a function of the gratings. The modulated intensity of the light is detected by a receiver in the measurement circuit 130. The modulation rate is at the base resolution, measured in cycles per revolution (CPR), of the optical encoder.
Referring now to
The code wheel 230 has an alternating grating of transmissive sections and non-transmissive (or reflective) sections. When light is projected through or reflected by the rotating code wheel 230, the intensity of light passing through it will vary as a function of the gratings, the position of the code wheel 230 and direction of rotation of the code wheel 230. The measurement resolution is derived from the grating dimensions of the code wheel 230.
The encoder module 230 generates a time varying analog (e.g., sine wave, triangle wave, or the like) electrical signal (e.g., voltage or current) that varies in proportion to the modulated intensity of the light received at the detector 225. The output typically comprises a first and second analog position signals A, B, wherein the two output position signals are generated in quadrature (e.g., sine and cosine) with respect to each other. The modulation rate is at the base resolution of the device, or cycles per revolution (CPR).
The interpolator module 240 generates digital electrical signals having a frequency that is a multiple of the first and second analog position signals A, B provided by the encoder module 210. The interpolator module 240 is utilized to increase the resolution by effectively increasing the CPR over the base resolution. The interpolator module 240 receives the first and second quadrature analog position signals A, B from the encoder module 210. The interpolator module 240 generates a first and second digital quadrature position signals having increased resolution AM, BM as a function of the first and second quadrature analog position signals A, B. The interpolator module 240 may also generate one or more sets of digital quadrature position signals having increased resolution as a function of the first and second quadrature analog position signals A, B, wherein each set is a different multiple of the base resolution.
In an exemplary implementation, the interpolator module 210 compares the analog input position signals A, B from the detector module 220 with a threshold levels via a comparator circuit and generates a square wave (e.g., digital signal) having a period equal to the cyclical variation of the respective analog position signal A, B. Edge triggering is then utilized to generate four distinct quadrants in the cyclic output. By monitoring the rising edges of these signals, four positions per cycle are distinctly identified. In this way, a 4-fold increase over the base device resolution is realized. In another exemplary implementation, trigonometry can be utilized to resolve each cycle of the analog position signals A, B into finer and finer position information. The tan-1 function can be utilized to determine the angular position within each cycle of the analog position signals A, B. A set of quadrature digital position signals AM, BM that toggle as a function of the determined angular position are generated as outputs. Depending upon the accuracy of the interpolator module implementation, each cycle of the input analog position signals A, B can be subdivided substantially (e.g., increase of 1000 times or more).
The modulator module 250 provides an increased range of resolutions over the range provided by the interpolator. The modulator module 250 divides the digital quadrature position signals having increased resolution AM, BM by a specified value. If the interpolator module 240 provides two or more set of digital quadrature position signals having increased resolution, each set is divided down by the modulator module 250. For example, prior solutions utilize multiple interpolation factors to achieve a limited range of resolutions. Assuming that the base CPR of 180, a prior art solution applying multiple interpolator factors of 3 times and 5 times provides resolutions of 180, 540 and 900 CPR. An optical encoder providing a single interpolation factor of 5 times coupled to modulator module of the present invention provides resolutions of 900 (e.g., base multiplied by 5 times provided by interpolator module), 450 (e.g., output of interpolator divided by 2), 300 (e.g., output of interpolator module divided by 3), 180 (e.g., base) CPR. If the modulator module of the present invention is coupled to a multiple interpolator module (e.g., 3 times and 5 times), the resolution range spans between 900, 540, 450, 300, 270, 180 and 108 CPR.
Upon dividing the digital quadrature position signals having increase resolution AM, BM, the modulator module 240 provides a first and second modulated position signals AM/N, BM/N having a selected resolution at its outputs. Accordingly, the invention in accordance one embodiment provides resolution specific position signals that may be selected for the particular application.
Referring now to
Referring now to
Referring now to
Referring now to
The counter module 420 receives the series of pulses from the one shoot pulse generator 410. In one implementation, the counter module 420 comprises a digital counter. The counter module 420 counts the number of pulses output by the one shot pulse module 410 and outputs a binary representation of the count on a plurality of outputs.
The comparator A module 430 receives a first control value on a first set of inputs and the count value, from the counter module 420, on a second set of inputs. The comparator A module 430 generates a modulated position signal AM/N that toggles states each time the count value on the second set of inputs is equal to the first control value on the first set of inputs. The comparator B module 440 receives a second control value on a first set of inputs and the count value from the counter module 420 on a second set of inputs. The comparator B module 440 generates a modulated position signal BM/N that toggles states each time the count value on the second set of inputs is equal to the second control value on the first set of inputs. Accordingly, the first and second modulated position signals AM/N, BM/N are generated in quadrature relationship to each other. (e.g., shifted with respect to each other). In one implementation, the count module is reset each time the first modulated position signal AM/N toggles.
As depicted in
Accordingly, the first modulated position signal AM/N pulses every 2N times, where N is the modulating factor, and the second modulated position signal BM/N pulses every 2N±N times. The plus/minus sign on the second modulated position signal BM/N determines the direction of movement (e.g., whether B lags A or vice versa).
Referring now to
The first EXOR gate 520 receives the first delayed signal AD at a first input and the first position signal having increased resolution AM at a second input. The output of the first EXOR gate 520 is low if both input signals are high or low. The output of the first EXOR gate 520 is high if one input signal is high and the other input signal is low. Thus, the output of the first EXOR gate 520 is a series of pulses corresponding to the rising and falling edge of the first quadrature position signal having increased resolution AM.
The second delay cell 530 and the second EXOR gate 540 operates on the second quadrature position signal having increased resolution BM as described above with respect to the first quadrature position signal having increased resolution AM. The pulse streams output by the first EXOR gate 520 and the second EXOR gate 540 are summed by the OR gate 550. Hence, the output of the OR gate 550 is a stream of pulses, wherein each pulse corresponds to a rising or falling edge of either the first of second quadrature position signals having increased resolution AM, BM. As depicted in
Embodiments in accordance with the invention are advantageous in that the optical encoder has a wide range of resolutions. The wide range of resolutions may be readily utilized in applications that required a range of accuracies (e.g., broad, average, fine), operating speed (e.g., high, medium, low) and/or the like.
The foregoing descriptions of specific embodiments in accordance with the invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments in accordance with the invention were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the Claims appended hereto and their equivalents.