CN114446695A - Key switch control method and system - Google Patents

Key switch control method and system Download PDF

Info

Publication number
CN114446695A
CN114446695A CN202210054430.6A CN202210054430A CN114446695A CN 114446695 A CN114446695 A CN 114446695A CN 202210054430 A CN202210054430 A CN 202210054430A CN 114446695 A CN114446695 A CN 114446695A
Authority
CN
China
Prior art keywords
magnet
pressing
magnetic force
force
preset position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210054430.6A
Other languages
Chinese (zh)
Inventor
熊小兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202210054430.6A priority Critical patent/CN114446695A/en
Publication of CN114446695A publication Critical patent/CN114446695A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/70Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a plurality of operating members associated with different sets of contacts, e.g. keyboard
    • H01H13/84Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a plurality of operating members associated with different sets of contacts, e.g. keyboard characterised by ergonomic functions, e.g. for miniature keyboards; characterised by operational sensory functions, e.g. sound feedback
    • H01H13/85Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a plurality of operating members associated with different sets of contacts, e.g. keyboard characterised by ergonomic functions, e.g. for miniature keyboards; characterised by operational sensory functions, e.g. sound feedback characterised by tactile feedback features
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/02Details
    • H01H13/12Movable parts; Contacts mounted thereon
    • H01H13/14Operating parts, e.g. push-button
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H13/00Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch
    • H01H13/70Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a plurality of operating members associated with different sets of contacts, e.g. keyboard
    • H01H13/84Switches having rectilinearly-movable operating part or parts adapted for pushing or pulling in one direction only, e.g. push-button switch having a plurality of operating members associated with different sets of contacts, e.g. keyboard characterised by ergonomic functions, e.g. for miniature keyboards; characterised by operational sensory functions, e.g. sound feedback
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H5/00Snap-action arrangements, i.e. in which during a single opening operation or a single closing operation energy is first stored and then released to produce or assist the contact movement
    • H01H5/02Energy stored by the attraction or repulsion of magnetic parts

Landscapes

  • Push-Button Switches (AREA)

Abstract

The invention provides a key switch control method and a system, wherein the control method comprises the following steps: when the pressing part of the key switch is detected to move downwards to a first preset position, controlling the magnetic force generating part to apply magnetic force to the magnet; and when the pressing component is detected to move downwards to the second preset position, the magnet and the pressing component are reset by controlling the magnetic force generation component. When the pressing part of the key switch is detected to move downwards to the first preset position, the magnetic force generating part is controlled to apply magnetic force to the magnet so as to rely on the magnetic force generated by the magnetic force generating assembly and combine the pressing force and the restoring force of the first elastic part on the upper side of the magnet; and when the pressing component is detected to move downwards to the second preset position, controlling the magnetic force generation component to enable the magnet and the pressing component to reset. The method carries out detection control according to the movement position of the pressing part, simplifies the control logic, ensures the accuracy of the pressing movement of the pressing part and improves the experience of users.

Description

Key switch control method and system
Technical Field
The invention relates to the technical field of keyboard accessories, in particular to a key switch control method and a key switch control system.
Background
The keyboard is the most common and main input device in a computer system, and letters, numbers, punctuation marks and the like are input into a computer by pressing keys on the keyboard to make or break contacts. The keyboard is divided into a mechanical keyboard and a film keyboard, and the mechanical keyboard has the characteristics of good hand feeling, high controllability, sensitivity, durability and the like, and is deeply loved by game players.
At present, the mechanical keyboard controls the magnetic force according to the time sequence to control the magnetic force exerted on the mechanical keyboard, so that the mechanical keyboard generates different paragraph feelings and sounds. However, the timing control is complicated and inaccurate.
Disclosure of Invention
In view of this, the invention provides a key switch control method and system, and aims to solve the problem that the existing mechanical keyboard is complex and inaccurate in time sequence control.
On one hand, the invention provides a key switch control method, which comprises the following steps: when the pressing component of the key switch is detected to move downwards to a first preset position, the magnetic force generating component is controlled to apply magnetic force to the magnet, so that the magnet and the pressing component move downwards by virtue of the pressing force, the restoring force of the first elastic component on the upper side of the magnet and the magnetic force of the magnetic force generating component; when the pressing component is detected to move downwards to a second preset position, the magnet and the pressing component are reset by controlling the magnetic force generation component; the second preset position is arranged below the first preset position.
Further, the above key switch control method, in which the magnetic force generating member is controlled to apply the magnetic force to the magnet so that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, includes: the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part;
after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
Further, the above key switch control method, wherein the magnetic force generating member is controlled to apply a magnetic force to the magnet, so that the magnet and the pressing member move downward by virtue of the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, specifically: the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
Further, in the key switch control method, when it is detected that the pressing member moves downward to the second preset position, the magnetic force generating member is controlled to reset the magnet and the pressing member, specifically: when the pressing member is detected to move downwards to the second preset position, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that the magnet and the pressing member move upwards to return to the initial position under the action of a second elastic member arranged on the lower side of the baffle plate.
Further, in the key switch control method, when it is detected that the pressing member moves downward to the second preset position, the magnetic force generating member is controlled to reset the magnet and the pressing member, specifically: when the pressing part is detected to move downwards to the second preset position, the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet, so that the moving speed of the magnet and the pressing part moving upwards is increased, and the reset feedback force is enhanced.
Further, the key switch control method detects that the pressing member moves downward to a first preset position, and specifically includes: detecting that the bottom end of a transmission hole in a light blocking rod is positioned between an infrared emitter and an infrared receiver so as to connect communication between the infrared emitter and the infrared receiver, wherein the light blocking rod is arranged on a middle shaft; and/or, detecting that the pressing component moves downwards to a second preset position, specifically: the solid part above the transmission hole on the light blocking rod is detected to be positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the solid part, and the light blocking rod is arranged on the middle shaft.
In another aspect, the present invention provides a key switch control system, including: the magnetic force control pressing unit is used for controlling the magnetic force generating component to apply magnetic force to the magnet when the pressing component of the key switch is detected to move downwards to the first preset position, so that the magnet and the pressing component move downwards by virtue of the pressing force, the restoring force of the first elastic component on the upper side of the magnet and the magnetic force of the magnetic force generating component; and the magnetic force control resetting unit is used for resetting the magnet and the pressing component by controlling the magnetic force generating component when the pressing component is detected to move downwards to the second preset position.
Further, the above key switch control system, in which the magnetic force generating part is controlled to apply the magnetic force to the magnet so that the magnet and the pressing part move downward by the pressing force, the restoring force of the first elastic part on the upper side of the magnet, and the magnetic force of the magnetic force generating part, comprises: the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part; after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
Further, in the above key switch control system, the magnetic force generating member is controlled to apply a magnetic force to the magnet, so that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, specifically: the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
Further, in the key switch control system, when it is detected that the pressing member moves downward to the second preset position, the magnetic force generation member is controlled to reset the magnet and the pressing member, specifically: when the pressing member is detected to move downwards to the second preset position, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that the magnet and the pressing member move upwards to return to the initial position under the action of a second elastic member arranged on the lower side of the baffle plate.
Further, in the key switch control system, when it is detected that the pressing member moves downward to the second preset position, the magnetic force generation member is controlled to reset the magnet and the pressing member, specifically: when the pressing part is detected to move downwards to the second preset position, the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet, so that the moving speed of the magnet and the pressing part moving upwards is increased, and the reset feedback force is enhanced.
Further, the key switch control system detects that the pressing member moves downward to a first preset position, and specifically includes: detecting that the bottom end of a transmission hole in a light blocking rod is positioned between an infrared emitter and an infrared receiver so as to connect communication between the infrared emitter and the infrared receiver, wherein the light blocking rod is arranged on a middle shaft; and/or, detecting that the pressing component moves downwards to a second preset position, specifically: the solid part above the transmission hole on the light blocking rod is detected to be positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the solid part, and the light blocking rod is arranged on the middle shaft.
According to the key switch control method and system provided by the invention, when the fact that the pressing part of the key switch moves downwards to the first preset position is detected, the magnetic force generating part is controlled to apply magnetic force to the magnet, so that the magnet and the pressing part move downwards to move towards the second preset position by means of the magnetic force generated by the magnetic force generating assembly and the combination of the pressing force and the restoring force of the first elastic part on the upper side of the magnet; and when the pressing component is detected to move downwards to the second preset position, controlling the magnetic force generation component to enable the magnet and the pressing component to reset. The method carries out detection control according to the movement position of the pressing part, can avoid the downward movement of the pressing part and the magnet caused by misoperation, namely misoperation, and can also avoid the direct rebound of the pressing part when the pressing part is not pressed, thereby ensuring the accuracy of the pressing movement of the pressing part and improving the experience of users.
Furthermore, in the downward movement process of the pressing part and the magnet, the electromagnetic coil is controlled to generate an electromagnetic repulsion force on the magnet firstly so that the magnet compresses the first elastic part, and then the magnet impacts the baffle plate after the electromagnetic repulsion force disappears or when the electromagnetic attraction force is applied, so that paragraph feeling and sound in the audible mode are achieved; the electromagnetic attraction can be directly applied to the magnet by controlling the electromagnetic coil so that the magnet superposes an acting force which is in the same direction as the moving direction of the pressing part on the baffle plate, the moving speed of the synchronous downward movement of the pressing part and the magnet is accelerated, the falling feeling is generated, the pressing part is driven to move towards the second preset position, the magnet does not move relative to the baffle plate in the process, and the paragraph feeling is generated and is silent at the same time.
Preferably, in the upward movement process of the pressing part and the magnet, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that under the action of the second elastic part arranged on the lower side of the baffle, the magnet and the pressing part move upward to reset to the initial position; the electromagnetic repulsion can be exerted on the magnet by controlling the electromagnetic coil, so that the moving speed of the upward movement of the magnet and the pressing part is accelerated, the reset feedback force is enhanced, the enhanced feedback is presented, and a larger feedback force in a lifting state is fed back.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is an exploded view of a key switch provided in an embodiment of the present invention;
fig. 2 is an exploded perspective view of a key switch according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an initial position of a key switch according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of the push component, the magnet and the first elastic component in the key switch according to the embodiment of the present invention;
fig. 5 is a flowchart of a key switch control method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an initial position of a key switch according to an embodiment of the present invention;
fig. 7 is a schematic structural view illustrating an upward movement of a magnet under the action of electromagnetic repulsion force in a sound mode of a partial structure of a key switch according to an embodiment of the present invention;
fig. 8 is a schematic structural view illustrating a downward movement of a magnet after electromagnetic repulsion ends in a sound mode of a key switch structure according to an embodiment of the present invention;
fig. 9 is a schematic structural view illustrating that the magnet and the pressing member integrally move downward under the action of electromagnetic attraction in a sound mode of a partial structure of the key switch according to the embodiment of the present invention;
fig. 10 is a block diagram of a key switch control system according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1 to 4, schematic structural diagrams of a key switch provided in an embodiment of the present invention are shown. As shown, the key switch includes: the device comprises a shell 1, a pressing component 2, a magnetic force generating component 3, a magnet 4, a first elastic component 5, a second elastic component 6 and a sound switch; wherein the content of the first and second substances,
the housing 1 is a hollow housing structure for providing a mounting bearing space. Specifically, both ends of the case 1 may be respectively provided with through holes disposed in a vertical direction, so that the pressing member 2 passes through both ends of the case 1 from the through holes. In this embodiment, as shown in fig. 1, two pins 11 may be provided on the housing 1, and one or other number of pins 11 may also be provided, which is not limited in this embodiment.
The pressing member 2 is inserted into the housing 1, and the pressing member 2 is connected to the housing 1 so as to be capable of reciprocating linear motion. Specifically, the pressing component 2 is vertically arranged, and the pressing component 2 penetrates through the shell 1 from a through hole on the shell 1; in order to realize switch regulation and control, the pressing part 2 is connected with the shell 1 in a reciprocating linear motion mode along the vertical direction, so that the pressing part 2 moves downwards under the action of pressing force to enable the bottom of the pressing part 2 to penetrate through a through hole arranged on the bottom wall of the shell 1 to the outside of the shell 1, and the pressing of a key, namely the switching of the key switch, is completed; in the present embodiment, the pressing force is directed vertically downward as shown in fig. 3.
The magnetic force generating part 3 is used to generate magnetic force. Specifically, the magnetic force generating part 3 may be provided on the housing 1 to be electrified to generate an electromagnetic force, so that the magnet 4 is moved by a magnetic force generated by the electrification of the magnetic force generating part 3.
The magnet 4 is connected to the pressing member 2 so as to be capable of reciprocating linear motion in an axial direction (vertical direction as shown in fig. 3) of the pressing member 2. Specifically, magnet 4 can set up in the inside of casing 1, and, magnet 4 can overlap the periphery at pressing element 2, so that lead spacing through pressing element 2 to magnet 4, make magnet 4 carry out reciprocal linear motion along the axial of magnet 4 under the magnetic force effect that magnetic force generating component 3 produced, not only can carry out the reciprocal linear motion of vertical direction for pressing element 2, can also drive pressing element 2 along with magnet 4 synchronous downstream, or make pressing element 2 and magnet 4 return to the position of lifting up in step upwards under the effect of second magnetic part 6. The magnet 4 may be an annular structure, and preferably, the magnet 4 is an annular radially magnetized magnet, or may be another magnet, which is not limited in this embodiment.
The first elastic member 5 is disposed above the magnet 4, and is configured to apply a restoring force to the magnet 4 in the same direction as the pressing force, i.e., a vertically downward restoring force to the magnet, so as to avoid secondary impact on other components above the pressing member 2, such as the button 23 of the pressing member 2, when the magnet 4 moves upward, and further, the magnet 4 can move downward relative to the pressing member 2 to abut on the baffle 22 of the pressing member 2, i.e., move to a lower stroke point relative to the pressing member 2, so that the pressing member 2 moves along with the magnet 4. Specifically, the first elastic member 5 may be a spring, and when no external force is applied, due to the action of the first elastic member 5, the magnet 4 is located at the lower stroke point of the up-and-down reciprocating motion of the magnet 4 relative to the pressing member 2 under the action of the restoring force of the first elastic member 5, so as to prevent the magnet 4 from moving upwards and impacting other parts above, such as the button 23 of the pressing member 2, and avoid the sound generated by the impact, so that not only the silent effect in the silent mode is achieved, but also the secondary impact sound in the sound mode is avoided; meanwhile, when the magnet 4 moves upwards relative to the pressing part 2 under the action of the magnetic force generation part 3, the magnet 4 elastically compresses the first elastic part 5, the first elastic part 5 can apply restoring force to the magnet 4, so that the magnet 4 can move downwards under the action of the restoring force of the first elastic part 5, namely, a paragraph feeling can be generated, compared with the prior art that the magnet 4 moves downwards relative to the pressing part 2 under the action of the magnetic force generation part 3 to impact the pressing part 2, the power saving device can save current and achieve the purpose of saving power. In this embodiment, in order to change the impact sound generated when the magnet 4 moves to the lower stroke point of the relative movement, preferably, the pressing part 2 is provided with a sounding correction component at the lower stroke point of the movement of the magnet 4 relative to the pressing part 2, so as to change the downward impact sound of the magnet 4 when the magnet 4 moves downward relative to the pressing part 4, and meanwhile, the sounding correction component is provided to make the magnet 4 less prone to jamming, especially jamming between the magnet 4 and the pressing component 2, so that the pressing component 2 has better pressing feeling and paragraph feeling generated under the magnetic force action of the magnet 4, and the stability of the movement of the key switch is improved.
In order to achieve the restoration of the pressing member 2, it is preferable that a lower portion of the pressing member 2 is provided with a second elastic member 6 for providing a restoring force of the upward movement of the pressing member 2, i.e., applying the restoring force to the pressing member 2, so as to restore the pressing member 2 to a lifted position, i.e., an initial position as shown in fig. 3 and 5. Specifically, the pressing member 2 moves downward under the action of the vertically downward pressing force, compresses the second elastic member 6, and when the magnet 4 abuts against the pressing member 2, as shown in fig. 8, the magnetic force generated by the magnetic force generating member 2 drives the pressing member 2 to move downward synchronously, and continues to compress the second elastic member 6 until the pressing member 2 moves to the downward stroke point of the downward movement, or until the magnetic force generated by the magnetic force generating member 2 is maintained for a certain period of time, the second elastic member 6 applies a restoring force to the pressing member 2, so that the pressing member 2 drives the magnet 4 to move upward, so that the pressing member 2 is reset to the initial position shown in fig. 3, and a feedback force is provided.
The sound switch is used for switching the sound mode to a sound mode or a mute mode; the magnetic force generating component 3 is connected with the sound switch for obtaining the current sound mode. Specifically, the key switch can have two sound modes, namely a sound mode and a silent mode, and the two sound modes can be set through the sound switch; the magnetic force generation assembly 3 is connected with the sound switch to perform magnetic force control according to the current sound mode set by the sound switch.
In one embodiment of the sound-generating correction member of the present embodiment, the sound-generating correction member may be a sound-deadening element for reducing the impact sound of the magnet 4 going downward, so as to reduce the noise generated when the magnet 4 is operated, i.e., so as to achieve the purpose of switching the switch to silence, thereby achieving the sound-deadening effect. Preferably, the sound-generating correction component may be a silica gel sound-absorbing pad, or may be other sound-absorbing members, which is not limited in this embodiment.
In another alternative embodiment of the sound-generating correction member of this embodiment, the sound-generating correction member may be a clear and brittle sound generating member, so that the impact sound generated by the downward movement of the magnet 4 is clear and brittle, and the user's vocal experience is improved. Preferably, the sound correction component may be a metal sheet, but may also be other crisp sound generating components, which is not limited in this embodiment.
With continued reference to fig. 1-3, the housing 1 includes: a base 12 and an upper cover 13; the upper cover 13 is detachably connected with the base 12, and a hollow cavity is defined between the upper cover 13 and the base 12, so that the magnet 4, the first elastic component 5, the second elastic component 6 and the like are installed in the hollow cavity. In this embodiment, the base 12 and the upper cover 13 can be clamped by a buckle to facilitate the assembly and disassembly of the two, and of course, the two can be detachably connected by other methods, which is not limited in this embodiment.
With continued reference to fig. 1 to 4, the pressing member 2 includes: a central shaft 21, a baffle 22 and a button 23; the baffle 22 is arranged on the central shaft 21 and used for limiting the movement of the magnet 4 relative to the central shaft 21; the button 23 is disposed on top of the central shaft 21. Specifically, as shown in fig. 4, the top of the middle shaft 21 may be provided with a fastening portion 211 for fastening on the button 23, so as to fasten the middle shaft 21 and the button 23; the diameter of the locking portion 211 may be smaller than the diameter of the central shaft 21. The button 23 is engaged with the engaging portion 211 to move up and down synchronously, and the button 23 can limit the upward stroke of the magnet 4. The baffle 22 can be arranged between two ends of the middle shaft 21 and divides the middle shaft 21 into an upper shaft and a lower shaft so as to limit a lower stroke point of the magnet 4 relative to the middle shaft 21, so that the baffle 22 can be driven to move when the magnet 4 continues to move downwards under the action of magnetic force, namely the whole pressing part 2 is driven to move downwards, and the pressing part 2 is enabled to generate paragraph feeling. The button 23 can be arranged on the top of the middle shaft 21 and clamped with the clamping part 211, the first elastic component 5 can be sleeved outside the upper shaft and arranged between the magnet 4 and the button 23, and two ends (upper and lower ends shown in fig. 3) of the first elastic component 5 are respectively connected with the button 23 and the magnet 4; the second elastic member 6 may be sleeved outside the lower shaft and disposed between the base 12 and the baffle 22, and two ends (an upper end and a lower end as shown in fig. 3) of the second elastic member 6 are respectively connected to the baffle 22 and the base 12.
In this embodiment, the baffle 22 may be a circular plate structure, or may be other structures, which is not limited in this embodiment; to facilitate the adjustment of the sound of the impact of the magnet 4, it is preferable that the baffle plate 22 is adjustably attached to the center shaft 21 along the axial position of the center shaft 21 to adjust the up-down position of the baffle plate 22, and thus the position of the sound-emitting correction member, and thus the impact sound; further preferably, the baffle 22 is screwed with the middle shaft 21 to adjust the upper and lower positions of the baffle 22; the sounding correcting element may be disposed on a top wall of the baffle 22, that is, the baffle 22 supports the sounding correcting element, so that the sounding correcting element may be adjusted with the baffle 22.
In order to improve the position limitation of the first elastic member 5, as shown in fig. 4, preferably, the bottom of the button 23 is provided with a position limitation groove 231 for limiting the top of the first elastic member 5; in order to improve the position limitation of the second elastic component 6, preferably, as shown in fig. 4, the bottom wall of the baffle 22 may be provided with a position limitation protrusion 221 to limit the top end of the second elastic component 6; the limiting protrusion 221 may be a hemisphere, or may be other structures, and is not limited in this embodiment.
With continued reference to fig. 2 and 4, the lower shaft may be a solid light blocking rod structure for triggering the magnetic force generating part 2 by using an optical principle and a photoelectric coupling technology in combination with a photosensitive sensor. As shown in fig. 4, the solid light-blocking rod structure may be provided with a transmission hole 212 to sense a moving position of the solid light-blocking rod structure, i.e., a moving up and down position of the pressing member 2. The transmission hole 212 may be a rectangular through hole structure axially disposed along the central axis 21, so as to detect the top and bottom moving positions of the transmission hole 212. When the pressing member 2 moves to the lower stroke point of its downward movement, it can be detected by the position of the bottom of the transmission hole 212.
With continued reference to fig. 1 to 3, the magnetic force generating part 3 includes: an electromagnetic coil 31 and a circuit board 32; wherein, the electromagnetic coil 31 is used for generating electromagnetic attraction or electromagnetic repulsion to the magnet 4 by electrifying; the circuit board 32 is connected to the electromagnetic coil 31, and is used for controlling the power on/off of the electromagnetic coil 31 and the direction of the current, so as to control the electromagnetic attraction or repulsion applied by the electromagnetic coil 31. Specifically, the electromagnetic coil 31 may be a circular ring structure, and is disposed inside the housing 1 and fixed on the base 12 to generate electromagnetic attraction or electromagnetic repulsion when energized; the pressing member 2 may be disposed through the electromagnetic coil 31 for performing a reciprocating linear motion along an axial direction of the electromagnetic coil 31, that is, the central shaft 21 may pass through a center of the electromagnetic coil 31, that is, the central shaft and the electromagnetic coil are coaxially disposed, so that the central shaft 21 may perform an up-and-down motion in the electromagnetic coil 31, so that the magnet 4 may move up and down under an electromagnetic attraction force or an electromagnetic repulsion force of the electromagnetic coil 31, and may drive the pressing member 2 to move down integrally to compress the second elastic member 6. The circuit board 32 may be disposed under the exterior of the housing 1, as shown in fig. 3, a through hole 322 may be disposed on the circuit board 32, so that the central shaft 21 may pass through the through hole 322 to the lower side of the circuit board 32; the circuit board 32 can supply power to the electromagnetic coil 31, and the direction and time of the magnetic force generated by the electromagnetic coil 31 are adjusted through controlling the power supply time and the power supply current direction.
In the present embodiment, for supplying power to the trigger circuit board 32, preferably, the circuit board 32 is further provided with a conducting component 321, which is used for sensing the pressing movement position of the pressing component 2, so as to conduct and control the circuit board 32 according to the pressing movement position of the pressing component 2, so that the circuit board 32 supplies power to the electromagnetic coil 31, so that the electromagnetic coil 31 generates an electromagnetic attraction force to the magnet 4, and of course, an electromagnetic repulsion force may also be generated, which is not limited in this embodiment. The conducting member 321 may be a photosensitive sensing element, such as an IR & PT photoelectric sensing element, and may include an IR infrared emitter and a PT infrared receiver, the IR infrared emitter and the PT infrared receiver are disposed on two sides of the through hole, and an emitting end of the IR infrared emitter and a receiving end of the PT infrared receiver are disposed opposite to each other.
In an implementation manner of this embodiment, as shown in fig. 3, the transmission hole 212 may be located right above the through hole 322, and the solid block rod is located in the through hole 322, and by using an optical principle and a photocoupling technology, an IR emitter and a PT IR receiver form a light path, and the photocoupler is actuated by the operation of cutting off and closing the light path, so as to change the impedance value of the circuit to complete the on-off of the circuit; when the solid light blocking rod is static, the solid part of the solid light blocking rod is positioned between the IR infrared emitter and the PT infrared receiver, and the communication between the IR infrared emitter and the PT infrared receiver is cut off; when the central shaft 21 is pressed, the solid light blocking rod moves downwards until the bottom of the transmission hole 212 is located at a position between the emitting end of the IR emitter and the receiving end of the PT infrared receiver, such as the position shown in fig. 6, the communication between the IR emitter and the PT infrared receiver is switched on, the communication is triggered by switching on the light source to sense that the central shaft 21 moves downwards to the first preset position, and then the circuit board 32 is triggered to supply power to the electromagnetic coil 31, so that the circuit board 32 supplies current to the electromagnetic coil 31, for example, the repulsion current can be supplied in a silent mode or the attraction current can be supplied in a silent mode, of course, when the top of the transmission hole 212 continues to move downwards to a position between the emitting end of the IR emitter and the receiving end of the PT infrared receiver, that is, the solid light blocking rod located at the upper side of the transmission hole 212 is located between the emitting end of the IR emitter and the receiving end of the PT infrared receiver, the communication between the transmitting end of the IR infrared transmitter and the receiving end of the PT infrared receiver is cut off, the circuit board 32 is triggered again by cutting off the light source, the middle shaft 21 moves downwards to a second preset position in an induction mode, namely the lower stroke point of the pressing part 2 is distinguished from the existing trigger conduction module, and the reaction is more sensitive.
In another embodiment of this embodiment, the solid light-blocking rod may be located right above the through hole 322, and by using an optical principle and a photoelectric coupling technology, an IR infrared emitter and a PT infrared receiver form a light path, and the optical coupler is activated by the operation of cutting off and closing the optical path, so as to change the impedance value of the circuit, thereby completing the on-off of the circuit. In a static state, the solid block rod is positioned above the IR emitter and the PT IR receiver. When the middle shaft 21 is pressed, the solid light-blocking rod moves downwards to a position between the transmitting end of the IR infrared transmitter and the receiving end of the PT infrared receiver, the communication between the IR infrared transmitter and the PT infrared receiver is cut off, the light source is cut off for triggering, and then the trigger circuit board 32 supplies power to the electromagnetic coil 31.
Referring to fig. 5, it is a flowchart of a key switch control method according to an embodiment of the present invention. As shown in the figure, the key switch control method comprises the following steps:
and step S1, controlling the magnetic force generating member to apply a magnetic force to the magnet when it is detected that the pressing member of the key switch moves down to the first preset position, such that the magnet and the pressing member move down by virtue of the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member.
Specifically, in the present embodiment, whether the pressing member 2 moves to the first preset position and the second preset position is sensed in combination with a photosensitive sensor using an optical principle and a photocoupling technique. Due to the arrangement of the first elastic member 5, as shown in fig. 6, the magnet 4 is in contact with the baffle 22 by default, the magnet 4 and the baffle 22 are sandwiched between the first elastic member 5 and the second elastic member 6, and the solid part of the light blocking rod below the transmission hole 212 is between the transmitting end of the infrared transmitter and the receiving end of the infrared receiver, so that the communication between the infrared transmitter and the infrared receiver is cut off; firstly, the button 23 moves downwards under the action of pressing force, so that the button 23, the middle shaft 21, the baffle 22 and the magnet 4 move downwards integrally until the middle shaft 21 moves downwards to a first preset position; in this embodiment, the step of detecting that the pressing member moves downward to the first preset position may specifically be: when the bottom end of the transmission hole 212 on the light blocking rod is detected to be positioned between the infrared emitter and the infrared receiver, the communication between the infrared emitter and the infrared receiver is switched on, namely, when the bottom end of the transmission hole 212 on the light blocking rod is positioned between the infrared emitter and the infrared receiver, the communication between the infrared emitter and the infrared receiver is switched on, the light source is switched on for triggering, a switching-on trigger signal can be sent out, and when the switching-on trigger signal is detected, the central shaft 21 is indicated to move downwards to a first preset position, namely, the central shaft 21 is detected to move downwards to the first preset position; then, when it is detected through the infrared emitter and the infrared receiver that the bottom bracket 21 moves downward to the first preset position, the circuit board 32 may be controlled to supply power to the electromagnetic coil 31, so that the electromagnetic coil 31 applies a magnetic force to the magnet 4, so that the magnet 4 and the bottom bracket 21 move downward by virtue of the pressing force, the restoring force of the first elastic member 5, and the magnetic force of the electromagnetic coil 31, so that the bottom bracket 21 moves toward the second preset position.
And a step S2 of resetting the magnet and the pressing member by controlling the magnetic force generating member when the downward movement of the pressing member to the second preset position is detected.
Specifically, the magnet 4 and the middle shaft 21 move towards the second preset position until the middle shaft 21 moves to the second preset position; in this embodiment, the detection of the downward movement of the pressing member to the second preset position may specifically be: detecting that the entity part above the transmission hole 212 on the light blocking rod is positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the entity part, that is, the entity part above the transmission hole 212 is positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver so as to trigger through cutting off the light source, and sending a cutting off trigger signal, wherein when the cutting off trigger signal is detected, the middle shaft 21 is indicated to move downwards to a second preset position, that is, the middle shaft 21 is detected to move downwards to the second preset position; at this time, the circuit board 32 can be controlled to control the electromagnetic coil 31, and the power supply to the electromagnetic coil 31 can be stopped or regulated, so that the magnet 4 and the middle shaft 21 can move upwards under the action of the second elastic part 6 and also can be combined with the action of the electromagnetic coil 31 to return to the initial position.
The key switch can be provided with two sound modes, namely a sound mode and a silent mode.
In the present embodiment, controlling the magnetic force generating member to apply the magnetic force to the magnet such that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member may include: the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part; after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
In specific implementation, in the sound mode, as shown in fig. 7, when it is detected that the central axis of the key switch moves downward to the first preset position, first, the control circuit board 32 provides a repulsive current to the electromagnetic coil 31, so that the electromagnetic coil 31 generates a repulsive magnetic field, so that an electromagnetic repulsive force is generated between the electromagnetic coil 31 and the magnet 4, as shown in fig. 8, so that the magnet moves upward by virtue of the electromagnetic repulsive force, the first elastic component 5 on the upper side is compressed, the magnet 4 moves upward relative to the baffle 22 and is away from the baffle 22, and the magnet 4 applies a pushing force opposite to the moving direction of the button 23 to the button 23, so as to generate an upward pressing resistance; then, after the electromagnetic coil 31 applies the electromagnetic repulsion force for a first preset time period, the control circuit board 32 provides a reverse current, i.e., an attraction current, to the electromagnetic coil 31, so that the electromagnetic coil 31 generates an attraction magnetic field, and an electromagnetic attraction force is generated between the electromagnetic coil 31 and the magnet 4, so that the magnet 4 moves downward by virtue of the electromagnetic attraction force, and strikes the baffle 22 to generate strong paragraph feeling and sound, as shown in fig. 9, and continues to drive the middle shaft 21 to move towards a second preset position under the action of the electromagnetic attraction force; certainly, in the process that the electromagnetic coil 31 applies the electromagnetic repulsive force for the first preset time period, the circuit board 32 may also be controlled to stop supplying power, so that the magnet 4 moves downward under the action of the first elastic component 5 to hit the baffle 22, and the pressure of the first elastic component 5 is rapidly reduced, so that the pushing force superposed on the button 23 disappears to generate a paragraph feeling and a sound; and after the power supply is stopped for a certain time, for example, a second preset time period, the control circuit board 32 supplies an attraction current to the electromagnetic coil 31 to cause the electromagnetic coil 31 to generate an attraction magnetic field, and the electromagnetic coil 31 generates an attraction magnetic field to cause an electromagnetic attraction force between the electromagnetic coil 31 and the magnet 4 to compress the second elastic member 6 to move toward the second preset position. That is, an electromagnetic repulsive force is first generated to the magnet 4 by the electromagnetic coil 31, so that the magnet 4 compresses the first elastic member 5, and then the magnet 4 hits the baffle 22 after the electromagnetic repulsive force disappears or when the electromagnetic attractive force is applied, thereby achieving a sectional feeling and a sound in the audible mode.
In the present embodiment, wherein the magnetic force generating member is controlled to apply the magnetic force to the magnet so that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, it may be further that: the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
In a silent mode, when the central shaft 21 of the key switch is detected to move downwards to the first preset position, the control circuit board 32 provides an attraction current for the electromagnetic coil 31 to enable the electromagnetic coil 31 to generate an attraction magnetic field, so that an electromagnetic attraction force is generated between the electromagnetic coil 31 and the magnet 4, and the magnet 4 drives the central shaft 21 to synchronously move downwards by virtue of the electromagnetic attraction force, namely to move towards the second preset position; in the process, due to the application of the electromagnetic attraction, the magnet 4 superposes an acting force with the same moving direction as the button 23 on the baffle 22 through the baffle 22, so that the button 23 is quickly accelerated to generate the falling feeling; in the process, the magnet 4 does not move relative to the baffle 22, and the segment sense is generated and simultaneously the sound is not generated.
In the present embodiment, in which the magnet 4 and the pressing member 2 are controlled to be reset upon detecting the downward movement of the pressing member 2 to the second preset position, the reset feedback force upon resetting the magnet 4 and the bottom bracket 21 can be adjusted by the control of the electromagnetic coil 31, and for example, the normal feedback mode and the reinforced feedback mode can be implemented.
In the present embodiment, wherein the control magnet 4 and the pressing member 2 are reset when the pressing member 2 is detected to move downward to the second preset position, it may be: upon detecting the downward movement of the pressing member 2 to the second preset position, the electromagnetic coil 31 is controlled to stop the application of the electromagnetic attraction force, so that the magnet 4 and the pressing member 2 move upward to return to the initial position under the action of the second elastic member 6 provided on the lower side of the shutter 22.
In a specific implementation, in a normal feedback mode, when it is detected that the middle shaft 21 moves downward to the second preset position, the electromagnetic coil 31 is controlled to stop applying the electromagnetic attraction force, so that the middle shaft 21 and the magnet 4 move upward under the action of the restoring force of the second elastic component 6 until the middle shaft is reset to the initial position, in the process, the reset of the middle shaft 21 is realized through the second elastic component 6, the movement speed is slow, the feedback force is small, normal feedback is presented, and a small feedback force in a lifting state is fed back.
In the present embodiment, wherein the control magnet 4 and the pressing member 2 are reset when the pressing member 2 is detected to move downward to the second preset position, it may be further that: when the central shaft 21 is detected to move downwards to the second preset position, the electromagnetic coil 31 is controlled to apply electromagnetic repulsion to the magnet 4, so that the moving speed of the magnet 4 and the pressing part 2 moving upwards is increased, and the reset feedback force is enhanced.
In a reinforced feedback mode, when it is detected that the central shaft 21 moves downwards to the second preset position, the control circuit board 32 provides a repulsive current to the electromagnetic coil 31, so that the electromagnetic coil 31 generates a repulsive magnetic field, an electromagnetic repulsive force is generated between the electromagnetic coil 31 and the magnet 4, the magnet 4 moves upwards by virtue of the electromagnetic repulsive force and a restoring force of the second elastic component 6, the arrangement of the electromagnetic repulsive force accelerates the moving speed of the magnet 4 and the central shaft 21 moving upwards, so that the moving block moves, and the reset feedback force is enhanced to present reinforced feedback and feed back a larger feedback force in a lifting state. In the process, the sum of the electromagnetic repulsion force applied to the magnet 4 and the vector of the magnet 4 is smaller than the sum of the restoring force applied to the pressing part 2 by the second elastic part 6 and the vector of the second elastic part 6, so that the magnet 4 and the pressing part 2 are ensured to move upwards synchronously, the separation between the magnet 4 and the baffle plate 22 when the magnet 4 and the pressing part 2 return upwards is avoided, and the impact and the sound when the repulsion force is cancelled are further avoided. The time for applying the electromagnetic repulsion force can be determined according to actual conditions, and is not limited in this embodiment.
In the present embodiment, whether the pressing member 2 moves to the first preset position and the second preset position is sensed in combination with a photosensitive sensor using an optical principle and a photocoupling technique. When specifically implementing, detect the pressing member downstream to first preset position, specifically be: the bottom end of the transmission hole 212 on the light blocking rod is detected to be positioned between the infrared ray emitter and the infrared ray receiver, to turn on the communication between the infrared ray emitter and the infrared ray receiver,
in summary, in the key switch control method provided in this embodiment, when it is detected that the pressing member of the key switch moves downward to the first preset position, the magnetic force generating component is controlled to apply a magnetic force to the magnet, so that the magnet and the pressing member move downward to move toward the second preset position by relying on the magnetic force generated by the magnetic force generating component and combining the pressing force and the restoring force of the first elastic component on the upper side of the magnet; when the pressing part is detected to move downwards to the second preset position, the magnet and the pressing part can be reset by controlling the magnetic force generation part. The method carries out detection control according to the movement position of the pressing part, simplifies the control logic, not only can avoid the downward movement of the pressing part and the magnet caused by misoperation, namely the misoperation, but also can avoid the direct rebound of the pressing part when the pressing part is not pressed, ensures the accuracy of the pressing movement of the pressing part and improves the experience of a user.
Furthermore, in the downward movement process of the pressing part and the magnet, the electromagnetic coil 31 is controlled to generate an electromagnetic repulsion force on the magnet 4 first, so that the magnet 4 compresses the first elastic part 5, and the magnet 4 impacts the baffle plate 22 after the electromagnetic repulsion force disappears or when the electromagnetic attraction force is applied, thereby achieving paragraph feeling and sound in the sound mode; the electromagnetic attraction can also be directly applied to the magnet 4 by controlling the electromagnetic coil 31, so that the magnet 4 superposes an acting force with the same direction as the moving direction of the pressing part 2 on the baffle plate 22, the moving speed of the synchronous downward movement of the pressing part 2 and the magnet 4 is accelerated, the falling feeling is generated, the pressing part 2 is driven to move towards the second preset position, the magnet 4 does not move relative to the baffle plate 22 in the process, and the section feeling is generated and simultaneously is silent.
Preferably, during the upward movement of the pressing part and the magnet, the electromagnetic coil 31 is controlled to stop applying the electromagnetic attraction force, so that under the action of the second elastic part 6 arranged on the lower side of the baffle plate 22, the magnet 4 and the pressing part 2 move upward to reset to the initial position, during the process, the resetting of the pressing part 2 is realized through the second elastic part 6, the movement speed is slow, the feedback force is small, ordinary feedback is presented, and a small feedback force in a lifting state is fed back; the electromagnetic repulsion force can be exerted on the magnet 4 by controlling the electromagnetic coil 31, so that the moving speed of the magnet 4 and the pressing part 2 moving upwards is increased, the reset feedback force is enhanced, the enhanced feedback is presented, and a larger feedback force in a lifting state is fed back.
The embodiment of the system is as follows:
referring to fig. 10, it is a block diagram of a key switch control system according to an embodiment of the present invention. As shown, the system includes: a magnetic force control pressing unit 100 and a magnetic force control resetting unit 200; the magnetic force control pressing unit 100 is configured to control the magnetic force generating member to apply a magnetic force to the magnet when it is detected that the pressing member of the key switch moves downward to a first preset position, so that the magnet and the pressing member move downward by virtue of the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member; the magnetic force control reset unit 200 is configured to reset the magnet and the pressing member by controlling the magnetic force generating member when it is detected that the pressing member moves downward to the second preset position.
Preferably, wherein the controlling the magnetic force generating member to apply the magnetic force to the magnet such that the magnet and the pressing member move downward by virtue of the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member may comprise: the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part; after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
Preferably, wherein the magnetic force generating member is controlled to apply the magnetic force to the magnet such that the magnet and the pressing member move downward by virtue of the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, may be: the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
Preferably, when the pressing component is detected to move downwards to the second preset position, the magnetic force generation component is controlled to reset the magnet and the pressing component, specifically: when the pressing member is detected to move downwards to the second preset position, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that the magnet and the pressing member move upwards to return to the initial position under the action of a second elastic member arranged on the lower side of the baffle plate.
Preferably, when the pressing component is detected to move downwards to the second preset position, the magnetic force generation component is controlled to reset the magnet and the pressing component, specifically: when the pressing part is detected to move downwards to the second preset position, the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet, so that the moving speed of the magnet and the pressing part moving upwards is increased, and the reset feedback force is enhanced.
Preferably, the pressing member is detected to move downwards to a first preset position, specifically: detecting that the bottom end of a transmission hole in a light blocking rod is positioned between an infrared emitter and an infrared receiver so as to connect the communication between the infrared emitter and the infrared receiver, wherein the light blocking rod is arranged on a middle shaft; and/or, detecting that the pressing component moves downwards to a second preset position, specifically: the solid part above the transmission hole on the light blocking rod is detected to be positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the solid part, and the light blocking rod is arranged on the middle shaft.
The control system of this embodiment corresponds to the control method of another embodiment, and is not described herein again, and the principles between the two are the same, and the relevant parts can be referred to each other.
Since the above method embodiment has the above effects, the system embodiment also has corresponding technical effects.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart 1 flow or flows and/or block diagram 1 block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows of FIG. 1 and/or block diagram block or blocks of FIG. 1.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart 1 flow or flows and/or block 1 block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (12)

1. A key switch control method is characterized by comprising the following steps:
when the pressing component of the key switch is detected to move downwards to a first preset position, the magnetic force generating component is controlled to apply magnetic force to the magnet, so that the magnet and the pressing component move downwards by virtue of the pressing force, the restoring force of the first elastic component on the upper side of the magnet and the magnetic force of the magnetic force generating component;
when the pressing component is detected to move downwards to a second preset position, the magnet and the pressing component are reset by controlling the magnetic force generation component; the second preset position is arranged below the first preset position.
2. The key switch control method of claim 1, wherein controlling the magnetic force generating member to apply the magnetic force to the magnet such that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member comprises:
the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part;
after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
3. The key switch control method according to claim 1, wherein the magnetic force generating member is controlled to apply the magnetic force to the magnet so that the magnet and the pressing member move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating member, specifically:
the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
4. A key switch control method according to any one of claims 1 to 3, wherein upon detecting a downward movement of the pressing member to a second predetermined position, the magnetic force generating member is controlled to reset the magnet and the pressing member, specifically:
when the pressing member is detected to move downwards to the second preset position, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that the magnet and the pressing member move upwards to return to the initial position under the action of a second elastic member arranged on the lower side of the baffle plate.
5. A key switch control method according to any one of claims 1 to 3, wherein upon detecting a downward movement of the pressing member to a second predetermined position, the magnetic force generating member is controlled to reset the magnet and the pressing member, specifically:
when the pressing part is detected to move downwards to the second preset position, the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet, so that the moving speed of the magnet and the pressing part moving upwards is increased, and the reset feedback force is enhanced.
6. The key switch control method according to any one of claims 1 to 3,
detect the pressing part downstream to first preset position, specifically be: detecting that the bottom end of a transmission hole in a light blocking rod is positioned between an infrared emitter and an infrared receiver so as to connect communication between the infrared emitter and the infrared receiver, wherein the light blocking rod is arranged on a middle shaft; and/or the presence of a gas in the gas,
detect the pressing member downstream to the second and predetermine the position, specifically be: the solid part above the transmission hole on the light blocking rod is detected to be positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the solid part, and the light blocking rod is arranged on the middle shaft.
7. A key switch control system, comprising:
the magnetic force control pressing unit is used for controlling the magnetic force generating component to apply magnetic force to the magnet when the pressing component of the key switch is detected to move downwards to the first preset position, so that the magnet and the pressing component move downwards by virtue of the pressing force, the restoring force of the first elastic component on the upper side of the magnet and the magnetic force of the magnetic force generating component;
and the magnetic force control resetting unit is used for resetting the magnet and the pressing component by controlling the magnetic force generating component when the pressing component is detected to move downwards to the second preset position.
8. The key switch control system according to claim 7, wherein the magnetic force generating part is controlled to apply the magnetic force to the magnet so that the magnet and the pressing part are moved downward by the pressing force, the restoring force of the first elastic member at the upper side of the magnet, and the magnetic force of the magnetic force generating part, comprising:
the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet so that the magnet moves upwards by virtue of the electromagnetic repulsion force to compress the first elastic part on the upper side, and thrust opposite to the moving direction of the pressing part is applied to the pressing part through the first elastic part;
after the electromagnetic coil applies electromagnetic repulsion force for a first preset time period, the electromagnetic coil is controlled to apply electromagnetic attraction force to the magnet, so that the magnet impacts a baffle plate of the pressing part to generate sound and paragraph feeling, and the pressing part is driven to move towards a second preset position.
9. The key switch control system according to claim 7, wherein the magnetic force generating part is controlled to apply the magnetic force to the magnet so that the magnet and the pressing part move downward by the pressing force, the restoring force of the first elastic member on the upper side of the magnet, and the magnetic force of the magnetic force generating part, and specifically:
the electromagnetic coil is controlled to apply electromagnetic attraction to the magnet, so that the magnet is superposed with an acting force in the same direction as the movement direction of the pressing part to the baffle of the pressing part, the movement speed of the synchronous downward movement of the pressing part and the magnet is accelerated, a falling feeling is generated, and the pressing part is driven to move towards a second preset position.
10. The key switch control system according to any one of claims 7 to 9, wherein the magnet and the pressing member are reset by controlling the magnetic force generating member when the pressing member is detected to move down to the second preset position, specifically:
when the pressing member is detected to move downwards to the second preset position, the electromagnetic coil is controlled to stop the application of the electromagnetic attraction force, so that the magnet and the pressing member move upwards to return to the initial position under the action of a second elastic member arranged on the lower side of the baffle plate.
11. The key switch control system according to any one of claims 7 to 9, wherein the magnet and the pressing member are reset by controlling the magnetic force generating member when the pressing member is detected to move down to the second preset position, specifically:
when the pressing part is detected to move downwards to the second preset position, the electromagnetic coil is controlled to apply electromagnetic repulsion force to the magnet, so that the moving speed of the magnet and the pressing part moving upwards is increased, and the reset feedback force is enhanced.
12. The key switch control system according to any one of claims 7 to 9,
detect the pressing part downstream to first preset position, specifically be: detecting that the bottom end of a transmission hole in a light blocking rod is positioned between an infrared emitter and an infrared receiver so as to connect communication between the infrared emitter and the infrared receiver, wherein the light blocking rod is arranged on a middle shaft; and/or the presence of a gas in the gas,
detect the pressing member downstream to the second and predetermine the position, specifically be: the solid part above the transmission hole on the light blocking rod is detected to be positioned between the infrared transmitter and the infrared receiver so as to cut off the communication between the infrared transmitter and the infrared receiver through the solid part, and the light blocking rod is arranged on the middle shaft.
CN202210054430.6A 2022-01-18 2022-01-18 Key switch control method and system Pending CN114446695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210054430.6A CN114446695A (en) 2022-01-18 2022-01-18 Key switch control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210054430.6A CN114446695A (en) 2022-01-18 2022-01-18 Key switch control method and system

Publications (1)

Publication Number Publication Date
CN114446695A true CN114446695A (en) 2022-05-06

Family

ID=81368469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210054430.6A Pending CN114446695A (en) 2022-01-18 2022-01-18 Key switch control method and system

Country Status (1)

Country Link
CN (1) CN114446695A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138296A1 (en) * 2022-01-18 2023-07-27 熊小兰 Key switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014212627A1 (en) * 2014-06-30 2015-12-31 Zf Friedrichshafen Ag Apparatus for non-contact detecting a stroke of a key, key module, keyboard and method for producing a detection device and a key module
CN107195501A (en) * 2017-07-24 2017-09-22 苏州杰锐思自动化设备有限公司 Magnetic attractive button and the mechanical keyboard using the button
CN107785202A (en) * 2017-11-16 2018-03-09 东莞璟阳电子科技有限公司 A kind of magnetic press key
CN209282108U (en) * 2018-11-20 2019-08-20 东莞璟阳电子科技有限公司 A kind of magnetic force key
CN217280535U (en) * 2022-01-18 2022-08-23 熊小兰 Key switch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014212627A1 (en) * 2014-06-30 2015-12-31 Zf Friedrichshafen Ag Apparatus for non-contact detecting a stroke of a key, key module, keyboard and method for producing a detection device and a key module
CN107195501A (en) * 2017-07-24 2017-09-22 苏州杰锐思自动化设备有限公司 Magnetic attractive button and the mechanical keyboard using the button
CN107785202A (en) * 2017-11-16 2018-03-09 东莞璟阳电子科技有限公司 A kind of magnetic press key
CN209282108U (en) * 2018-11-20 2019-08-20 东莞璟阳电子科技有限公司 A kind of magnetic force key
CN217280535U (en) * 2022-01-18 2022-08-23 熊小兰 Key switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138296A1 (en) * 2022-01-18 2023-07-27 熊小兰 Key switch

Similar Documents

Publication Publication Date Title
EP3306449B1 (en) Linear vibrator providing localized and generalized haptic feedback
CN217280535U (en) Key switch
CN101980114B (en) Actuator is utilized to produce the method and apparatus of haptic effect
JP5082603B2 (en) Electronic musical instrument keyboard device
RU2395853C2 (en) Domestic electrical appliance
EP3678156A1 (en) Magnetic-type button
CN101980115A (en) Method and apparatus for generating haptic feedback and a haptic interface
CN114446695A (en) Key switch control method and system
CN102713793A (en) Systems and methods for increasing haptic bandwidth in an electronic device
JPWO2016186041A1 (en) Vibration input device
KR102608389B1 (en) Active button actuator, active button actuator feedback system comprising thereof and controlling method thereof
CN108475106A (en) Touch interface module and method for generating touch feedback
US20080291156A1 (en) Sanitary User Interface
CN111599622B (en) Key control method, device, keyboard and readable storage medium
US20010035086A1 (en) Keyboard musical instrument equipped with hammer stopper promptly driven for rotation by means of rigid link work
TWM627621U (en) Key button with adjustable pressing sound or pressing force
JP6299297B2 (en) Push button switch and gaming machine
WO2020044633A1 (en) Key input device that generates simulated tactile sensation
WO2019150737A1 (en) Tactile presentation system, computer program and storage medium
CN216719800U (en) Switch system
WO2021176992A1 (en) Key input device
JPH0916177A (en) Keyboard musical instrument
CN219149207U (en) Game controller with force feedback
US9792885B1 (en) Piano pedal operating device for people with disabilities
CN114051634A (en) Pedal device for musical performance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination