# US 12,632,114 B2 · Gap sensing via engine coil

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

- Number: US 12,632,114 B2
- Document ID: US12632114B2
- Status: Granted
- Kind: B2
- Application number: 18/144,075
- Filed: 2023-05-05
- Published: 2024-03-28
- Granted: 2026-05-19
- Earliest claimed: 2022-09-24
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Denis G. Chen; Darya Amin-Shahidi
- Web page: https://patentgrep.com/patent/US12632114B2

## CPC

- G06F 3/016: {Input arrangements with force or tactile feedback as computer generated output to the user}
- G01B 7/14: for measuring distance or clearance between spaced objects or spaced apertures (G01B7/30 takes precedence)
- H03K 17/962: {Capacitive touch switches}
- H03K 17/9622: {using a plurality of detectors, e.g. keyboard}
- H03K 17/9625: {using a force resistance transducer}
- H03K 17/9645: {Resistive touch switches}
- H03K 17/9647: {using a plurality of detectors, e.g. keyboard}
- H03K 17/97: using a magnetic movable element
- H02K 33/18: with coil systems moving upon intermittent or reversed energisation thereof by interaction with a fixed field system, e.g. permanent magnets
- H03K 2017/9706: {Inductive element}
- H03K 2217/9651: the moving element acting on a force, e.g. pressure sensitive element
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G01B: MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- 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)
- H02K: DYNAMO-ELECTRIC MACHINES (dynamo-electric relays H01H53/00; conversion of DC or AC input power into surge output power {H03K3/53})

## Abstract

A haptic engine for an electronic device includes a coil assembly and a stator. The coil assembly may be coupled to an input structure, such as a button cap. In an gap sensing mode, a first voltage may be driven through the coil assembly to determine an impedance of the coil assembly. The impedance is then used to determine a gap between the coil assembly and the stator. In a haptic drive mode, a second voltage is driven through the coil assembly to produce a haptic output.

## Claims

### Claim 1

An electronic device comprising:
a plurality of housing elements;
an input structure at least partially moveable with respect to at least one housing element of the plurality of housing elements;
a coil assembly mechanically coupled to the input structure such that movement of the input structure causes movement of the coil assembly;
a stator having a surface that is separated by a gap from a surface of the coil assembly; and
a circuit operatively coupled to a processor and comprising a first sense resistor and a second sense resistor, the circuit and the processor configured to:
drive a first signal through the coil assembly;
determine a distance of the gap, the determination based at least in part on an impedance of the coil assembly when driving the first signal through the coil assembly; and
switch current from a first path to a second path, wherein:
the first path includes the coil assembly electrically coupled to the first sense resistor and electrically isolated from the second sense resistor; and
the second path includes the coil assembly electrically coupled to the second sense resistor and electrically isolated from the first sense resistor.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein:
the stator is mechanically coupled to a button such that movement of the button causes movement of the stator; and
the coil assembly is connected within a housing defined by the plurality of housing elements with the surface of the coil assembly separated from the surface of the stator, forming the gap.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the circuit and the processor are further configured to:
drive a second signal different from the first signal through the coil assembly; wherein:
a power of the second signal is based at least in part on the determined distance of the gap.

### Claim 4 (depends on 3)

The electronic device of claim 3, wherein:
the second signal is a single ended signal.

### Claim 5 (depends on 3)

The electronic device of claim 3, wherein:
the second signal has a frequency different from the first signal.

### Claim 6 (depends on 1)

The electronic device of claim 1, further comprising:
a force sensor mechanically coupled to the coil assembly and electrically coupled to the circuit; wherein the circuit and the processor are further configured to:
determine the distance of the gap based at least in part on a signal from the force sensor.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein:
the first signal is an alternating current signal.

### Claim 8

A device comprising:
a housing defining an opening;
a button positioned at least partially within the opening and moveable with respect to the housing;
a coil assembly comprising a casing, and a coil disposed in the casing, the coil assembly mechanically coupled to the button such that movement of the button causes movement of the coil assembly;
a stator connected within the housing with a surface of the stator separated from a surface of the casing, forming a gap;
one or more force sensors mechanically coupled to one or both of the button or the coil assembly;
a flexible printed circuit board disposed within the housing; wherein:
one or more first wires connect the flexible printed circuit board to the coil; and
one or more second wires connect the flexible printed circuit board to the one or more force sensors; and
a processor operatively coupled to the flexible printed circuit board, the processor and the flexible printed circuit board configured to:
drive a first signal through the coil assembly; and
determine a distance of the gap, the determination based at least in part on impedance of the coil assembly when driving the first signal through the coil assembly.

### Claim 9 (depends on 8)

The device of claim 8, wherein:
the stator is mechanically coupled to the button such that movement of the button causes movement of the stator; and
the coil assembly is connected within the housing with a surface of the coil assembly separated from the surface of the stator, forming the gap.

### Claim 10 (depends on 8)

The device of claim 8, wherein the flexible printed circuit board comprises voltage common mode buffer circuitry.

### Claim 11 (depends on 8)

The device of claim 8, wherein the flexible printed circuit board comprises an analog-to-digital converter circuit and a digital signal processing circuit.

### Claim 12

A method of sensing a gap via a reluctance engine coil, for controlling haptic output, comprising:
switching a circuit from a haptic drive mode to an inductive sensing mode;
applying, via the circuit in the inductive sensing mode, a first signal to the reluctance engine coil;
measuring a voltage from a force sensor mechanically coupled to the reluctance engine coil;
measuring, via the circuit in the inductive sensing mode, an inductance and resistance of the reluctance engine coil, the measuring based at least in part on the first signal;
determining, via the circuit in the inductive sensing mode, a distance of the gap associated with the reluctance engine coil and a stator, the determination based at least in part on the measured inductance, measured voltage, and measured resistance; and
switching the circuit from the inductive sensing mode to the haptic drive mode.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
applying, via the circuit in the haptic drive mode, a second signal different from the first signal to the reluctance engine coil; wherein:
a power of the second signal is based at least in part on the determined distance of the gap.
