CN104837252B - Method for controlling brightness of LED lamp through single live wire - Google Patents
Method for controlling brightness of LED lamp through single live wire Download PDFInfo
- Publication number
- CN104837252B CN104837252B CN201510229176.9A CN201510229176A CN104837252B CN 104837252 B CN104837252 B CN 104837252B CN 201510229176 A CN201510229176 A CN 201510229176A CN 104837252 B CN104837252 B CN 104837252B
- Authority
- CN
- China
- Prior art keywords
- brightness
- phase
- live wire
- wave
- input
- 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.)
- Expired - Fee Related
Links
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种照明灯具技术,尤其是一种单火线控制LED灯亮度的方法。The invention relates to a lighting lamp technology, in particular to a method for controlling the brightness of an LED lamp with a single live wire.
背景技术Background technique
由于LED灯的非线性特性,LED灯的亮度不能采用调节电压的方式来实现。Due to the nonlinear characteristics of LED lamps, the brightness of LED lamps cannot be realized by adjusting the voltage.
采用可控恒流源来调节LED灯的亮度时,工作电流的改变会带来LED灯的色谱偏移,同时,低亮度下LED灯负载电流也变得很低,会使可控恒流源效率降低及温升增高,损耗在驱动芯片上的功耗越大,从而会损害恒流源及LED光源的寿命。When using a controllable constant current source to adjust the brightness of the LED lamp, the change of the working current will cause the color shift of the LED lamp. At the same time, the load current of the LED lamp becomes very low under low brightness, which will make the controllable constant current source The lower the efficiency and the higher the temperature rise, the greater the power consumption on the driver chip will be, which will damage the life of the constant current source and the LED light source.
采用PWM(脉宽调制)调光方式控制LED灯亮度,可以避免调压方式和调电流方式带来的问题。目前常用的LED灯调光方法有三种:Using PWM (pulse width modulation) dimming method to control the brightness of LED lights can avoid the problems caused by voltage regulation and current regulation. There are three commonly used dimming methods for LED lights:
一是采用遥控器控制。LED灯控制电路装有遥控器接收装置,可以通过遥控器对LED灯进行有级调光或者是无级调光,其缺点是一个LED灯需要配备一个遥控器,造成遥控器数量多,管理麻烦,成本也偏高。One is to use remote control. The LED light control circuit is equipped with a remote control receiving device, and the LED light can be dimmed step by step or steplessly dimmable through the remote control. The disadvantage is that one LED light needs to be equipped with a remote control, resulting in a large number of remote controls and troublesome management. , and the cost is also high.
二是采用数字控制技术。例如,采用DALI(数字可寻址的照明接口)技术,DALI系统软件可对同一强电回路或不同回路上的单个或多个LED灯具进行独立寻址,通过DALI系统软件对单灯或任意的灯组进行精确的调光及开关控制。该方案技术先进,但成本很高,系统除需要布设电力线外,还需要布设控制线。The second is the use of digital control technology. For example, using DALI (Digital Addressable Lighting Interface) technology, the DALI system software can independently address single or multiple LED lamps on the same strong current circuit or on different circuits. The light group can be precisely dimmed and switched on and off. This solution is advanced in technology, but the cost is very high. In addition to the power line, the system also needs to lay out the control line.
三是采用单火线开关通断控制技术。例如,采用NU102专用芯片,即可利用普通墙面开关在规定的时间内的开关动作,实现LED灯的亮度调节。但该方法只能提供4档LED灯的调节亮度,且开关动作有时间要求。The third is to adopt the single live wire switch on-off control technology. For example, using the NU102 dedicated chip, the brightness adjustment of the LED lamp can be realized by using the switch action of the ordinary wall switch within the specified time. However, this method can only provide 4 levels of adjustable brightness of LED lights, and the switching action has a time requirement.
发明内容Contents of the invention
本发明的目的旨在提供一种在不改变现有照明线路布线的情况下,利用单火线对LED灯进行调光的方法。The object of the present invention is to provide a method for dimming an LED lamp by using a single live wire without changing the wiring of the existing lighting circuit.
为达到上述目的,本发明方法由LED灯单火线调光电路实现。In order to achieve the above object, the method of the present invention is realized by a single live wire dimming circuit of the LED lamp.
所述LED灯单火线调光电路由亮度壁控单元、亮度调节驱动单元组成;所述亮度壁控单元设有单火线输入端、单火线输出端,所述单火线输入端连接至交流电源火线;所述亮度调节驱动单元设有火线输入端、零线输入端,其中,所述火线输入端连接至亮度壁控单元的单火线输出端,所述零线输入端连接至交流电源零线;所述交流电源为单相220V交流电。The single live wire dimming of the LED lamp is composed of a brightness wall control unit and a brightness adjustment drive unit; the brightness wall control unit is provided with a single live wire input terminal and a single live wire output terminal, and the single live wire input terminal is connected to the AC power live wire The brightness adjustment drive unit is provided with a live wire input terminal and a neutral line input terminal, wherein the live wire input terminal is connected to the single live wire output terminal of the brightness wall control unit, and the neutral line input terminal is connected to the neutral line of the AC power supply; The AC power supply is single-phase 220V AC.
所述亮度壁控单元通过控制单火线输出端输出电压波形的移相角来发送亮度控制信号,亮度控制信号由引导波和数据波组成。The brightness wall control unit sends a brightness control signal by controlling the phase shift angle of the output voltage waveform of the single live wire output terminal, and the brightness control signal is composed of a pilot wave and a data wave.
所述发送亮度控制信号的方法是:The method for sending the brightness control signal is:
步骤A,设定亮度控制信号的亮度等级为亮度1;Step A, setting the brightness level of the brightness control signal as brightness 1;
步骤B,发出一次亮度控制信号;Step B, sending out a brightness control signal;
步骤C,判断亮度是否发生改变,亮度发生改变,返回步骤B;亮度没有发生改变,维持不发出亮度控制信号状态,返回步骤C。Step C, judging whether the brightness has changed, if the brightness has changed, return to step B; if the brightness has not changed, maintain the state of not sending out a brightness control signal, and return to step C.
所述维持不发出亮度控制信号状态,单火线输出端输出正负半波移相角都为α的单相正弦半波。The state of not sending out the brightness control signal is maintained, and the output terminal of the single live wire outputs a single-phase sine half-wave with both positive and negative half-wave phase shift angles α.
所述引导波为连续y个移相角为β的单相正弦半波,y为大于等于1的整数;所述数据波为x个移相角可单独为α或β的单相正弦半波,x为大于等于2的整数。The guide wave is y consecutive single-phase half-sine waves with a phase-shift angle of β, and y is an integer greater than or equal to 1; the data wave is x single-phase half-sine waves whose phase-shift angles can be independently α or β , x is an integer greater than or equal to 2.
所述亮度控制信号共有亮度1-N,共N个亮度等级;N为大于等于2、小于等于2 x 的整数。N的典型值为8。The brightness control signal has a total brightness of 1- N , and a total of N brightness levels; N is an integer greater than or equal to 2 and less than or equal to 2 x . A typical value of N is 8.
所述移相角β大于移相角α;所述移相角α =4° ,移相角β =30° 。The phase shift angle β is greater than the phase shift angle α; the phase shift angle α = 4°, and the phase shift angle β = 30°.
所述亮度调节驱动单元由亮度信号接收模块接收亮度控制信号并调节LED灯亮度,其方法是:The brightness adjustment drive unit receives the brightness control signal by the brightness signal receiving module and adjusts the brightness of the LED lamp, and the method is:
步骤一,设定亮度控制信号的亮度等级为亮度1;Step 1, setting the brightness level of the brightness control signal as brightness 1;
步骤二,调节LED亮度;Step 2, adjust the brightness of the LED;
步骤三,判断单火线上是否有亮度控制信号;没有亮度控制信号,返回步骤三;有亮度控制信号,转到步骤四;Step 3, judge whether there is a brightness control signal on the single live line; if there is no brightness control signal, return to step 3; if there is a brightness control signal, go to step 4;
步骤四,接收亮度控制信号,确定亮度等级;Step 4, receiving the brightness control signal and determining the brightness level;
步骤五,返回步骤二。Step five, return to step two.
所述判断单火线上是否有亮度控制信号,方法为判断火线输入端是否有引导波;所述接收亮度控制信号,方法是依次接收引导波和数据波;所述确定亮度等级,是将接收的数据波转换为x位二进制亮度码,再由x位二进制亮度码得到亮度等级。The method of judging whether there is a brightness control signal on the single live line is to judge whether there is a guide wave at the input end of the live wire; the method of receiving the brightness control signal is to receive the guide wave and the data wave in sequence; the method of determining the brightness level is to receive the The data wave is converted into an x -bit binary luminance code, and then the luminance level is obtained from the x -bit binary luminance code.
所述引导波和数据波中移相角为β的单相正弦半波采取移相取样脉冲触发方式;所述数据波中移相角为α的单相正弦半波采取提前触发方式;所述单火线输出端输出正负半波移相角都为α的单相正弦半波采取不间断触发方式。The single-phase sine half wave with a phase shift angle of β in the guide wave and the data wave adopts a phase-shift sampling pulse trigger mode; the single-phase sine half wave with a phase shift angle of α in the data wave adopts an advance trigger mode; The single-phase sine half-wave with both positive and negative half-wave phase shift angles at the single live wire output terminal adopts an uninterrupted trigger mode.
所述采取提前触发方式,其触发脉冲的起始时刻在过零点之前,结束时刻在过零点后的α角度之后。The trigger mode is adopted in advance, the starting time of the trigger pulse is before the zero crossing point, and the ending time is after the α angle after the zero crossing point.
所述采取移相取样脉冲触发方式,其触发脉冲的起始时刻在移相取样脉冲之后。The phase-shift sampling pulse trigger mode is adopted, and the start time of the trigger pulse is after the phase-shift sampling pulse.
所述亮度壁控单元由单火线电源模块、整流移相驱动模块、波形取样整形模块、单片机控制模块、触发控制模块、亮度给定模块组成。The brightness wall control unit is composed of a single live wire power supply module, a rectification and phase-shifting drive module, a waveform sampling and shaping module, a single-chip microcomputer control module, a trigger control module, and a brightness setting module.
所述单片机控制模块为壁控单片机最小系统,具有亮度给定信号输入端、移相取样脉冲输入端、触发信号输出端。The single-chip microcomputer control module is the minimum system of the wall-controlled single-chip microcomputer, which has a brightness given signal input terminal, a phase-shift sampling pulse input terminal, and a trigger signal output terminal.
所述整流移相驱动模块为单向晶闸管交流移相开关电路,由单向晶闸管和单相桥式整流电路组成;单相桥式整流电路的2个交流输入端分别为单火线输入端、单火线输出端;单相桥式整流电路的整流输出正端为全波整流端,整流输出负端为公共地;单向晶闸管的阳极、阴极分别连接至全波整流端、公共地。The rectification phase-shift drive module is a unidirectional thyristor AC phase-shift switch circuit, which is composed of a unidirectional thyristor and a single-phase bridge rectifier circuit; The live wire output terminal; the positive terminal of the rectification output of the single-phase bridge rectifier circuit is the full-wave rectification terminal, and the negative terminal of the rectification output is the common ground; the anode and cathode of the one-way thyristor are respectively connected to the full-wave rectification terminal and the common ground.
所述单火线电源模块为DC/DC稳压电路,输入端连接至全波整流端,输出端输出单火线控制电源向单片机控制模块供电;所述DC/DC稳压电路具有宽范围的电压输入特性。The single live wire power supply module is a DC/DC voltage stabilizing circuit, the input end is connected to the full-wave rectification end, and the output end outputs a single live wire control power supply to supply power to the single-chip microcomputer control module; the DC/DC voltage stabilizing circuit has a wide range of voltage input characteristic.
所述波形取样整形模块为电阻分压电路,输入端连接至全波整流端,输出端输出移相取样脉冲;移相取样脉冲由稳压管限幅并连接至单片机控制模块。The waveform sampling and shaping module is a resistance voltage divider circuit, the input end is connected to the full-wave rectification end, and the output end outputs a phase-shifted sampling pulse; the phase-shifted sampling pulse is limited by a voltage regulator tube and connected to the single-chip microcomputer control module.
所述亮度给定模块输出亮度给定信号送至单片机控制模块。The brightness setting module outputs a brightness setting signal and sends it to the single-chip microcomputer control module.
所述触发控制模块的触发信号输入端连接至单片机控制模块,输出端连接至单向晶闸管控制极。The trigger signal input terminal of the trigger control module is connected to the single-chip microcomputer control module, and the output terminal is connected to the control pole of the one-way thyristor.
所述亮度调节驱动单元由单相整流稳压电源模块、亮度信号接收模块、亮度驱动模块组成。The brightness adjustment driving unit is composed of a single-phase rectifying and stabilizing power supply module, a brightness signal receiving module, and a brightness driving module.
所述单相整流稳压电源模块由单相变压器、单相整流桥电路、滤波稳压电路组成;单相变压器输入端连接至火线输入端、零线输入端;单相变压器输出端连接至单相整流桥电路交流输入端;单相整流桥电路整流输出正端为直流工作电源、负端为参考地;滤波稳压电路输入端连接至直流工作电源;滤波稳压电路输出端输出调节直流电源向亮度信号接收模块供电。The single-phase rectifying and stabilizing power supply module is composed of a single-phase transformer, a single-phase rectifying bridge circuit, and a filtering and stabilizing circuit; the input terminal of the single-phase transformer is connected to the input terminal of the live line and the input terminal of the neutral line; The AC input terminal of the phase rectification bridge circuit; the positive terminal of the rectification output of the single-phase rectification bridge circuit is the DC working power supply, and the negative terminal is the reference ground; the input terminal of the filter and voltage stabilizing circuit is connected to the DC working power supply; the output terminal of the filter and stabilizing circuit output regulates the DC power supply Supply power to the brightness signal receiving module.
所述亮度信号接收模块由调节单片机最小系统、亮度信号取样整形电路组成。The brightness signal receiving module is composed of a minimum system for adjusting a single-chip microcomputer, and a brightness signal sampling and shaping circuit.
所述调节单片机最小系统设有脉冲捕捉输入端和PWM脉冲输出端。The minimum system for adjusting the single-chip microcomputer is provided with a pulse catch input terminal and a PWM pulse output terminal.
所述亮度信号取样整形电路由全波整流电路、稳压管限幅电路组成;全波整流电路输入端连接至单相变压器输出端;稳压管限幅电路输入端连接至全波整流电路输出端、输出端连接至调节单片机最小系统的脉冲捕捉输入端。The brightness signal sampling and shaping circuit is composed of a full-wave rectification circuit and a voltage regulator limiting circuit; the input end of the full-wave rectification circuit is connected to the output end of the single-phase transformer; the input end of the voltage regulator limiting circuit is connected to the output of the full-wave rectification circuit The terminal and the output terminal are connected to the pulse catch input terminal of the minimum system for adjusting the single chip microcomputer.
所述LED驱动模块设有直流输入端、LED灯驱动端、PWM亮度调节信号输入端;LED驱动模块的直流输入端连接至直流工作电源,PWM亮度调节信号输入端连接至调节单片机最小系统的PWM脉冲输出端, LED灯驱动端连接至LED灯。The LED driver module is provided with a DC input terminal, an LED lamp driver terminal, and a PWM brightness adjustment signal input terminal; the DC input terminal of the LED driver module is connected to a DC working power supply, and the PWM brightness adjustment signal input terminal is connected to the PWM for adjusting the minimum system of the single chip microcomputer. The pulse output terminal and the LED lamp driving terminal are connected to the LED lamp.
本发明的有益效果是,采用单火线方式控制LED灯亮度,无需遥控器,无需控制线,也不用重新敷设电源线,可以实现普通照明灯的替代升级;LED灯亮度可以根据需要分成任意个等级;亮度控制信号仅在改变亮度时采用小角度移相方式发送,输出由有限个数量的正弦半波组成的亮度控制信号,时间短,不会造成LED灯闪烁。The beneficial effect of the present invention is that the brightness of the LED lamp is controlled by a single live wire, without the need for a remote control, without a control line, and without re-laying the power cord, and can realize the replacement and upgrading of ordinary lighting lamps; the brightness of the LED lamp can be divided into any level according to needs ;The brightness control signal is only sent in a small-angle phase-shifting method when changing the brightness, and the brightness control signal composed of a limited number of half-sine waves is output, and the time is short, which will not cause the LED light to flicker.
附图说明Description of drawings
图1是系统结构框图。Figure 1 is a block diagram of the system structure.
图2是亮度壁控单元结构图。Fig. 2 is a structural diagram of the brightness wall control unit.
图3是亮度壁控单元实施例电路图。Fig. 3 is a circuit diagram of an embodiment of a brightness wall control unit.
图4是亮度壁控单元维持不发送亮度控制信号状态时波形示例。Fig. 4 is an example of a waveform when the brightness wall control unit maintains the state of not sending a brightness control signal.
图5是亮度壁控单元发送亮度控制信号时波形示例。Fig. 5 is an example of a waveform when the brightness wall control unit sends a brightness control signal.
图6是发送亮度控制信号流程图。Fig. 6 is a flow chart of sending brightness control signals.
图7是亮度控制信号发送控制方法。Fig. 7 is a control method for sending a brightness control signal.
图8是亮度调节驱动单元结构图。FIG. 8 is a structural diagram of a brightness adjustment driving unit.
图9是亮度调节驱动单元实施例。Fig. 9 is an embodiment of the brightness adjustment driving unit.
图10是亮度控制信号接收方法。FIG. 10 is a method for receiving a brightness control signal.
具体实施方式detailed description
下面通过附图并结合实施例对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be described in further detail below with reference to the accompanying drawings and examples, but the embodiments of the present invention are not limited thereto.
实现本发明方法的一种LED灯单火线调光电路实施例结构如图1所示,由亮度壁控单元和亮度调节驱动单元串联组成。亮度壁控单元单火线L进,单火线L1出;亮度调节驱动单元火线L1进,零线N出。The structure of an embodiment of an LED lamp single live wire dimming circuit for realizing the method of the present invention is shown in FIG. 1 , which consists of a brightness wall control unit and a brightness adjustment drive unit connected in series. The brightness wall control unit has a single live line L input and a single live line L1 output; the brightness adjustment drive unit has a live line L1 input and a neutral line N output.
亮度壁控单元的结构如图2所示,由单火线电源模块、整流移相驱动模块、波形取样整形模块、单片机控制模块、触发控制模块、亮度给定模块组成。The structure of the brightness wall control unit is shown in Figure 2. It consists of a single live wire power supply module, a rectification phase-shifting drive module, a waveform sampling and shaping module, a single-chip microcomputer control module, a trigger control module, and a brightness setting module.
亮度壁控单元实施例电路如图3所示。The embodiment circuit of the brightness wall control unit is shown in FIG. 3 .
整流移相驱动模块为单向晶闸管交流移相开关电路,由二极管D01、二极管D02、二极管D03、二极管D04、单向晶闸管V01组成。二极管D01、二极管D02、二极管D03、二极管D04组成单相桥式整流电路,其2个交流输入端分别为单火线输入端L、单火线输出端L1。单相桥式整流电路的整流输出正端为全波整流端A,整流输出负端为公共地。单向晶闸管V01的阳极、阴极分别连接至全波整流端A、公共地。The rectification phase-shift driving module is a one-way thyristor AC phase-shift switch circuit, which is composed of diode D01, diode D02, diode D03, diode D04, and one-way thyristor V01. Diode D01, diode D02, diode D03, and diode D04 form a single-phase bridge rectifier circuit, and its two AC input terminals are single live wire input end L and single live wire output end L1. The positive terminal of the rectification output of the single-phase bridge rectifier circuit is the full-wave rectification terminal A, and the negative terminal of the rectification output is the common ground. The anode and cathode of the one-way thyristor V01 are respectively connected to the full-wave rectification terminal A and the common ground.
单火线电源模块为DC/DC稳压电路。图3实施例中,单火线电源模块由DC/DC稳压器U1、三端稳压器U2、电阻R1、二极管D1、电容C1、电容C2、电容C3、电容C4组成,DC/DC稳压器U1的型号是DY10、三端稳压器U2的型号是HT7333。电容C1、电阻R1、电容C2组成π型滤波电路;π型滤波电路的输入连接至二极管D1阴极、输出连接至DC/DC稳压器U1输入端;二极管D1阳极连接至全波整流端A;三端稳压器U2输入端连接至DC/DC稳压器U1输出端、输出端为单火线控制电源VDD;电容C3 为DC/DC稳压器U1的输出滤波电容,电容C4为三端稳压器U2的输出滤波电容。The single live wire power supply module is a DC/DC voltage stabilizing circuit. In the embodiment shown in Figure 3, the single live wire power supply module is composed of a DC/DC regulator U1, a three-terminal regulator U2, a resistor R1, a diode D1, a capacitor C1, a capacitor C2, a capacitor C3, and a capacitor C4. The model of the regulator U1 is DY10, and the model of the three-terminal regulator U2 is HT7333. Capacitor C1, resistor R1, and capacitor C2 form a π-type filter circuit; the input of the π-type filter circuit is connected to the cathode of the diode D1, and the output is connected to the input terminal of the DC/DC regulator U1; the anode of the diode D1 is connected to the full-wave rectifier terminal A; The input terminal of the three-terminal regulator U2 is connected to the output terminal of the DC/DC regulator U1, and the output terminal is the single live wire control power supply VDD; the capacitor C3 is the output filter capacitor of the DC/DC regulator U1, and the capacitor C4 is the three-terminal stabilizer The output filter capacitor of the transformer U2.
HT7333输出+3.3V电压。如果DC/DC稳压器U1的输出电压满足单片机控制模块的供电要求,三端稳压器U2可以省略。DC/DC稳压器U1还可以选择其他具有宽范围的电压输入特性的DC/DC稳压器。The HT7333 outputs +3.3V voltage. If the output voltage of the DC/DC voltage regulator U1 meets the power supply requirements of the microcontroller control module, the three-terminal voltage regulator U2 can be omitted. The DC/DC voltage regulator U1 can also select other DC/DC voltage regulators with a wide range of voltage input characteristics.
波形取样整形模块为电阻分压电路。图3实施例中,波形取样整形模块由电阻R01、电阻R02、稳压管DW01组成。电阻R01、电阻R02串联联结点为输出端,输出移相取样脉冲;电阻R01的另外一端为输入端,连接至全波整流端A。稳压管DW01并联在电阻R02两端,对移相取样脉冲进行限幅。The waveform sampling and shaping module is a resistor divider circuit. In the embodiment shown in Fig. 3, the waveform sampling and shaping module is composed of a resistor R01, a resistor R02, and a regulator tube DW01. The series connection point of the resistor R01 and the resistor R02 is the output terminal, which outputs the phase-shifted sampling pulse; the other terminal of the resistor R01 is the input terminal, which is connected to the full-wave rectification terminal A. The voltage regulator tube DW01 is connected in parallel to both ends of the resistor R02 to limit the phase-shifted sampling pulse.
图3实施例中,触发控制模块由三极管V1、稳压管DW1、电阻R2、电阻R3、电阻R4、电阻R5组成;三极管V1集电极串联电阻R2后连接至稳压管DW1阳极,稳压管DW1阴极连接至全波整流端A;三极管V1发射极经电阻R3连接至公共地;三极管V1基极分别连接至电阻R4、电阻R5的一端;电阻R4的另外一端连接至公共地;三极管V1发射极为触发信号输出端,连接至单向晶闸管V01控制极;电阻R5的另外一端为触发信号输入端。In the embodiment shown in Figure 3, the trigger control module is composed of triode V1, voltage regulator DW1, resistor R2, resistor R3, resistor R4, and resistor R5; the collector of transistor V1 is connected to the anode of voltage regulator DW1 in series with resistor R2, and the voltage regulator The cathode of DW1 is connected to the full-wave rectifier terminal A; the emitter of the triode V1 is connected to the common ground through the resistor R3; the base of the triode V1 is connected to one end of the resistor R4 and the resistor R5 respectively; the other end of the resistor R4 is connected to the common ground; the emitter of the triode V1 The very trigger signal output end is connected to the control pole of the one-way thyristor V01; the other end of the resistor R5 is the trigger signal input end.
图3实施例中,亮度给定模块采用脉冲电位器WP。脉冲电位器WP的公共端COM连接至公共地。脉冲电位器WP旋转时,其脉冲输出端SL、脉冲输出端SR输出相位相差90°的脉冲。In the embodiment shown in Fig. 3, the brightness setting module adopts the pulse potentiometer WP. The common terminal COM of the pulse potentiometer WP is connected to the common ground. When the pulse potentiometer WP rotates, its pulse output terminal SL and pulse output terminal SR output pulses with a phase difference of 90°.
单片机控制模块为壁控单片机最小系统。图3实施例中,壁控单片机最小系统由壁控单片机U3、晶体振荡器XT1组成,壁控单片机U3的型号是MSP430G2553。图3实施例中,壁控单片机U3的P2.0、P2.1是亮度给定信号输入端,分别连接至脉冲电位器WP的脉冲输出端SL、脉冲输出端SR;P2.2是移相取样脉冲输入端,连接至波形取样整形模块为电阻分压电路。图3实施例中,波形取样整形模块的移相取样脉冲输出端;P1.1是触发信号输出端,连接至触发控制模块的触发信号输入端。The single-chip microcomputer control module is the smallest system of the wall-controlled single-chip microcomputer. In the embodiment shown in Fig. 3, the minimum system of the wall-controlled single-chip microcomputer is composed of the wall-controlled single-chip microcomputer U3 and the crystal oscillator XT1, and the model of the wall-controlled single-chip microcomputer U3 is MSP430G2553. In the embodiment shown in Fig. 3, P2.0 and P2.1 of the wall control microcontroller U3 are the input terminals of the given brightness signal, which are respectively connected to the pulse output terminal SL and the pulse output terminal SR of the pulse potentiometer WP; P2.2 is the phase shift The sampling pulse input terminal is connected to the waveform sampling shaping module as a resistor divider circuit. In the embodiment of Fig. 3, the phase-shift sampling pulse output terminal of the waveform sampling shaping module; P1.1 is the trigger signal output terminal, which is connected to the trigger signal input terminal of the trigger control module.
亮度壁控单元通过控制单火线输出端L1输出电压波形的移相角来发送亮度控制信号。亮度控制信号中,亮度等级用不同移相角的单相正弦半波表示进位计数制中的不同符号,连续多个不同移相角的单相正弦半波组成数据波,与数据波对应的进位计数制数据表示亮度等级;亮度控制信号共有亮度1-N,共N个亮度等级;N为大于等于2的整数,典型值为8。The brightness wall control unit sends the brightness control signal by controlling the phase shift angle of the output voltage waveform of the single live wire output terminal L1. In the brightness control signal, single-phase sine half-waves with different phase-shift angles are used to represent different symbols in the carry counting system for the brightness level, and multiple single-phase sine-half waves with different phase-shift angles in succession form a data wave, and the carry corresponding to the data wave Counting data indicates the brightness level; the brightness control signal has a total brightness of 1- N , and a total of N brightness levels; N is an integer greater than or equal to 2, and the typical value is 8.
亮度控制信号只有在旋转脉冲电位器WP,有亮度给定信号的情况下才由亮度壁控单元控制发送。亮度壁控单元维持不发送亮度控制信号状态时,单片机控制模块采取不间断触发方式,持续发出触发信号。亮度壁控单元各关键点波形如图4所示。The brightness control signal is controlled and sent by the brightness wall control unit only when the pulse potentiometer WP is rotated and there is a brightness given signal. When the brightness wall control unit maintains the state of not sending brightness control signals, the single-chip microcomputer control module adopts an uninterrupted trigger mode to continuously send out trigger signals. The waveforms of key points of the brightness wall control unit are shown in Figure 4.
交流电源过零时,单向晶闸管V01关断。交流电源过零后,尽管单片机控制模块持续发出不间断的触发信号,但只有当全波整流端A的电压大于稳压管DW1的稳压值,三极管V1才导通,单向晶闸管V01才能被触发导通。因此,单火线输出端L1的交流电压波形如图4(a)所示,每一个半波都在一个移相角α处触发导通。全波整流端A的电压波形如图4(b)所示。全波整流端A的电压波形为窄电压脉冲,其脉冲幅度由稳压管DW1的稳压值决定,其作用是为单火线电源模块提供开态供电电压。由于DC/DC稳压器DY10在12V直流电压输入时,输出电压仍可在5.8V 以上,稳压管DW1的稳压值大于12V即可。当稳压管DW1的稳压值取20V时,移相角α = 4°。When the AC power crosses zero, the one-way thyristor V01 is turned off. After the AC power supply crosses zero, although the single-chip control module continues to send out uninterrupted trigger signals, only when the voltage of the full-wave rectifier terminal A is greater than the voltage regulation value of the voltage regulator DW1, the transistor V1 is turned on, and the one-way thyristor V01 can be activated. trigger conduction. Therefore, the AC voltage waveform of the single live wire output terminal L1 is shown in Figure 4(a), and each half-wave triggers conduction at a phase shift angle α. The voltage waveform of the full-wave rectifier terminal A is shown in Figure 4(b). The voltage waveform of the full-wave rectifier terminal A is a narrow voltage pulse, and its pulse amplitude is determined by the voltage regulation value of the regulator tube DW1, and its function is to provide the open-state power supply voltage for the single live wire power module. Since the output voltage of the DC/DC voltage regulator DY10 can still be above 5.8V when the DC voltage is input at 12V, it is sufficient that the voltage regulation value of the voltage regulator tube DW1 is greater than 12V. When the regulated voltage value of the regulator tube DW1 is 20V, the phase shift angle α = 4°.
亮度壁控单元发送亮度控制信号时波形示例如图5所示。图5发送的是亮度4的亮度控制信号。图5(a)为发送过程中单火线输出端L1的交流电压波形,图5(b)为发送过程中全波整流端A的电压波形。图5(c)为发送过程中移相取样脉冲的脉冲示意图,绘制图5(c)时,脉冲9、脉冲10、脉冲11、脉冲12、脉冲13都做了理想化处理,即信号低于高电平阈值时作低电平处理,高于高电平阈值时作高电平处理。Figure 5 shows an example of the waveform when the brightness wall control unit sends the brightness control signal. Figure 5 sends the brightness control signal of brightness 4. Figure 5(a) is the AC voltage waveform of the single live wire output terminal L1 during the transmission process, and Figure 5(b) is the voltage waveform of the full-wave rectifier terminal A during the transmission process. Figure 5(c) is a pulse schematic diagram of the phase-shifted sampling pulse in the transmission process. When drawing Figure 5(c), pulse 9, pulse 10, pulse 11, pulse 12, and pulse 13 have been idealized, that is, the signal is lower than When the high-level threshold is high, it is low-level processing, and when it is higher than the high-level threshold, it is high-level processing.
需要发出一次亮度控制信号时,单片机控制模块停止持续发出不间断的触发信号。图5(a)中,脉冲1为停止持续发出不间断的触发信号前的一个脉冲,在脉冲1后单片机控制模块停止持续发出不间断的触发信号,进入可控触发状态。可控触发状态下,单片机控制模块的触发方式有两种,一种是提前触发方式,移相角为α ;一种是移相取样脉冲触发方式,移相角为β。When it is necessary to send a brightness control signal, the single-chip microcomputer control module stops continuously sending uninterrupted trigger signals. In Figure 5(a), pulse 1 is a pulse before the continuous sending of uninterrupted trigger signals. After pulse 1, the MCU control module stops sending continuous uninterrupted trigger signals and enters the controllable trigger state. In the controllable trigger state, there are two trigger modes for the single-chip microcomputer control module, one is the trigger mode in advance, and the phase shift angle is α; the other is the phase shift sampling pulse trigger mode, and the phase shift angle is β.
图5(a)中,脉冲2、脉冲3、脉冲4、脉冲5、脉冲6、脉冲7组成发送一次亮度控制信号在单火线输出端L1的交流电压波形,其中,脉冲2、脉冲3、脉冲4为3个移相角为β的引导波,脉冲5、脉冲6、脉冲7为移相角为α或β的数据波。数据波中,移相角为α代表二进制位0,移相角为β代表二进制位1,脉冲5、脉冲6、脉冲7组成3位二进制亮度码,亮度码的范围是000-111,代表的亮度等级范围是亮度1-8。图5(a)中,亮度码为011,代表的亮度等级是亮度4。数据波的个数也可以是3之外,大于等于2的其他值,例如,数据波的个数为4时,可以组成4位二进制亮度码,代表的亮度等级范围最大可以是16级,即亮度1-16。数据波的个数为x时,代表的亮度等级范围最大可以达到2 x 级;x为大于等于2的整数。引导波的个数也可以是3之外其他值y,y为大于等于1的整数。In Figure 5(a), pulse 2, pulse 3, pulse 4, pulse 5, pulse 6, and pulse 7 form an AC voltage waveform that sends a brightness control signal at the output terminal L1 of the single live wire, among which, pulse 2, pulse 3, pulse 4 is three guide waves with a phase shift angle of β, and pulse 5, pulse 6, and pulse 7 are data waves with a phase shift angle of α or β. In the data wave, the phase shift angle of α represents binary bit 0, the phase shift angle of β represents binary bit 1, pulse 5, pulse 6, and pulse 7 form a 3-bit binary brightness code, and the range of brightness code is 000-111, representing The brightness level range is brightness 1-8. In Figure 5(a), the brightness code is 011, representing brightness level 4. The number of data waves can also be other than 3 and other values greater than or equal to 2. For example, when the number of data waves is 4, a 4-bit binary brightness code can be formed, and the maximum range of brightness levels represented can be 16 levels, namely Brightness 1-16. When the number of data waves is x , the represented brightness level range can reach 2 x levels at most; x is an integer greater than or equal to 2. The number of guiding waves can also be y other than 3, and y is an integer greater than or equal to 1.
一次亮度控制信号发送结束后,单片机控制模块又开始持续发出不间断的触发信号。图5(a)中,脉冲8即为持续发出不间断的触发信号之后的第一个移相角为α的脉冲。After one brightness control signal is sent, the single-chip microcomputer control module starts to continuously send out uninterrupted trigger signals. In Figure 5(a), pulse 8 is the first pulse with a phase shift angle of α after the uninterrupted trigger signal is issued continuously.
采取移相取样脉冲触发方式时,其触发脉冲的起始时刻在移相取样脉冲之后。移相取样脉冲触发方式原理如下:单片机控制模块不发出触发信号后的交流电源过零点,单向晶闸管V01关断。过零后,即使到达移相角α处,因为没有触发信号,单向晶闸管V01仍然关断,全波整流端A的电压持续上升。合理选择波形取样整形模块中电阻R01、电阻R02的分压比,使到达移相角β处时,全波整流端A的电压上升到使分压后移相取样脉冲信号取样点B的移相取样脉冲从低电平变成高电平。单片机控制模块接收到高电平的移相取样脉冲信号后,发出触发信号,单向晶闸管V01导通,移相取样脉冲消失,变为低电平,该次移相取样脉冲触发过程结束。移相角β典型值为30°,设移相取样脉冲的高电平阈值为1.5V,则电阻R01取值为电阻R02的100倍。图4中,由于全波整流端A的电压峰值小,图4(c)中没有移相取样脉冲。When the phase-shift sampling pulse trigger mode is adopted, the start time of the trigger pulse is after the phase-shift sampling pulse. The principle of the phase-shift sampling pulse trigger mode is as follows: the one-way thyristor V01 is turned off when the AC power zero crosses after the single-chip control module does not send out a trigger signal. After zero crossing, even if it reaches the phase shift angle α, because there is no trigger signal, the one-way thyristor V01 is still turned off, and the voltage of the full-wave rectification terminal A continues to rise. Reasonably select the voltage division ratio of resistor R01 and resistor R02 in the waveform sampling and shaping module, so that when the phase shift angle β is reached, the voltage of the full-wave rectifier terminal A rises to the phase shift of the sampling point B of the phase shift sampling pulse signal after voltage division The sampling pulse changes from low level to high level. After receiving the high-level phase-shift sampling pulse signal, the single-chip control module sends a trigger signal, the one-way thyristor V01 is turned on, the phase-shift sampling pulse disappears, and becomes low level, and the phase-shift sampling pulse trigger process ends. The typical value of the phase-shift angle β is 30°, and the high-level threshold of the phase-shift sampling pulse is set to 1.5V, and the value of the resistor R01 is 100 times that of the resistor R02. In Fig. 4, because the voltage peak value of the full-wave rectification terminal A is small, there is no phase-shifting sampling pulse in Fig. 4(c).
需要发出一次亮度控制信号时,单片机控制模块首先发出移相角为β的引导波。在图5的实施例中,3个移相角为β的引导波均采取移相取样脉冲触发方式。When a brightness control signal needs to be sent out, the single-chip microcomputer control module first sends out a guide wave with a phase shift angle of β. In the embodiment shown in Fig. 5, the three guide waves with a phase shift angle of β are all triggered by a phase shift sampling pulse.
数据波中,既有移相角为α的数据波,也有移相角为β的数据波。需要发出移相角为β的数据波时,也采取移相取样脉冲触发方式,单片机控制模块在交流电源过零点之前不发出触发信号。过零后到达移相角β处时,单片机控制模块接收到高电平的移相取样脉冲信号后,再发出触发信号。需要发出移相角为α的数据波时,单片机控制模块采取提前触发方式,在交流电源过零点之前即发出触发信号,触发信号持续到交流电源过零点再经过移相角α之后结束;交流电源过零点之前发出触发信号的时刻点,由单片机根据接收到的触发最后一个引导波的移相取样脉冲信号时刻推算得到。Among the data waves, there are data waves with a phase shift angle of α and data waves with a phase shift angle of β. When it is necessary to send a data wave with a phase-shift angle of β, the phase-shift sampling pulse trigger method is also adopted, and the single-chip microcomputer control module does not send a trigger signal before the zero-crossing point of the AC power supply. When reaching the phase-shift angle β after crossing zero, the single-chip microcomputer control module sends a trigger signal after receiving a high-level phase-shift sampling pulse signal. When it is necessary to send a data wave with a phase shift angle of α, the single-chip control module adopts an early trigger method, and sends a trigger signal before the zero crossing of the AC power supply, and the trigger signal lasts until the zero crossing of the AC power supply and ends after passing the phase shift angle α; The time point at which the trigger signal is sent out before the zero crossing point is calculated by the single-chip microcomputer according to the received time of the phase-shifted sampling pulse signal triggering the last guide wave.
数据波中,移相角为α的单相正弦半波采取提前触发方式,提前触发方式的触发脉冲起始时刻在过零点之前,结束时刻在过零后的α角度之后。以图5为例,第1个数据波的移相角为α,需要采取提前触发方式,其触发的时刻在最后一个引导波的移相取样脉冲信号(即脉冲11)之后,下一次交流电源过零点之前;以移相角β为典型值30°为例,提前触发的起始时刻可以在30°至180°之间,换算成时间,提前触发的起始时刻可以在最后一个引导波的移相取样脉冲信号之后的0至8.33ms之间。例如,单片机控制模块在最后一个引导波的移相取样脉冲信号之后的5ms发出一个持续时间5ms的触发信号,或者是在最后一个引导波的移相取样脉冲信号之后的5ms发出一个持续时间6ms的触发信号,或者是在最后一个引导波的移相取样脉冲信号之后的7ms发出一个持续时间3ms的触发信号,等等,均满足第1个数据波提前触发方式的要求。In the data wave, the single-phase sine half wave with a phase shift angle of α is triggered in advance, and the trigger pulse in the early trigger mode starts before the zero-crossing point and ends after the α angle after the zero-crossing. Taking Figure 5 as an example, the phase shift angle of the first data wave is α, and the trigger mode needs to be adopted in advance. Before the zero-crossing point; taking the phase shift angle β as a typical value of 30° as an example, the starting moment of the early triggering can be between 30° and 180°, converted into time, the starting moment of the early triggering can be at the end of the last guide wave Between 0 and 8.33ms after the phase-shifted sampling pulse signal. For example, the MCU control module sends a trigger signal with a duration of 5ms 5ms after the phase-shift sampling pulse signal of the last guide wave, or sends a trigger signal with a duration of 6ms 5ms after the phase-shift sampling pulse signal of the last guide wave The trigger signal, or sending a trigger signal with a duration of 3ms 7ms after the phase-shifted sampling pulse signal of the last guide wave, etc., all meet the requirements of the first data wave trigger mode in advance.
如果不是第1个数据波的移相角为α,是后面的其他数据波的移相角为α,则只需要确定是第几个数据波的移相角为α。如果第2个数据波的移相角为α,则其提前触发的起始时刻比第1个数据波的提前触发的起始时刻后移10ms;如果第3个数据波的移相角为α,则其提前触发的起始时刻比第1个数据波的提前触发的起始时刻后移20ms,依此类推。例如,第2个数据波的移相角为α时,单片机控制模块在最后一个引导波的移相取样脉冲信号之后的15ms发出一个持续时间5ms的触发信号即满足第2个数据波提前触发方式的要求。If the phase shift angle of the first data wave is not α, but the phase shift angle of other data waves is α, it is only necessary to determine which data wave has a phase shift angle of α. If the phase shift angle of the second data wave is α, the start time of its early trigger is 10ms later than the start time of the first data wave; if the phase shift angle of the third data wave is α , then the start time of the early trigger is 20ms behind the start time of the first data wave, and so on. For example, when the phase-shift angle of the second data wave is α, the MCU control module sends a trigger signal with a duration of 5ms 15ms after the phase-shift sampling pulse signal of the last guide wave, which satisfies the early trigger mode of the second data wave requirements.
单片机控制模块发出一次亮度控制信号的流程如图6所示,步骤如下:The process of sending a brightness control signal by the single-chip microcomputer control module is shown in Figure 6, and the steps are as follows:
步骤1,停止持续发出不间断的触发信号,退出维持不发送亮度控制信号状态;Step 1, stop continuously sending out uninterrupted trigger signals, and exit the state of maintaining no brightness control signal;
步骤2,发送引导波;Step 2, send the guide wave;
步骤3,发送数据波;Step 3, send data waves;
步骤4,结束亮度控制信号发送,进入维持不发送亮度控制信号状态。In step 4, the sending of the brightness control signal is ended, and the state of maintaining no sending of the brightness control signal is entered.
亮度壁控单元发送亮度控制信号的方法如图7所示,包括:The method for sending the brightness control signal by the brightness wall control unit is shown in Figure 7, including:
步骤A,设定亮度控制信号的亮度等级为亮度1;Step A, setting the brightness level of the brightness control signal as brightness 1;
步骤B,发出一次亮度控制信号;Step B, sending out a brightness control signal;
步骤C,判断亮度是否发生改变,亮度发生改变,返回步骤B;亮度没有发生改变,维持不发出亮度控制信号状态,返回步骤C。Step C, judging whether the brightness has changed, if the brightness has changed, return to step B; if the brightness has not changed, maintain the state of not sending out a brightness control signal, and return to step C.
亮度调节驱动单元实施例的结构如图8所示,由单相整流稳压电源模块、亮度信号接收模块、亮度驱动模块组成。The structure of an embodiment of the brightness adjustment driving unit is shown in FIG. 8 , which consists of a single-phase rectification and voltage stabilization power supply module, a brightness signal receiving module, and a brightness driving module.
单相整流稳压电源模块由单相变压器、单相整流桥电路、滤波稳压电路组成;单相变压器输入端连接至火线输入端L1、零线输入端N;单相变压器输出端连接至单相整流桥电路交流输入端;单相整流桥电路整流输出正端为直流工作电源、负端为参考地;滤波稳压电路输入端连接至直流工作电源;滤波稳压电路输出调节直流电源,向亮度信号接收模块供电。The single-phase rectification and voltage stabilization power supply module is composed of a single-phase transformer, a single-phase rectification bridge circuit, and a filter and voltage stabilization circuit; the input terminal of the single-phase transformer is connected to the input terminal L1 of the live line and the input terminal N of the neutral line; The AC input terminal of the phase rectification bridge circuit; the positive terminal of the rectification output of the single-phase rectification bridge circuit is the DC working power supply, and the negative terminal is the reference ground; the input terminal of the filter and voltage stabilizing circuit is connected to the DC working power supply; the output of the filter and stabilizing circuit adjusts the DC power supply to The brightness signal receiving module supplies power.
亮度信号接收模块由调节单片机最小系统、亮度信号取样整形电路组成,调节单片机最小系统设有脉冲捕捉输入端和PWM脉冲输出端。The brightness signal receiving module is composed of a minimum system for adjusting single-chip microcomputer and a circuit for sampling and shaping brightness signals. The minimum system for adjusting single-chip microcomputer is provided with a pulse capture input terminal and a PWM pulse output terminal.
亮度信号取样整形电路由全波整流电路、稳压管限幅电路组成;全波整流电路输入端连接至单相变压器输出端。稳压管限幅电路输入端连接至全波整流电路输出端、输出端连接至单片机最小系统的脉冲捕捉输入端。The brightness signal sampling and shaping circuit is composed of a full-wave rectification circuit and a regulator tube limiting circuit; the input end of the full-wave rectification circuit is connected to the output end of a single-phase transformer. The input end of the regulator tube limiting circuit is connected to the output end of the full-wave rectification circuit, and the output end is connected to the pulse catch input end of the minimum system of the single-chip microcomputer.
LED驱动模块设有直流输入端、LED灯驱动端、PWM亮度调节信号输入端。LED驱动模块的直流输入端连接至直流工作电源,PWM亮度调节信号输入端连接至调节单片机的PWM脉冲输出端, LED灯驱动端连接至LED灯。The LED driving module is provided with a DC input terminal, an LED lamp driving terminal, and a PWM brightness adjustment signal input terminal. The DC input terminal of the LED driver module is connected to the DC working power supply, the PWM brightness adjustment signal input terminal is connected to the PWM pulse output terminal of the single-chip microcomputer, and the LED lamp driving terminal is connected to the LED lamp.
亮度调节驱动单元实施例如图9所示。An embodiment of the brightness adjustment driving unit is shown in FIG. 9 .
图9所示实施例中,单相整流稳压电源模块由单相变压器TC、二极管D05、二极管D06、二极管D07、二极管D08、电容C5、电阻R03、稳压管DW02组成。其中,二极管D05、二极管D06、二极管D07、二极管D08组成单相整流桥电路,电容C5、电阻R03、稳压管DW02组成滤波稳压电路。电容C5对单相整流桥输出滤波得到直流工作电源VIN,稳压管DW02上输出调节直流电源VCC。In the embodiment shown in FIG. 9 , the single-phase rectifying and stabilizing power supply module is composed of single-phase transformer TC, diode D05, diode D06, diode D07, diode D08, capacitor C5, resistor R03, and regulator tube DW02. Among them, the diode D05, the diode D06, the diode D07, and the diode D08 form a single-phase rectifier bridge circuit, and the capacitor C5, the resistor R03, and the regulator tube DW02 form a filter and voltage stabilizing circuit. The capacitor C5 filters the output of the single-phase rectifier bridge to obtain the DC working power VIN, and the regulator DW02 outputs the regulated DC power VCC.
图9所示实施例中,亮度信号接收模块由调节单片机U4、晶体振荡器XT2、二极管D09、二极管D10、电阻R6、电阻R7、稳压管DW2组成。其中,调节单片机U4、晶体振荡器XT2组成单片机最小系统,调节单片机U4的P2.0为脉冲捕捉输入端,P1.2为PWM脉冲输出端。二极管D09、二极管D10组成全波整流电路,二极管D09、二极管D10的阳极分别连接至单相变压器输出端L2、N2,阴极联结为全波整流电路输出端。电阻R6、电阻R7、稳压管DW2组成稳压管限幅电路。电阻R6的一端与稳压管DW2阴极联结为稳压管限幅电路输出端并连接至调节单片机U4的脉冲捕捉输入端。电阻R6的另外一端为稳压管限幅电路输入端并连接至全波整流电路输出端。稳压管DW2阳极连接至参考地,电阻R7并联在稳压管DW2的两端。In the embodiment shown in FIG. 9 , the brightness signal receiving module is composed of an adjusting single-chip microcomputer U4, a crystal oscillator XT2, a diode D09, a diode D10, a resistor R6, a resistor R7, and a regulator tube DW2. Among them, the single-chip microcomputer U4 and the crystal oscillator XT2 form the minimum system of the single-chip microcomputer. The P2.0 of the single-chip microcomputer U4 is the pulse capture input terminal, and the P1.2 is the PWM pulse output terminal. The diode D09 and the diode D10 form a full-wave rectification circuit, the anodes of the diode D09 and the diode D10 are respectively connected to the output terminals L2 and N2 of the single-phase transformer, and the cathodes are connected to the output terminal of the full-wave rectification circuit. Resistor R6, resistor R7, and voltage regulator tube DW2 form a voltage regulator tube limiting circuit. One end of the resistor R6 is connected with the cathode of the regulator tube DW2 to be the output terminal of the regulator tube limiter circuit and connected to the pulse catch input terminal of the regulating single-chip microcomputer U4. The other end of the resistor R6 is the input end of the regulator tube limiting circuit and is connected to the output end of the full-wave rectification circuit. The anode of the voltage regulator DW2 is connected to the reference ground, and the resistor R7 is connected in parallel with both ends of the voltage regulator DW2.
调节单片机U4的型号是MSP430G2553。壁控单片机U3、调节单片机U4还可以选择其他的MSP430系列的低功耗单片机。The model of the regulating microcontroller U4 is MSP430G2553. The wall control single-chip microcomputer U3 and the adjustment single-chip microcomputer U4 can also choose other MSP430 series low-power single-chip microcomputers.
图9所示实施例中,亮度驱动模块由LED恒流驱动器U5、电感LG、电阻R8、快恢复二极管D2组成,LED恒流驱动器的型号为PT4115。电阻R8的两端分别连接至LED恒流驱动器U5的电源电压端VIN、输出电流感应端SEN;快恢复二极管D2阴极连接至LED恒流驱动器U5的电源电压端VIN、阳极连接至LED恒流驱动器U5的开关输出端SW;电感LG的一端连接至LED恒流驱动器U5的开关输出端SW;LED恒流驱动器U5的输出电流感应端SEN和电感LG另外一端为LED灯驱动端;LED恒流驱动器U5的电源电压端VIN为LED驱动模块的直流输入端;LED恒流驱动器U5的调光控制端DIM为PWM亮度调节信号输入端。In the embodiment shown in FIG. 9 , the brightness driving module is composed of an LED constant current driver U5, an inductor LG, a resistor R8, and a fast recovery diode D2. The model of the LED constant current driver is PT4115. The two ends of the resistor R8 are respectively connected to the power supply voltage terminal VIN of the LED constant current driver U5, and the output current sensing terminal SEN; the cathode of the fast recovery diode D2 is connected to the power supply voltage terminal VIN of the LED constant current driver U5, and the anode is connected to the LED constant current driver. The switch output terminal SW of U5; one end of the inductor LG is connected to the switch output terminal SW of the LED constant current driver U5; the output current sensing terminal SEN of the LED constant current driver U5 and the other end of the inductor LG is the LED lamp driving terminal; the LED constant current driver The power supply voltage terminal VIN of U5 is the DC input terminal of the LED driver module; the dimming control terminal DIM of the LED constant current driver U5 is the input terminal of the PWM brightness adjustment signal.
亮度调节驱动单元由亮度信号接收模块接收亮度控制信号并调节LED灯亮度,其方法是:The brightness adjustment drive unit receives the brightness control signal by the brightness signal receiving module and adjusts the brightness of the LED lamp, and the method is:
步骤一,设定亮度控制信号的亮度等级为亮度1;Step 1, setting the brightness level of the brightness control signal as brightness 1;
步骤二,调节LED亮度;Step 2, adjust the brightness of the LED;
步骤三,判断单火线上是否有亮度控制信号;没有亮度控制信号,返回步骤三;有亮度控制信号,转到步骤四;Step 3, judge whether there is a brightness control signal on the single live line; if there is no brightness control signal, return to step 3; if there is a brightness control signal, go to step 4;
步骤四,接收亮度控制信号;Step 4, receiving a brightness control signal;
步骤五,返回步骤二。Step five, return to step two.
判断单火线上是否有亮度控制信号,方法为判断火线输入端L1是否有移相角为β的单相正弦半波;接收亮度控制信号,方法是接收引导波后,再接收数据波。引导波为连续y个移相角为β的单相正弦半波,数据波为x个移相角为α或β的单相正弦半波。x个移相角为α或β的数据波可以转换为x位二进制亮度码,得到亮度控制信号代表的亮度等级。To judge whether there is a brightness control signal on the single live wire, the method is to judge whether there is a single-phase sine half wave with a phase shift angle of β at the input terminal L1 of the live wire; to receive the brightness control signal, the method is to receive the data wave after receiving the pilot wave. The guide wave is y consecutive single-phase half-sine waves with a phase shift angle of β, and the data wave is x single-phase half-sine waves with a phase shift angle of α or β. The x data waves whose phase shift angle is α or β can be converted into x -bit binary luminance codes to obtain the luminance level represented by the luminance control signal.
亮度信号取样整形电路将火线输入端L1上的交流电压转换成矩形波,如图5(d)所示。移相角α、移相角β与图5(d)所示的负脉冲对应,其中移相角α对应脉冲14、脉冲18、脉冲21,为宽度较窄的负脉冲;移相角β对应脉冲15、脉冲16、脉冲17、脉冲19、脉冲20,为宽度较宽的负脉冲。亮度信号接收模块只需要判别送至调节单片机最小系统脉冲捕捉输入端负脉冲的宽度,即可判断火线输入端L1的移相角是的α,还是β。The brightness signal sampling and shaping circuit converts the AC voltage on the live wire input terminal L1 into a rectangular wave, as shown in Figure 5(d). Phase shift angle α and phase shift angle β correspond to the negative pulses shown in Figure 5(d), where phase shift angle α corresponds to pulse 14, pulse 18, and pulse 21, which are negative pulses with narrower widths; phase shift angle β corresponds to Pulse 15, pulse 16, pulse 17, pulse 19, and pulse 20 are negative pulses with a wider width. The brightness signal receiving module only needs to judge the width of the negative pulse sent to the minimum system pulse capture input terminal of the adjustment microcontroller, and then can judge whether the phase shift angle of the live wire input terminal L1 is α or β.
图5中,单片机控制模块第1次停止发出触发信号的时刻在交流电源的正半波,因此,火线输入端L1上第1个移相角为β的单相正弦半波为负半波。由于单片机控制模块第1次停止发出触发信号的时刻是随机的,所以,第1次停止发出触发信号的时刻也可能在交流电源的负半波,此时,火线输入端L1上第1个移相角为β的单相正弦半波变为正半波。由于亮度信号取样整形电路对火线输入端L1上的交流电压先整流,再转换为矩形波,因此,第1个移相角为β的单相正弦半波是正半波,还是负半波,不影响亮度调节驱动单元对亮度控制信号的判断与接收。In Fig. 5, the moment when the MCU control module stops sending the trigger signal for the first time is the positive half wave of the AC power supply. Therefore, the first single-phase sine wave with a phase shift angle of β on the live wire input terminal L1 is the negative half wave. Since the moment when the MCU control module stops sending the trigger signal for the first time is random, the moment when the first stop sending the trigger signal may also be in the negative half wave of the AC power supply. A single-phase sine half wave with phase angle β becomes a positive half wave. Since the luminance signal sampling and shaping circuit first rectifies the AC voltage on the live wire input terminal L1, and then converts it into a rectangular wave, therefore, whether the first single-phase sine half wave with a phase shift angle of β is a positive half wave or a negative half wave does not matter. It affects the judgment and reception of the brightness control signal by the brightness adjustment drive unit.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510229176.9A CN104837252B (en) | 2015-05-08 | 2015-05-08 | Method for controlling brightness of LED lamp through single live wire |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510229176.9A CN104837252B (en) | 2015-05-08 | 2015-05-08 | Method for controlling brightness of LED lamp through single live wire |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104837252A CN104837252A (en) | 2015-08-12 |
CN104837252B true CN104837252B (en) | 2017-05-03 |
Family
ID=53814812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510229176.9A Expired - Fee Related CN104837252B (en) | 2015-05-08 | 2015-05-08 | Method for controlling brightness of LED lamp through single live wire |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104837252B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611679B (en) * | 2016-03-18 | 2017-06-16 | 黎辉 | A kind of LED list live wire intelligent controlling device |
CN107509268A (en) * | 2017-08-11 | 2017-12-22 | 浙江理工大学 | Non-pole light regulating intelligent LED desk lamp implementation method based on human body infrared sensing |
CN113840420B (en) * | 2021-11-05 | 2024-01-30 | 深圳市星标电子科技有限公司 | Dimming and toning data transmission method and dimming and toning driving circuit |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291560A (en) * | 2007-04-17 | 2008-10-22 | 李佳伟 | Light modulation control circuit applied to lighting control circuit of single wire |
CN103281849A (en) * | 2013-06-26 | 2013-09-04 | 湖南工业大学 | Light-adjusting device and method of LED illuminating lamp |
CN103298221A (en) * | 2013-07-01 | 2013-09-11 | 湖南工业大学 | Dimming circuit and method of LED (Light Emitting Diode) lighting lamp |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090187925A1 (en) * | 2008-01-17 | 2009-07-23 | Delta Electronic Inc. | Driver that efficiently regulates current in a plurality of LED strings |
-
2015
- 2015-05-08 CN CN201510229176.9A patent/CN104837252B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291560A (en) * | 2007-04-17 | 2008-10-22 | 李佳伟 | Light modulation control circuit applied to lighting control circuit of single wire |
CN103281849A (en) * | 2013-06-26 | 2013-09-04 | 湖南工业大学 | Light-adjusting device and method of LED illuminating lamp |
CN103298221A (en) * | 2013-07-01 | 2013-09-11 | 湖南工业大学 | Dimming circuit and method of LED (Light Emitting Diode) lighting lamp |
Also Published As
Publication number | Publication date |
---|---|
CN104837252A (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108990201B (en) | A low-harmonic dimming method for wall-controlled LED lamps | |
CN108811241B (en) | A circuit for controlling the brightness of multiple LED lights with a single live wire | |
CN104837252B (en) | Method for controlling brightness of LED lamp through single live wire | |
CN104994638B (en) | The device of the remote adjusting brightness of LED lamps of controlled rectification ripple | |
CN209964330U (en) | A bleeder module, LED drive circuit for silicon controlled rectifier dimmer | |
CN209593811U (en) | Adaptive circuit module, the LED drive circuit with controllable silicon dimmer | |
CN108633138A (en) | A kind of method that list firewire sends brightness control signal | |
CN204616164U (en) | A circuit for controlling the brightness of multiple LED lights with a single live wire at a long distance | |
CN204578860U (en) | A kind of LED list live wire wall controlled dimming circuit | |
CN109152145B (en) | Single-live-wire low-harmonic adjustment method for controlling brightness of LED lamp | |
CN109195257B (en) | Wall-controlled dimming method for LED lamp | |
CN215073040U (en) | LED lamp lighting system and dimmer and LED lamp that contain thereof | |
CN104837251B (en) | A kind of wall controlled LED lamp list live wire light adjusting circuit | |
CN104968108B (en) | Method of remotely adjusting the brightness of multiple LED lamps through controllable rectification waves | |
CN104837255B (en) | Single-live-wire wall-controlled dimming method for LED lamp | |
CN104968112B (en) | A kind of controlled rectification remote LED lamp light-dimming method | |
CN104968111B (en) | Method of remotely controlling the brightness of an LED lamp through controllable rectification waves | |
CN204578859U (en) | A kind of wall controlled LED lamp list live wire light adjusting circuit | |
CN204761794U (en) | A controllable rectification remote LED light dimming circuit | |
CN205124040U (en) | Device of controllable rectification ripples remote regulating LED lamp luminance | |
CN204993953U (en) | Device of a plurality of LED lamp of controllable rectification ripples remote regulating luminance | |
CN104968113B (en) | Apparatus of remotely adjusting the brightness of multiple LED lamps through controllable rectification waves | |
CN104994639B (en) | Method for remotely adjusting brightness of LED lamp through controllable rectifying waves | |
CN104968114A (en) | Controllable rectification remote LED light dimming circuit | |
CN104968109A (en) | A method for long-distance adjustment of LED lamp brightness controllable rectification wave |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Chen Gang Inventor after: Ling Yun Inventor after: Xiao Shenping Inventor after: Kong Lingshuang Inventor after: Zeng Hongbing Inventor before: Ling Yun Inventor before: Xiao Shenping Inventor before: Chen Gang Inventor before: Kong Lingshuang Inventor before: Zeng Hongbing |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170503 Termination date: 20180508 |
|
CF01 | Termination of patent right due to non-payment of annual fee |