A lighting on-off and brightness adjusting control power supply based on self-resetting switch and a control method thereof
Patent Information
- Application Number
- CN202611234713.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-10-27
AI Technical Summary
[0018]与现有技术相比,本发明的有益效果在于,采用通用的控制单元配合自复位开关作为唯一的用户交互接口,无需专用调光面板及复杂信号处理模块,降低了硬件物料成本和系统集成难度;由于自复位开关仅作为低压弱电信号输入端接入控制单元,不直接分断负载大电流,有效避免了触点电弧的产生,从而延长了开关的机械使用寿命;此外,其电源模块配置为可兼容单火线供电模式,能够直接替换现有标准86型墙壁底盒中的普通开关,无需更改原有线路布局;控制单元基于预设的时间阈值判别短按和长按指令,并集成了断电记忆亮度值以及长按调光至极限时自动反转方向的功能,在简化用户交互操作的同时,保证了照明亮度调节的连贯性以及重启后亮度的一致性。
Abstract
Description
Technical Field
[0001] This invention belongs to the field of lighting control technology, and particularly relates to a lighting on / off and brightness adjustment control power supply and its control method based on a self-resetting switch. Background Technology
[0002] With the rapid development of semiconductor lighting technology, LEDs (light-emitting diodes) have been widely used in indoor and outdoor lighting due to their advantages such as high efficiency, energy saving, and long lifespan. At the same time, users have increasingly higher requirements for the quality of lighting environments, requiring not only basic on / off control but also increasingly emphasizing stepless adjustment of light brightness to achieve energy saving and create a comfortable lighting environment.
[0003] Currently, the mainstream lighting dimming technology solutions on the market can be mainly divided into the following three categories: The first category consists of dedicated dimming control modules and systems, such as traditional SCR phase-cut dimmers, 0-10V / 1-10V analog dimming modules, and DALI (Digital Addressable Lighting Interface) systems based on digital addressing. While these solutions offer high dimming accuracy and rich functionality, they suffer from significant hardware limitations. They typically include high-voltage isolation circuits, complex signal processing units, and dedicated communication interfaces. The wide variety and high cost of components result in a high overall price for the control system, hindering its widespread adoption in mass-market consumer lighting products.
[0004] The second type is the integrated dedicated dimming panel. These panels typically integrate interactive components such as knobs, sliders, or touch-sensitive buttons. While their appearance is relatively refined, they have significant limitations in practical applications. First, most dedicated dimming panels have strict requirements for the wiring environment, usually requiring simultaneous connection to both the neutral and live wires of an external AC power supply (i.e., "neutral and live wire" power supply) to function properly. This makes them unsuitable for directly replacing the standard single-live-wire switches commonly found in the standard 86-type wall junction boxes in older residences. Second, the dimensions and mounting hole positions of dedicated dimming panels often do not conform to conventional standards, requiring damage to the original wall finishes during replacement, resulting in unnecessary construction trouble and resource waste.
[0005] The third category consists of physical or sensor-based dimming switches that optimize the user experience. For example, traditional rotary dimming switches are prone to physical wear and tear on their internal carbon film resistors or mechanical contacts during long-term use, leading to decreased dimming accuracy or poor contact. Furthermore, most rotary dimming switches lack power-off memory, reverting to the default maximum brightness each time power is restored, severely impacting the user experience. Additionally, while some capacitive touch dimming panels are stylish, their sensing areas are easily triggered by water stains, dust, or clothing, and lack the tactile feedback of physical pressing, leaving users unsure whether their actions have been effectively responded to.
[0006] In summary, existing lighting dimming control technologies generally suffer from drawbacks such as high hardware costs, limited installation and wiring, poor operational feedback, and significant resource waste. Therefore, providing a lighting control power supply that can achieve LED lighting on / off and stepless dimming at low cost, is compatible with existing single-wire wiring environments, and offers simple and intuitive interaction logic has become a pressing technical problem to be solved in this field. Summary of the Invention
[0007] Existing LED lighting dimming control technologies generally suffer from high hardware costs, limited installation and wiring (usually requiring live and neutral wires to operate), and poor user experience. Furthermore, they are difficult to directly replace standard 86-type wall switches commonly used in older residential buildings with single-live-wire wiring. Therefore, this invention provides a lighting on / off and brightness adjustment control power supply and its control method based on a self-resetting switch. The aim is to achieve on / off control and stepless dimming of lighting loads at a lower cost, while remaining compatible with existing single-live-wire wiring environments and simplifying user operation.
[0008] To solve the above-mentioned technical problems, the specific technical solution of the present invention is as follows: In some embodiments of this application, a lighting on / off and brightness adjustment control power supply based on a self-resetting switch is provided, including: A self-reset switch, used as a user input, is used to generate a level transition signal when triggered. The control unit, whose input terminal is connected to the self-reset switch, is used to monitor the level transition signal generated by the self-reset switch in real time and record the duration T of the self-reset switch being pressed. A drive execution unit, the controlled end of which is connected to the control unit, is used to connect the LED lighting load and adjust the working current or working voltage of the LED lighting load; The control unit is configured as follows: When the duration T is less than a preset threshold, an on / off switching command is output to the drive execution unit to switch the on or off state of the LED lighting load; When the duration T is greater than or equal to the preset threshold, a brightness adjustment command is output to the drive execution unit to continuously adjust the brightness value of the LED lighting load.
[0009] In some embodiments of this application, the control unit has a built-in software debouncing module, which is used to reconfirm the level state of the self-reset switch after a delay of 10ms to 20ms after detecting the level transition signal, so as to filter out the interference signal generated by mechanical contact jitter.
[0010] In some embodiments of this application, the control unit is further configured with a non-volatile storage module for storing the current brightness value as a memory brightness value when the LED lighting load is turned off; when the control unit outputs an on command, the drive execution unit drives the LED lighting load to light up according to the memory brightness value.
[0011] In some embodiments of this application, the control unit is configured to: continuously output the brightness adjustment command when the duration T is greater than or equal to the preset threshold, so that the brightness value of the LED lighting load changes linearly from the initial brightness to the extreme value; when the brightness value of the LED lighting load reaches the upper limit or lower limit, the control unit automatically reverses the direction of the brightness adjustment command, so that the brightness value changes linearly from the extreme value in the opposite direction, so as to realize cyclic dimming.
[0012] In some embodiments of this application, the power module of the control power supply is configured to be compatible with a single live wire power supply mode, and is used to obtain a weak current from the live wire terminal of the external AC power supply to maintain the standby operation of the control unit when the LED lighting load is in the off state.
[0013] In some embodiments of this application, the control unit is any one of a microcontroller (MCU), an application-specific integrated circuit (ASIC), or a programmable logic device; the self-reset switch is a mechanical tactile switch or a capacitive touch-sensitive switch.
[0014] Some embodiments of this application disclose a control method for a lighting on / off and brightness adjustment control power supply based on a self-resetting switch as described in any one of the above-mentioned embodiments, applied in a lighting control system including a self-resetting switch, a control unit, and a drive execution unit, characterized by comprising the following steps: Step S1: The control unit monitors the level status of the pin connected to the self-reset switch in real time, and records the duration T of the self-reset switch being pressed after detecting a level change; Step S2: The control unit determines whether the duration T is less than a preset threshold; Step S3: If the duration T is less than the preset threshold, the control unit determines it as a short press instruction and sends an on / off switching signal to the drive execution unit to switch the on or off state of the LED lighting load; if the duration T is greater than or equal to the preset threshold, the control unit determines it as a long press instruction and sends a brightness adjustment signal to the drive execution unit to continuously adjust the brightness value of the LED lighting load.
[0015] In some embodiments of this application, in step S1, after detecting a level transition, the control unit first executes a 10ms~20ms software debouncing process to filter out the mechanical jitter of the self-reset switch in order to obtain a valid level transition signal.
[0016] In some embodiments of this application, in step S3, when switching the on or off state of the LED lighting load, if it is in the on state, the drive execution unit obtains the brightness value stored in the control unit before the power failure and drives the LED lighting load to light up according to the memory brightness value.
[0017] In some embodiments of this application, in step S3, the dimming direction of the brightness adjustment signal is determined according to the following logic: the current odd or even number of long presses is determined based on the number of times the self-reset switch is pressed and triggered; if there are an odd number of long presses, the brightness is adjusted in the brightening direction, and if there are an even number of long presses, the brightness is adjusted in the dimming direction; or, when the brightness of the LED lighting load is adjusted to the upper or lower limit value, the adjustment is automatically reversed.
[0018] Compared with existing technologies, the advantages of this invention are as follows: It uses a universal control unit with a self-resetting switch as the sole user interface, eliminating the need for a dedicated dimming panel and complex signal processing modules, thus reducing hardware material costs and system integration difficulty. Since the self-resetting switch only serves as a low-voltage signal input to the control unit and does not directly interrupt the large current of the load, it effectively avoids the generation of contact arcs, thereby extending the mechanical lifespan of the switch. Furthermore, its power module is configured to be compatible with a single live wire power supply mode, allowing it to directly replace ordinary switches in existing standard 86-type wall boxes without altering the original wiring layout. The control unit distinguishes between short-press and long-press commands based on preset time thresholds and integrates functions such as remembering brightness values after power failure and automatically reversing the direction when dimming reaches its limit during a long press. This simplifies user interaction while ensuring the continuity of lighting brightness adjustment and the consistency of brightness after restarting. Detailed Implementation
[0019] The specific embodiments of the present invention will be described in further detail below with reference to the examples. These examples are for illustrative purposes only and are not intended to limit the scope of the invention.
[0020] To better understand the purpose, structure, and function of this invention, the invention will be further described in detail below with reference to embodiments.
[0021] In the description of this invention, the term "connection" should be interpreted broadly, and can refer to a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or a signal connection; it can be a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0022] Example 1 This invention provides a lighting on / off and brightness adjustment control power supply based on a self-reset switch. Its hardware architecture is simplified and includes: a self-reset switch, a control unit, a drive execution unit, and an LED lighting load. All of the above core components are integrated on a single printed circuit board (PCB), and its dimensions are designed to be compatible with the mounting holes of a standard 86-type wall switch box.
[0023] The self-reset switch, as the only user-facing physical input source in the system, is preferably a mechanical self-reset tactile button with a crisp tactile feel in this embodiment. The switch employs a normally open contact structure, with one end connected to the system common ground (GND) via a wire, and the other end connected to the control unit's general-purpose input / output (GPIO) pin via a 10kΩ surface-mount resistor (as a pull-up resistor). When there is no external pressing action, the GPIO pin is pulled high to a 3.3V high level by the internal power supply through the pull-up resistor. When the user presses the tactile button, the internal metal spring momentarily conducts, shorting the GPIO pin to ground, and the potential is pulled low to a near 0V low level, thereby generating a stable and detectable falling edge transition signal.
[0024] The control unit employs a low-power microcontroller (MCU, such as the STM32G030F6P6 series or 51 core series microcontroller). This MCU integrates an independent timer module, a PWM signal generator, and built-in EEPROM non-volatile memory. A power module is connected to the MCU's power input, which rectifies and filters the external AC mains power to convert it into the 3.3V DC power required by the MCU. It is important to note that, considering some older buildings may only have a single live wire, the power module in this invention is designed to use low-power standby power supply technology. Even when the LED load is off, it can maintain the MCU's standby operation through a small loop leakage current, eliminating the need for an additional neutral wire and thus adapting to existing wall wiring environments.
[0025] The drive unit includes a power switch (e.g., an N-channel MOSFET) and its gate drive resistor. The MCU's PWM output pin is connected to the MOSFET's gate via a 100Ω drive resistor. The MOSFET's drain is connected to the cathode of the LED lighting load, and the MOSFET's source is grounded via a precision sampling resistor. By controlling the MOSFET's on / off ratio under PWM signal drive, the brightness of the LED lighting load can be adjusted.
[0026] Example 2 Based on the above hardware connection method, the present invention implements a highly reliable state machine triggering and identification process, the specific implementation method of which is as follows: When the system is powered on, the MCU first completes the initialization of the registers, configures the GPIO pin connected to the self-reset switch as an input mode with pull-up resistors, and allows the pin to trigger external interrupts or be polled by the main loop at high frequency.
[0027] Because mechanical switches generate electrical jitter pulses (rapidly jumping between high and low levels) during the instant the contacts close and open, due to the physical elastic collision of the metal, the MCU simply detects the level change and responds immediately. This would greatly increase the probability of triggering multiple erroneous commands with a single press. Therefore, the MCU's underlying driver performs a strict "dual-debounce" process: Primary trigger: When the MCU detects that the GPIO pin level changes from high to low (falling edge), the system immediately starts an internal precision timer with a delay time of 15 milliseconds (ms).
[0028] Secondary confirmation: After a 15ms delay, the MCU reads the current level of the GPIO pin again. If the level is still low, the system confirms this as a "valid press" event; if the level has returned to high, it is determined to be contact bounce interference, and the system immediately discards this signal and resets the state machine, returning to the state of waiting for the next falling edge.
[0029] Valid press timing: After confirming "valid press", the MCU starts an internal loop counter timer, which continuously records the duration T (unit: milliseconds) from the moment of pressing (i.e. the moment of confirming valid press) to the moment of finger release, with 1 millisecond as the time base.
[0030] Release confirmation: When the MCU detects that the GPIO pin level changes from low to high (rising edge), it first performs a 15ms delay to debouncing. After confirming that the level has indeed stabilized at a high level, the system stops timing and determines the final button duration T.
[0031] Example 3 The MCU has a preset threshold for distinguishing user intentions; in this embodiment, this threshold is 500 milliseconds (ms). The MCU precisely compares the final recorded duration T with this preset threshold of 500 ms. (1) Short press command recognition and execution (Toggle mode) When the duration T is less than the preset threshold (i.e., T < 500ms), the MCU will classify this operation as a "short press instruction".
[0032] In response to the short press command, the MCU sends a software toggle signal (i.e., state inversion) to the PWM register inside the drive execution unit. Specifically, if the LED status flag currently maintained internally by the MCU is "on", the MCU directly clears the PWM duty cycle register to zero, keeping the MOSFET off and turning off the LED lighting load; if the current status flag is "off", the MCU sets the PWM duty cycle register to the stored brightness value, and the LED lighting load lights up. After triggering the toggle, the MCU synchronously updates the new status flag in its internal state machine.
[0033] (2) Long press command recognition and execution (dimming mode) When the duration T is greater than or equal to the preset threshold (i.e., T ≥ 500ms), the MCU will classify this operation as a "long press command".
[0034] It is important to note that the long-press command does not require the user to release the switch. The moment the MCU timer reaches 500ms, the system immediately locks the button state and forces entry into brightness adjustment mode, beginning to output a continuously changing PWM duty cycle signal to the drive execution unit. This brightness adjustment action will not be interrupted as long as the self-reset switch remains pressed.
[0035] Example 4 After entering the long-press dimming mode, in order to achieve a smooth breathing effect visually and avoid the inconvenience of operation caused by a single dimming direction, the MCU has two sets of core dimming direction algorithms: (1) Breathing-style cycle dimming and limit automatic reversal logic During dimming, the change in the PWM duty cycle inside the MCU is not abrupt, but rather adopts a linear stepping strategy. Preferably, the stepping rate set by the MCU is "increase or decrease the duty cycle by 1% every 10ms".
[0036] The system sets upper and lower limits for the PWM duty cycle in memory, with the upper limit corresponding to 100% (maximum brightness) and the lower limit corresponding to 0% (minimum brightness). As the duty cycle gradually increases linearly along the current dimming direction, when it reaches the upper limit of 100%, the MCU's internal state machine immediately reverses the dimming direction sign, changing from "increase" to "decrease." Similarly, when the duty cycle gradually decreases to the lower limit of 0%, the MCU automatically changes the direction back from "decrease" to "increase." As long as the user does not release the button, the brightness exhibits a triangular wave-like cycle of "darkening → brightening → darkening," with the entire transition process being extremely smooth and without any noticeable jumps.
[0037] (2) Directional dimming logic based on historical frequency records As a parallel supplement or specific alternative to the aforementioned automatic reversal logic, the MCU also provides another direction prediction mechanism. A dedicated counter register is allocated within the MCU to record the total number of "long presses" triggered since the system was powered on.
[0038] If the current count is odd (i.e., the 1st, 3rd, or 5th long press), the initial direction of this dimming adjustment will be set by the system to "from dark to bright". If the current count is even (i.e., the 2nd, 4th, or 6th long press), the initial direction of this dimming adjustment is set by the system to "from bright to dark".
[0039] This feature allows users to accurately grasp the initial trend of dimming by counting the number of presses, even without looking at the light.
[0040] Example 5 To address the glare caused by traditional dimmer switches that "immediately return to maximum brightness upon power-on," this invention integrates precise power-off memory and recovery functions.
[0041] The MCU integrates an EEPROM storage area. Each time a dimming action ends (i.e., the user's finger leaves the self-reset switch and the MCU detects a valid release edge), the MCU packages and writes the current PWM duty cycle register value (an integer from 0 to 100) into a specific physical storage address in the EEPROM. To prevent frequent erasures and writes to the EEPROM from causing premature wear, the MCU subtracts the previously stored brightness value from the current brightness value before performing a write operation. Only when the absolute difference between the two values exceeds 3% (e.g., if the previous value was 50% and the current value is 54%, the absolute difference is 4%) will the actual EEPROM erase and write operation be triggered.
[0042] When the system is powered on and initialized again after a power outage, the first priority operation performed by the MCU is to read the last brightness value saved before the power outage from a specific address in the EEPROM, fill it back into the PWM duty cycle register, and hold it thereafter. The system then enters standby monitoring mode. When the user subsequently triggers the "light on" command with a short press, the drive execution unit will directly output this "memorized brightness value," achieving an intelligent experience of "one-press to turn on, brightness stored in memory."
[0043] Example 6 In specific implementations of this invention, the core components can be implemented using the following equivalent solutions, and the resulting system still falls within the protection scope of this invention: Besides using a general-purpose microcontroller (MCU) for software programming, this invention can also replace the MCU with pure hardware logic circuits. For example, using an application-specific integrated circuit (ASIC), an external RC charging and discharging circuit (resistor R and capacitor C determine the time constant) combined with a reference voltage comparator (such as LM393) can accurately measure the button closing time T. When the capacitor voltage reaches the comparator threshold, it triggers the logic gate to flip, outputting a long press signal; conversely, it outputs a short press signal. The exact same judgment logic can be achieved without any external software intervention. Furthermore, using a complex programmable logic device (CPLD) or a field-programmable gate array (FPGA) to construct the state machine is also feasible.
[0044] The self-reset switch of this invention is not limited to a mechanical tactile switch. A capacitive touch-sensitive switch can also be used at the input. When the touch sensing module detects a finger touch, it sends a simulated short press pulse signal to the GPIO port of the MCU. As long as the duration of this pulse signal meets the aforementioned "short press" or "long press" time threshold, the MCU's subsequent recognition logic and response to this signal are completely equivalent to those of a mechanical switch.
[0045] Furthermore, the input signal source can be replaced with an infrared remote control receiver or a sound sensor. For example, when an infrared remote control presses a button, it outputs an infrared coded pulse of a certain duration, or a sound sensor detects a continuous whistle and generates a continuous pulse output. The MCU can also use its internal timer to calculate the duration T of this pulse signal, thereby achieving the same control effect.
[0046] In addition to PWM (Pulse Width Modulation) dimming, the drive unit can also use an analog dimming scheme. That is, the MCU outputs a continuous analog DC voltage signal from 0 to 3.3V through its internal digital-to-analog converter (DAC) pin. This signal is directly input to the current setting reference terminal (such as the EN pin or ISET pin) of the LED constant current driver chip, controlling the output constant current to linearly increase from the microamp level to the rated full current, thereby achieving linear adjustment of brightness.
[0047] Example 7 Based on this single-key multiplexing architecture, the MCU's underlying software can also achieve multi-click expansion by maintaining the "time interval between two presses" without changing the hardware layout.
[0048] Set a timeout window timer for the MCU with a window duration of 500ms.
[0049] Once the system detects a valid short press, the timeout window timer will start immediately: If a valid short press is detected again within a 500ms window, the system interprets it as a "double-click instruction". In response to this instruction, the MCU forces the PWM duty cycle down to a low brightness level of 10%. At this time, the LED lighting load switches to "night light mode" and maintains this brightness, which can be used for nighttime lighting.
[0050] If three valid short presses are detected consecutively within a 500ms window, the system determines it as a "triple-press command". In response to this command, the MCU performs a reset operation, overwriting the stored brightness value in the EEPROM with the factory default value (e.g., 50% brightness) and clearing the long press count register, thus achieving "one-click factory reset".
[0051] If no next valid short press is detected within a 500ms window, the window times out, the system resets the relevant flags, and exits the multi-click mode waiting state.
[0052] Example 8 To achieve a flicker-free visual comfort experience for the human eye, the PWM switching frequency of the drive unit in this invention can be set to 2.5kHz. This frequency is much higher than the flicker fusion frequency that the human eye can distinguish (approximately 100Hz) and much lower than the upper limit threshold of radio frequency electromagnetic interference, effectively eliminating the flicker sensation while also avoiding interference with surrounding wireless equipment.
[0053] Through actual physical prototype sampling tests, the light sensitivity of this invention, within the full range of 1% to 100%, shows a correlation coefficient R² exceeding 0.98 between brightness variation and PWM duty cycle fitting, achieving excellent visual linearity. Regarding the mechanical lifespan of the self-resetting switch, because this switch only handles the transmission of microampere-level low-level signals and does not directly interrupt high-current voltage loads, after 500,000 mechanical pressing tests, the contacts remain bright and new, and the signal output is accurate. Its actual service life far exceeds that of traditional wall switches.
[0054] In summary, this invention uses the lowest material cost (only a regular self-reset switch + MCU) and corresponding software logic to replace the expensive dedicated dimming panel, realizing an extremely convenient and intuitive single-button full control solution with strong compatibility and reliability.
[0055] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0056] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0057] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0058] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A power supply for controlling lighting on / off and brightness adjustment based on a self-resetting switch, characterized in that, include: A self-reset switch, used as a user input, is used to generate a level transition signal when triggered. The control unit, whose input terminal is connected to the self-reset switch, is used to monitor the level transition signal generated by the self-reset switch in real time and record the duration T of the self-reset switch being pressed. A drive execution unit, the controlled end of which is connected to the control unit, is used to connect the LED lighting load and adjust the working current or working voltage of the LED lighting load; The control unit is configured as follows: When the duration T is less than a preset threshold, an on / off switching command is output to the drive execution unit to switch the on or off state of the LED lighting load; When the duration T is greater than or equal to the preset threshold, a brightness adjustment command is output to the drive execution unit to continuously adjust the brightness value of the LED lighting load.
2. The lighting on / off and brightness adjustment control power supply based on a self-resetting switch according to claim 1, characterized in that, The control unit has a built-in software debouncing module, which is used to reconfirm the level state of the self-reset switch after a delay of 10ms to 20ms after detecting the level transition signal, so as to filter out the interference signal generated by mechanical contact jitter.
3. A lighting on / off and brightness adjustment control power supply based on a self-resetting switch according to claim 2, characterized in that, The control unit is also equipped with a non-volatile storage module, which stores the current brightness value as a memory brightness value when the LED lighting load is turned off; when the control unit outputs an on command, the drive execution unit drives the LED lighting load to light up according to the memory brightness value.
4. A lighting on / off and brightness adjustment control power supply based on a self-resetting switch according to claim 3, characterized in that, The control unit is configured to: continuously output the brightness adjustment command when the duration T is greater than or equal to the preset threshold, so that the brightness value of the LED lighting load changes linearly from the initial brightness to the extreme value; when the brightness value of the LED lighting load reaches the upper limit or lower limit, the control unit automatically reverses the direction of the brightness adjustment command, so that the brightness value changes linearly from the extreme value in the opposite direction, so as to realize cyclic dimming.
5. A lighting on / off and brightness adjustment control power supply based on a self-resetting switch according to claim 4, characterized in that, The power module of the control power supply is configured to be compatible with a single live wire power supply mode, and is used to obtain a weak current from the live wire of the external AC power supply to maintain the standby operation of the control unit when the LED lighting load is in the off state.
6. A lighting on / off and brightness adjustment control power supply based on a self-resetting switch according to claim 5, characterized in that, The control unit is any one of a microcontroller (MCU), an application-specific integrated circuit (ASIC), or a programmable logic device; the self-reset switch is a mechanical tactile switch or a capacitive touch-sensitive switch.
7. A control method for lighting on / off and brightness adjustment control power supply based on a self-resetting switch as described in any one of claims 1-6, applied in a lighting control system including a self-resetting switch, a control unit, and a drive execution unit, characterized in that, Includes the following steps: Step S1: The control unit monitors the level status of the pin connected to the self-reset switch in real time, and records the duration T of the self-reset switch being pressed after detecting a level change; Step S2: The control unit determines whether the duration T is less than a preset threshold; Step S3: If the duration T is less than the preset threshold, the control unit determines it as a short press instruction and sends an on / off switching signal to the drive execution unit to switch the on or off state of the LED lighting load; if the duration T is greater than or equal to the preset threshold, the control unit determines it as a long press instruction and sends a brightness adjustment signal to the drive execution unit to continuously adjust the brightness value of the LED lighting load.
8. The control method for lighting on / off and brightness adjustment using single-key multiplexing according to claim 7, characterized in that, In step S1, after detecting a level transition, the control unit first executes a software debouncing process of 10ms to 20ms to filter out the mechanical jitter of the self-reset switch in order to obtain a valid level transition signal.
9. The control method for lighting on / off and brightness adjustment using single-key multiplexing according to claim 7, characterized in that, In step S3, when switching the on or off state of the LED lighting load, if it is in the on state, the drive execution unit obtains the brightness value stored in the control unit before the power failure and drives the LED lighting load to light up according to the memory brightness value.
10. A control method for lighting on / off and brightness adjustment using single-key multiplexing according to claim 7, characterized in that, In step S3, the dimming direction of the brightness adjustment signal is determined according to the following logic: the current odd or even number of long presses is determined based on the number of times the self-reset switch is pressed and triggered; if there are an odd number of long presses, the brightness is adjusted in the brightening direction, and if there are an even number of long presses, the brightness is adjusted in the dimming direction; or, when the brightness of the LED lighting load is adjusted to the upper or lower limit value, the adjustment is automatically reversed.