# US 12,719,001 B2 · Switch and electronic device

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

- Number: US 12,719,001 B2
- Document ID: US12719001B2
- Status: Granted
- Kind: B2
- Application number: 19/005,259
- Filed: 2024-12-30
- Published: 2025-05-01
- Granted: 2026-08-25
- Earliest claimed: 2022-08-24
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Weiwei Pi
- Web page: https://patentgrep.com/patent/US12719001B2

## CPC

- H01H 36/02: actuated by movement of a float carrying a magnet
- G01R 33/07: Hall effect devices
- G01R 33/091: {Constructional adaptation of the sensor to specific applications}
- G01R 33/093: {using multilayer structures, e.g. giant magnetoresistance sensors (thin magnetic films H01F10/00)}
- H01H 9/16: Indicators for switching condition, e.g. "on" or "off"
- H01H 15/04: Stationary parts; Contacts mounted thereon
- H01H 15/10: Operating parts
- H01H 36/00: Switches actuated by change of magnetic field or of electric field, e.g. by change of relative position of magnet and switch, by shielding
- H03K 17/97: using a magnetic movable element
- H01H 2221/022: electromagnetic
- H03K 2017/9713: {Multiposition, e.g. involving comparison with different thresholds}
- 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)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- 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)

## Abstract

A switch includes a fixed member, a sliding member and a processor, and the fixed member includes a sensor module. The sliding member is spaced apart from the fixed member and can be movable along a preset direction relative to the fixed member. The sliding member includes a magnetic head, and the magnetic head at least partially coincides with a projection of the sensor module, so that the sensor module can determine a position of the sliding member relative to the fixed member. The processor is electrically connected to the sensor module, and the processor enables the switch to be in a corresponding operating mode according to information of the position of the sliding member relative to the fixed member. An electronic device includes the switch.

## Claims

### Claim 1

A switch, comprising:
a fixed member, comprising a sensor module;
a sliding member, spaced apart from the fixed member and movable along a preset direction relative to the fixed member; wherein the sliding member comprises a magnetic head, and the magnetic head at least partially overlaps with the sensor module, so that the sensor module is able to determine a position of the sliding member relative to the fixed member; and
a processor, electrically connected to the sensor module; wherein the processor makes the switch be in a corresponding operating mode according to the position of the sliding member relative to the fixed member;
wherein the sensor module comprises a plurality of magnetoresistive sensors disposed along the preset direction, and the plurality of magnetoresistive sensors are sequentially connected in series;
the sliding member moves relative to the fixed member along the preset direction, so that the magnetic head sequentially passes by at least one magnetoresistive sensor;
the magnetic head magnetizes the at least one magnetoresistive sensor that is passed by the magnetic head and changes a resistance value of the at least one magnetoresistive sensor that is passed by the magnetic head, so that a total resistance value of the sensor module changes;
the processor determines the position of the sliding member relative to the fixed member according to the total resistance value of the sensor module, and makes the switch be in the corresponding operating mode; and
a distance of the sliding member relative to the fixed member is linearly related to the total resistance value of the sensor module.

### Claim 2 (depends on 1)

The switch according to claim 1, wherein the plurality of magnetoresistive sensors are disposed at equal intervals.

### Claim 3 (depends on 2)

The switch according to claim 2, wherein
when the sliding member is located at a first position of the fixed member, the switch is in a first operating mode;
when the sliding member is located at a second position of the fixed member, the switch is in a second operating mode; and
when the sliding member is located at a third position of the fixed member, the switch is in a third operating mode.

### Claim 4 (depends on 3)

The switch according to claim 3, wherein the first position, the second position, and the third position are disposed at equal intervals along the preset direction.

### Claim 5 (depends on 1)

The switch according to claim 1, wherein
each of the plurality of magnetoresistive sensors comprises a barrier layer, a first magnetic layer, and a second magnetic layer;
the barrier layer comprises two opposite side surfaces, the first magnetic layer is located on one of the two opposite side surfaces, and the second magnetic layer is located on the other of the two opposite side surfaces;
the magnetic head is configured to magnetize the second magnetic layer, and a magnetic field strength of the magnetic head is greater than a preset magnetic field strength.

### Claim 6 (depends on 5)

The switch according to claim 5, wherein
when a magnetic field direction of the second magnetic layer is consistent with that of the first magnetic layer, each of the plurality of magnetoresistive sensors has a first resistance value; and
when the magnetic field direction of the second magnetic layer is opposite to that of the first magnetic layer, each of the plurality of magnetoresistive sensors has a second resistance value.

### Claim 7 (depends on 6)

The switch according to claim 6, wherein the magnetic field direction of the second magnetic layer is consistent or opposite to a moving direction of the magnetic head, and the first resistance value is less than the second resistance value.

### Claim 8 (depends on 6)

The switch according to claim 6, wherein the magnetic head is one of a permanent magnet and an electromagnet.

### Claim 9 (depends on 1)

The switch according to claim 1, wherein the sensor module comprises at least one Hall sensor disposed along the preset direction, and the at least one Hall sensor is configured to detect a magnetic field strength of the magnetic head and determine the position of the sliding member relative to the fixed member.

### Claim 10

An electronic device, comprising:
a switch, comprising:
a fixed member, comprising a sensor module;
a sliding member, spaced apart from the fixed member and movable along a preset direction relative to the fixed member; wherein the sliding member comprises a magnetic head, and the magnetic head at least partially overlaps with the sensor module, so that the sensor module is able to determine a position of the sliding member relative to the fixed member; and
a processor, electrically connected to the sensor module; wherein the processor makes the switch be in a corresponding operating mode according to the position of the sliding member relative to the fixed member; and
a middle frame, comprising:
a middle plate; and
a side frame, wherein the side frame extends from an edge of the middle plate, the side frame and the middle plate are enclosed to define an accommodating chamber, the fixed member and the processor of the switch are accommodated in the accommodating chamber, and the sliding member of the switch is disposed on the side frame;
the sensor module comprises a plurality of magnetoresistive sensors disposed along the preset direction, and the plurality of magnetoresistive sensors are sequentially connected in series;
the sliding member moves relative to the fixed member along the preset direction, so that the magnetic head sequentially passes by at least one magnetoresistive sensor;
the magnetic head magnetizes the at least one magnetoresistive sensor that is passed by the magnetic head and changes a resistance value of the at least one magnetoresistive sensor that is passed by the magnetic head, so that a total resistance value of the sensor module changes;
the processor determines the position of the sliding member relative to the fixed member according to the total resistance value of the sensor module, and makes the switch be in the corresponding operating mode; and
a distance of the sliding member relative to the fixed member is linearly related to the total resistance value of the sensor module.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the plurality of magnetoresistive sensors are disposed at equal intervals.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein
when the sliding member is located at a first position of the fixed member, the switch is in a first operating mode;
when the sliding member is located at a second position of the fixed member, the switch is in a second operating mode; and
when the sliding member is located at a third position of the fixed member, the switch is in a third operating mode.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the first position, the second position, and the third position are disposed at equal intervals along the preset direction.

### Claim 14 (depends on 10)

The electronic device according to claim 10, wherein
each of the plurality of magnetoresistive sensors comprises a barrier layer, a first magnetic layer, and a second magnetic layer;
the barrier layer comprises two opposite side surfaces, the first magnetic layer is located on one of the two opposite side surfaces, and the second magnetic layer is located on the other of the two opposite side surfaces;
the magnetic head is configured to magnetize the second magnetic layer, and a magnetic field strength of the magnetic head is greater than a preset magnetic field strength.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein
when a magnetic field direction of the second magnetic layer is consistent with that of the first magnetic layer, each of the plurality of magnetoresistive sensors has a first resistance value;
when the magnetic field direction of the second magnetic layer is opposite to that of the first magnetic layer, each of the plurality of magnetoresistive sensors has a second resistance value; and
the magnetic field direction of the second magnetic layer is consistent or opposite to a moving direction of the magnetic head, and the first resistance value is less than the second resistance value.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the magnetic head is one of a permanent magnet and an electromagnet.

### Claim 17 (depends on 10)

The electronic device according to claim 10, wherein the sensor module comprises at least one Hall sensor disposed along the preset direction, and the at least one Hall sensor is configured to detect a magnetic field strength of the magnetic head and determine the position of the sliding member relative to the fixed member.

### Claim 18 (depends on 10)

The electronic device according to claim 10, wherein a surface of the side frame away from the accommodating chamber is recessed to define a sliding groove, and the sliding member is accommodated and slidable in the sliding groove, so that the sliding member slides along the preset direction relative to the fixed member.
