Control method of pressing and sensing dual-purpose switch with three states
By adopting the three-state push-inductive dual-purpose switch control method in the intelligent switch, combining the press and induction control modes, it supports three states: single trigger, double trigger and long trigger, and realizes remote control through the wireless transmission module, which solves the problem of current control The problem that it is difficult to achieve user-friendly three-state control with intelligent switches improves the convenience and flexibility of users' operations.
Patent Information
- Application Number
- CN202411812890.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-02-11
AI Technical Summary
In the design of home smart homes, existing smart switches are difficult to achieve user-friendly three-state control, and the control method is single and lacks flexibility.
The control method of the three-state press-induction dual-purpose switch is adopted. By combining the first control method and the second control method, the combination of the user press and induction two control modes is realized, and the single trigger, double trigger and long trigger are supported. The use of three states and the connection with the gateway device through the wireless transmission module is realized to achieve remote control.
It improves the convenience and flexibility of users' operations, enables users to choose suitable control methods according to their needs, and improves their understanding and user experience of smart homes.
Smart Images

Figure CN119420340A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a control method for a three-state press-sensing dual-purpose switch. Background Art
[0002] The applicant has found in practice that the existing smart switches used in Mijia can be used for smart home designs such as household lights, curtains, washing machines, air conditioners, etc. Based on the long-term cooperation between the applicant and Xiaomi, the applicant applied for a three-state push-sensitive dual-purpose switch on the same day of this application. This application is an invention for a control method of a three-state push-sensitive dual-purpose switch applied on the same day, so as to facilitate user operation. Summary of the invention
[0003] The invention discloses a control method of a three-state push-to-sensing dual-purpose switch, comprising the push-to-sensing dual-purpose switch, characterized in that the push-to-sensing dual-purpose switch comprises a first control method and a second control method.
[0004] As a further limitation of the present invention, the first control method comprises the following steps: In the first step, when the user presses the infrared panel, the infrared panel contacts the micro switch, and the data pin P5 of the processor module is at a high potential. The processor module determines that the micro switch is pressed, and the data pin P4 of the processor module is set to a low level, and the relay works; In the second step, the controlled end of the relay is activated or disconnected to achieve control.
[0005] As a further limitation of the present invention, it is characterized in that: the second control method comprises the following steps: In the first step, when the hand slides across the sensing area, the infrared probe in the infrared receiving module senses the infrared rays, triggering the voltage change of the P0 terminal set in the processor module; ADetermine single trigger, double trigger or long trigger according to the trigger number and time; According to this principle, the B processor module sets the voltage of the control end of the relay, that is, the P4 end of the processor module, to control the opening and closing of the controlled end of the relay.
[0006] In the second step, the pressure-sensing dual-purpose switch is equipped with a wireless transmission module, which is connected to the gateway device through the wireless transmission module to transmit the three states of the switch to the remote device, thereby achieving the purpose of wirelessly controlling the three states.
[0007] As a further limitation of the present invention, the gateway device adopts Xiaomi gateway or Huawei gateway.
[0008] Technical effect of the invention: Based on a three-state push-sensing dual-purpose switch applied for on the same day, this application adopts a convenient and orderly control method based on the patent, allowing users to conveniently adopt both push and sensing control modes, and has three states of single trigger, double trigger or long trigger, which can be used flexibly according to one's needs, thereby enhancing the understanding and use of smart homes. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a schematic diagram of the first control method of the present invention.
[0010] Figure 2 It is a schematic diagram of the second control method of the present invention.
[0011] Figure 3 This is a single trigger diagram.
[0012] Figure 4 It is a double trigger schematic.
[0013] Figure 5 It is a long trigger schematic diagram. DETAILED DESCRIPTION
[0014] Embodiment 1 like Figure 1-2 As shown, this embodiment provides a control method for a three-state push-sensitive dual-purpose switch, including two push-sensitive dual-purpose switches, characterized in that: the push-sensitive dual-purpose switch includes a first control method and a second control method.
[0015] like Figure 1 As shown, the first control method includes the following steps: In the first step S101, when the user presses the infrared panel, the infrared panel contacts the micro switch, and the data pin P5 provided in the processor module is at a high potential. The processor module determines that the switch is pressed, and the data pin P4 of the processor module is set to a low level, and the relay works; In the second step S102, the controlled end of the relay is activated or disconnected to achieve control.
[0016] like Figure 2 As shown, the second control method includes the following steps: In the first step S201, when the hand slides across the sensing area, the infrared probe in the infrared receiving module 31 senses the infrared rays, triggering the voltage change of the P0 terminal provided in the processor module; A. Determine single trigger, double trigger or long trigger according to the number of triggers and time; B. The processor module sets the voltage of the control end of the relay, i.e., the P4 end of the processor module, based on this principle to control the opening and closing of the controlled end of the relay.
[0017] In the second step S202, the pressure-sensing dual-purpose switch is provided with a wireless transmission module, through which it can be connected to a gateway device to transmit the three states of the switch to a remote device, thereby achieving the purpose of wirelessly controlling the three states.
[0018] The gateway device mentioned above uses Xiaomi gateway or Huawei gateway.
[0019] like Figure 3-5 As shown, the voltage changes at the P0 and P1 terminals of the trigger processor module. The waveform of single trigger, double trigger or long trigger is determined according to the number of triggers and time. It is the same as the single press, double press and long press of the existing switch. Since there is a gap between the fingers, they are not reflected when passing through the infrared probe, and are displayed as grooves in the waveform. When the finger is identified by the infrared probe, the reflected signal is received to form the protruding part of the waveform. When the protrusion is long, it is formed by the long pressing time of the finger. When the protrusion is short, it is formed by the short pressing time of the finger. The corresponding protrusion corresponds to the number of fingers.
[0020] like Figure 3 As shown, there is only one protrusion and the protrusion is short, and accordingly, the number of fingers is one and the pressing time is short.
[0021] like Figure 4 As shown, there are only two protrusions and the protrusions are shorter. Accordingly, the number of fingers is two, such as the index finger and the middle finger, and the pressing time is short.
[0022] like Figure 5 As shown, there is only one protrusion and the protrusion is longer, and accordingly, the number of fingers is one and the pressing time is long.
[0023] The working principle of the above structure is: 1. When the user presses the infrared panel, the infrared panel contacts the micro switch, the data pin P5 of the processor module is at a high potential, the processor module determines that the switch is pressed, the data pin P4 of the processor module is set to a low level, and the relay works. The controlled end of the relay is closed or disconnected to achieve control.
[0024] 2. When the hand slides over the sensing area, the infrared probe of the infrared receiving module senses the infrared rays. The voltage change of the P0 and P1 terminals of the triggering processor module is triggered. Single trigger, double trigger or long trigger is determined according to the number of triggers and time. Based on this principle, the processor module sets the control terminal of the relay, that is, the voltage of the P4 terminal of the processor module to control the opening and closing of the controlled terminal of the relay.
[0025] This switch is equipped with a wireless transmission module, through which it can be connected to devices such as Xiaomi Gateway. The three states of the switch are transmitted to the remote device, achieving the purpose of wirelessly controlling the three states.
[0026] It should be pointed out that the above preferred embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A control method for a three-state push-to-sensing dual-purpose switch, comprising a push-to-sensing dual-purpose switch, characterized in that: The pressure-sensing dual-purpose switch includes a first control method and a second control method.
2. The control method of the three-state push-to-switch according to claim 1, wherein: The first control method comprises the following steps: In the first step, when the user presses the infrared panel, the infrared panel contacts the micro switch, and the data pin P5 provided in the processor module is at a high potential, and the processor module determines that the micro switch is pressed; In the second step, the data pin P4 of the processor module is set to a low level, the relay works, and the controlled end of the relay is activated or disconnected to achieve control.
3. The control method of the three-state push-to-switch according to claim 1, wherein: The second control method comprises the following steps: In the first step, when the hand slides across the sensing area, the infrared probe in the infrared receiving module senses the infrared rays, triggering the voltage change of the P0 terminal set in the processor module; ADetermine single trigger, double trigger or long trigger according to the trigger number and time; According to this principle, the B processor module sets the voltage of the control end of the relay, that is, the P4 end of the processor module, to control the opening and closing of the controlled end of the relay; In the second step, the pressure-sensing dual-purpose switch is equipped with a wireless transmission module, which is connected to the gateway device through the wireless transmission module to transmit the three states of the switch to the remote device, thereby achieving the purpose of wirelessly controlling the three states.
4. The control method of the three-state push-to-switch according to claim 3, wherein: The gateway device adopts Xiaomi gateway or Huawei gateway.