Switch and electronic device
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorWeiwei Pi
Life of this patent
Estimating the term…
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.
Claims18
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.
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.
Dependencies are inferred from the claim text.