Method for starting and stopping lamp induction function through wall switch
By setting up a human detection sensor and power detection circuit in the intelligent sensing lamp, and designing a three-state switching mechanism, the power-off operation of the wall switch is used to realize the switching of the lamp mode, the problem that users cannot easily switch modes is solved and the operation convenience is improved.
Patent Information
- Application Number
- CN202510512424.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-06-27
AI Technical Summary
The existing smart sensing lamps cannot easily switch modes when users forget to bring their remote control or mobile phones, especially when switching from sensing mode to constant-on mode, the control method is not flexible and efficient enough.
By setting up a human body detection sensor and power detection circuit in the lamp body, and designing a three-state switching mechanism of induction mode, intermediate mode and constant mode in the switch control system, the power-off operation of the wall switch is used to trigger mode switching.
It realizes the function of switching lamp modes through wall switches without relying on a mobile phone or remote control, improving operational convenience and user experience.
Smart Images

Figure CN120224538A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp control, and specifically to a method for starting and stopping the induction function of a wall switch for a lamp. Background Art
[0002] Existing intelligent induction lamps generally require additional devices for control. They can be connected through wireless technologies such as wifi, Bluetooth, and infrared, and a mobile phone with a dedicated lamp control software or a dedicated remote control is used to set brightness, color temperature, and induction parameters. However, this control method has certain limitations. Especially when the user forgets to bring the remote control or mobile phone, it is impossible to conveniently switch modes. For example, when the user needs to switch the lamp from the induction mode to the constant-on mode, the traditional control method is not flexible and efficient enough. As a common control device, although the wall switch is easy to operate, in the application of intelligent induction lamps, its function is often ignored and its convenience cannot be fully utilized. Therefore, how to achieve the mode switching of intelligent induction lamps through the wall switch has become an urgent problem to be solved in the prior art. In view of the above problems, the prior art urgently needs to be improved. Summary of the Invention
[0003] Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide a method for starting and stopping the induction function of a wall switch for a lamp, which has the advantage of being able to realize the mode switching of the lamp through the wall switch without relying on a mobile phone or a remote control.
[0004] To achieve the above purpose, the present invention provides the following technical solution: A method for starting and stopping the induction function of a wall switch for a lamp, including a lamp body and a switch control system. A human body detection sensor and a power detection circuit are arranged in the lamp body. The human body detection sensor is used to monitor the signal of the presence of a person and trigger the power on and off of the lamp body. The power detection circuit is used to detect the power on and off signal of the lamp body and output the detection signal to the switch control system. The switch control system is provided with an induction mode, an intermediate mode, and a constant-on mode, and the induction mode, the intermediate mode, and the constant-on mode are sequentially switched to each other. In the induction mode, when the lamp body senses the presence of a person, the light is turned on, and after the person leaves, the lamp body turns off the light after a delay. In the intermediate mode, the switch control system judges whether to switch the mode based on the power-off times, operation duration, and the initial mode counted by the power detection circuit and executes the switching. In the constant-on mode, the light of the lamp body is always on.
[0005] In some of these embodiments, the switching method of the induction mode of the switch control system is as follows: (1) When the initial state is the induction mode, when a power-off is detected, it switches to the intermediate mode, the time T starts counting from 0, and the power-off times N starts counting from 1; (2) If T is greater than the preset maximum time T max, it is determined as timeout, and it switches from the intermediate mode to the induction mode; (3) If T is less than or equal to the preset maximum time T max , and N = n (n is the set power-off times), then it switches from the intermediate mode to the constant-on mode, thus completing the indirect conversion from the induction mode to the constant-on mode.
[0006] In some embodiments, the switching method of the constant-on mode of the switch control system is as follows: (1) If the initial state is the constant-on mode and a power-off is detected, it switches to the intermediate mode, the time T starts counting from 0, and the power-off times N starts counting from 1; (2) If T is greater than the preset maximum time T max , it is determined as timeout, and it switches from the intermediate mode to the constant-on mode; (3) If T is less than or equal to the preset maximum time T max , and N = n (n is the set power-off times), then it switches from the intermediate mode to the induction mode, thus completing the indirect conversion from the constant-on mode to the induction mode.
[0007] In some embodiments, when switching between the induction mode and the constant-on mode, the lamp body gives a prompt through the change of the light.
[0008] In some embodiments, the prompting method of the lamp body is as follows: (1) When the brightness of the original mode is less than or equal to 50% of the maximum brightness of the lamp, then after the mode switching is successful, the lamp body adjusts the light to 100% of the prompt brightness for brightness adjustment, and flashes multiple times for further prompting, and then adjusts the light to the previous light brightness and then executes the target mode.
[0009] (2) When the brightness of the original mode is greater than 50% of the maximum brightness of the lamp, then after the mode switching is successful, the lamp body adjusts the light to 20% of the prompt brightness, and flashes multiple times for further prompting, and then adjusts the light to the previous light brightness and then executes the target mode.
[0010] Compared with the prior art, the beneficial effects of the present invention are: by setting a human body detection sensor, a power detection circuit and a three-mode switching mechanism, it realizes the start-stop control of the lamp induction function only with a wall switch, and has the advantage of realizing the lamp mode switching through the wall switch without relying on a mobile phone or a remote control.
[0011] The details of one or more embodiments of the present application are set forth in the following drawings and description, so that other features, objects and advantages of the present application will become more concise and understandable. The present application is described in detail and understood through the embodiments of the present application. Brief Description of the Drawings
[0012] Figure 1Schematic diagram of mode switching according to the present invention; Figure 2 Flowchart of inductive mode switching according to the present invention; Figure 3 Flowchart of constant - on mode switching according to the present invention. Detailed implementation manners
[0013] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0014] In the prior art, intelligent inductive lamps usually rely on a wireless communication module to achieve control functions, and users need to use a dedicated device to perform mode switching and parameter adjustment. Such technical solutions have the problem of a single control path. When the user does not carry a remote control or a mobile phone, the working mode cannot be switched in time. Especially when it is necessary to switch the inductive mode to the constant - on mode, traditional lamps lack a direct interaction mechanism based on a physical switch, resulting in limited operations in emergency scenarios.
[0015] To solve the above problems, the R & D personnel noticed the universality of wall switches as infrastructure and tried to convert the physical power - off operation into a mode - switching signal. By analyzing the user's operation habits, it was found that multiple switch actions within a short period of time could be recognized as control instructions. Based on this understanding, it was necessary to establish an association rule between the number of power - offs and the operation duration so that the control system could automatically analyze the user's intention. At the same time, an intermediate - state mechanism needed to be designed to prevent mis - triggering of electrical components and resulting in frequent mode jumps.
[0016] Therefore, the present application proposes a technical solution including a lamp body and a switch control system. The lamp body integrates a human body detection sensor and a power detection circuit, and controls the opening and closing of the light by monitoring the human presence signal. The switch control system is provided with a three - state switching mechanism for the inductive mode, the intermediate mode, and the constant - on mode as Figure 1 shown, where the intermediate mode determines the mode - conversion direction based on the number of power - offs and the operation duration, realizing the logical transition between different working modes.
[0017] Among them, the human body detection sensor refers to an electronic component that detects human activities based on infrared or microwave technology. Specifically, a pyroelectric sensor or a millimeter-wave radar can be used to achieve this. Its function is to sense the presence state of the user to trigger the lamp switch action. The power supply detection circuit refers to a detection module that monitors the on / off state of the lamp power supply. Specifically, it can be implemented by a combination circuit of a voltage comparator and a counter, and is used to capture the power-off signal generated by the user operating the wall switch. The intermediate mode refers to the transition state established by the switch control system during the mode switching process. Specifically, it can be achieved by the coordinated work of the microprocessor timing unit and the counting unit, and is used to determine whether the user operation belongs to a conventional switch action or a mode switching instruction.
[0018] Specifically, the lamp body automatically controls the light according to the human activity state in the induction mode, and starts the delayed light-off program when the user leaves. When the user performs a power-off operation through the wall switch, the power supply detection circuit sends a signal to the switch control system, triggering the intermediate mode and starting to count the number of power-off times and the operation interval. If a specific number of power-off times is reached within the preset time, it switches to the target mode; if the operation is not completed after the timeout, it returns to the initial mode. This mechanism realizes the mode control function without external equipment through the combination of physical switch operation and logical judgment.
[0019] Compared with the prior art, this solution breaks through the technical bottleneck of the dependence on wireless control devices, and establishes a new interaction method by exploring the operation characteristics of physical switches. In the traditional technology, the wall switch can only perform the on / off function, while this solution endows it with the ability to parse mode control instructions, enabling a single physical switch to undertake the dual functions of power supply control and logical control at the same time. The prior art requires a dedicated device to send digital signals to complete mode switching, while this solution uses the timing characteristics of the power-off action to realize the conversion from analog signals to digital instructions.
[0020] Through the above technical solutions, this application realizes the convenient mode switching function based on the wall switch, effectively solving the operation problem when the user has no remote control device. The lamp control system accurately identifies the user's intention to switch to the constant-on mode or the induction mode by analyzing the number of power-off operations and the interval time, avoiding mode jumps caused by misoperations. While retaining the traditional switch operation habits, this solution expands the control dimension of the physical switch, significantly improving the environmental adaptability of the lamp system.
[0021] Based on the above solution, as Figure 2 shown, this application further proposes a method for starting and stopping the lamp induction function of a wall switch. The induction mode switching method of its switch control system is as follows: (1) When the initial state is the induction mode, if a power-off is detected, it switches to the intermediate mode, the time T starts counting from 0, and the number of power-off times N starts counting from 1; (2) If T is greater than the maximum time of 4 seconds , it is determined as timeout and switches from the intermediate mode to the induction mode; (3)If T is less than or equal to 4 seconds , and N = 3 (power off 3 times), then it switches from the intermediate mode to the constant-on mode, thus completing the indirect conversion from induction to constant-on.
[0022] Among them, the intermediate mode refers to a transitional state used to count operation behaviors and determine whether to trigger mode switching. Specifically, it can be implemented by combining a microcontroller with a timer and a counter module. Its function is to collect the power-off times and time data when the user operates the switch, providing a judgment basis for mode switching. The time T refers to the timing parameter accumulated since entering the intermediate mode, which can be specifically implemented through the clock module of the embedded system and is used to limit the time window of the user's operation to avoid incorrect mode switching caused by misoperation or delayed operation. The power-off times N refer to the number of times the switch is disconnected counted after entering the intermediate mode, which can be specifically implemented by triggering the counter to accumulate through the pulse signal output by the detection circuit. Its function is to quantify the user's operation intention and achieve precise control of mode switching by setting the number threshold. The maximum time Tmax refers to the upper limit of the time allowed for the user to complete the operation. For example, it can be 30 seconds or 60 seconds. Its function is to distinguish between active operations and invalid operations through time constraints and prevent mode switching failure due to timeout. The set power-off times n refer to the minimum number of operations required to trigger mode switching. For example, it can be 2 times or 3 times. Its function is to avoid incorrect mode switching caused by single misoperation and improve the system reliability.
[0023] Specifically, when the lamp is in the induction mode, the user can trigger a power-off signal by operating the wall switch. At this time, the system enters the intermediate mode and starts the timer, and at the same time starts to record the power-off times. If the user completes the specified number of power-off operations within the preset time window, the system switches to the constant-on mode; if the operation times out, it automatically returns to the original induction mode. This process does not rely on external devices and can achieve mode switching only through the regular operation of the physical switch.
[0024] Compared with the prior art, the traditional solution needs to send wireless signals through a mobile phone or a remote control to adjust the lamp mode, while this solution directly uses the physical operation of the wall switch combined with a logic judgment mechanism to solve the problem of limited control caused by the loss or non-carrying of the device by the user. In the prior art, mode switching relies on a dedicated device, while this solution converts the regular switch behavior into a control instruction through the collaborative judgment of the operation times and the time window, reducing the usage threshold.
[0025] Through the above technical solution, the present application realizes the function of switching between the induction mode and the constant-on mode only through the physical operation of the wall switch. Users do not need to search for the remote control or open the mobile application, and can trigger the mode conversion by repeatedly operating the switch within a specific time. For example, when the user needs to switch the lamp from the induction mode to the constant-on mode, just quickly switch the switch twice within 30 seconds, and the system can recognize the operation intention and complete the mode switch, significantly improving the operation convenience and scenario applicability. Based on the above solution, as Figure 3 shown, the present application further proposes a method for starting and stopping the lamp induction function of the wall switch, and the switching method of the constant-on mode of its switch control system is as follows: (1) When the initial state is the constant-on mode, if a power failure is detected, switch to the intermediate mode, start timing for time T from 0, and start counting the power failure times N from 1; (2) If T is greater than the maximum time of 4 seconds, it is determined as timeout, and switch from the intermediate mode to the constant-on mode; (3) If T is less than or equal to 4 seconds and N = 3 (power failure 3 times), switch from the intermediate mode to the induction mode, thus completing the indirect conversion from constant-on to induction.
[0026] Among them, the intermediate mode refers to a transition state triggered by a power-off operation for collecting the user's operation intention. Specifically, a timer and a counter can work together, for example, the microprocessor unit records the power-off interval and the number of times. The time T is a time window for judging the operation continuity, which can be set to 5 seconds, for example, and operations beyond this window are regarded as invalid operations. The number of power-off times N represents the number of operations of the user within the time window, which can be set to 3 times, for example, for identifying the instruction to switch the mode. The maximum time Tmax is used to limit the time range of valid operations, which can be set to 10 seconds, for example, and exit the intermediate mode if it exceeds this time. Set the number of power-off times n as the trigger condition for mode switching, for example, take the value of 2, and the specified number of power-off operations need to be completed within the time window.
[0027] Specifically, when the lamp is in the constant-on mode, the user performs a power-off operation through the wall switch, and the system immediately enters the intermediate mode and starts timing. If a power-off operation is performed again within the time window, the counter will accumulate the number of times. For example, if the power is cut off 3 times continuously within 5 seconds, the system determines it as a switching instruction and enters the induction mode; if the set number of times is not reached within 10 seconds, the original constant-on mode is maintained. This process completes the mode conversion by detecting the timing characteristics of the power-off operation rather than relying on external devices. For example, the timing and counting can be triggered by detecting the voltage jump signal.
[0028] Compared with the prior art, the prior art requires a mobile phone or a remote control to adjust the mode, while this solution directly uses the physical operation of the wall switch to achieve mode switching. For example, when the user does not carry the remote control, the mode conversion can be completed through multiple switch operations without adding a new control device, avoiding the limitation of having to use a specific terminal device in the prior art.
[0029] Through the above technical solution, this application solves the technical problem that the switching between the constant-on mode and the induction mode depends on external devices. For example, when the user forgets to bring the remote control, only the wall switch needs to be operated to complete the mode switching, reducing the usage threshold. At the same time, the time window mechanism of the intermediate mode can effectively distinguish misoperations from command operations. For example, multiple power-offs within a short period are recognized as switching commands, while a single power-off remains a regular switch action. In order to facilitate the user to perceive that the lamp mode has switched, when switching between the induction mode and the constant-on mode, the lamp body gives a prompt through a change in the light.
[0030] Among them, the change in light refers to the operation of the lamp body actively changing the brightness or blinking state during the mode switching process. Specifically, it can be achieved by adjusting the driving current or controlling the on-off frequency of the LED chip. This feature is used to convey a visual feedback of successful mode switching to the user. Among them, the prompt brightness adjustment refers to dynamically selecting different prompt brightness benchmarks according to the brightness of the original mode. Specifically, a PWM dimming circuit can be used to achieve hierarchical brightness control. This feature can avoid visual discomfort caused by high-brightness prompts in a darker environment.
[0031] Specifically, when the mode switching is triggered, the lamp body first reads the brightness data in the current mode. If the brightness of the original mode is lower than or equal to 50% of the maximum brightness, the light will instantly increase to full brightness and blink multiple times, and then return to the original brightness and execute the target mode. If the brightness of the original mode is higher than 50%, the light will decrease to 20% brightness and blink several times, and then return to the original brightness to execute the target mode. For example, when the user switches the constant-on mode to the induction mode by operating the wall switch, the lamp will immediately generate a brightness change and a blinking signal after the switching is completed, and the operator can directly perceive the mode state without the need for external devices.
[0032] Compared with the prior art, the traditional solution relies on a mobile phone or a remote control for mode switching and lacks a local feedback mechanism. While this solution adds a status confirmation mechanism on the basis of fully retaining the convenience of wall switch control through the built-in brightness adjustment and blinking functions. For example, when not carrying the remote control, the user only needs to operate the wall switch to complete the mode switching, and at the same time, the change in the light of the lamp body directly prompts whether the operation is effective, without the need for secondary confirmation.
[0033] Through the above technical solution, this application solves the technical problem of high misoperation rate due to the lack of local feedback during the mode switching of traditional intelligent lamps, realizes the instant status confirmation function without relying on external devices, and ensures that users can quickly and reliably complete the lighting mode switching operation in any scenario.
[0034] In practical applications, the specific prompting method of the lamp body is as follows: (1) When the brightness of the original mode is less than or equal to 50% of the maximum brightness of the lamp, after the mode switching is successful, the lamp body adjusts the light to 100% of the prompting brightness for brightness adjustment, and flashes multiple times for further prompting, and then adjusts the light to the previous light brightness and then executes the target mode.
[0035] (2) When the brightness of the original mode is greater than 50% of the maximum brightness of the lamp, after the mode switching is successful, the lamp body adjusts the light to 20% of the prompting brightness, and flashes multiple times for further prompting, and then adjusts the light to the previous light brightness and then executes the target mode.
[0036] Process of switching from induction mode to constant-on mode When the brightness during induction is less than or equal to 50% of the maximum brightness of the lamp, the prompting brightness for successful switching is the maximum brightness, which is maintained for 1 second and then flashes three times for further prompting, and then the constant-on mode is executed; When the induction brightness is greater than 50% of the maximum brightness of the lamp, the prompting brightness for successful switching is 20% of the maximum brightness, which is maintained for 1 second and then flashes three times for further prompting, and then the constant-on mode is executed.
[0037] (2) Process of switching from constant-on mode to induction mode When the brightness during induction is less than or equal to 50% of the maximum brightness of the lamp, the prompting brightness for successful switching is the maximum brightness, which is maintained for 1 second and then flashes three times for further prompting, and then the induction mode is executed; When the induction brightness is greater than 50% of the maximum brightness of the lamp, the prompting brightness for successful switching is 20% of the maximum brightness, which is maintained for 1 second and then flashes three times for further prompting, and then the induction mode is executed.
[0038] Among them, prompting brightness adjustment refers to the visual feedback of mode switching by changing the light intensity output by the lamp, which can be specifically implemented by PWM dimming or current regulation methods, and attracts the user's attention and confirms the mode switching status through sudden brightness changes. Flashing multiple times means that the lamp generates a periodic light and dark alternating light signal in a short time, which can be specifically implemented by controlling the on-off frequency of the LED driver. For example, a fixed number of short flashes are set to strengthen the operation feedback. The previous light brightness refers to the actual working brightness of the lamp before switching, which can specifically record the brightness parameter before switching through the storage module and restore the original value after the prompting action is completed to ensure that the mode switching does not affect the lighting environment set by the user.
[0039] Specifically, when the lamp is in the low-brightness mode, for example, the original brightness is 30% of the maximum value. After the mode switch is triggered, the light instantly increases to full brightness and is accompanied by two rapid flashes, and then returns to 30% brightness to enter the target mode. If the original brightness of the lamp is 70% of the maximum value, then when switching, the light decreases to 20% brightness and flashes three times, and then returns to the original brightness to execute the new mode. Through the combination of differential brightness changes and the number of flashes, a recognizable operation feedback mechanism is formed to prevent users from making misjudgments due to not noticing the mode switch.
[0040] Compared with the prior art, the traditional solution relies on the mobile phone or remote control interface to display the mode status, while this solution directly transmits the operation result through the dynamic brightness and flashing signals of the lamp body, and can achieve intuitive status confirmation without external devices, especially suitable for the operation scenario of wall switches. In the prior art, there is a lack of physical feedback for mode switching, while this solution converts the operation result into an optical signal, solving the problem of feedback delay or absence in traditional control methods.
[0041] Through the above technical solution, this application can, after the wall switch triggers the mode switch, prompt the user that the current operation has taken effect through the combination of brightness step changes and flashing, eliminating the problems of repeated operations or misoperations caused by the lack of feedback. This prompt method does not rely on external devices and transmits information through the change of the light at the same time as the switch action occurs, improving the reliability of the mode switching operation and the user interaction experience.
[0042] The above embodiments only represent several implementation manners of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several deformations and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application patent should be subject to the appended claims.
[0043] Although the embodiments of the present invention have been shown and described, for those of ordinary skill in the art, it can be understood that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principle and spirit of the present invention, and the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for starting and stopping a lamp sensing function by a wall switch, characterized in that: The utility model comprises a lamp body and a switch control system, wherein the lamp body is provided with a human body detection sensor and a power supply detection circuit, wherein the human body detection sensor is used for monitoring human presence signals and for triggering the power on and off of the lamp body, wherein the power supply detection circuit is used for detecting the power on and off signals of the lamp body and outputting the detection signals to the switch control system, wherein the switch control system is provided with an induction mode, an intermediate mode and a constant light mode, wherein the induction mode, the intermediate mode and the constant light mode are switched with each other in sequence, wherein in the induction mode, the lamp body turns on the light when it senses the presence of a human, and turns off the light after a delay of a period of time after the human leaves; in the intermediate mode, the switch control system determines whether to switch the mode and executes the switch based on the power supply detection circuit counting the number of power failures, the operation duration and the initial mode; in the constant light mode, the light of the lamp body is always on.
2. A method for starting and stopping a lamp sensing function by a wall switch according to claim 1, characterized in that: The switch control system has a switching mode of sensing as follows: (1) When the initial state is in the sensing mode, a power outage is detected and the mode is switched to the intermediate mode. The time T starts from 0 and the number of power outages N starts from 1. (2) If T is greater than the preset maximum time T max , it is judged as timeout and switches from the intermediate mode to the sensing mode; (3) If T is less than or equal to the preset maximum time T max , and N=n (n is the set number of power-off times), the intermediate mode is switched to the constant light mode, thereby completing the indirect conversion from the induction mode to the constant light mode.
3. A method for starting and stopping a lamp sensing function by a wall switch according to claim 1, characterized in that: The switch control system switches the constant light mode in the following way: (1) If the initial state is the constant light mode, a power outage is detected and the mode is switched to the intermediate mode. The time T starts from 0 and the number of power outages N starts from 1. (2) If T is greater than the preset maximum time T max , it is judged as timeout and switches from the intermediate mode to the constant light mode; (3) If T is less than or equal to the preset maximum time T max , and N=n (n is the set number of power-off times), the intermediate mode is switched to the induction mode, thereby completing the indirect conversion from constant light to induction.
4. A method for starting and stopping a lamp sensing function by a wall switch according to claim 2 or 3, characterized in that: When switching between the sensing mode and the constant light mode, the lamp body will give a prompt through light changes.
5. A method for starting and stopping a lamp sensing function by a wall switch according to claim 4, characterized in that: The prompt mode of the lamp body is: (1) When the brightness of the original mode is less than or equal to 50% of the maximum brightness of the lamp, when the mode is switched successfully, the light of the lamp body is adjusted to 100% to prompt the brightness adjustment, and flashes several times for further prompts, and then the light is adjusted to the previous light brightness and the target mode is executed.
6. (2) If the brightness of the original mode is greater than 50% of the maximum brightness of the lamp, then after the mode switch is successful, the light of the lamp body is adjusted to 20% as a reminder brightness and flashes several times for further prompting. Then the light is adjusted to the previous light brightness and the target mode is executed.