Microwave detection multi-color-temperature down lamp and pulse width modulation intelligent control method thereof

By combining microwave detection with pulse width modulation intelligent control of multiple LED beads, the diverse color temperature and brightness requirements of downlights in different scenarios are solved, achieving high-precision matching and smooth transition, thus improving lighting effect and energy utilization efficiency.

CN120916288AActive Publication Date: 2025-11-07ZHONGSHAN OBALS LIGHTING & ELECTRIC CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202511230790.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-28
Publication Date
2025-11-07
Estimated Expiration
2045-08-28

AI Technical Summary

Technical Problem

Existing downlights cannot meet the diverse needs of different scenarios and users for color temperature and brightness, and the existing sensing methods are greatly affected by the environment and cannot be accurately triggered.

Method used

The method employs microwave detection combined with pulse width modulation intelligent control of multiple LED beads. By acquiring the user's color temperature and brightness requirements, it precisely drives the brightness and color temperature of each LED bead, achieving high-precision matching between brightness and color temperature, and smoothly transitioning between different color temperatures.

Benefits of technology

It achieves high-precision matching of downlight brightness and color temperature, meets lighting needs in multiple scenarios, improves energy utilization efficiency, avoids energy waste, and the control process is smooth and flicker-free.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120916288A_ABST
    Figure CN120916288A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of illumination, in particular to a microwave detection multi-color-temperature down lamp and a pulse width modulation intelligent control method thereof. The pulse width modulation intelligent control method for microwave detection of the multi-color-temperature down lamp comprises the following steps: obtaining the target brightness of the down lamp; obtaining a color temperature demand of a user; determining the target brightness of each LED lamp bead in the down lamp according to the target brightness and the color temperature demand, wherein the color temperatures of at least two lamp beads are different; and controlling each LED lamp bead to emit light at the target brightness. According to the invention, high-precision matching of the brightness and the color temperature of the down lamp can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of lighting technology, in particular to a microwave detection multi-color temperature down lamp and a pulse width modulation intelligent control method thereof. BACKGROUND

[0002] The current down lamp usually adopts a single color temperature and a fixed power light source, and can only work at a fixed color temperature, which cannot meet the diversified needs of different scenes and users for color temperature and brightness.

[0003] In addition, in order to achieve the goal of energy saving, the current infrared induction and sound induction down lamp is used to detect human activity, and the down lamp is controlled to be lit through human activity. However, the sensing distance and angle of the infrared induction are limited, and are greatly affected by the environment, dust and temperature, and the sensing head needs to be exposed, which is not convenient for installation and aesthetics; the sensing distance of the sound induction is related to the sound emitted by the object, and is easily disturbed by environmental noise, and cannot be accurately triggered in some scenes. SUMMARY

[0004] Therefore, the present application provides a microwave detection multi-color temperature down lamp and a pulse width modulation intelligent control method thereof, which solves the technical problem that the existing microwave detection multi-color temperature down lamp cannot meet the diversified needs of different scenes and users for color temperature and brightness.

[0005] The technical scheme adopted by the present application is as follows: In a first aspect, the present application provides a pulse width modulation intelligent control method for a microwave detection multi-color temperature down lamp, characterized in that the method comprises the following steps: obtaining a target brightness of the down lamp, the down lamp having a plurality of LED lamp beads, the target brightness of the down lamp being the overall brightness of the down lamp; obtaining a color temperature requirement of a user; determining a target brightness of each LED lamp bead in the down lamp according to the target brightness and the color temperature requirement, wherein the color temperatures of at least two lamp beads are different; controlling each LED lamp bead to emit light at the target brightness; In the step of obtaining the target brightness of the down lamp, the user obtains the overall brightness required by the user for the down lamp through a brightness adjusting switch or a user operation interface or a preset scene mode.

[0006] In a second aspect, the present application provides a microwave detection multi-color temperature down lamp, comprising a first LED lamp bead, a second LED lamp bead and a control circuit, the color temperatures of the first LED lamp bead and the second LED lamp bead being different, the control circuit being electrically connected to the first LED lamp bead and the second LED lamp bead, and the control circuit storing computer program instructions, which, when executed by the processor, implement the method of the first aspect.

[0007] Beneficial effects: The microwave detection multi-color temperature down lamp and the pulse width modulation intelligent control method of the microwave detection multi-color temperature down lamp of the present application realize high-precision matching of down lamp brightness and color temperature by mapping the overall target brightness and user color temperature demand to the accurate output value of each LED lamp bead; relying on the cooperative driving of different color temperature lamp beads, smooth transition between two different color temperatures can be realized, meeting the lighting demand in multiple scenes; on-demand distribution of driving current avoids energy waste caused by overdrive or underdrive, improving the energy utilization efficiency of the equipment. BRIEF DESCRIPTION OF DRAWINGS

[0008] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced as follows, and for those skilled in the art, other drawings can also be obtained without creative labor on the premise of these drawings, and these are within the protection scope of the present application.

[0009] Figure 1 The flowchart of the pulse width modulation intelligent control method of the multi-color temperature down lamp of the present application; Figure 2 The flowchart of the method for controlling each LED lamp bead to emit light of the present application; Figure 3 The flowchart of the method for determining the target brightness of each LED lamp bead of the present application; Figure 4 The flowchart of the method for controlling the down lamp to emit light according to the microwave sensor detection result of the present application; Figure 5 The structural schematic diagram of the multi-color temperature down lamp control circuit of the present application; Figure 6 The functional timing logic diagram of the multi-color temperature down lamp of the present application. DETAILED DESCRIPTION

[0010] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, the element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Where there is no conflict, embodiments of the present invention and the various features thereof can be combined with each other, all of which are within the scope of protection of the present invention.

[0011] Example 1 like Figure 1 As shown in the figure, this embodiment provides a pulse width modulation intelligent control method for multi-color temperature downlights, the method including the following steps: S1: Obtain the target brightness of the downlight; The target brightness refers to the brightness of the downlight as desired by the user. Since the downlight has multiple LED beads, the target brightness is the overall brightness of the downlight, not the brightness of a single LED bead. Users can obtain the desired overall brightness of the downlight through a brightness adjustment switch, a user interface, or preset scene modes. The user interface includes, but is not limited to, adjustment knobs, touch panels, remote controls, and mobile apps.

[0012] S2: Obtain the user's color temperature requirements; In this step, the system collects the user's preferred color temperature settings, typically presented as Kelvin (K) values ​​or levels such as warm white, natural white, and cool white. This embodiment allows users to set multiple different color temperature requirements as needed.

[0013] S3: Determine the target brightness of each LED in the downlight based on the target brightness and the color temperature requirement, wherein at least two LEDs have different color temperatures; This step distributes the overall target brightness to LED beads of different color temperatures according to the color temperature ratio. On the one hand, it uses the brightness combination of multiple LED beads to achieve the overall target brightness of the downlight. On the other hand, it uses the ratio of the brightness of different LED beads to obtain the color temperature effect required by the user.

[0014] S4: Controls each LED to emit light at the target brightness.

[0015] This step independently drives each LED to emit light, and the brightness of each LED is the target brightness determined in the previous step.

[0016] like Figure 2 As shown, in this embodiment, S4: controlling each LED bead to emit light at the target brightness further includes: S41: Determine the target current corresponding to each LED based on the target brightness of each LED; In this step, the electro-optical conversion characteristic curves of each LED bead (such as the relationship between brightness and driving current) can be read in advance, and the target brightness value of each bead determined in step S3 can be substituted into the curve or lookup table algorithm to calculate the driving current required to achieve the luminous flux. If the luminous efficacy changes nonlinearly with the current, the system will also combine temperature compensation and aging correction models to correct the calculation results in real time to ensure that the output current accurately and stably corresponds to the required brightness.

[0017] S42: Adjust the duty cycle of each LED chip according to the target current of each LED chip; This step combines the target drive current value for each LED calculated in the previous step with the maximum adjustable current range and PWM frequency parameters of the drive circuit, and converts the target current into the corresponding PWM duty cycle through table lookup or calculation. Specifically, the correspondence between the duty cycle and the target current can be obtained through polynomial fitting curves. Alternatively, it can be calculated as the ratio of the target current to the maximum current. To improve accuracy, real-time compensation based on temperature or voltage fluctuations can be added so that the subsequent PWM signal can accurately output the corresponding average current.

[0018] S43: Control the output current of the control circuit by outputting a pulse width modulation signal according to the duty cycle of the pulse width modulation.

[0019] In this step, the microcontroller converts the calculated PWM duty cycle into an actual digital pulse width modulation waveform, drives the switching transistor through the driver device to connect and disconnect the power supply circuit of the LED, so that the LED obtains the set current during the "on" period and stops the power supply during the "off" period; due to the high enough frequency, the light output of the LED is consistent with the average current, and the control circuit can also internally embed a feedback or current detection module to monitor the average current in real time and fine-tune the PWM signal duty cycle to compensate for the deviation caused by the change of the power supply voltage or temperature, so as to accurately and stably realize the output of the target current of each lamp bead.

[0020] As shown in Figure 3 In this embodiment, the S3: determining the target brightness of each lamp bead in the down lamp according to the target brightness and the color temperature requirement, wherein the color temperature of at least two lamp beads is different, further comprises: S31: obtaining the brightness proportion of each color temperature according to the color temperature requirement; In this step, the system calls the pre-stored color temperature-brightness proportion mapping table or algorithm according to the obtained user color temperature requirement, converts the target color temperature value into the relative brightness proportion required by the LED lamp bead of different color temperature, and takes it as the basis for subsequent brightness allocation.

[0021] S32: determining the target brightness of each lamp bead according to the target brightness and the brightness proportion of each color temperature.

[0022] In this step, the system combines the overall target brightness value obtained in the previous step with the brightness proportion of each color temperature lamp bead calculated in the previous step, calculates the target brightness that each color temperature lamp bead should output by multiplying the overall brightness by the respective proportion coefficient, and allocates the target brightness to the corresponding lamp bead group or single lamp bead, so as to form the input target of the subsequent driving current or PWM duty cycle, thereby ensuring that the lamp beads of different color temperatures are output in a predetermined proportion, realizing the overall brightness and color temperature effect set by the user.

[0023] As shown in Figure 4 and Figure 5 In this embodiment, the method further comprises: S5: detecting whether there is human activity in the target area through a microwave sensor; In this step, the microwave sensor periodically emits high-frequency electromagnetic waves at a preset emission power, and receives the reflected echo signal; when the Doppler shift or phase change of the reflected signal exceeds the noise threshold, the controller determines that there is human activity, thereby providing a trigger basis for subsequent brightness adjustment.

[0024] S6: adjusting the target brightness to a first brightness when human activity is detected; Upon detecting a movement signal, the system immediately updates the current overall brightness target value to the preset "first brightness" mode. In this mode, the LED lights are set to full brightness or high brightness. The system then quickly drives the LED beads to reach this brightness level by recalculating and sending the PWM duty cycle or current value to meet the lighting needs when people are active.

[0025] S7: If no further human activity is detected within the first duration after human activity is detected, adjust the target brightness to the second brightness.

[0026] After reaching the first brightness level, the system starts a timer and continuously monitors the sensor status. If no movement signal is detected within the set first duration, the area is considered to be idle. The brightness target is then switched to a lower second brightness mode, such as energy saving or night mode, and a smooth transition is achieved by adjusting the drive parameters.

[0027] S8: If no human activity is detected again during the second duration after the target brightness is adjusted to the second brightness, the downlight will be turned off.

[0028] After reaching the second brightness level, the system continues to monitor movement signals and starts the second-stage timer. If no human activity is detected within the second duration, a shutdown command is executed to reduce the LED drive current to zero and turn off the downlight, effectively reducing energy consumption when no one is present.

[0029] When adjusting brightness and color temperature simultaneously, the PWM duty cycle of the warm and cool light channels is often calculated and directly sent out independently. Because the duty cycle variation and response speed of each channel are inconsistent, the following problems can easily occur during dynamic adjustment: Instantaneous color temperature shift: When brightness and color temperature change occur simultaneously, if the duty cycle of the warm and cool light channels is not adjusted synchronously, users may perceive a brief warm or cool color shift at a certain moment during the change process, resulting in a decline in visual experience.

[0030] Unsmooth transition: Jumping directly from the current duty cycle to the target duty cycle may cause obvious brightness jumps or flickers in the light output during the change process, especially noticeable in low-brightness scenes.

[0031] In this embodiment, step S42: determining the pulse width adjustment duty cycle corresponding to each LED bead based on the target current of each LED bead further includes: S421: Obtain the target current of the LED beads to get the target duty cycle of each color temperature channel; Wherein, the target current refers to the expected driving current of a certain color temperature channel (for example, a warm channel or a cold channel) under a given target brightness and color temperature requirement; the color temperature channel refers to a combination of LEDs of different correlated color temperatures divided into independently controlled control channels; and the target duty cycle refers to a duty cycle command that should be output to achieve the target current of a certain channel in a given PWM control framework. In a specific implementation, the target current of each color temperature channel can be calculated according to the target luminous flux or relative proportion of each color temperature channel obtained by upstream distribution, in combination with the calibration curve of the current luminous flux duty cycle, and the target duty cycle can be inversely calculated accordingly.

[0032] S422: Obtain the duty cycle change amount that needs to be adjusted for each channel according to the difference between the target duty cycle and the current duty cycle.

[0033] Wherein, the target duty cycle refers to the duty cycle obtained by mapping in the previous step and used to instruct a certain color temperature channel to achieve the expected light output; the current duty cycle refers to the duty cycle actually executed by the channel when entering the present step; the difference refers to the numerical difference between the target duty cycle and the current duty cycle; and the duty cycle change amount refers to the adjustment amount and direction executed in the subsequent stage to reduce the difference. The current duty cycle of each color temperature channel can be read first, and the signed difference can be obtained by comparing the target duty cycle. To reduce the influence of sampling jitter, the latest sliding average or median of a plurality of control periods of the target and the current are preferably taken as the comparison reference, and a dead zone threshold is set so that the change amount is zero when the absolute difference is below the threshold to avoid invalid fine tuning. Subsequently, the signed difference is converted into the duty cycle change amount of the channel according to a predetermined proportion coefficient, and the system constraints are clipped, including the single-step upper limit, the minimum resolution step, the duty cycle effective range, and the direction monotonicity requirement (if the channel has approached the boundary, it is automatically truncated or changed to zero). In the multi-channel coordination scenario, the change amount can also be uniformly shaped according to the channel weight or the target proportion relationship, for example, the change amount is scaled by the same proportion to maintain the feasibility of subsequent synchronized advancement. For the low brightness interval, a smaller change amount upper limit can be selected to reduce the quantization step feeling. Through the above processing, the output duty cycle change amount of each channel is the normalized deviation metric used in the subsequent step.

[0034] S423: Select the color temperature channel with the largest duty cycle change amount as the reference adjustment channel. The color temperature channel with the largest duty cycle change amount is selected as the reference adjustment channel, which aims to take the channel with the largest gap as a reference to unify the advancement pace of other channels. In this way, a time and amplitude scale for synchronous adjustment is established, avoiding the proportion drift caused by multiple channels adjusting independently, so that each channel advances around the same beat and the duty cycle converges step by step to the target.

[0035] S424: Obtain the single-step adjustment amount and the transition time of the reference adjustment channel according to the difference between the current target brightness and the preset brightness threshold value. When the target brightness is lower than the brightness threshold value, the single-step adjustment amount is positively correlated with the difference, and the transition time is negatively correlated with the difference; when the target brightness is higher than or equal to the brightness threshold value, the single-step adjustment amount is negatively correlated with the difference, and the transition time is positively correlated with the difference. Specifically, the single-step adjustment amount and the transition time of the reference adjustment channel are obtained according to the difference between the current target brightness and the preset brightness threshold value, and the relevant relationship is set according to two intervals: when the target brightness is lower than the threshold value, the larger the difference, the larger the single-step adjustment amount and the shorter the transition time, which is used to maintain delicacy but not too slow in the low brightness area; when the target brightness is higher than or equal to the threshold value, the larger the difference, the smaller the single-step adjustment amount and the longer the transition time, which is used to control the intensity and rhythm of the advance in the high brightness area. Through this segmented relationship, the pair of parameters of amplitude + time length are provided for subsequent synchronous adjustment.

[0036] S425: Determine the synchronous adjustment step length of all the color temperature channels according to the duty cycle change amount of the reference adjustment channel, in combination with the single-step adjustment amount and the transition time. According to the duty cycle change amount of the reference adjustment channel, in combination with the single-step adjustment amount and the transition time, the synchronous adjustment step length of all the color temperature channels is determined. The single-step advance of the reference channel is used as the reference amount, and the step length of the remaining channels is converted according to the target proportional relationship or the predetermined synchronous rule, so that each channel advances at a consistent rhythm in each stage; for the channel that reaches the target or the boundary first, the step length is automatically reduced to zero, and the other channels continue to execute, so that the overall advance is consistent and the boundary is safe.

[0037] S426: Obtain a phased duty cycle change sequence according to the synchronous adjustment step length and the duty cycle change amount of each color temperature channel, the phased duty cycle change sequence including a plurality of sequentially executed adjustment stages, each adjustment stage including at least the target duty cycle of the channel in the stage and the stage execution time length.

[0038] S427: Adjust the current duty cycle according to the phased duty cycle change sequence within the transition time.

[0039] According to the synchronous adjustment step and the duty cycle change amount of each color temperature channel, a phased duty cycle change sequence is obtained. The sequence is composed of a plurality of sequentially executed adjustment stages, and each stage at least contains the target duty cycle of the channel of the stage and the execution duration (or the number of execution cycles) of the stage. The sequence is used to reasonably divide the total change amount into a plurality of stages in the transition time, so that the duty cycle gradually transitions from the current value to the target value: first, the length and time are matched, the total duration of the sequence is consistent with the transition time, and the last stage absorbs the remaining amount; second, the synchronization rule, each channel advances by the same proportion or by a certain proportion according to the synchronous step in any stage, avoiding the proportion deviation caused by the different advancement of channels; third, the monotony and the boundary, each channel maintains monotonic increase / decrease in the sequence, and the target duty cycle of the stage is limited in the effective range, and the out-of-range is truncated and supplemented in the tail segment or the next sequence; fourth, the quantization and the accuracy matching, the target of the stage is quantized according to the control granularity, and the remaining amount formed by the quantization error is evenly or front-loaded distributed in the subsequent stage.

[0040] In this embodiment, the color temperature channel with the largest duty cycle change amount is selected as the reference, and the synchronous adjustment step of all channels is determined according to the reference channel. Then, the total change is further divided into a phased duty cycle change sequence executed in time sequence, and the target duty cycle and the execution duration of each stage are determined. The direct effect of this is that the cool and warm channels advance simultaneously according to a unified rhythm in the entire transition process, and the proportion relationship between the channels is constrained near the target relationship in each stage, and the out-of-step phenomenon that one channel advances fast at first and then slows down while the other channel lags behind no longer occurs.

[0041] In addition, instead of directly jumping to the target duty cycle, the single-step adjustment amount and the transition time are adaptively obtained according to the difference of the target brightness relative threshold value. In the low brightness area, a smaller single-step adjustment amount and a longer transition time are automatically selected, and in the high brightness area, a larger single-step and a shorter transition time are selected, which sets a proper advancing granularity and rhythm from the source. Then, the total change amount is decomposed into a phased sequence with the granularity, which ensures the monotonicity and boundary constraint of the duty cycle increase / decrease in each stage, and quantizes and absorbs the remaining amount according to the control granularity, avoiding the step feeling caused by the quantization residual.

[0042] In this embodiment, the S427: adjusting the current duty cycle according to the phased duty cycle change sequence in the transition time comprises: S4271: adjusting the current duty cycle according to the phased duty cycle change sequence in the transition time; The transition time refers to the overall control time window allocated for advancing from the current state to the target state; the phased duty cycle change sequence is a set of target duty cycles arranged in time sequence and executed in stages; the current duty cycle is the actual output or quantized duty cycle of the controller before executing the current stage; the controller loads the target duty cycle of the channel and the stage execution time at the start of each stage according to the stage sequence of the sequence, advances the duty cycle by a synchronization step, and applies monotonicity, upper and lower limits, and quantization granularity constraints during the advance; if a channel reaches the boundary or target first, the stage step of the channel is immediately frozen, and the remaining channels continue to advance according to the stage beat. Thus, the duty cycle trajectory has a continuous, monotonic, and boundary-constrained execution path, avoiding control disturbances caused by one-time jumps, while providing a reproducible stage reference for subsequent deviation evaluation.

[0043] S4272: After the end of each stage, a compensation adjustment amount for correcting the cumulative error and the proportional offset is obtained according to the deviation between the actual duty cycle and the target duty cycle of the stage; The stage target duty cycle refers to the channel duty cycle expected to be reached in the stage, and the actual duty cycle is the actual effective or quantized duty cycle of the controller at the end of the stage execution; the deviation is the difference between the two; the cumulative error is the systematic deviation formed by the superposition of multiple stages, and the proportional offset is used to depict the deviation of the channel ratio (corresponding to the color temperature ratio) from the target. The controller collects the actual duty cycle of each channel at the end of the stage, compares it with the target duty cycle of the stage to obtain the deviation, and calculates the difference between the channel ratio and the target ratio as the proportional offset; then, according to the preset threshold and weight, the two types of deviations are combined into a compensation adjustment amount, which can be subjected to denoising processing, minimum effective step, and direction limitation to ensure that the compensation amount can correct the deviation without damaging the established monotonic advance. In this way, the execution error of each stage is immediately closed into an executable compensation instruction, which suppresses error accumulation and maintains stable channel ratio.

[0044] S4273: Incorporate the compensation adjustment amount into the phased duty cycle change sequence of the next stage; Incorporation refers to converting the compensation adjustment amount into an additional step or target correction in the next stage sequence; the next stage sequence is a set of subsequent stage targets that have not been executed. Before generating the next stage sequence, the controller first reads the compensation adjustment amount: when the deviation is large, the compensation is preferentially allocated to the front section of the sequence to speed up the regression; when the deviation is small, the compensation is evenly distributed to each section to maintain smoothness; then the target duty cycle of the stage and the stage duration are recalculated, and the boundary, quantization, and synchronization rules are applied, and if necessary, the step length of a single section is compressed or extended to maintain the total transition time. This embodiment can compensate for the fusion of planning level and advance beat, correct predictable and reproducible deviations without disrupting the synchronization relationship, thereby reducing oscillation and shortening the convergence path.

[0045] S4274: When the actual duty cycle of each color temperature channel and the corresponding target duty cycle deviation does not exceed the preset threshold, or the number of stages executed reaches the preset maximum value, it is determined that the current adjustment process converges, and the final duty cycle parameter is output.

[0046] The preset threshold is used to determine the acceptable deviation band between the channel and the target; the maximum number of stages is used to limit the longest execution round; the convergence refers to the state of reaching the stop condition; the final duty cycle parameter is the stable control instruction output to the PWM signal generation module. The controller determines the absolute deviation and proportional offset of each channel at the end of each stage: if all do not exceed the threshold, it is determined to converge; if the threshold is not reached but the stage count has reached the maximum value, the current duty cycle is fixed according to the principle of minimizing the latest error; when any condition is reached, the final duty cycle parameter is locked and issued, ending the current adjustment, and key parameters are recorded for subsequent adaptive tuning.

[0047] In the present embodiment, the S425: determining the synchronization adjustment step of all the color temperature channels according to the reference adjustment channel duty cycle change amount, combining the single-step adjustment amount and the transition time, includes: S4251: determining the single-step advance amount of the reference adjustment channel according to the reference adjustment channel duty cycle change amount and the single-step adjustment amount and the transition time; The reference adjustment channel refers to the channel selected as the reference for the adjustment rhythm in multiple color temperature channels, usually the channel with the largest change amplitude or the highest weight in visual perception, such as the warm white channel or the cool white channel; the duty cycle change amount refers to the difference between the target duty cycle and the current duty cycle, reflecting the adjustment amplitude of the channel; the single-step adjustment amount is the minimum duty cycle increment that can be changed in one PWM control period or logical control step. In specific implementation, the duty cycle change amount can be divided by the total number of steps in the transition time to obtain the theoretical advance amount of each step, and rounding or quantization is performed according to the granularity limit of the single-step adjustment amount. In this way, the change rhythm of the reference channel can be ensured to be consistent with the preset time, avoiding abrupt changes caused by too fast changes, and ensuring that the adjustment will not be delayed due to too small step size.

[0048] S4252: taking the single-step advance amount of the reference adjustment channel as the reference amount, determining the synchronization adjustment step of the remaining color temperature channels according to the target proportional relationship or the preset synchronization rule; The target proportional relationship refers to the proportional relationship of the luminance or color temperature change amount between different channels, which is usually obtained from target light color coordinate calculation or color temperature mixing formula; the preset synchronization rule can include equal proportion advancing, weighted advancing or special color gamut priority strategy. The system takes the single-step advancing amount of the reference channel as a reference, calculates the advancing amount of other channels according to the proportional coefficient, and corrects it according to the resolution, quantization rule and amplitude limiting condition of each channel. In this way, the adjustment direction and amplitude of each channel at each step can be coordinated with each other, so as to maintain the overall light color consistency during the transition process.

[0049] S4253: controlling each color temperature channel to advance the luminance or color temperature change at a consistent pace in each stage according to the synchronization adjustment step; The consistent pace refers to the synchronization of the adjustment actions of multiple channels in each control cycle, which ensures the synchronization of the change process. In specific implementation, a unified timing interrupt can be set in the PWM modulation controller or digital driving chip, and the duty cycle registers of each channel are updated simultaneously in the interrupt callback, and the update value is equal to the current duty cycle plus the synchronization adjustment step of the corresponding channel. In this way, all channels will complete one step of adjustment at the same time point, thereby forming a visually smooth and coordinated transition effect.

[0050] S4254: detecting the current state of each color temperature channel, and setting the adjustment step of the channel to zero when any channel reaches the target value or reaches the allowed boundary value first.

[0051] The boundary value refers to the maximum or minimum duty cycle allowed by the system, for example, 0% and 100%, which is used to prevent overrunning; the system reads the current duty cycle of each channel after completing each stage, compares it with the target duty cycle, and if the difference is within the threshold range or the boundary value has been reached, the adjustment step of the channel is set to 0, while the steps of other channels are kept advancing. In this way, under the premise of ensuring safety and color accuracy, unnecessary operations and control actions can be avoided, and the system stability and response efficiency can be improved.

[0052] In the embodiment, the 426: obtaining a staged duty cycle change sequence according to the synchronization adjustment step and the duty cycle change amount of each color temperature channel, the staged duty cycle change sequence including a plurality of sequentially executed adjustment stages, each adjustment stage including at least the target duty cycle of the channel in the stage and the stage execution time. S4261: determining the total change amount required for each color temperature channel to transition from the current duty cycle to the target duty cycle according to the synchronization adjustment step and the duty cycle change amount of each color temperature channel; The synchronous adjustment step size refers to the minimum unit of increase or decrease for synchronously advancing the duty cycle changes of multiple color temperature channels at the same time step, such as a duty cycle of 0.5% or 1%. The total change amount represents the overall difference required for a color temperature channel to transition from the current duty cycle value to the target duty cycle value. In specific implementation, the system first reads the difference between the current duty cycle and the target duty cycle, combines the previously determined synchronous adjustment step size, calculates the total number of steps or the total change amplitude required for each channel to advance, and stores the result in the adjustment parameter table. This ensures that the adjustment range and step pace of each channel are based on accurate quantitative calculations, avoiding inconsistencies caused by inaccurate estimates.

[0053] S4262: Divide the total change amount into a plurality of sequentially executed adjustment stages within a preset transition time to obtain a phased duty cycle change sequence, wherein each adjustment stage includes at least the target duty cycle of the channel for that stage and the execution duration or number of execution cycles for that stage; The preset transition time refers to the total execution duration allocated by the system for the current adjustment process, such as 2 seconds or 1 minute. The phased duty cycle change sequence is a division of the total change amount into multiple stages, each with an independent target duty cycle and execution duration. The purpose of this step is to make the adjustment process smoother and more controllable through segmented advancement, while leaving intervention points for real-time detection and error correction. In the implementation process, the control module divides the entire process into a plurality of consecutive stages based on the total change amount and the transition time, and assigns a target duty cycle and a duration to each stage. This segmented processing allows the system to perform state detection and strategy adjustment during stage switching, avoiding brightness mutations caused by large changes at once. It can improve visual smoothness and the naturalness of color temperature transition.

[0054] S4263: In the phased duty cycle change sequence, control each color temperature channel to advance in the same stage according to the synchronous adjustment step size in the same proportion or a preset proportion; The same proportion advancement means that each channel advances in the same stage according to the same proportional relationship of the synchronous adjustment step size. The preset proportion allows for differentiated advancement based on spectral distribution, color rendering requirements, or other predefined strategies. The purpose of this step is to maintain the stability of the brightness and color temperature relationship among multiple channels during the execution of phased adjustment, avoiding overall color deviation caused by too fast or too slow advancement of a channel. The controller multiplies the advancement step size of the reference channel by the corresponding proportion coefficient and applies it to each channel during the execution of a stage, so that the adjustment amplitude of different channels in that stage conforms to the set proportion rule, ensuring the coordination and consistency of the optical output among color temperature channels, especially suitable for multi-channel LED systems in scenes with high color mixing accuracy requirements.

[0055] S4264: Restrict the duty cycle change direction of each color temperature channel within each stage to be monotonically increasing or monotonically decreasing; The system sets a direction flag for each channel when generating the phased change sequence, for example, only allowing the duty cycle to increase or decrease in the phase, and if real-time detection finds that the trend is reversed, the update of the channel is suspended to the next phase. This can ensure the predictability of each phase change and the stability of the output. The beneficial effect is to reduce the risk of brightness flicker or color temperature jump, and to improve the smoothness of the control process.

[0056] S4265: Quantize the target duty cycle of each phase according to the control granularity, and evenly distribute the remaining amount formed by the quantization error to the subsequent phases or distribute it to the previous phases in advance; The control granularity refers to the smallest duty cycle change unit that the system can accurately control when outputting the PWM signal, for example, 0.1% or 0.5%; the quantization error is the deviation produced when rounding the target duty cycle to the control granularity. The purpose of this step is to prevent the error from causing a significant deviation in color temperature or brightness after accumulation by evenly distributing the quantization error. When the target duty cycle of a certain phase produces a remaining amount after quantization, these remaining amounts are recorded and distributed to subsequent phases according to the strategy, or distributed in advance in the previous phases, to ensure that the total error is zero when the final convergence is reached. This embodiment improves the accuracy and consistency of adjustment, especially in high-precision dimming or color temperature control, which can effectively eliminate color deviation and brightness error caused by PWM resolution limitations.

[0057] S4266: Update the phased duty cycle change sequence during execution according to real-time detection results or external instructions.

[0058] The real-time detection results include current, voltage, brightness sensor data, and ambient light parameters; external instructions can come from user operations, upper computer control, or automated scene systems. The purpose of this step is to retain dynamic intervention capability during adjustment, allowing the system to adjust the strategy in real time according to sudden situations or optimization needs. When implementing, the control module detects sensor feedback and control instructions during each phase execution period, and when detecting target changes (such as external scene switching, user manual adjustment, temperature overload, etc.), it recalculates the phased change sequence and replaces the subsequent execution plan. This embodiment can improve the flexibility and adaptability of the system, ensuring that color temperature and brightness adjustment can meet the preset transition effect and respond to external changes in a timely manner, improving the overall intelligent level.

[0059] This embodiment provides the following two modes to switch the target brightness according to the detection results of human activity: When the first mode is adopted, the S6 of adjusting the target brightness to the first brightness when human body activity is detected comprises adjusting the output level signal of the control current to a high level signal, and the S7 of adjusting the target brightness to the second brightness if human body activity is not detected again within the first duration after the human body activity is detected comprises adjusting the output level signal of the control current to a low level signal. In this step, the microcontroller switches the output level of the control circuit from low to high when receiving the human movement signal of the microwave sensor, so that the driving current quickly reaches the preset first brightness; if the human movement signal is not received again before the first duration ends, the microcontroller switches the output level back to low, so that the driving current is reduced to the preset second brightness.

[0060] In this embodiment, the updating of the phase-by-phase duty cycle change sequence according to the real-time detection result or external instruction during execution comprises: determining the current control mode according to the real-time detection result and the external instruction; This step combines the results of human presence / absence, activity intensity, and distance of the down lamp with the user instruction, and maps them into control modes such as fast response, comfortable transition, night micro-motion reservation, and energy saving according to the priority, as the direction mark for subsequent parameter updating.

[0061] According to the current control mode, the target transition time is set to obtain a new transition time; the fast response shortens the time, the comfortable transition and the night micro-motion lengthen the time, and the energy saving takes the medium and long time; the transition time directly restricts the subsequent stage division and the step length upper limit.

[0062] According to the human activity intensity and the distance, the step length weight is determined to obtain a step length weight grade; In specific implementation, a larger step length weight is taken for high activity or close distance; a medium weight is taken for low activity; a smaller weight is taken for micro-motion or long distance; and a small weight is taken for no human presence to facilitate energy saving and smoothing.

[0063] According to the step length weight grade and the new transition time, the synchronous step length is set to obtain a new synchronous adjustment step length. The executable single-step advancing amount is calculated within the time constraint; the larger the weight and the shorter the time, the larger the step length; and it is ensured that each color temperature channel still advances according to the synchronization or preset proportion.

[0064] The unconstrained phase target sequence is obtained according to the target brightness and the color temperature of the external instruction; the final target is decomposed into the channel target duty cycle of each phase to form a basic list, which provides input for subsequent amplitude limiting and error processing According to the preset perception threshold and the monotonic change constraint, the single-step amplitude is limited to obtain a limited phase target sequence; If the single-step change of a stage exceeds the acceptable threshold of human eyes, it is automatically subdivided into more small steps or slowed down; while keeping monotony of only increasing or decreasing, to avoid visual jump and flicker.

[0065] According to the current cumulative error and the new transition time, time compression judgment is made to obtain a time compression flag; when the error is large and the time is insufficient for natural digestion, the flag is set to open the channel for necessary accelerated convergence; if it can be naturally digested, it is not compressed.

[0066] According to the time compression flag and the step weight level, stage tempo adjustment is made to obtain the compressed stage number and stage duration table; when set, the number of stages is reduced or the duration of each stage is shortened, and the single-step advance is moderately enlarged; when not set, the original tempo is maintained; always comply with the monotony and anti-flicker constraints.

[0067] According to the control granularity, the target sequence is quantized to obtain the quantized stage target and the quantized error margin; the stage target is aligned to the discrete gear of the control granularity to generate executable targets; the quantized difference is used as the margin for the next step.

[0068] According to the human activity and the step weight level, the direction of the margin allocation is determined to obtain the allocation direction. When active or close, the front stage is preferred to approach the body sense target faster; when inactive or no one, the rear stage is evenly distributed or subdivided to smooth and save energy; when moving slightly at night, prefer to subdivide to reduce disturbance.

[0069] According to the allocation direction and the execution duration of each stage, the margin allocation is performed to obtain the corrected stage target sequence. The margin is allocated to the stage that is less likely to be perceived or needs to be accelerated; the stage with longer execution duration or less visual sensitivity is preferred to carry the margin; ensure that the multi-channel has consistent or preset proportion consistent tempo in the same stage According to the current execution progress and the PWM cycle boundary, seamless switching is performed to obtain the new sequence enable state.

[0070] The stage boundary or the whole cycle boundary is effective; if the difference between the start of the new sequence and the current state is too large, a very short buffer stage is inserted before switching to ensure continuous and stable observation.

[0071] The S6 of adjusting the target brightness to the first brightness when detecting human body activity includes adjusting the duty cycle of the pulse width modulation signal of the control current to the first duty cycle, and the S7 of adjusting the target brightness to the second brightness if no human body activity is detected again within the first duration period after detecting the human body activity includes adjusting the duty cycle of the pulse width modulation signal of the control current to the second duty cycle. When detecting human body activity, the target brightness is adjusted to the first brightness, which is realized by adjusting the duty cycle of the pulse width modulation (PWM) signal of the control current to the first duty cycle. If no human body activity is detected within the first duration period, the target brightness is adjusted to the second brightness, and the duty cycle of the PWM signal is adjusted to the second duty cycle accordingly. In this way, the system can dynamically adjust the brightness according to the movement of the human body.

[0072] In the embodiment, the control granularity quantization processing of the target duty cycle of each stage is further configured to uniformly distribute the margin formed by the quantization error to subsequent stages or distribute the margin to previous stages in advance, and the method further comprises: weighting and distributing the margin according to the execution duration of each stage, the visual sensitivity interval of the human eye, and the priority of the color temperature channel; The margin refers to the total duty cycle error generated by rounding after quantization. The execution duration is the predicted running time of the stage. The visual sensitivity interval is the range in which the human eye is more sensitive to color temperature / luminance changes. The channel priority is a level divided according to the influence of different color temperature channels on overall light efficiency and color restoration.

[0073] After the quantization processing, the time length of each stage, whether it is in the sensitive interval of the human eye, and the importance of each channel are calculated first, and then different weights are set for these factors. The error margin is distributed according to the weights, for example, some are distributed more to stages with longer execution time, and less to channels with high priority. Finally, a differentiated distribution scheme is formed instead of a simple average distribution. In this way, the user hardly perceives the abrupt changes in brightness or color temperature, improving the visual comfort, while the error is more reasonably absorbed, avoiding the late burst.

[0074] The actual duty cycle of each color temperature channel is collected and compared with the target duty cycle to obtain the single-stage error of each channel and form the cumulative error by accumulation; The single-stage error refers to the difference between the actual output duty cycle and the target duty cycle at the end of a stage. The cumulative error is the overall deviation formed by gradually accumulating the errors of multiple stages.

[0075] At the end of each stage, the system reads the actual duty cycle of each channel, which can be obtained through the drive chip register or current detection circuit, and compares it with the target value to calculate the difference of each channel. Then these differences are gradually accumulated to obtain the total error. If the error is always small, the original sequence is maintained to continue execution; if it is constantly accumulating, it provides the basis for subsequent trigger redistribution. The embodiment can identify potential offset risks at an early stage and avoid sudden changes in color temperature or brightness that are visible to users at the end of the stage.

[0076] When the cumulative error exceeds the error threshold, the total amount of change for the remaining stages is recalculated; The error threshold refers to the range of allowable errors set by the system in advance. Here, two levels are usually set: one is a small threshold for ordinary compensation, and the other is a large threshold for global recalculation. The system determines whether the cumulative error exceeds the preset large threshold, and if it does, it immediately enters the redistribution mode. In this mode, the total amount of adjustment still needed for each channel is first calculated, as well as the remaining transition time, and then combined with the user's set response mode (fast mode or comfortable mode) to determine whether the number of stages needs to be shortened, the adjustment amplitude increased, or the adjustment rhythm changed.

[0077] According to the size of the remaining transition time and the cumulative error, the target duty cycle of each color temperature channel and the corresponding adjustment step are dynamically adjusted to generate a new phased duty cycle change sequence; The re-planning sequence refers to generating a completely new set of stage adjustment steps based on the new calculation results to replace the original plan. The system first calculates how much each channel still needs to adjust from the current state to the target state, and then divides these differences into new adjustment steps according to the remaining time. If the remaining time is very tight, the single-step adjustment amplitude is increased or the length of each stage is shortened; if the time is relatively generous, the number of stages can be increased to make the adjustment process finer and the transition smoother. All of these are recombined into a new phased table and enabled at the start of the next stage, ensuring that even when the error is too large, the transition can be completed within the range of user's perception or slight perception In the new phased duty cycle change sequence, the cumulative error is allocated in a way of proportional compensation according to the remaining change, priority channel compensation, or dynamic time compression; The error allocation strategy refers to how to allocate the cumulative error among different channels and stages during the re-planning process. Common methods include: proportional allocation according to the remaining adjustment amount, preferential compensation for certain key channels, or forced convergence through time compression. If the error of a certain channel is found to be dominant, more correction can be allocated to that channel; if the error distribution of all channels is relatively uniform, the error can be allocated in proportion to the remaining change; if the system detects that the remaining time is insufficient, time compression is used to speed up the adjustment without causing flicker. Specific methods include: When it is detected that the accumulated error exceeds the preset threshold and the remaining transition time is insufficient to complete the original sequence adjustment, dynamic time compression is triggered; Obtain the remaining duty cycle difference and the remaining transition time of each color temperature channel; Reduce the remaining stage number of the original sequence, and shorten the execution time of each stage; Correspondingly increase the single-step adjustment amplitude of each stage, so that each color temperature channel can reach the target duty cycle within the compressed stage; In the execution process, the single-step adjustment direction is constrained to be monotonically increasing or monotonically decreasing, and the single-step adjustment amplitude is limited to not exceed the preset perception threshold; In the execution process, the single-step adjustment direction is constrained to be monotonically increasing or monotonically decreasing, and the single-step adjustment amplitude is limited to not exceed the preset perception threshold.

[0078] The preset perception threshold refers to the minimum amplitude limit that can be perceived by the naked eye of the user during the lamp brightness or color temperature adjustment process. Adjustment changes below this threshold are usually not obviously perceived by the human eye, and exceeding this threshold can cause abrupt jumps or flickering.

[0079] By introducing a dynamic time compression mechanism in the phased duty cycle change sequence, when the accumulated error is too large and the remaining transition time is insufficient, the execution time of the subsequent stage is actively shortened and the single-step adjustment amplitude is increased, so that each color temperature channel converges to the target value quickly within a limited time. This method avoids the problem that the adjustment cannot be completed due to insufficient transition time in the traditional scheme, ensuring the accuracy of the final output of brightness and color temperature. At the same time, by constraining the monotonicity of the single-step adjustment direction and limiting the single-step amplitude to the perception threshold, the light efficiency mutation and the flickering phenomenon that can be perceived by the naked eye are avoided, so that the visual comfort is considered while ensuring the fast response, significantly improving the stability and user experience of the system in complex application scenarios.

[0080] The new phased duty cycle change sequence is used to replace the original sequence and is executed in the next stage.

[0081] When switching, the system will select an appropriate time point, such as switching at the end of a PWM cycle to avoid jumping in the middle. At the same time, it will also check whether the starting points of the new and old sequences are too far apart from the current actual value, and if they are too far apart, a transition stage will be inserted first to buffer. In addition, the system also keeps a backup of the original sequence in case of switching failure. This embodiment introduces a quantitative error weighted allocation, a phased error detection, an accumulated error determination, and a global re-planning mechanism in the phased duty cycle adjustment process, realizing a closed-loop control from local compensation to global optimization, not only ensuring the smoothness and human eye comfort of the multi-color temperature cylinder lamp during the brightness and color temperature transition process, but also being able to correct the error in time when the error accumulates or the environment changes, ensuring the accurate convergence of the final adjustment result.

[0082] Embodiment 2 The embodiment provides a multi-color temperature tube lamp, which comprises first LED lamp beads, second LED lamp beads and a control circuit, the color temperatures of the first LED lamp beads and the second LED lamp beads are different, the control circuit is electrically connected with the first LED lamp beads and the second LED lamp beads respectively, and computer program instructions are stored in the control circuit, and the computer program instructions realize the method of the first aspect when executed by the processor.

[0083] The control circuit comprises a filtering sub-circuit, a signal amplification sub-circuit and a microcontroller, the filtering sub-circuit is electrically connected with the microwave sensor, the signal amplification sub-circuit is electrically connected with the filtering sub-circuit, and the microcontroller is electrically connected with the signal amplification sub-circuit.

[0084] The embodiment utilizes LED lamp beads of different color temperatures to control the color temperature, and the brightness proportion of the LED lamp beads of different color temperatures is controlled by the control circuit, so that the color temperature of the tube lamp meets the demand of a user.

[0085] As shown in Figure 6 The multi-color temperature tube lamp of the embodiment further comprises a microwave induction control module, and the microwave induction control module is electrically connected with the control circuit. The microwave induction control module is integrated in the multi-color temperature tube lamp on the basis of the existing multi-color temperature LED and the control circuit, the microwave sensor is connected with the control circuit through an electrical interface, can detect human activities in the environment in real time and transmit signals to the controller to trigger automatic dimming or switching on / off functions. Since the microwave induction technology has long sensing distance, large angle, strong anti-interference ability and is not affected by light, more accurate and stable intelligent induction control can be realized.

[0086] In the embodiment, the microwave sensor is integrated in the lamp panel of the multi-color temperature tube lamp, and the antenna layout is optimized to ensure the sensing range and sensitivity.

[0087] The control circuit of the multi-color temperature tube lamp with the microwave induction function of the embodiment further comprises a power supply driving circuit, a dimming and color temperature control circuit and a microwave induction control module. The power supply driving circuit adopts a flyback switching power supply architecture, obtains energy from an alternating current power input end, and provides stable low-voltage direct current power supply for the dimming and color temperature control circuit and the microwave induction control module.

[0088] The power supply driving circuit comprises: an alternating current input and a surge suppression unit; The L terminal of the AC input end CON1 of the AC input and surge suppression unit is connected with one end of the current limiting resistor R5, the other end of the R5 is connected with one of the AC input ends of the rectifier bridge BR1 (MB6S); the N terminal of the CON1 is directly connected with the other AC input end of the BR1. The two ends of the voltage-dependent resistor ER1 are connected in parallel with the two ends of the R5 respectively, for absorbing and protecting when the mains voltage is overvoltage.

[0089] The rectifier filter unit; The DC positive output end of the rectifier filter unit BR1 is connected with one end of the high-voltage filter capacitor C2 and one end of the inductor L1; the DC negative output end of the BR1 is connected with the other end of the C2 as the power supply ground. The other end of the L1 is connected with one end of the capacitor C3, and the other end of the C3 is grounded; the filter branch formed by the L1 and the C3 in parallel outputs to the switching power supply control unit.

[0090] The switching power supply control unit; The high-voltage input pin of the high-voltage flyback switching power supply control chip U1 (BP3525XX) of the switching power supply control unit is connected with the node of the L1 and the C3, one end of the starting capacitor C1 is connected with the starting pin of the U1, and the other end is grounded; the detection resistor R1 is connected in series in the switching loop of the U1, for sampling current signal. The output pin of the U1 is connected with one end of the primary winding of the transformer, and the other end of the primary winding returns to the high-voltage DC positive end, thereby constituting the energy conversion loop of the flyback power supply.

[0091] The secondary rectification and output filter unit; One end of the secondary winding of the transformer in the secondary rectification and output filter unit is connected with the anode of the high-frequency rectification diode D2 (ES1J), the cathode of the D2 is connected with one end of the inductor L2; the other end of the L2 is connected with the output positive pole and one end of the filter capacitor C5, and the other end of the C5 is grounded. The cathode of the diode D3 (ES1J) is connected with the output end of the L2, and the anode is grounded, for preventing reverse current impact. The output positive pole is also connected with the filter capacitor C4, and the other end of the C4 is grounded, for further smoothing the output voltage.

[0092] The output end; The V terminal of the output end VOUT is connected with the output end of the L2, the G terminal is connected with the power supply ground, and the O terminal is the signal interface end and is connected with the signal input end of the control circuit. The low-voltage DC positive pole is connected with the power input ends of the dimming and color temperature control circuit and the microwave induction control module at the same time, and the negative pole is grounded.

[0093] In the embodiment, the dimming and color temperature control circuit comprises a PWM dimming unit and a double-color temperature LED driving unit. The PWM dimming unit outputs two PWM signals from a microcontroller (MCU), which are connected to control ends of the cool white LED driving branch and the warm white LED driving branch, respectively. The proportion of driving currents of the two types of LEDs is changed by adjusting the PWM duty cycle, so that the color temperature is continuously adjustable between about 2700K and 6500K, and the total brightness is controlled at the same time. The control ends of the cool white LED driving branch and the warm white LED driving branch are electrically connected to the first LED lamp bead and the second LED lamp bead, respectively.

[0094] The power input end of the microwave induction control module is connected to the output end VOUT, and the signal output end is connected to the induction input pin of the MCU. The microwave induction module adopts a 5.8GHz transmitting and receiving structure, outputs a high-level signal when detecting human activity, drives the MCU to control the PWM output, and thus lights up the LED; after a preset time in the unattended state, the MCU stops the PWM output, and the LED is turned off, realizing automatic energy-saving control.

[0095] The above is a detailed introduction to the pulse width modulation intelligent control method of the multi-color temperature down lamp provided by the embodiment of the present application.

[0096] It should be clear that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.

[0097] The functional blocks shown in the structure block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, etc. When implemented in software, the elements of the present application are program or code segments used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave on a transmission medium or communication link. The "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via a computer network such as the Internet, an intranet, etc.

[0098] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps are performed simultaneously.

[0099] The above merely illustrates the specific implementation of the present application. For the convenience and brevity of description, the specific working processes of the above-described system, module and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein. It should be understood that the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements shall be encompassed within the protection scope of the present application.

Claims

1. A pulse width modulation intelligent control method for microwave detecting multi-color temperature tube lamps, characterized in that, The method comprises the following steps: obtaining the target brightness of the down lamp, the down lamp having a plurality of LED lamp beads, the target brightness of the down lamp being the brightness of the down lamp as a whole; obtaining the color temperature requirement of the user; determining the target brightness of each LED lamp bead in the down lamp according to the target brightness and the color temperature requirement, wherein the color temperatures of at least two lamp beads are different; controlling each LED lamp bead to emit light at the target brightness; In the step of obtaining the target brightness of the down lamp, the user obtains the overall brightness required by the user for the down lamp through a brightness adjusting switch or a user operation interface or a preset scene mode.

2. The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 1, wherein, The method further comprises: detecting whether there is a human body movement in a target area through a microwave sensor, the microwave sensor periodically emitting high-frequency electromagnetic waves at a preset emission power and receiving reflected echo signals; adjusting the target brightness to a first brightness when a human body movement is detected; adjusting the target brightness to a second brightness if no human body movement is detected again within a first duration period after the human body movement is detected; turning off the down lamp if no human body movement is detected again within a second duration period after the target brightness is adjusted to the second brightness. 3.The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 1, wherein, The step of adjusting the target brightness to the first brightness when the human body movement is detected comprises adjusting an output level signal of a control current to a high level signal, and the step of adjusting the target brightness to the second brightness if no human body movement is detected again within the first duration period after the human body movement is detected comprises adjusting the output level signal of the control current to a low level signal. 4.The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 1, wherein, The step of adjusting the target brightness to the first brightness when the human body movement is detected comprises adjusting a duty cycle of a pulse width modulation signal of a control current to a first duty cycle, and the step S7 of adjusting the target brightness to the second brightness if no human body movement is detected again within the first duration period after the human body movement is detected comprises adjusting the duty cycle of the pulse width modulation signal of the control current to a second duty cycle.

5. The pulse width modulation intelligent control method of microwave detecting multi-color temperature tube lamp according to claim 1, wherein, The step of controlling each lamp bead to emit light at the target brightness further comprises: determining a target current corresponding to each lamp bead according to the target brightness of each LED lamp bead; determining a pulse width modulation duty cycle corresponding to each lamp bead according to the target current corresponding to each LED lamp bead; outputting an output current of a pulse width modulation signal control circuit according to the pulse width modulation duty cycle. 6.The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 4, wherein, The step of determining the pulse width adjustment duty cycle corresponding to each lamp bead according to the target current corresponding to each LED lamp bead further comprises: obtaining the target current of the LED lamp bead to obtain a target duty cycle of each color temperature channel; obtaining a duty cycle change amount required by each channel to be adjusted according to a difference between the target duty cycle and a current duty cycle; selecting a color temperature channel with the largest duty cycle change amount as a reference adjustment channel; obtaining a single-step adjustment amount and a transition time of the reference adjustment channel according to a difference between the current target brightness and a preset brightness threshold; determining a synchronous adjustment step of all the color temperature channels according to the duty cycle change amount of the reference adjustment channel in combination with the single-step adjustment amount and the transition time; According to the synchronous adjustment step and the duty cycle change amount of each color temperature channel, a phased duty cycle change sequence is obtained, the phased duty cycle change sequence including a plurality of sequentially executed adjustment phases, each adjustment phase including at least the channel target duty cycle of the phase and the phase execution duration; In the transition time, the current duty cycle is adjusted according to the phased duty cycle change sequence. 7.The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 6, wherein, The adjusting the current duty cycle according to the phased duty cycle change sequence in the transition time further includes: In the transition time, the current duty cycle is adjusted according to the phased duty cycle change sequence in sequence; After each phase ends, a compensation adjustment amount for correcting cumulative error and proportional offset is obtained according to the deviation between the actual duty cycle and the target duty cycle of the phase; The compensation adjustment amount is incorporated into the phased duty cycle change sequence of the next phase; When the deviation between the actual duty cycle of each color temperature channel and the corresponding target duty cycle does not exceed a preset threshold, or the number of executed phases reaches a preset maximum value, it is determined that the current adjustment process converges, and the final duty cycle parameter is output. 8.The pulse width modulation intelligent control method of the microwave detecting multi-color temperature tube lamp according to claim 6, wherein, The determining the synchronous adjustment step of all the color temperature channels according to the duty cycle change amount of the reference adjustment channel, the single-step adjustment amount and the transition time includes: Determining the single-step advance amount of the reference adjustment channel according to the duty cycle change amount of the reference adjustment channel and the single-step adjustment amount and the transition time; Taking the single-step advance amount of the reference adjustment channel as a reference amount, the synchronous adjustment steps of the remaining color temperature channels are determined according to a target proportional relationship or a preset synchronization rule; Controlling each color temperature channel to advance the luminance or color temperature change at a consistent pace in each phase according to the synchronous adjustment step; Detecting the current state of each color temperature channel, and setting the adjustment step of any channel to zero when the channel reaches the target value or reaches the allowed boundary value first.

9. A microwave detecting multi-color temperature capsule lamp characterized in that, The application relates to a microwave induction LED lamp, which comprises a first LED lamp bead, a second LED lamp bead, a control circuit, and a microwave sensor. The color temperature of the first LED lamp bead is different from that of the second LED lamp bead. The control circuit is electrically connected with the first LED lamp bead and the second LED lamp bead. The microwave sensor is electrically connected with the control circuit. Computer program instructions are stored in the control circuit. When the computer program instructions are executed by the processor, the method in any one of claims 1-8 is realized.

10. The microwave detecting multi-Kelvin color temperature tube lamp of claim 9, wherein, The control circuit comprises a power supply driving circuit, the power supply driving circuit comprises an AC input and surge suppression unit, the L end of the AC input end CON1 of the AC input and surge suppression unit is connected with one end of the current limiting resistor R5, the other end of the R5 is connected with one of the AC input ends of the rectifier bridge BR1, and the N end of the CON1 is directly connected with the other AC input end of the BR1. The two ends of the voltage-dependent resistor ER1 are respectively connected in parallel with the two ends of the R5, and the power supply driving circuit further comprises a rectification filtering unit, the direct current positive output end of the rectification filtering unit is connected with one end of the high-voltage filtering capacitor C2 and one end of the inductor L1; the direct current negative output end of the rectification filtering unit is connected with the other end of the C2 as a power supply ground, the other end of the inductor L1 is connected with one end of the capacitor C3, the other end of the C3 is grounded, and the filtering branch formed by the inductor L1 and the capacitor C3 in parallel is output to the switching power supply control unit.

Citation Information

Patent Citations

  • LED lamp color temperature transformation lamp bank, and method for modulating color temperature applying same

    CN108449846A

  • LED light source brightness control method, device and circuit, LED lamp and storage medium

    CN110519880A

  • Light regulation and control method and system for protecting eyes and intelligent lamp

    CN117545120A

  • Intelligent dimming system and method for coaxial double-light-source LED lamp

    CN117915517A

  • Color temperature regulation and control method of LED lamp beads for illumination

    CN118158849A