Indexed optical encoder, method for indexing an optical encoder, and method for dynamically adjusting gain and offset in an optical encoder
First Claim
1. A method of dynamically adjusting gain and offset in an optical encoder, the method comprising:
- providing an encoder disk comprising a diffraction grating;
illuminating the encoder disk with light;
providing a detector structured to detect light diffracted from the diffraction grating and output a first fine count channel;
calculating a first target gain and first target offset for the first fine count channel; and
applying a correction to data sampled from the first fine count channel based on the first target gain and first target offset;
wherein calculating the first target gain and the first target offset includes;
determining a minimum value and maximum value in a set of data from the first fine count channel;
calculating a moving average minimum based on the minimum value and minimum values from a plurality of prior sets of data from the first fine count channel;
calculating a moving average maximum based on the maximum value and maximum values from the plurality of prior sets of data from the first fine count channel;
calculating the first target gain according to the equation Gcal=(ave_maxA−
ave_minA)/2, where Gcal is the first target gain, ave_maxA is the moving average maximum, and ave_minA is the moving average minimum; and
calculating the first target offset according to the equation OFFSETcal=(ave_maxA+ave_minA)/2, where OFFSETcal is the first target offset.
0 Assignments
0 Petitions
Accused Products
Abstract
An optical encoder may include an encoder disk, an illumination system, and a detector to detect light diffracted from the encoder disk. The encoder disk may include a signal track comprising a diffraction grating, and an index track comprising a reflective index mark, wherein a width of the index mark is larger than a pitch of the diffraction grating. An indexing method may include providing an encoder disk, providing an illumination system to direct light to the encoder disk, providing a detector structured to detect light diffracted from the encoder disk, calculating an estimated count of quadrature states from a rising edge of an index pulse to a middle of the index interval, and calculating the quadrature state at an approximate center of the index pulse. A dynamic parameter correction method may include calculating a target gain and offset and correcting values based on the target gain and offset.
-
Citations
8 Claims
-
1. A method of dynamically adjusting gain and offset in an optical encoder, the method comprising:
-
providing an encoder disk comprising a diffraction grating; illuminating the encoder disk with light; providing a detector structured to detect light diffracted from the diffraction grating and output a first fine count channel; calculating a first target gain and first target offset for the first fine count channel; and applying a correction to data sampled from the first fine count channel based on the first target gain and first target offset; wherein calculating the first target gain and the first target offset includes; determining a minimum value and maximum value in a set of data from the first fine count channel; calculating a moving average minimum based on the minimum value and minimum values from a plurality of prior sets of data from the first fine count channel; calculating a moving average maximum based on the maximum value and maximum values from the plurality of prior sets of data from the first fine count channel; calculating the first target gain according to the equation Gcal=(ave_maxA−
ave_minA)/2, where Gcal is the first target gain, ave_maxA is the moving average maximum, and ave_minA is the moving average minimum; andcalculating the first target offset according to the equation OFFSETcal=(ave_maxA+ave_minA)/2, where OFFSETcal is the first target offset. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
Specification