# US 12,181,313 B2 · Light control circuit of optical encoder and operating method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,181,313 B2
- Document ID: US12181313B2
- Status: Granted
- Kind: B2
- Application number: 18/239,773
- Filed: 2023-08-30
- Published: 2023-12-21
- Granted: 2024-12-31
- Earliest claimed: 2020-12-10
- Assignees: Pixart Imaging Inc.
- Applicants: PixArt Imaging Inc.
- Inventors: Kuan-Choong Shim; Gim-Eng Chew
- Web page: https://patentgrep.com/patent/US12181313B2

## CPC

- G01D 5/34715: {Scale reading or illumination devices}
- G01D 5/24428: {Error prevention}
- G01D 5/24457: {Failure detection}
- G01D 5/24466: {Comparison of the error value to a threshold}
- G01D 5/24471: {Error correction}
- G01D 5/24476: {Signal processing (G01D5/2448 - G01D5/24495 take precedence)}
- G01D 5/3473: {Circular or rotary encoders}
- G01D: MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR

## Abstract

There is provided a light control circuit including a light detector, a frequency detector, an error amplifier, an NMOS driver and a light source. The frequency detector identifies a signal frequency according to detected voltage signals outputted by the light detector and generates a control signal accordingly. The NMOS driver changes a drive current of the light source according to an output of the error amplifier. The error amplifier changes a bandwidth thereof according to the control signal from the frequency detector to regulate a response time of the drive current of the light source.

## Claims

### Claim 1

A light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, the light control circuit comprising:
a controller, configured to receive a first detected signal, a second detected signal, a third detected signal and a fourth detected signal associated with the encoding medium, and comprising an error amplifier which is configured to control a drive current of the light source, wherein a phase of the second detected signal leads a phase of the fourth detected signal by 90 degrees; and
a frequency detector, configured to
receive the second detected signal and the fourth detected signal, and
generate an output signal which is configured to change a bandwidth of the error amplifier to regulate a response time of the drive current of the light source.

### Claim 2 (depends on 1)

The light control circuit as claimed in claim 1, wherein the frequency detector comprises:
a low pass filter, configured to filter the second detected signal and having a cutoff frequency;
a first comparator, configured to compare the filtered second detected signal and a first reference voltage to output a comparison signal;
a second comparator, configured to compare the fourth detected signal and a second reference voltage to output a clock signal; and
a flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the clock signal, and an output thereof being configured to generate a first signal; and
an inverter, coupled between the flip flop and the error amplifier, and configured to invert the first signal to generate the output signal.

### Claim 3 (depends on 2)

The light control circuit as claimed in claim 2, wherein the error amplifier comprises a bias current configured to change the bandwidth thereof,
when a signal frequency of the second detected signal is lower than the cutoff frequency, the output signal does not turn on the bias current, and
when the signal frequency of the second detected signal is higher than the cutoff frequency, the output signal turns on the bias current.

### Claim 4 (depends on 3)

The light control circuit as claimed in claim 3, further comprising another frequency detector configured to generate another output signal according to the second detected signal and the fourth detected signal, said another output signal being configured to change the bandwidth of the error amplifier to regulate the response time, wherein said another frequency detector comprises another low pass filter having another cutoff frequency that is different from the cutoff frequency of the low pass filter.

### Claim 5 (depends on 2)

The light control circuit as claimed in claim 2, wherein
the first reference voltage is arranged as a summation of an average of the second detected signal and a predetermined voltage, and
the first reference voltage is smaller than a peak value of the second detected signal.

### Claim 6 (depends on 2)

The light control circuit as claimed in claim 2, wherein the second reference voltage is a half of a voltage source of the controller.

### Claim 7 (depends on 1)

The light control circuit as claimed in claim 1, wherein the second detected signal is a sine voltage signal, and the fourth detected signal is a cosine voltage signal.

### Claim 8

A light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, the light control circuit comprising:
a controller, configured to receive a first detected signal, a second detected signal, a third detected signal and a fourth detected signal associated with the encoding medium, and comprising an error amplifier which is configured to control a drive current of the light source, wherein a phase of the second detected signal leads or lags a phase of the fourth detected signal by 90 degrees; and
a frequency detector, configured to
receive the second detected signal and the fourth detected signal, and
generate a first output signal, which is configured to change a bandwidth of the error amplifier to regulate a response time of the drive current of the light source, when the phase of the second detected signal leads the phase of the fourth detected signal;
generate a second output signal, which is configured to change the bandwidth of the error amplifier to regulate the response time, when the phase of the second detected signal lags the phase of the fourth detected signal.

### Claim 9 (depends on 8)

The light control circuit as claimed in claim 8, wherein the frequency detector comprises:
a low pass filter, configured to filter the second detected signal and having a cutoff frequency;
a first comparator, configured to compare the filtered second detected signal and a first reference voltage to output a comparison signal;
a second comparator, configured to compare the fourth detected signal and a second reference voltage to output a clock signal;
a first flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the clock signal, and an output thereof being configured to generate a first signal;
a first inverter configured to invert a phase of the clock signal to generate a phase-inverted clock signal;
a second flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the phase-inverted clock signal, and an output thereof being configured to generate a second signal;
an OR gate configured to receive the first signal and the second signal; and
a second inverter coupled between the OR gate and the error amplifier, and configured to invert the first signal to generate the first output signal or invert the second signal to generate the second output signal.

### Claim 10 (depends on 9)

The light control circuit as claimed in claim 9, wherein the error amplifier comprises a bias current configured to change the bandwidth thereof,
when a signal frequency of the second detected signal is lower than the cutoff frequency, the first output signal or the second output signal does not turn on the bias current, and
when the signal frequency of the second detected signal is higher than the cutoff frequency, the first output signal or the second output signal turns on the bias current.

### Claim 11 (depends on 10)

The light control circuit as claimed in claim 10, further comprising another frequency detector configured to generate another output signal according to the second detected signal and the fourth detected signal, said another output signal being configured to change the bandwidth of the error amplifier to regulate the response time, wherein said another frequency detector comprises another low pass filter having another cutoff frequency that is different from the cutoff frequency of the low pass filter of the low pass filter.

### Claim 12 (depends on 9)

The light control circuit as claimed in claim 9, wherein
the first reference voltage is arranged as a summation of an average of the second detected signal and a predetermined voltage, and
the first reference voltage is smaller than a peak value of the second detected signal.

### Claim 13 (depends on 9)

The light control circuit as claimed in claim 9, wherein the second reference voltage is a half of a voltage source of the controller.

### Claim 14 (depends on 8)

The light control circuit as claimed in claim 8, wherein the second detected signal is a sine voltage signal, and the fourth detected signal is a cosine voltage signal.

### Claim 15

An operating method of a light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, and the light control circuit comprising an error amplifier and a frequency detector, the operating method comprising:
filtering, by the frequency detector, a detected signal associated with the encoding medium to generate a filtered detected signal;
comparing, by the frequency detector, the filtered detected signal and a first reference voltage to generate a comparison signal;
comparing, by the frequency detector, another detected signal associated with the encoding medium with a second reference voltage to generate a clock signal, wherein a phase of the detected signal leads or lags a phase of said another detected signal by 90 degrees; and
generating, by the frequency detector, a first output signal according to the comparison signal and the clock signal to change a bandwidth of the error amplifier to accordingly regulate a response time of a drive current of the light source when the phase of the detected signal leads the phase of said another detected signal.

### Claim 16 (depends on 15)

The operating method as claimed in claim 15, wherein the light control circuit further comprises a first inverter, and when the phase of the detected signal lags the phase of said another detected signal, the operating method further comprises:
inverting a phase of the clock signal by the first inverter to generate a phase-inverted clock signal; and
generating, by the frequency detector, a second output signal according to the comparison signal and the phase-inverted clock signal to change the bandwidth of the error amplifier to regulate the response time.

### Claim 17 (depends on 16)

The operating method as claimed in claim 16, wherein the frequency detector comprises an OR gate, and a second inverter coupled between the OR gate and the error amplifier, and the operating method further comprises:
receiving the first output signal and the second output signal by the OR gate; and
inverting an output signal of the OR gate by the second inverter.

### Claim 18 (depends on 15)

The operating method as claimed in claim 15, wherein the frequency detector comprises a second inverter coupled to the error amplifier, and the operating method further comprises:
inverting the first output signal by the second inverter.

### Claim 19 (depends on 15)

The operating method as claimed in claim 15, wherein the frequency detector comprises a low pass filter for filtering the detected signal and having a cutoff frequency, and the error amplifier comprises a bias current for changing the bandwidth thereof, the operating method further comprises:
not turning on the bias current by the first output signal when a signal frequency of the detected signal is lower than the cutoff frequency, and;
turning on the bias current by the first output signal when the signal frequency of the detected signal is higher than the cutoff frequency.

### Claim 20 (depends on 19)

The operating method as claimed in claim 19, wherein the signal frequency of the detected signal is determined by a rotation speed of the encoding medium.
