Switching device
By designing a switching device including a detection unit, a driving unit and a control unit, the problem of difficult adjustment of the thrust of the mechanical sliding switch is solved, and the flexible trigger force adjustment and consistency of the switching device is realized, and the R&D cycle and user experience are optimized.
Patent Information
- Application Number
- CN202311726778.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-06-17
AI Technical Summary
The thrust magnitude of existing mechanical sliding switches is difficult to adjust, resulting in an extended R&D cycle and the triggering force of different switches is inconsistent, affecting the user experience.
A switching device including a switch component, a functional trigger component, a detection unit, a driving unit and a control unit is designed to realize flexible trigger force adjustment by detecting a trigger action and controlling the movement of the drive unit to drive the switch component according to preset conditions.
It realizes flexible adjustment of switch trigger force, optimizes the R&D cycle, and ensures the consistency of trigger force of different switches, improving user experience.
Smart Images

Figure CN120164747A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of switch technology, and in particular to a switch device. Background Art
[0002] At present, most electronic devices or other devices that require switches use mechanical slide switches. However, since the thrust of mechanical slide switches is inherent in the hardware, it is difficult to adjust to meet all user requirements. In addition, in the product development stage, in order to prevent the slide switch from being too loose or too tight, the thrust of the slide switch needs to be adjusted repeatedly, and it cannot be adjusted in one go, which prolongs the development cycle. In addition, multiple slide switches on the same device may also have different thrusts due to errors in processing and installation, affecting user experience. Summary of the invention
[0003] The embodiments of the present application aim to solve at least one of the technical problems existing in the related art, and propose a switch device for solving the problems in the related art that the switch trigger force cannot be adjusted, the research and development cycle is long, and the switch trigger force of different switches is inconsistent.
[0004] To achieve the above-mentioned purpose, an embodiment of the present application provides a switch device, comprising a switch component, a function trigger component, a detection unit, a drive unit and a control unit, wherein the switch component is configured to be movable along a first direction between a first position in contact with the function trigger component and a second position separated from the function trigger component; the function trigger component is used to trigger a function state switch when in contact with the switch component;
[0005] The detection unit is used to detect a trigger action, and when the trigger action is detected, send a trigger signal corresponding to the trigger action to the control unit;
[0006] The control unit is used to determine whether the trigger action meets a preset trigger condition according to the trigger signal, and when the trigger action meets the trigger condition, control the drive unit to drive the switch component to move to the first position or the second position corresponding to the trigger action.
[0007] Other objects and features of the present application will become clear by reading the specification, claims and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0009] Figure 1 It is a structural schematic diagram of the switch device provided in an embodiment of the present application when the switch component is in the second position.
[0010] Figure 2 It is a schematic structural diagram of the switch device provided by the embodiment of the present application when the switch component is in the first position.
[0011] Figure 3 It is a principle block diagram of the drive unit adopted by the embodiment of the present application.
[0012] Figure 4 It is a schematic structural diagram of the switch device provided by the embodiment of the present application when the limiting unit is in the first state.
[0013] Figure 5 It is a process diagram of the switch device provided by the embodiment of the present application when the switch component moves from the second position to the first position.
[0014] Main element symbol description:
[0015] 1. Switch component; 11. Switch body; 12. Operating part;
[0016] 2. Function trigger component;
[0017] 31. First detection component; 32. Second detection component;
[0018] 4. Electromagnetic module; 41. Electromagnet; 42. Power supply; 43. Control circuit;
[0019] 5. Control unit;
[0020] 61. Housing; 62. Equipment main body structure; 63. Hollow part;
[0021] 71. First magnet; 72. Second magnet;
[0022] 8. Limiting unit; 81. Limiting part; 82. Linear driving part; 83. Elastic part. Detailed implementation manners
[0023] The following details the implementation manners of the present application. The examples of the implementation manners are shown in the accompanying drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions from beginning to end. The implementation manners described below with reference to the accompanying drawings are exemplary only for explaining the present application and should not be construed as limiting the present application.
[0024] In the description of the present application, it should be understood that the orientation or positional relationship indicated by terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality of" means two or more unless otherwise specifically defined.
[0025] In the description of the present application, it should be noted that unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection or an integral connection; it can be a mechanical connection, an electrical connection or a connection that can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, and it can be the connection inside two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0026] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present application. In addition, the present application may repeat reference numerals and / or reference letters in different examples. This repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the present application provides examples of various specific processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0027] In the description of this specification, the descriptions with reference to terms such as "one embodiment", "certain embodiments", "schematic embodiments", "examples", "specific examples", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.
[0028] Please refer to Figure 1 and Figure 2 , an embodiment of the present application provides a switching device, which is applied to, for example, turn on or off a specified function of the device where it is located. Specifically, the switching device includes a switching component 1, a function trigger component 2, a detection unit, a driving unit, and a control unit 5. Among them, the switching component 1 is arranged to be able to move between a first position (i.e., the position in Figure 2 ) in contact with the function trigger component 2 and a second position (i.e., the position in Figure 1 ) separated from the function trigger component 2 along a first direction. The above first direction is, for example, the horizontal direction in Figure 1 . Taking the device where the switching device is located includes a housing 61 and a device main body structure 62 disposed inside the housing 61 as an example, a hollow portion 63 is provided on the housing 61. One end of the switching main body 11 of the switching component 1 is movably connected to the device main body structure 62 along the first direction, for example, by sliding or rolling connection through a guide rail slider structure. The guide rail slider structure supports the switching component 1, and by connecting the switching component 1 to the slider in the guide rail slider structure, the switching component 1 can slide or roll along the guide rail through the slider, so as to reduce the friction generated by the switching component 1 and improve the smoothness of component movement.
[0029] The other end of the switching main body 11 extends to the outside of the housing 61 through the above hollow portion 63 for installing the detection unit. The switching component 1 may include a switching main body 11 and an operation portion 12 provided at one end of the switching main body 11. The operation portion 12 is used for installing the detection unit so that the detection unit can receive the triggering action of the user. The operation portion 12 is, for example, a keycap.
[0030] On this basis, in some embodiments, the switch device further includes a guide rail structure (not shown in the figure), which includes a guide rail and a moving member. The guide rail extends along the first direction, and the moving member cooperates with the guide rail and can move along the guide rail. One of the guide rail and the moving member is disposed on the switch component 1, and the other is disposed on the corresponding component of the device where the switch device is located. Taking the device where the switch device is located includes a housing 61 and a device main body structure 62 disposed inside the housing 61 as an example, the guide rail is, for example, a groove disposed on the switch component 1; the moving member is, for example, a tab disposed on the device main body structure 62, and a part of the tab is disposed in the groove and slidably cooperates with the groove. In this way, the shaking of the switch component 1 during movement can be effectively reduced, the movement stability and reliability can be improved, and it is ensured that the switch component 1 can always move along the first direction, ensuring the consistency of its moving direction. The embodiments of the present application are not limited to the guide rail structure adopting the above structure. In actual applications, other guide rail structures that can achieve the above guiding function can also be adopted, and the embodiments of the present application do not limit this.
[0031] The function trigger component 2 is used to trigger the function state switching when contacting the switch component 1. For example, the specified function of the device where the switch device is located is switched from the off state to the on state, or from the on state to the off state. The function trigger component 2 is, for example, an elastic member so as to be elastically in contact with the switch component 1, and thus can play a buffering role when contacting the switch component 1.
[0032] The detection unit is used to detect the trigger action, and when detecting the trigger action, send a trigger signal corresponding to the trigger action to the control unit 5. The detection unit is, for example, disposed on the operation part 12. The trigger action includes, for example, pressing, sliding touch, point touch, double click, non-contact gesture, and so on. The control unit 5 is used to judge whether the trigger action meets the preset trigger condition according to the trigger signal, and when the trigger action meets the trigger condition, control the driving unit to drive the switch component 1 to move to the first position or the second position corresponding to the trigger action. The control unit 5 is, for example, a microprocessor, and the microprocessor can be a separate processor of the switch device or integrated with the processor of the device where the switch device is located.
[0033] The switch device provided by the embodiment of the present application can be flexibly changed according to the user's needs because its triggering condition is preset, so as to meet various user requirements. Specifically, the control unit 5 is further configured to receive an instruction for changing the triggering condition and change the triggering condition according to the instruction. Taking the triggering action as pressing as an example, the triggering condition may be that the pressing force is greater than a preset threshold. In this case, the user can set the preset threshold according to their own needs. As long as the pressing force is greater than the preset threshold, the control unit 5 immediately controls the driving unit to drive the switch component 1 to move. Moreover, the switch device provided by the embodiment of the present application realizes triggering by using the detection unit to detect the triggering action, eliminating the problem in the related art that the thrust of the mechanical switch needs to be adjusted repeatedly for many times, and the problem that there are differences in the thrust magnitudes of multiple switches on the same device, thereby optimizing the user experience.
[0034] In order to realize the switching between the two states that the switch component 1 can move from the first position to the second position and from the second position to the first position, in some embodiments, the above detection unit can be used to detect two triggering actions corresponding to the two states of the switch component 1 respectively to realize the state switching. There are various detection units that can implement this function. For example, as Figure 1 and Figure 2 shown, the detection unit includes a first detection component 31 and a second detection component 32. Among them, the first detection component 31 is used to detect the first triggering action and send a first trigger signal to the control unit 5 when the first triggering action is detected; the second detection component 32 is used to detect the second triggering action and send a second trigger signal to the control unit 5 when the second triggering action is detected. In this case, the control unit 5 is configured to judge whether the first triggering action meets the first triggering condition according to the first trigger signal, and control the driving unit to drive the switch component 1 to move to the first position corresponding to the first triggering action, that is, the state is switched to moving from the second position to the first position when the first triggering action meets the first triggering condition. The control unit 5 is further configured to judge whether the second triggering action meets the second triggering condition according to the second trigger signal, and control the driving unit to drive the switch component 1 to move to the second position corresponding to the second triggering action, that is, the state is switched to moving from the first position to the second position when the second triggering action meets the second triggering condition. It should be noted that the above first triggering action and second triggering action can be pressing, sliding touch, point touch, double click, non-contact gesture, etc. They can be the same or different, and the objects triggered by the above first triggering action and second triggering action are different, that is, the first triggering action is used to trigger the first detection component 31, while the second triggering action is used to trigger the second detection component 32. The control unit 5 judges which state to switch the switch component 1 to according to the trigger signal sent by the currently triggered detection component.
[0035] The first detection component 31 and the second detection component 32 for implementing the above functions both include, for example, pressure sensors, which are provided on the switch component 1; the first triggering action and the second triggering action are both pressing the pressure sensors; the first triggering condition and the second triggering condition are both that the pressure of pressing the pressure sensors is greater than a preset threshold value. The preset threshold value is, for example, 3N, and this value can be flexibly set according to the needs of users. The above "pressing" can be for a short time or for a long time, and the embodiments of the present application have no special restrictions on this.
[0036] There can be various driving units for implementing the above functions. For example, in some embodiments, the driving unit includes an electromagnetic module 4, a first magnet 71, and a second magnet 72. Among them, the electromagnetic module 4 is connected to the switch component 1 and is used to generate a magnetic field with the magnetic pole direction parallel to the first direction when powered on, and can switch the two magnetic poles of the magnetic field. Taking the device where the switch device is located includes a housing 61 and a device main body structure 62 provided inside the housing 61 as an example, the above switch component 1 may include a switch main body 11 and an operation part 12 provided at one end of the switch main body 11. The electromagnetic module 4 is, for example, integrated in the switch main body 11 and generates a magnetic field at the end of the switch main body 11 adjacent to the device main body structure 62, and the magnetic pole direction of this magnetic field is parallel to the first direction.
[0037] Both the first magnet 71 and the second magnet 72 are permanent magnets, and both are arranged oppositely on both sides of the electromagnetic module 4 along the first direction. The function triggering component 2 is, for example, on the same side as the second magnet 72 and is closer to the switch main body 11 relative to the second magnet 72. Of course, in actual applications, the function triggering component 2 can also be on the same side as the first magnet 71. The magnetic pole directions of the first magnet 71 and the second magnet 72 are both parallel to the first direction, and the magnetic poles of the first magnet 71 and the second magnet 72 are opposite. For example, as Figure 1As shown, if the S pole of the first magnet 71 faces the electromagnetic module 4 and the N pole faces away from the electromagnetic module 4, then the S pole of the second magnet 72 faces the electromagnetic module 4 and the N pole faces away from the electromagnetic module 4. In this case, if the N pole of the magnetic field generated when the electromagnetic module 4 is energized faces the direction of the side where the function triggering component 2 is located, the S pole of the second magnet 72 facing the electromagnetic module 4 on that side will attract the electromagnetic module 4, and at the same time, the S pole of the first magnet 71 facing the electromagnetic module 4 on the opposite side will repel the electromagnetic module 4, thereby generating a magnetic force that drives the electromagnetic module 4 to move in the direction of approaching the second magnet 72. Since the function triggering component 2 and the second magnet 72 are on the same side (the function triggering component 2 is closer to the switch body 11), this causes the switch body 11 to move to the above-mentioned first position where it contacts the function triggering component 2 during the process of approaching the second magnet 72. On the contrary, if the N pole of the magnetic field generated when the electromagnetic module 4 is energized faces the direction away from the side where the function triggering component 2 is located, the S pole of the first magnet 71 facing the electromagnetic module 4 on that side will attract the electromagnetic module 4, and at the same time, the S pole of the second magnet 72 facing the electromagnetic module 4 on the opposite side will repel the electromagnetic module 4, thereby generating a magnetic force that drives the electromagnetic module 4 to move in the direction away from the second magnet 72. Furthermore, the switch body 11 moves away from the function triggering component 2 until it moves to the above-mentioned second position where it is separated from the function triggering component 2. The control unit 5 is configured to control the electromagnetic module 4 to be energized when the triggering action meets the triggering condition, so as to drive the switch component 1 to move to the first position or the second position corresponding to the triggering action under the interaction between the electromagnetic module 4 and the first magnet 71 and / or the second magnet 72 (i.e., the action of the above-mentioned magnetic force), thereby realizing the automatic control of the switch component 1.
[0038] In some embodiments, in order to define the limit positions of the movement of the electromagnetic module 4 and the switch component 1, it can be achieved by setting a limit position limiting structure. For example, taking the device where the switch device is located includes a housing 61 and a device main body structure 62 disposed inside the housing 61 as an example, the above-mentioned switch component 1 may include a switch body 11 and an operation part 12 disposed at one end of the switch body 11. There is a hollow part 63 on the housing 61. One end of the switch body 11 of the above-mentioned switch component 1 is movably connected to the device main body structure 62 along a first direction. The other end of the switch body 11 extends to the outside of the housing 61 through the above-mentioned hollow part 63 and is connected to the above-mentioned operation part 12. In this case, the two ends of the above-mentioned hollow part 63 in the first direction can be used to block the switch body 11 from continuing to move. For example, the above-mentioned hollow part 63 has a first end and a second end in the first direction (i.e., the left end and the right end in Figure 1 and Figure 2 ), the function triggering component 2 is located below the second end, and the position where the switch body 11 abuts against the second end is the above-mentioned first position (such as Figure 2As shown in the figure, in order to ensure good contact between the switch body 11 and the function trigger component 2, the function trigger component 2 is an elastic component, and a part of the elastic component is closer to the switch body 11 than the second end, so that it can contact the switch body 11 prior to the second end and achieve close contact with the switch body 11 through a certain elastic deformation. In addition, the position where the electromagnetic module 4 abuts against the first end is the second position (as Figure 1 shown),
[0039] Please refer to Figure 3 . The electromagnetic module 4 for implementing the above functions includes, for example, an electromagnet 41, a power supply 42, and a control circuit 43. Among them, the power supply 42 is connected to the electromagnet 41 through the control circuit 43; the control circuit 43 is used to connect or disconnect the power supply 42 and the electromagnet 41 under the control of the control unit 5, and to switch the electrode polarity of the power supply 42. By switching the electrode polarity of the power supply 42, the switching of the two magnetic poles of the magnetic field generated by the magnetic field module can be realized. Since the control circuit 43 for implementing the above functions belongs to the prior art, it will not be elaborated here.
[0040] In order to limit the switch component 1 in the first position or the second position, for example, when the switch component 1 moves from the first position to the second position, to prevent the switch component 1 from moving in the reverse direction towards the first position, or when the switch component 1 moves from the second position to the first position, to prevent the switch component 1 from moving in the reverse direction towards the second position. In some embodiments, the switch device further includes a limiting unit 8, and the limiting unit 8 can be switched between a first state and a second state; as Figure 1 and Figure 2 shown, the limiting unit 8 blocks the moving path of the switch component 1 in the first state, as Figure 4 shown, the limiting unit 8 moves away from the moving path of the switch component 1 in the second state. Further, the position where the limiting unit 8 blocks the moving path of the switch component 1 can satisfy: when the switch component 1 moves from the second position to the first position, the position where the limiting unit 8 blocks the moving path of the switch component 1 is located on the side of the switch component 1 close to the second position ( Figure 2 the side where it is located), and plays a limiting role; when the switch component 1 moves from the first position to the second position, the position where the limiting unit 8 blocks the moving path of the switch component 1 is located on the side of the switch component 1 close to the first position ( Figure 1 the side where it is located), and plays a limiting role. The above positions where the limiting unit 8 blocks the moving path of the switch component 1 can be realized by designing parameters such as the moving range of the switch component 1, the size of the switch component 1, and the size of the limiting unit 8.
[0041] The control unit 5 is configured to control the limit unit 8 to switch to the second state when the triggering action meets the triggering condition. At this time, the limit unit 8 moves away from the moving path of the switch member 1, so as not to interfere with the movement of the switch member 1.
[0042] For example, the limit unit 8 for implementing the above functions is set to switch to the second state when powered on and switch to the first state when powered off; the control unit 5 is configured to control the limit unit 8 to be powered on when the triggering action meets the triggering condition; when the detection unit does not detect the triggering action, the control unit 5 controls the limit unit 8 to be powered off. That is to say, the above limit unit 8 can automatically reset to the first state when powered off to play a limiting role. The limit unit 8 for realizing automatic reset includes, for example, a linear drive member 82, a limit member 81, and an elastic member 83. Among them, the linear drive member 82 is configured to drive the limit member 81 to move away from the moving path of the switch member 1 when powered on and stop driving the limit member 81 when powered off; the elastic member 83 is configured to drive the limit member 81 to move to a position blocking the moving path of the switch member under the action of its own elastic force when the linear drive member 82 stops driving the limit member 81. The linear drive member 82 is, for example, a linear motor.
[0043] In some embodiments, when the detection unit detects the triggering action, it sends a trigger signal corresponding to the triggering action to the control unit 5, and when the triggering action disappears and the detection unit does not detect the triggering action, that is, it stops sending the trigger signal corresponding to the triggering action to the control unit 5. For example, as Figure 4 shown, the operator manually presses the first detection component 31, and this action is the first triggering action. When the first detection component 31 detects this first triggering action, it sends a first trigger signal to the control unit 5; the control unit 5 is configured to determine whether the first triggering action meets the first triggering condition according to the first trigger signal, and when the first triggering action meets the first triggering condition, control the electromagnetic module 4 to be powered on (that is, control the circuit 43 to connect the power supply 42 and the electromagnet 41), and at the same time control the limit unit 8 to be powered on. At this time, the electromagnetic module 4 drives the switch member 1 to move from the second position towards the first position, and the limit unit 8 moves away from the moving path of the switch member 1. When Figure 4 the shown triggering action disappears, as Figure 5As shown, the control unit 5 immediately controls the electromagnetic module 4 to cut off power (i.e., controls the control circuit 43 to disconnect the power supply 42 from the electromagnet 41). At this time, the switch member 1 is no longer driven by the magnetic force, but can still continue to move by inertia until it reaches the first position corresponding to the first trigger action. The process of the operator manually pressing the second detection member 32 and finally moving the switch member 1 from the first position to the second position is similar to the above process and will not be repeated here. In practical applications, measures such as reducing the friction generated by the switch member 1 during movement and designing a reasonable moving distance can be taken to ensure that after the electromagnetic module 4 cuts off power, the switch member 1 can reach the first position or the second position corresponding to the trigger action.
[0044] In addition, in some embodiments, the control unit 5 is configured to control the limiting unit 8 to cut off power after a preset delay duration when the detection unit does not detect a trigger action. That is, as Figure 5 shown, when the trigger action disappears, the control unit 5 does not immediately control the limiting unit 8 to cut off power. At this time, the limiting unit 8 is still in the second state and will not interfere with the movement of the switch member 1 until after the preset delay duration, and then the control unit 5 will control the limiting unit 8 to cut off power. In this way, it can be ensured that after the switch member 1 has moved and passed through the position where the limiting unit 8 is located, the limiting unit 8 is switched to the first state to play a limiting role. The above preset delay duration is, for example, 0.5 s.
[0045] In summary, the switch device provided by the embodiment of the present application, since its trigger condition is preset and can be flexibly changed according to the user's needs, can thus meet diverse user requirements. Specifically, the control unit 5 is further configured to receive an instruction for changing the trigger condition and change the trigger condition according to the instruction. Taking the trigger action as pressing as an example, the trigger condition can be that the pressing force is greater than a preset threshold. In this case, the user can set the preset threshold according to their own needs. As long as the pressing force is greater than the preset threshold, the control unit 5 immediately controls the driving unit to drive the switch member 1 to move. Moreover, the switch device provided by the embodiment of the present application uses the detection unit to detect the trigger action to achieve triggering, and there is no problem in the related art that the thrust of the mechanical switch needs to be adjusted repeatedly many times, nor is there a problem that the thrust magnitudes of multiple switches on the same device are different, thereby optimizing the user experience.
[0046] It can be understood that the above embodiments are merely exemplary embodiments adopted to illustrate the principle of the present application, and the present application is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present application, and these modifications and improvements are also regarded as the protection scope of the present application.
Claims
1. A switching device, characterized in that, It includes a switch component, a function trigger component, a detection unit, a driving unit and a control unit. Among them, the switch component is set to be able to move between a first position in contact with the function trigger component and a second position separated from the function trigger component along a first direction; the function trigger component is used to trigger a function state switch when in contact with the switch component; The detection unit is used to detect a trigger action and, when the trigger action is detected, send a trigger signal corresponding to the trigger action to the control unit; The control unit is used to judge whether the trigger action meets a preset trigger condition according to the trigger signal, and when the trigger action meets the trigger condition, control the driving unit to drive the switch component to move to the first position or the second position corresponding to the trigger action.
2. The switching device according to claim 1, characterized in that, The detection unit includes a first detection component and a second detection component. Among them, the first detection component is used to detect a first trigger action and, when the first trigger action is detected, send a first trigger signal to the control unit; the second detection component is used to detect a second trigger action and, when the second trigger action is detected, send a second trigger signal to the control unit; The control unit is used to judge whether the first trigger action meets a first trigger condition according to the first trigger signal, and when the first trigger action meets the first trigger condition, control the driving unit to drive the switch component to move to the first position corresponding to the first trigger action; it is also used to judge whether the second trigger action meets a second trigger condition according to the second trigger signal, and when the second trigger action meets the second trigger condition, control the driving unit to drive the switch component to move to the second position corresponding to the second trigger action.
3. The switching device according to claim 2, characterized in that, Both the first detection component and the second detection component include pressure sensors, and the pressure sensors are arranged on the switch component; both the first trigger action and the second trigger action are pressing the pressure sensors; both the first trigger condition and the second trigger condition are that the pressure of pressing the pressure sensor is greater than a preset threshold.
4. The switching device according to claim 1, characterized in that, The switch device further includes a guide rail structure, which includes a guide rail extending along the first direction and a moving part that cooperates with the guide rail and can move along the guide rail. One of the guide rail and the moving part is arranged on the switch component, and the other is arranged on the corresponding component of the device where the switch device is located.
5. The switching device according to any one of claims 1-4, characterized in that, The driving unit includes an electromagnetic module, a first magnet and a second magnet. Among them, the electromagnetic module is connected to the switch component and is used to generate a magnetic field with the magnetic pole direction parallel to the first direction when powered on and can switch the two magnetic poles of the magnetic field; The first magnet and the second magnet are arranged oppositely on both sides of the electromagnetic module along the first direction, and the magnetic pole directions of the first magnet and the second magnet are both parallel to the first direction, and the magnetic poles of the first magnet and the second magnet are opposite; The control unit is configured to control the electromagnetic module to be powered on when the triggering action meets the triggering condition, so as to drive the switch component to move to the first position or the second position corresponding to the triggering action under the interaction between the electromagnetic module and the first magnet and / or the second magnet.
6. The switching device according to claim 5, characterized in that, The electromagnetic module includes an electromagnet, a power supply, and a control circuit, wherein the power supply is connected to the electromagnet through the control circuit; The control circuit is configured to connect or disconnect the power supply and the electromagnet under the control of the control unit, and switch the electrode polarity of the power supply.
7. The switching device according to any one of claims 1-4, characterized in that, The switch device further includes a limiting unit, which can be switched between a first state and a second state; the limiting unit blocks the moving path of the switch component in the first state and moves away from the moving path of the switch component in the second state; The control unit is configured to control the limiting unit to switch to the second state when the triggering action meets the triggering condition.
8. The switching device according to claim 7, characterized in that, The limiting unit is arranged to switch to the second state when powered on and switch to the first state when powered off; The control unit is configured to control the limiting unit to be powered on when the triggering action meets the triggering condition; and control the limiting unit to be powered off when the detection unit does not detect the triggering action.
9. The switching device according to claim 8, characterized in that, The control unit is configured to control the limiting unit to be powered off after a preset delay duration when the detection unit does not detect the triggering action.
10. The switching device according to claim 9, characterized in that, The limiting unit includes a linear driving member, a limiting member, and an elastic member, wherein the linear driving member is configured to drive the limiting member to move away from the moving path of the switch component when powered on and stop driving the limiting member when powered off; the elastic member is configured to drive the limiting member to move to a position blocking the moving path of the switch component under the action of its own elastic force when the linear driving member stops driving the limiting member.