CN105592587A - LED lamp control method - Google Patents
LED lamp control method Download PDFInfo
- Publication number
- CN105592587A CN105592587A CN201510924566.8A CN201510924566A CN105592587A CN 105592587 A CN105592587 A CN 105592587A CN 201510924566 A CN201510924566 A CN 201510924566A CN 105592587 A CN105592587 A CN 105592587A
- Authority
- CN
- China
- Prior art keywords
- light
- led light
- led
- pwm signal
- white
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明公开了一种LED灯的控制方法,所述LED灯包括AC/DC转换器、单片机、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串、射频模块和与射频模块配合的遥控装置;AC/DC转换器分别与射频模块、单片机、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接,单片机分别与射频模块、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接。本发明具有有效消除了电压跌落和电流跌落的特点。
The invention discloses a method for controlling an LED lamp. The LED lamp comprises an AC/DC converter, a single chip microcomputer, a warm white LED lamp string, a cool white LED lamp string, a red LED lamp string, a green LED lamp string, a blue LED lamp string LED light string, radio frequency module and remote control device that cooperates with the radio frequency module; 1. The blue LED light strings are electrically connected, and the single-chip microcomputer is electrically connected with the radio frequency module, the warm white LED light strings, the cool white LED light strings, the red LED light strings, the green LED light strings, and the blue LED light strings. The invention has the characteristics of effectively eliminating voltage drop and current drop.
Description
技术领域technical field
本发明涉及LED照明技术领域,尤其是涉及一种可有效消除电压跌落和电流跌落的LED灯的控制方法。The invention relates to the technical field of LED lighting, in particular to a control method of an LED lamp that can effectively eliminate voltage drop and current drop.
背景技术Background technique
随着LED在照明领域的应用推广,越来越多的应用出现在我们的日常生活中,如对灯光进行亮度调节,色温调节,颜色调节等。With the application and promotion of LED in the field of lighting, more and more applications appear in our daily life, such as adjusting the brightness of the light, adjusting the color temperature, and adjusting the color.
一般调色温和调颜色都采用同相位PWM进行混色控制,优点是控制方法简单,容易实现。Generally, the same-phase PWM is used for color mixing control for color temperature and color adjustment. The advantage is that the control method is simple and easy to implement.
但同相位的PWM信号输出会导致输入电压严重跌落,产生较大纹波电流及频闪的问题,并且输入端电源会进入过载保护,使LED灯无法正常工作。However, the same-phase PWM signal output will cause a serious drop in the input voltage, resulting in large ripple current and stroboscopic problems, and the power supply at the input end will enter overload protection, making the LED lights unable to work normally.
中国专利授权公开号:CN204062619U,授权公开日2014年12月31日,公开一种LED灯具,包括灯盘、若干条LED灯条、LED驱动控制装置和控制开关,LED灯条设置在灯盘内,LED灯条由LED基板、多个LED灯珠构成,多个LED灯珠设置在LED基板上,LED驱动控制装置与多个LED灯珠电连接,控制开关连接控制LED驱动控制装置,以实现对单条或多条LED灯条中的局部或全部LED灯珠的开关控制。该发明存在电压跌落的不足。Chinese patent authorization publication number: CN204062619U, authorized publication date December 31, 2014, discloses an LED lamp, including a lamp panel, several LED light bars, LED drive control devices and control switches, and the LED light bars are arranged in the lamp panel , the LED light bar is composed of an LED substrate and a plurality of LED lamp beads, and the plurality of LED lamp beads are arranged on the LED substrate, the LED drive control device is electrically connected with the plurality of LED lamp beads, and the control switch is connected to control the LED drive control device to realize Switch control of some or all LED lamp beads in single or multiple LED light strips. This invention has the deficiency of voltage drop.
发明内容Contents of the invention
本发明的发明目的是为了克服现有技术中的LED灯同相位PWM信号会导致输入电压跌落的不足,提供了一种可有效消除电压跌落和电流跌落的LED灯的控制方法。The purpose of the present invention is to overcome the deficiency that the same-phase PWM signal of the LED lamp in the prior art will cause the input voltage to drop, and to provide a control method of the LED lamp that can effectively eliminate the voltage drop and the current drop.
为了实现上述目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
一种LED灯的控制方法,所述LED灯包括AC/DC转换器、单片机、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串、射频模块和与射频模块配合的遥控装置;AC/DC转换器分别与射频模块、单片机、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接,单片机分别与射频模块、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接;A method for controlling an LED lamp, the LED lamp comprising an AC/DC converter, a single-chip microcomputer, a warm white LED lamp string, a cool white LED lamp string, a red LED lamp string, a green LED lamp string, a blue LED lamp string, The radio frequency module and the remote control device that cooperates with the radio frequency module; Serial electrical connection, the single chip microcomputer is electrically connected with the radio frequency module, warm white LED light string, cool white LED light string, red light LED light string, green light LED light string, blue light LED light string;
包括色温调节过程和开关灯过程,所述色温调节过程包括如下步骤:Including the color temperature adjustment process and the switch light process, the color temperature adjustment process includes the following steps:
(1-1)遥控装置向射频模块发送亮度调节命令,单片机从亮度调节命令中提取暖白亮度值BrW和冷白亮度值Brc;(1-1) The remote control device sends a brightness adjustment command to the radio frequency module, and the single-chip microcomputer extracts a warm white brightness value Br W and a cool white brightness value Br c from the brightness adjustment command;
遥控装置向射频模块发送色温调节命令,单片机依据收到的色温调节命令得到暖白PWM信号的占空比W和冷白PWM信号的占空比C;The remote control device sends a color temperature adjustment command to the radio frequency module, and the single-chip microcomputer obtains the duty cycle W of the warm white PWM signal and the duty cycle C of the cool white PWM signal according to the received color temperature adjustment command;
(1-2)单片机利用公式Factor_W=W/(C+W),Factor_C=C/(C+W)计算暖白脉宽参数Factor_W,冷白脉宽参数Factor_C,(1-2) The single-chip microcomputer utilizes the formula Factor_W=W/(C+W), Factor_C=C/(C+W) to calculate the warm white pulse width parameter Factor_W, and the cool white pulse width parameter Factor_C,
利用公式temp=255×Br/100计算亮度换算值temp;Use the formula temp=255×Br/100 to calculate the brightness conversion value temp;
(1-3)单片机利用公式W_Duty=temp×Factor_W,C_Duty=temp×Factor_C计算并得到暖白色温参数W_Duty,冷白色温参数C_Duty,(1-3) The single-chip microcomputer uses the formula W_Duty=temp×Factor_W, C_Duty=temp×Factor_C to calculate and obtain the warm white temperature parameter W_Duty, the cool white temperature parameter C_Duty,
(1-4)单片机输出满足暖白色温参数W_Duty和暖白亮度值BrW的暖白PWM信号给暖白灯串,单片机输出满足冷白色温参数C_Duty和冷白亮度值Brc的冷白PWM信号给冷白灯串;暖白PWM信号和冷白PWM信号的脉冲依次出现。(1-4) The microcontroller outputs a warm white PWM signal that meets the warm white temperature parameter W_Duty and the warm white brightness value Br W to the warm white light string, and the microcontroller outputs a cool white PWM signal that meets the cool white temperature parameter C_Duty and the cool white brightness value Br c The signal is given to the cool white light string; the pulses of the warm white PWM signal and the cool white PWM signal appear sequentially.
单片机串口与射频模块建立通讯,射频模块可接收来自手机APP或者射频遥控器的数据再通过串口发给单片机,最终实现智能调光。通过发送不同的命令码给单片机,可以实现灯光的多种变化效果,如红、绿、蓝1600万色混光,三色跳变、渐变,七色跳变、渐变等效果,调白光时可以实现亮度调节、色温调节,同时在调亮度时色温不会改变,在调色温时亮度值不会改变。暖白PWM信号和冷白PWM信号的脉冲依次出现,有效消除了电压跌落和电流跌落。The serial port of the single-chip microcomputer establishes communication with the radio frequency module, and the radio frequency module can receive the data from the mobile phone APP or the radio frequency remote control and send it to the single-chip microcomputer through the serial port, finally realizing intelligent dimming. By sending different command codes to the MCU, various lighting effects can be realized, such as red, green, and blue 16 million color mixed light, three-color jump, gradient, seven-color jump, gradient and other effects, which can be realized when adjusting white light Brightness adjustment, color temperature adjustment, at the same time, the color temperature will not change when the brightness is adjusted, and the brightness value will not change when the color temperature is adjusted. The pulses of the warm white PWM signal and the cool white PWM signal appear sequentially, effectively eliminating voltage drop and current drop.
因此,本发明具有便于色彩、色温和亮度的调节,可实现灯光的多种变化效果,有效消除了电压跌落和电流跌落的特点。Therefore, the present invention has the characteristics of facilitating the adjustment of color, color temperature and brightness, realizing various changing effects of lights, and effectively eliminating voltage drop and current drop.
作为优选,还包括亮度调节过程,包括如下步骤:Preferably, it also includes a brightness adjustment process, including the following steps:
遥控装置向射频模块发送亮度调节命令,单片机从亮度调节命令中提取单片机暖白亮度值BrW和冷白亮度值Brc,计算机选取BrW和Brc中的较大值M,利用公式计算M与当前亮度Br的比值k,Br预先存储于单片机中;The remote control device sends a brightness adjustment command to the radio frequency module, and the single-chip microcomputer extracts the warm white brightness value BrW and the cool white brightness value Brc of the single-chip microcomputer from the brightness adjustment command, and the computer selects the larger value M of BrW and Brc, and uses the formula Calculate the ratio k of M to the current brightness Br, and Br is pre-stored in the microcontroller;
使W变为kW倍,C变为kC,单片机输出满足占空比为kW的暖白PWM信号给暖白灯串,单片机输出满足占空比为kC的冷白PWM信号给冷白灯串。Make W times kW, C become kC, the microcontroller outputs a warm white PWM signal with a duty cycle of kW to the warm white light string, and the microcontroller outputs a cool white PWM signal with a duty cycle of kC to the cool white light string.
作为优选,在亮度调节过程中,单片机输出PWM信号给暖白灯串或冷白灯串时,将收到的调节命令中的PWM占空比值A与当前的占空比值B进行比较,如果A>B,则使输出的PWM信号的占空比阶梯型增加,直至A≤B为止;如果A<B,则使输出的PWM信号的占空比阶梯型减小,直至A≥B为止。Preferably, during the brightness adjustment process, when the single-chip microcomputer outputs the PWM signal to the warm white light string or the cool white light string, compare the PWM duty cycle value A in the received adjustment command with the current duty cycle value B, if A >B, the duty ratio of the output PWM signal increases stepwise until A≤B; if A<B, the duty ratio of the output PWM signal decreases stepwise until A≥B.
作为优选,还包括红绿蓝调节过程,包括如下步骤:As preferably, it also includes red, green and blue adjustment process, including the following steps:
遥控装置向射频模块发送RGB调光指令,单片机从RGB调光指令中获得红光PWM占空比、绿光PWM占空比和蓝光PWM占空比,单片机输出满足红光PWM占空比、绿光PWM占空比和蓝光PWM占空比的3路PWM信号,并且使3路PWM信号的脉冲依次出现。The remote control device sends an RGB dimming command to the RF module, and the single-chip microcomputer obtains the red light PWM duty cycle, the green light PWM duty cycle and the blue light PWM duty cycle from the RGB dimming command, and the single-chip microcomputer output meets the red light PWM duty cycle, green light PWM duty cycle 3-way PWM signal of light PWM duty cycle and blue-light PWM duty cycle, and make the pulses of 3-way PWM signal appear in sequence.
作为优选,暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串和蓝光LED灯串均包括若干个串联的灯珠。Preferably, the warm white LED light strings, the cool white LED light strings, the red LED light strings, the green LED light strings and the blue LED light strings each include several lamp beads connected in series.
作为优选,所述开关灯过程包括如下步骤:Preferably, the process of switching lights includes the following steps:
遥控装置向射频模块发送开关灯指令,单片机判断当前LED灯处于关灯状态还是开灯状态,如果开关灯指令与当前开关灯状态一致,则保持当前状态不变;The remote control device sends the switch light command to the radio frequency module, and the single-chip microcomputer judges whether the current LED light is in the light off state or the light on state, and if the switch light command is consistent with the current switch light state, the current state remains unchanged;
如果开关灯指令与当前开关灯状态不一致,单片机保存当前状态,并对暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串发出与指令相对应的开关灯PWM信号。If the switch light command is inconsistent with the current switch light state, the MCU saves the current state, and sends a message to warm white LED light strings, cool white LED light strings, red light LED light strings, green light LED light strings, and blue light LED light strings. The command corresponds to the switch light PWM signal.
作为优选,遥控装置为遥控器或手机。Preferably, the remote control device is a remote control or a mobile phone.
作为优选,射频模块是wifi模块、蓝牙模块或zigbee模块。Preferably, the radio frequency module is a wifi module, a bluetooth module or a zigbee module.
因此,本发明具有如下有益效果:便于色彩、色温和亮度的调节,可实现灯光的多种变化效果,有效消除了电压跌落和电流跌落。Therefore, the present invention has the following beneficial effects: it is convenient to adjust the color, color temperature and brightness, can realize various changing effects of lights, and effectively eliminates voltage drop and current drop.
附图说明Description of drawings
图1是本发明的一种原理框图;Fig. 1 is a kind of functional block diagram of the present invention;
图2是现有技术中的亮度调节过程中的一种PWM信号控制时序图;FIG. 2 is a timing diagram of PWM signal control in the brightness adjustment process in the prior art;
图3是现有技术中的RGB调节过程中的一种PWM信号控制时序图;Fig. 3 is a kind of PWM signal control timing diagram in the RGB adjustment process in the prior art;
图4是本发明的白光调光过程中的一种PWM信号控制时序图;Fig. 4 is a timing diagram of PWM signal control in the white light dimming process of the present invention;
图5是本发明的白光50%亮度调光过程中的一种PWM信号控制时序图;Fig. 5 is a kind of PWM signal control timing diagram in the white light 50% brightness dimming process of the present invention;
图6是本发明的青色50%亮度调光过程中的一种PWM信号控制时序图。FIG. 6 is a timing diagram of PWM signal control in the cyan 50% brightness dimming process of the present invention.
图中:AC/DC转换器1、单片机2、暖白LED灯串3、冷白LED灯串4、红光LED灯串5、绿光LED灯串6、蓝光LED灯串7、射频模块8、遥控装置9。In the figure: AC/DC converter 1, single chip microcomputer 2, warm white LED light string 3, cool white LED light string 4, red LED light string 5, green LED light string 6, blue LED light string 7, radio frequency module 8 , remote control device 9.
具体实施方式detailed description
下面结合附图和具体实施方式对本发明做进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
如图1所示的实施例是一种LED灯的控制方法,LED灯包括AC/DC转换器1、单片机2、暖白LED灯串3、冷白LED灯串4、红光LED灯串5、绿光LED灯串6、蓝光LED灯串7、射频模块8和与射频模块配合的遥控装置9;AC/DC转换器分别与射频模块、单片机、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接,单片机分别与射频模块、暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串电连接;遥控装置为手机,射频模块为wifi模块。暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串和蓝光LED灯串均包括6个串联的灯珠。The embodiment shown in Figure 1 is a control method for LED lamps. The LED lamps include an AC/DC converter 1, a single-chip microcomputer 2, a warm white LED lamp string 3, a cool white LED lamp string 4, and a red LED lamp string 5 , green LED lamp string 6, blue LED lamp string 7, radio frequency module 8 and the remote control device 9 that cooperates with the radio frequency module; , red LED light strings, green LED light strings, and blue LED light strings are electrically connected, and the single-chip microcomputer is respectively connected to the radio frequency module, warm white LED light strings, cool white LED light strings, red LED light strings, green LED light strings, The blue LED light strings are electrically connected; the remote control device is a mobile phone, and the radio frequency module is a wifi module. Warm white LED light strings, cool white LED light strings, red LED light strings, green LED light strings and blue LED light strings each include 6 LED beads connected in series.
包括色温调节过程和开关灯过程,色温调节过程包括如下步骤:Including the color temperature adjustment process and the switch light process, the color temperature adjustment process includes the following steps:
步骤100,遥控装置向射频模块发送亮度调节命令,单片机从亮度调节命令中提取暖白亮度值BrW和冷白亮度值Brc;Step 100, the remote control device sends a brightness adjustment command to the radio frequency module, and the single-chip microcomputer extracts the warm white brightness value Br W and the cool white brightness value Br c from the brightness adjustment command;
遥控装置向射频模块发送色温调节命令,单片机依据收到的色温调节命令得到暖白PWM信号的占空比W和冷白PWM信号的占空比C;The remote control device sends a color temperature adjustment command to the radio frequency module, and the single-chip microcomputer obtains the duty cycle W of the warm white PWM signal and the duty cycle C of the cool white PWM signal according to the received color temperature adjustment command;
步骤200,单片机利用公式Factor_W=W/(C+W),Factor_C=C/(C+W)计算暖白脉宽参数Factor_W,冷白脉宽参数Factor_C,Step 200, the single-chip microcomputer uses the formula Factor_W=W/(C+W), Factor_C=C/(C+W) to calculate the warm white pulse width parameter Factor_W, the cool white pulse width parameter Factor_C,
利用公式temp=255×Br/100计算亮度换算值temp;Use the formula temp=255×Br/100 to calculate the brightness conversion value temp;
步骤300,单片机利用公式W_Duty=temp×Factor_W,C_Duty=temp×Factor_C计算并得到暖白色温参数W_Duty,冷白色温参数C_Duty,Step 300, the single-chip microcomputer uses the formula W_Duty=temp×Factor_W, C_Duty=temp×Factor_C to calculate and obtain the warm white temperature parameter W_Duty, the cold white temperature parameter C_Duty,
步骤400,单片机输出满足暖白色温参数W_Duty和暖白亮度值BrW的暖白PWM信号给暖白灯串,单片机输出满足冷白色温参数C_Duty和冷白亮度值Brc的冷白PWM信号给冷白灯串;暖白PWM信号和冷白PWM信号的脉冲依次出现。In step 400, the microcontroller outputs a warm white PWM signal satisfying the warm white temperature parameter W_Duty and the warm white brightness value Br W to the warm white light string, and the microcontroller outputs a cool white PWM signal satisfying the cool white temperature parameter C_Duty and the cool white brightness value Br c to the Cool white light string; pulses of warm white PWM signal and cool white PWM signal appear in sequence.
还包括亮度调节过程,包括如下步骤:It also includes a brightness adjustment process, including the following steps:
遥控装置向射频模块发送亮度调节命令,单片机从亮度调节命令中提取单片机暖白亮度值BrW和冷白亮度值Brc,计算机选取BrW和Brc中的较大值M,利用公式计算M与当前亮度Br的比值k,Br预先存储于单片机中;The remote control device sends a brightness adjustment command to the radio frequency module, and the single-chip microcomputer extracts the warm white brightness value BrW and the cool white brightness value Brc of the single-chip microcomputer from the brightness adjustment command, and the computer selects the larger value M of BrW and Brc, and uses the formula Calculate the ratio k of M to the current brightness Br, and Br is pre-stored in the microcontroller;
使W变为kW倍,C变为kC,单片机输出满足占空比为kW的暖白PWM信号给暖白灯串,单片机输出满足占空比为kC的冷白PWM信号给冷白灯串。Make W times kW, C become kC, the microcontroller outputs a warm white PWM signal with a duty cycle of kW to the warm white light string, and the microcontroller outputs a cool white PWM signal with a duty cycle of kC to the cool white light string.
在亮度调节过程中,单片机输出PWM信号给暖白灯串或冷白灯串时,将收到的调节命令中的PWM占空比值A与当前的占空比值B进行比较,如果A>B,则使输出的PWM信号的占空比阶梯型增加,直至A≤B为止;如果A<B,则使输出的PWM信号的占空比阶梯型减小,直至A≥B为止。During the brightness adjustment process, when the microcontroller outputs a PWM signal to a warm white light string or a cool white light string, compare the PWM duty cycle value A in the received adjustment command with the current duty cycle value B, if A>B, Then make the duty cycle of the output PWM signal stepwise increase until A≤B; if A<B, then make the duty cycle of the output PWM signal decrease stepwise until A≥B.
还包括红绿蓝调节过程,包括如下步骤:It also includes the red, green and blue adjustment process, including the following steps:
遥控装置向射频模块发送RGB调光指令,单片机从RGB调光指令中获得红光PWM占空比、绿光PWM占空比和蓝光PWM占空比,单片机输出满足红光PWM占空比、绿光PWM占空比和蓝光PWM占空比的3路PWM信号,并且使3路PWM信号的脉冲依次出现。The remote control device sends an RGB dimming command to the RF module, and the single-chip microcomputer obtains the red light PWM duty cycle, the green light PWM duty cycle and the blue light PWM duty cycle from the RGB dimming command, and the single-chip microcomputer output meets the red light PWM duty cycle, green light PWM duty cycle 3-way PWM signal of light PWM duty cycle and blue-light PWM duty cycle, and make the pulses of 3-way PWM signal appear in sequence.
开关灯过程包括如下步骤:The process of switching lights includes the following steps:
遥控装置向射频模块发送开关灯指令,单片机判断当前LED灯处于关灯状态还是开灯状态,如果开关灯指令与当前开关灯状态一致,则保持当前状态不变;The remote control device sends the switch light command to the radio frequency module, and the single-chip microcomputer judges whether the current LED light is in the light off state or the light on state, and if the switch light command is consistent with the current switch light state, the current state remains unchanged;
如果开关灯指令与当前开关灯状态不一致,单片机保存当前状态,并对暖白LED灯串、冷白LED灯串、红光LED灯串、绿光LED灯串、蓝光LED灯串发出与指令相对应的开关灯PWM信号。If the switch light command is inconsistent with the current switch light state, the MCU saves the current state, and sends a message to warm white LED light strings, cool white LED light strings, red light LED light strings, green light LED light strings, and blue light LED light strings. The command corresponds to the switch light PWM signal.
如图2、图3所示,现有技术中的PWM信号控制时序图中,PWM1信号和PWM2信号的脉冲在时间t1内同时出现,PWM3信号、PWM4信号和PWM5信号的脉冲在时间t1内同时出现,同相位的PWM信号输出会导致输入电压严重跌落,导致很大的纹波电流,产生频闪。更严重的情况则会导致输入端电源进入过载保护,使LED灯无法正常工作。As shown in Fig. 2 and Fig. 3, in the PWM signal control timing diagram in the prior art, the pulses of PWM1 signal and PWM2 signal appear simultaneously within time t1, and the pulses of PWM3 signal, PWM4 signal and PWM5 signal appear simultaneously within time t1 Appeared, the PWM signal output in the same phase will cause a serious drop in the input voltage, resulting in a large ripple current and flicker. In a more serious situation, the power supply at the input end will enter overload protection, making the LED lights unable to work normally.
在本实施例中选用30W/24V的AC/DC转换器,PWM3控制红光,PWM4控制绿光,PWM5控制蓝光;PWM调光频率为1KHz(周期1ms)。In this embodiment, a 30W/24V AC/DC converter is selected, PWM3 controls red light, PWM4 controls green light, and PWM5 controls blue light; PWM dimming frequency is 1KHz (period 1ms).
如图4所示,当单片机接收到白光输出的调光命令后,在一个开关周期内PWM3、PWM4、PWM5依次导通;As shown in Figure 4, when the microcontroller receives the dimming command for white light output, PWM3, PWM4, and PWM5 are turned on sequentially within one switching cycle;
如图5所示,当单片机接收到白光50%亮度的调光命令后,在一个调光周期内,PWM3输出1/6ms高电平而后转低电平,PWM4输出1/6ms高电平而后转低电平,PWM5输出1/6ms高电平而后转低电平。As shown in Figure 5, when the single-chip microcomputer receives the dimming command of 50% brightness of white light, within a dimming cycle, PWM3 outputs 1/6ms high level and then turns low level, PWM4 outputs 1/6ms high level and then Turn to low level, PWM5 output 1/6ms high level and then turn to low level.
如图6所示,当单片机接收到青色(绿色蓝色合成)50%亮度的调光命令后,在一个调光周期内,PWM3输出低电平,PWM4输出1/6ms高电平而后转低电平,PWM5输出1/6ms高电平而后转低电平。As shown in Figure 6, when the MCU receives a cyan (green-blue synthesis) dimming command with 50% brightness, within a dimming cycle, PWM3 outputs a low level, and PWM4 outputs a 1/6ms high level and then turns low Level, PWM5 outputs 1/6ms high level and then turns low level.
本发明的PWM1信号和PWM2信号的脉冲依次出现,PWM3信号、PWM4信号和PWM5信号的脉冲依次出现,从而有效消除了电压跌落和电流跌落。In the present invention, the pulses of PWM1 signal and PWM2 signal appear sequentially, and the pulses of PWM3 signal, PWM4 signal and PWM5 signal appear sequentially, thereby effectively eliminating voltage drop and current drop.
应理解,本实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。It should be understood that this embodiment is only used to illustrate the present invention but not to limit the scope of the present invention. In addition, it should be understood that after reading the teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510924566.8A CN105592587B (en) | 2015-12-12 | 2015-12-12 | The control method of LED |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510924566.8A CN105592587B (en) | 2015-12-12 | 2015-12-12 | The control method of LED |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105592587A true CN105592587A (en) | 2016-05-18 |
| CN105592587B CN105592587B (en) | 2017-07-07 |
Family
ID=55931678
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510924566.8A Expired - Fee Related CN105592587B (en) | 2015-12-12 | 2015-12-12 | The control method of LED |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105592587B (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106604467A (en) * | 2016-12-28 | 2017-04-26 | 重庆金鑫科技产业发展有限公司 | LED light fixture and intelligent illumination system |
| CN107466131A (en) * | 2017-08-16 | 2017-12-12 | 杭州天都照明电器有限公司 | The control method and its system of light modulation toning LED stroboscopic |
| CN107548188A (en) * | 2016-06-24 | 2018-01-05 | 深圳市富满电子集团股份有限公司 | A kind of LED, LED colour temperature adjustment control chips and circuit |
| CN107787095A (en) * | 2016-08-24 | 2018-03-09 | 北京臻迪机器人有限公司 | Light display control method and device |
| WO2019047563A1 (en) * | 2017-09-06 | 2019-03-14 | 深圳市晟碟半导体有限公司 | Apparatus and method for simultaneously adjusting brightness and color temperature, and led lamp |
| CN110087378A (en) * | 2018-07-05 | 2019-08-02 | 杭州涂鸦信息技术有限公司 | Across the category control method and device of lighting apparatus |
| CN111726909A (en) * | 2020-06-05 | 2020-09-29 | 深圳爱克莱特科技股份有限公司 | Seven-color channel control system and method for LED lamp |
| CN113163555A (en) * | 2021-05-07 | 2021-07-23 | 佛山市南海区平翊电子有限公司 | LED intelligent lighting system |
| CN113630929A (en) * | 2021-08-27 | 2021-11-09 | 深圳市优洋科技有限公司 | A dimming color control circuit and LED lighting device |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101950548A (en) * | 2010-09-28 | 2011-01-19 | 中航华东光电有限公司 | Backlight color LED complementary color circuit and complementary color method thereof |
| CN102316648A (en) * | 2011-09-15 | 2012-01-11 | 四川新力光源有限公司 | Light-emitting diode (LED) illuminating device |
| CN102665332A (en) * | 2012-04-19 | 2012-09-12 | 重庆邦桥科技有限公司 | Lighting lamp control device and lighting system |
| CN104066237A (en) * | 2014-05-09 | 2014-09-24 | 浙江凯耀智能照明科技有限公司 | LED driving circuit and driving method |
| US20140312782A1 (en) * | 2013-04-02 | 2014-10-23 | Magnitude Lighting Transformers Inc. | Device and method for controlled led lighting |
| CN104507197A (en) * | 2014-11-12 | 2015-04-08 | 浙江凯耀照明股份有限公司 | A circuit for LED dimming, adjusting color temperature and mixing color and method for controlling the same |
| WO2015074881A1 (en) * | 2013-11-25 | 2015-05-28 | Koninklijke Philips N.V. | A method of controlling a lighting arrangement, a lighting controller and a lighting system |
| CN104812146A (en) * | 2015-05-15 | 2015-07-29 | 北京易方通达科技有限公司 | Light dimming and color regulating control method for wireless controllable multi-path LEDs (Light-Emitting Diodes) connected in parallel to current source |
| CN105578639A (en) * | 2015-12-09 | 2016-05-11 | 浙江凯耀照明股份有限公司 | LED lamp and dimming method thereof |
-
2015
- 2015-12-12 CN CN201510924566.8A patent/CN105592587B/en not_active Expired - Fee Related
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101950548A (en) * | 2010-09-28 | 2011-01-19 | 中航华东光电有限公司 | Backlight color LED complementary color circuit and complementary color method thereof |
| CN102316648A (en) * | 2011-09-15 | 2012-01-11 | 四川新力光源有限公司 | Light-emitting diode (LED) illuminating device |
| CN102665332A (en) * | 2012-04-19 | 2012-09-12 | 重庆邦桥科技有限公司 | Lighting lamp control device and lighting system |
| US20140312782A1 (en) * | 2013-04-02 | 2014-10-23 | Magnitude Lighting Transformers Inc. | Device and method for controlled led lighting |
| WO2015074881A1 (en) * | 2013-11-25 | 2015-05-28 | Koninklijke Philips N.V. | A method of controlling a lighting arrangement, a lighting controller and a lighting system |
| CN104066237A (en) * | 2014-05-09 | 2014-09-24 | 浙江凯耀智能照明科技有限公司 | LED driving circuit and driving method |
| CN104507197A (en) * | 2014-11-12 | 2015-04-08 | 浙江凯耀照明股份有限公司 | A circuit for LED dimming, adjusting color temperature and mixing color and method for controlling the same |
| CN104812146A (en) * | 2015-05-15 | 2015-07-29 | 北京易方通达科技有限公司 | Light dimming and color regulating control method for wireless controllable multi-path LEDs (Light-Emitting Diodes) connected in parallel to current source |
| CN105578639A (en) * | 2015-12-09 | 2016-05-11 | 浙江凯耀照明股份有限公司 | LED lamp and dimming method thereof |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107548188A (en) * | 2016-06-24 | 2018-01-05 | 深圳市富满电子集团股份有限公司 | A kind of LED, LED colour temperature adjustment control chips and circuit |
| CN107548188B (en) * | 2016-06-24 | 2024-05-24 | 富满微电子集团股份有限公司 | LED lamp, LED color temperature adjusting control chip and circuit |
| CN107787095A (en) * | 2016-08-24 | 2018-03-09 | 北京臻迪机器人有限公司 | Light display control method and device |
| CN107787095B (en) * | 2016-08-24 | 2020-02-14 | 北京臻迪机器人有限公司 | Lamplight display control method and device |
| CN106604467A (en) * | 2016-12-28 | 2017-04-26 | 重庆金鑫科技产业发展有限公司 | LED light fixture and intelligent illumination system |
| CN107466131A (en) * | 2017-08-16 | 2017-12-12 | 杭州天都照明电器有限公司 | The control method and its system of light modulation toning LED stroboscopic |
| WO2019047563A1 (en) * | 2017-09-06 | 2019-03-14 | 深圳市晟碟半导体有限公司 | Apparatus and method for simultaneously adjusting brightness and color temperature, and led lamp |
| US11019694B2 (en) | 2017-09-06 | 2021-05-25 | Shenzhen Sendis Semiconductor Co., Ltd | Apparatus and method for simultaneously adjusting brightness and color temperature, and LED lamp |
| CN110087378A (en) * | 2018-07-05 | 2019-08-02 | 杭州涂鸦信息技术有限公司 | Across the category control method and device of lighting apparatus |
| CN111726909A (en) * | 2020-06-05 | 2020-09-29 | 深圳爱克莱特科技股份有限公司 | Seven-color channel control system and method for LED lamp |
| CN113163555A (en) * | 2021-05-07 | 2021-07-23 | 佛山市南海区平翊电子有限公司 | LED intelligent lighting system |
| CN113630929A (en) * | 2021-08-27 | 2021-11-09 | 深圳市优洋科技有限公司 | A dimming color control circuit and LED lighting device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105592587B (en) | 2017-07-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105592587B (en) | The control method of LED | |
| CN105578639B (en) | LED and light-dimming method | |
| CN105101547B (en) | A multi-channel LED constant current drive circuit, drive method and LED drive power supply | |
| US20140265889A1 (en) | Cascade led driver and control methods | |
| CN201310775Y (en) | LED illuminating system capable of adjusting color temperature | |
| CN205232499U (en) | LED lamp convenient to adjust luminance | |
| TW200918997A (en) | Light emitting diode driving device | |
| CN105101543A (en) | Led drive circuit | |
| US20180054868A1 (en) | Dual-output driver for brightness dimming and color tuning | |
| CN103607800A (en) | Intelligent dimming module and intelligent dimming LED lamp and control method thereof | |
| CN104066237B (en) | A kind of LED driving method | |
| CN104507197A (en) | A circuit for LED dimming, adjusting color temperature and mixing color and method for controlling the same | |
| CN106993349A (en) | Dimming module and solid-state light source device | |
| CN103152932A (en) | LED (Light Emitting Diode) drive circuit capable of adjusting light and color temperature | |
| CN202121822U (en) | Led constant current drive circuit | |
| CN105682295A (en) | Light emitting diode (LED) control circuit | |
| CN204291449U (en) | A kind of LED light modulation color-temperature regulating toning colour TV road | |
| CN104053282B (en) | A kind of mixed color LED illuminator and drive circuit thereof | |
| CN203240334U (en) | Intelligent light-adjusting LED (light-emitting diode) lamp | |
| CN205946269U (en) | A smart light switching LED light | |
| CN104467424A (en) | Switching power supply for display panel | |
| CN108430137B (en) | Intelligent bulb based on Bluetooth and control system and control method thereof | |
| CN103327693A (en) | LED lamp intelligent driving device with built-in WIFI and achieving method thereof | |
| CN209824090U (en) | LED drive control circuit compatible with wireless dimming and color modulation and wall switch color modulation | |
| CN103152934A (en) | LED (Light Emitting Diode) drive circuit capable of adjusting light and color temperature |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170707 |