# US 12,676,612 B2 · IR timing calibration for a key switch

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

- Number: US 12,676,612 B2
- Document ID: US12676612B2
- Status: Granted
- Kind: B2
- Application number: 19/231,289
- Filed: 2025-06-06
- Published: 2025-09-25
- Granted: 2026-07-07
- Earliest claimed: 2023-11-29
- Assignees: Logitech Europe S.A.
- Applicants: Logitech Europe S.A.
- Inventors: Jérémie Willemin; Yu-Sen Chen; Chi-Hsun Tsao
- Web page: https://patentgrep.com/patent/US12676612B2

## CPC

- H03K 17/9636: {using a pulsed light source}
- G08B 21/182: {Level alarms, e.g. alarms responsive to variables exceeding a threshold}
- H01H 13/705: characterised by construction, mounting or arrangement of operating parts, e.g. push-buttons or keys
- H03K 17/9629: {using a plurality of detectors, e.g. keyboard}
- H03K 17/969: having a plurality of control members, e.g. keyboard
- H03K 2217/94104: using a light barrier
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- G08B: SIGNALLING SYSTEMS, e.g. PERSONAL CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- H01H: ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES (contact cables H01B7/10; electrolytic self-interrupters H01G9/18; emergency protective circuit arrangements H02H; switching by electronic means without contact-making H03K17/00)

## Abstract

A keyboard system comprises a key structure including a key switch with a lighting element and phototransistor, and one or more processors that drive the lighting element for a first pulse duration. The output of the phototransistor is determined at the end of the first pulse duration, wherein the key structure is determined to be pressed when the output is below a first output value at an end of the first pulse duration, and unpressed when the output of the phototransistor is above a second output value at the end of the first pulse duration. A fall-time of the output during the first pulse duration is determined and the first pulse duration is calibrated to a second pulse duration when the fall time less than the first pulse duration, the second pulse duration being greater than the fall time and less than the first pulse duration.

## Claims

### Claim 1

A keyboard system comprising:
a key structure including a key switch comprised of:
a lighting element; and
a phototransistor;
one or more processors communicatively coupled to the key switch, the one or more processors configured to:
drive the lighting element for a first pulse duration;
determine an output of the phototransistor at an end of the first pulse duration;
determine a press state of the key structure based at least in part on an output value of the output of the phototransistor at the end of the first pulse duration;
determine a fall-time of the output of the phototransistor during the first pulse duration; and
calibrate the first pulse duration to a second pulse duration when the fall-time of the output of the phototransistor is less than the first pulse duration, wherein the second pulse duration is greater than the fall-time and less than the first pulse duration.

### Claim 2 (depends on 1)

The keyboard system of claim 1 wherein the key structure further comprises:
a switch blocker configured to:
obstruct a line-of-sight between the lighting element and the phototransistor when the key structure is pressed; and
clear the line-of-sight when the key structure is unpressed.

### Claim 3 (depends on 2)

The keyboard system of claim 2 wherein the key switch is a hybrid key switch including:
a contactless key switch comprising the lighting element, the phototransistor, and the switch blocker; and
a contact-based key switch.

### Claim 4 (depends on 3)

The keyboard system of claim 3 wherein the contactless key switch is an optical key switch and the contact-based key switch is a galvanic key switch.

### Claim 5 (depends on 2)

The keyboard system of claim 2 wherein the key switch is a normally open switch.

### Claim 6 (depends on 1)

The keyboard system of claim 1 wherein the lighting element is an infrared (IR) diode and the phototransistor is an npn-type transistor.

### Claim 7 (depends on 1)

The keyboard system of claim 1 wherein the second pulse duration is equal to the fall-time plus a buffer time between 2 μs and 10 μs.

### Claim 8 (depends on 1)

The keyboard system of claim 1 wherein calibrating the first pulse duration to the second pulse duration occurs during a sleep mode of operation.

### Claim 9 (depends on 1)

The keyboard system of claim 1 further comprising a plurality of key structures, each key structure having a corresponding lighting element and corresponding phototransistor,
wherein determining the fall-time of the output of the phototransistor includes determining a maximum fall-time over the plurality of key structures, and
wherein the second pulse duration is greater than the maximum fall-time and less than the first pulse duration.

### Claim 10 (depends on 1)

The keyboard system of claim 1 wherein the one or more processors are operable to:
track changes in the fall-time of the output of the phototransistor over a period of use; and
generate an alert when the fall-time exceeds a threshold change in the fall-time over the period of use.

### Claim 11 (depends on 1)

The keyboard system of claim 1 wherein the one or more processors drive the lighting element at a periodic scan rate, wherein the periodic scan rate is increased based on a reduction of the second pulse duration from the first pulse duration.

### Claim 12

A method of operating a keyboard, the method comprising:
driving, by one or more processors of the keyboard, a lighting element of a key switch for a first pulse duration;
measuring an output of a phototransistor at an end of the first pulse duration;
determining that the key switch is pressed when the output of the phototransistor is below a first output value at the end of the first pulse duration;
determining that the key switch is unpressed when the output of the phototransistor is above a second output value at the end of the first pulse duration;
determining a fall-time of the output of the phototransistor during the first pulse duration; and
calibrating the first pulse duration to a second pulse duration when the fall-time of the output of the phototransistor is less than the first pulse duration, wherein the second pulse duration is greater than the fall-time and less than the first pulse duration.

### Claim 13 (depends on 12)

The method of claim 12 wherein the key switch is housed by a key structure, wherein the key structure further comprises:
a switch blocker configured to:
obstruct a line-of-sight between the lighting element and the phototransistor when the key structure is pressed; and
clear the line-of-sight when the key structure is unpressed.

### Claim 14 (depends on 12)

The method of claim 12 wherein the lighting element is an infrared (IR) diode and the phototransistor is an npn-type transistor.

### Claim 15 (depends on 12)

The method of claim 12 wherein the second pulse duration is equal to the fall-time plus a buffer time between 2 μs and 10 μs.

### Claim 16 (depends on 12)

The method of claim 12 further comprising:
driving the lighting element at a periodic scan rate; and
increasing the periodic scan rate based on a reduction of the second pulse duration from the first pulse duration.
