Dimming and toning data transmission method and dimming and toning driving circuit

文档序号:440199 发布日期:2021-12-24 浏览:25次 中文

阅读说明:本技术 一种调光调色的数据传输方法以及调光调色驱动电路 (Dimming and toning data transmission method and dimming and toning driving circuit ) 是由 李中传 伍金华 张亮 于 2021-11-05 设计创作,主要内容包括:本申请涉及LED照明技术领域,尤其涉及一种调光调色的数据传输方法及调光调色驱动电路,数据传输方法包括:判断灯管电源的交流电正弦波是否过零点,如果是,则切除交流电正弦波零点的波形,并将数据加载到交流电正弦波切除的波形上进行数据的传输。在检测到该交流电正弦波的零点时切除交流电正弦波零点的波形,并将数据加载到交流电正弦波切除的波形上;此时开关闭合,灯管电源对灯管进行供电,并将数据传输至灯管上;利用现有的电源线进行数据的传输,无需额外接入信号线或无线通信网路,方便进行数据的传输,且节约了成本。(The application relates to the technical field of LED illumination, in particular to a dimming and toning data transmission method and a dimming and toning driving circuit, wherein the data transmission method comprises the following steps: and judging whether the alternating current sine wave of the lamp tube power supply crosses zero, if so, cutting off the waveform of the zero point of the alternating current sine wave, and loading data to the waveform of the cut-off alternating current sine wave for data transmission. Cutting off the waveform of the zero point of the alternating current sine wave when the zero point of the alternating current sine wave is detected, and loading data to the waveform of the cut-off alternating current sine wave; at the moment, the switch is closed, the lamp tube power supply supplies power to the lamp tube and transmits data to the lamp tube; the existing power line is used for data transmission, additional access signal lines or wireless communication networks are not needed, data transmission is facilitated, and cost is saved.)

1. A data transmission method for dimming and toning is characterized by comprising the following steps:

and judging whether the alternating current sine wave of the lamp tube power supply crosses zero, if so, cutting off the waveform of the zero point of the alternating current sine wave, and loading data to the waveform of the cut-off alternating current sine wave for data transmission.

2. The dimming and color-adjusting data transmission method according to claim 1, wherein the switch is a three-wire switch, and the step of cutting off the waveform of the zero point of the ac sine wave and applying data to the cut-off waveform of the ac sine wave for data transmission specifically comprises:

phase cutting is carried out on the falling edge of each period of the alternating current sine wave, and data are loaded on the waveform of the alternating current sine wave cut;

and judging whether data exist on the waveform of the AC sine wave cut off or not by detecting zero points of different periods of the AC sine wave, and if so, transmitting the data.

3. The dimming and toning data transmission method according to claim 1, wherein the switch is a two-wire switch, and the step of cutting off the waveform of the zero point of the ac sine wave and applying data to the cut-off waveform of the ac sine wave for data transmission specifically includes:

phase cutting is carried out on the falling edge of each period of the alternating current sine wave, and the phase cutting is used for supplying power to the switch;

performing phase cutting and phase cutting on the rising edge of each period of the alternating current sine wave, and loading data on the waveform of the rising edge of the alternating current sine wave;

and judging whether data exists on the rising edge waveform of the alternating current sine wave or not by detecting zero points of different periods of the alternating current sine wave, and if so, transmitting the data.

4. A dimming and toning data transmission method according to claim 2 or 3, characterized in that: the data loading is adjusted from the loading of 2-bit data in each period to the loading of 1-bit data in each 4 periods.

5. A dimming and toning data transmission method according to claim 2 or 3, characterized in that: and discharging the lamp tube power supply under the condition that the switch is phase-cut.

6. A light and color adjusting drive circuit is characterized by comprising a switch circuit, a zero point detection circuit and a control drive circuit, wherein the zero point detection circuit is used for detecting the zero point of a sine wave alternating current signal received by an alternating current input end, cutting off the waveform of the zero point of the alternating current sine wave of a lamp tube power supply when the zero point of the alternating current signal is detected, and outputting a corresponding control signal to control the switch circuit to be switched on or switched off;

when the switching circuit is turned on, the control drive circuit extracts a data signal from the high voltage and transmits the data signal to the ac transmission line.

7. The dimming and color-mixing driving circuit of the LED lamp according to claim 6, characterized in that: the switch circuit comprises a first NMOS transistor Q1 and a second NMOS transistor Q2, wherein the first NMOS transistor Q1 and the second NMOS transistor Q2 are connected in series; the source electrodes of the first NMOS transistor Q1 and the second NMOS transistor Q2 are both grounded, the grid electrodes are both connected with the input end of the control drive circuit, and the drain electrode of the first NMOS transistor Q1 is connected with the power input end AC _ L of the zero point detection circuit.

Technical Field

The application relates to the technical field of LED illumination, in particular to a dimming and toning data transmission method and a dimming and toning driving circuit.

Background

The LED is a semiconductor device capable of directly converting electric energy into light energy, and adopts electric field light emission instead of the principle of tungsten filament light emission of an incandescent lamp and three-base-color powder light emission of an energy-saving lamp. The color temperature of the LED is determined by the light source, the light source is different, and the color rendering index is also different. Depending on the color temperature of the light source, warm white light and cool white light can be roughly divided. In order to realize illumination adjustment, an LED dimming technology can be adopted, a plurality of LED light sources with different colors are combined, the luminosity parameters of the light sources are adjusted, and the color temperature and the illumination of illumination are changed.

Currently, the common dimming methods for LEDs include analog dimming and Pulse Width Modulation (PWM) dimming. The brightness of the LED is adjusted by changing the current of the circuit in the analog dimming mode; the PWM dimming realizes the brightness adjustment of the LED by changing the on-off time of the current of the light source, namely changing the average effective current through the duty ratio.

With respect to the related art among the above, the inventors consider that the following drawbacks exist: whether analog dimming or Pulse Width Modulation (PWM) dimming is used, additional lines or modules are required for data transmission, such as: an additional signal line is needed under the condition of 0-10V dimming, and an additional wireless module is needed under the condition of wireless dimming; however, such a configuration causes difficulty in wiring, inconvenience in installation and decoration, and high cost.

Disclosure of Invention

In order to help solve the problem of high cost in data transmission in the related art, the application provides a dimming and toning data transmission method and a dimming and toning driving circuit.

In a first aspect, the present application provides a data transmission method for dimming and color mixing, which adopts the following technical scheme:

a data transmission method for dimming and toning comprises the following steps:

and judging whether the alternating current sine wave of the lamp tube power supply crosses zero, if so, cutting off the waveform of the zero point of the alternating current sine wave, and loading data to the waveform of the cut-off alternating current sine wave for data transmission.

By adopting the technical scheme, the zero point of the alternating current sine wave of the lamp tube power supply is detected, the waveform of the zero point of the alternating current sine wave is cut off when the zero point of the alternating current sine wave is detected, and data is loaded on the waveform of the cut-off alternating current sine wave; at the moment, the switch is closed, the lamp tube power supply supplies power to the lamp tube and transmits data to the lamp tube; the existing power line is used for data transmission, additional access signal lines or wireless communication networks are not needed, data transmission is facilitated, and cost is saved.

Optionally, the switch is a three-wire switch, and the step of cutting off the waveform of the zero point of the alternating current sine wave and loading data on the waveform of the cut-off alternating current sine wave for data transmission specifically includes:

phase cutting is carried out on the falling edge of each period of the alternating current sine wave, and data are loaded on the waveform of the alternating current sine wave cut;

and judging whether data exist on the waveform of the AC sine wave cut off or not by detecting zero points of different periods of the AC sine wave, and if so, transmitting the data.

Optionally, the switch is a two-wire switch, and the step of cutting off the waveform of the zero point of the alternating current sine wave and loading data on the waveform of the cut-off alternating current sine wave for data transmission specifically includes:

phase cutting is carried out on the falling edge of each period of the alternating current sine wave, and the phase cutting is used for supplying power to the switch;

performing phase cutting and phase cutting on the rising edge of each period of the alternating current sine wave, and loading data on the waveform of the rising edge of the alternating current sine wave;

and judging whether data exists on the rising edge waveform of the alternating current sine wave or not by detecting zero points of different periods of the alternating current sine wave, and if so, transmitting the data.

By adopting the technical scheme, the two-wire switch has no zero line, so the switch has no circuit for taking electricity. To ensure that the switch is sufficiently powered, the phase of each cycle of the ac sine wave is cut.

Optionally, the data loading is adjusted from loading 2-bit data per cycle to loading 1-bit data per 4 cycles.

By adopting the technical scheme, the influence of phase-cut change on the lamp tube power supply is reduced, so that the stability of the lamp tube power supply is improved, and the problem of lamp light flicker of the lamp tube caused by excessive data loading is effectively solved.

Optionally, the lamp power supply is discharged when the switch is phase-cut.

By adopting the technical scheme, after the accelerated discharge is carried out on the lamp tube power supply, the zero-point signal can be quickly generated, so that the zero-point signal has long waveform time, the zero-point signal waveform can be stably detected, and the communication success rate is convenient to improve.

In a second aspect, the present application provides a dimming and color-mixing driving circuit, which adopts the following technical scheme:

a light and color adjusting drive circuit comprises a switch circuit, a zero point detection circuit and a control drive circuit, wherein the zero point detection circuit is used for detecting the zero point of a sine wave alternating current signal received by an alternating current input end, cutting off the waveform of the zero point of the alternating current sine wave of a lamp tube power supply when the zero point of the alternating current signal is detected, and outputting a corresponding control signal to control the switch circuit to be switched on or switched off;

when the switching circuit is turned on, the control drive circuit extracts a data signal from the high voltage and transmits the data signal to the ac transmission line.

By adopting the technical scheme, the data transmission is carried out by utilizing the existing power line without additionally accessing a signal line or a wireless communication network, the data transmission is convenient, and the cost is saved.

Optionally, the switch circuit includes a first NMOS transistor Q1 and a second NMOS transistor Q2, and the first NMOS transistor Q1 and the second NMOS transistor Q2 are connected in series; the source electrodes of the first NMOS transistor Q1 and the second NMOS transistor Q2 are both grounded, the grid electrodes are both connected with the input end of the control drive circuit, and the drain electrode of the first NMOS transistor Q1 is connected with the power input end AC _ L of the zero point detection circuit.

By adopting the technical scheme, when the zero point detection circuit detects a high level, the first NMOS tube Q1 and the second NMOS tube Q2 are conducted, the current flows from the first NMOS tube Q1 and the second NMOS tube Q2 to the control drive circuit, and the control drive circuit extracts a data signal according to the change of the voltage, so that the data signal is transmitted on the alternating current power line.

In summary, the present application includes at least one of the following beneficial technical effects:

detecting the zero point of the alternating current sine wave of the lamp tube power supply, cutting off the waveform of the zero point of the alternating current sine wave when the zero point of the alternating current sine wave is detected, and loading data on the waveform of the cut-off alternating current sine wave; at the moment, the switch is closed, the lamp tube power supply supplies power to the lamp tube and transmits data to the lamp tube; the existing power line is used for data transmission, additional access signal lines or wireless communication networks are not needed, data transmission is facilitated, and cost is saved.

Drawings

Fig. 1 is a waveform diagram of a lamp power supply under a three-wire switch according to an embodiment of the present application.

Fig. 2 is a waveform diagram of a lamp power supply under a two-wire switch according to an embodiment of the present application.

Fig. 3 is a graph of voltage waveforms of the lamp and the switch before and after the phase-cut operation according to one embodiment of the present application.

Fig. 4 is a schematic diagram of a zero detection circuit according to an embodiment of the present application.

Fig. 5 is a schematic diagram of a switching circuit and a control driving circuit according to an embodiment of the present disclosure.

Fig. 6 is an EMC circuit of a lamp power input part shown in one embodiment of the present application.

Fig. 7 is a discharge circuit of a lamp power supply according to an embodiment of the present application.

Fig. 8 is a waveform diagram illustrating the absence of an accelerated discharge and the use of an accelerated discharge according to one embodiment of the present application.

Detailed Description

The present application is described in further detail below with reference to figures 1-8.

The embodiment of the application discloses a data transmission method for dimming and toning.

As an embodiment of the data transmission method, the method comprises the following steps: and judging whether the alternating current sine wave of the lamp tube power supply crosses the zero point, if so, cutting off the waveform of the alternating current sine wave crossing the zero point, and loading the data to the waveform of the alternating current sine wave cutting off for data transmission.

Specifically, a zero point of an alternating current sine wave of a lamp power supply is detected, a waveform of the zero point of the alternating current sine wave is cut off when the zero point of the alternating current sine wave is detected, and data "1" is loaded on the waveform of the cut-off alternating current sine wave; at the moment, the switch is closed, the lamp power supply supplies power to the lamp, data '1' is transmitted to the lamp, and corresponding data bit is recorded at the same time.

Actually, cutting off an alternating current sine wave is a data loading process, and data is considered to be "0" when the cutting-off process is not performed, data is considered to be "1" when the cutting-off process is performed, and both "0" and "1" are binary data.

The existing power line is used for data transmission, additional access signal lines or wireless communication networks are not needed, data transmission is facilitated, and cost is saved.

As an embodiment of the switch, as shown in fig. 1, the switch is a three-wire switch, and when data "1" needs to be transmitted, the phase of the falling edge is cut at the falling edge, and the phase of the falling edge is cut at a fixed time in each cycle.

The step of loading data on the waveform of the AC sine wave removal for data transmission specifically comprises the following steps: after the zero point of the alternating current sine wave is detected, data '1' is loaded on the waveform of the falling edge of the cut alternating current sine wave, after the zero point of each period of the alternating current sine wave is detected, whether the data '1' exist on the waveform of the falling edge of the alternating current sine wave is judged, and if yes, data transmission exists.

As another embodiment of the switch, as shown in fig. 2, the switch is a two-wire switch, and since the two-wire switch has no zero wire, the switch has no circuit for taking electricity. To ensure that the switch is sufficiently powered, the phase of each cycle of the ac sine wave is cut.

In the case of a two-wire switch, in order to ensure that the switch has sufficient power, and to minimize the input inrush current of the power supply, the falling edge of each cycle of the alternating current sine wave is phase-cut to take power for the switch itself, and the phase-cut of the falling edge is performed at a fixed time in each cycle. When data "1" needs to be transmitted, the phase cut of the rising edge is also performed at a fixed time in each cycle.

In the case that the switch is a two-wire switch, the step of loading data on the waveform of the ac sine wave ablation for data transmission specifically includes: loading data '1' on the waveform of the cut rising edge of the alternating current sine wave, judging whether the data '1' exist on the waveform of the alternating current sine wave after detecting zero points of different periods of the alternating current sine wave, and judging that data transmission exists if the data '1' exist on the waveform of the alternating current sine wave.

As shown in fig. 3, when the switch is turned off, the lamp power supply does not supply power to the lamp, all the voltage is on the switch, and the lamp voltage is 0; when the switch is closed, the higher voltage part supplies power to the lamp tube through phase cutting, the voltage near the zero crossing point is reserved for the power supply of the switch and the zero crossing point detection, but the phase cutting is only carried out on the falling edge. At the lamp end, if a phase cut at the rising edge is detected, a data "1" is deemed to have been received.

The data signals are transmitted by controlling the on-off of the switch, wherein the data frame structure is shown in table 1, in one data frame, a lead code, a head, node RGB data and a check bit (bit0) form complete frame data, the maximum 512 nodes in one frame can be used for driving 512 RGB three-color LED lamp tubes, and chips in the LED lamp tubes receive the data signals and control the brightness and the color temperature of the LED lamp tubes according to the data signals.

Table 1 data frame structure:

wherein, the data and command in the data frame structure are defined as follows:

bit15-12, fixed value "0 xf", as frame header;

bit11-10 Command type, wherein

0x00 dimming command;

0x01 color temperature command;

0x10 save and notify command. The command is considered as a save command when the lamp tube normally operates, namely, the CCT LEVEL and DIM LEVEL values in the data frame are saved. When the lamp tube is started, the command is received, the command is considered to be a two-wire/three-wire distinguishing command, and when the command is received, the command is considered to be a two-wire switch.

bit9 for standby;

bit8 parity bits;

bit7-6: area, not enabled, fixed value "0 x 00";

bit5-4, not enabled, fixed value "0 x 00";

when saving the command: bit7-4 is color temperature grade corresponding to 0-15 level color temperature grade;

bit3-0:

when dimming is ordered: a dimming level. Corresponding to 0-15 level dimming level;

and when the color temperature is regulated: a color temperature scale. Corresponding to the color temperature grade of 0-15 grade;

when saving the command: a dimming level. Corresponding to a 0-15 level color temperature level.

As another implementation mode of the data transmission method, in order to reduce the influence of phase-cut change on the lamp tube power supply, the data loading is adjusted from loading 2bit data in each period to loading 1bit data in each 4 periods. That is, 16 bits in the data frame are expanded into 16 bytes, the first bit of each byte is the actual data, and the other bits are all filled with "0".

For example, if dimming to level 3, the data frame is: 0b 1111000100000011; after expanding the data frame to 16 bytes, the related data is as follows:

plc_send_buff[0]=0b1000 0000

plc_send_buff[1]=0b1000 0000

plc_send_buff[2]=0b1000 0000

plc_send_buff[3]=0b1000 0000

plc_send_buff[4]=0b0000 0000

plc_send_buff[5]=0b0000 0000

plc_send_buff[6]=0b0000 0000

plc_send_buff[7]=0b1000 0000

plc_send_buff[8]=0b0000 0000

plc_send_buff[9]=0b0000 0000

plc_send_buff[10]=0b0000 0000

plc_send_buff[11]=0b0000 0000

plc_send_buff[12]=0b0000 0000

plc_send_buff[13]=0b0000 0000

plc_send_buff[14]=0b1000 0000

plc_send_buff[15]=0b1000 0000

the above 16-byte data will be sent in the order of plc _ send _ buff [0] to plc _ send _ buff [15], with each byte sending the highest bit (i.e., bit7) first.

And discharging the lamp tube power supply under the condition that the switch is phase-cut. After the power supply of the lamp tube is subjected to accelerated discharge, the zero-point signal can be quickly generated, so that the zero-point signal has long waveform time, the waveform of the zero-point signal can be stably detected, and the success rate of communication is convenient to improve.

Based on the data transmission method, the embodiment of the application also discloses a dimming and toning driving circuit.

The zero point detection circuit is used for detecting the zero point of a sine wave alternating current signal received by an alternating current input end, cutting off the waveform of the alternating current sine wave zero point of a lamp tube power supply when the zero point of the alternating current signal is detected, and outputting a corresponding control signal to control the switch circuit to be switched on or switched off; when the switch circuit is conducted, the voltage at two ends of the driving circuit is controlled to be high voltage; when the switch circuit is cut off, the voltage at two ends of the drive circuit is controlled to be low voltage. The on-off of the switch circuit is controlled to control the voltage applied by the alternating current power supply to the control drive circuit so as to transmit information, and the control drive circuit extracts a data signal according to the change of the voltage, so that the data signal is transmitted on the alternating current power supply line.

The control drive circuit provided by the application can be applied to driving the LED lamp tube, and the LED lamp tube can extract a data signal according to voltage change, so that the brightness and the color temperature of the LED lamp tube are changed.

As shown in fig. 4, as an embodiment of the zero point detection circuit, the alternating current has directivity, and may be rectified into pulsating direct current by a rectifier bridge, and then the zero point signal is output after optical coupling isolation. Specifically, after passing through the rectifier bridge, the alternating current is changed into pulsating direct current, the negative half cycle of the alternating current is inverted into positive, the optocoupler can be switched on at the place except for the zero crossing point, and the optocoupler is switched off at the place near the zero point.

The waveform analysis was as follows: positive half cycle: the light emitting diode of the optical coupler is conducted, the output end is conducted, and the output signal is at a low level; negative half cycle: the light emitting diode of the optical coupler is conducted, the output end is conducted, and the output signal is at a low level; near zero: the light emitting diode medium of the optical coupler, the output end medium and the output signal are high level. Therefore, the zero point can be judged to come as long as the high level is detected.

As shown in fig. 5, as an embodiment of the switching circuit, the switching circuit includes a first NMOS transistor Q1 and a second NMOS transistor Q2, and the first NMOS transistor Q1 and the second NMOS transistor Q2 are connected in series; the sources of the first NMOS transistor Q1 and the second NMOS transistor Q2 are both grounded, the gates are both connected with the input end of the control drive circuit, the drain of the first NMOS transistor Q1 is connected with the power input end AC _ L of the zero point detection circuit, and the drain of the second NMOS transistor Q2 is connected with the power input end AC _ L of the zero point detection circuit through an inductor L2 and a capacitor C4; the capacitor C4 is connected in parallel with a voltage dependent resistor VDR1, and one end of the voltage dependent circuit VDR1 is connected to an input terminal AC _ L1 through a switch K2, and the other end is connected to an input terminal LOAD 1.

When the zero point detection circuit detects a high level, the first NMOS tube Q1 and the second NMOS tube Q2 are conducted, current flows from the first NMOS tube Q1 and the second NMOS tube Q2 to the control drive circuit, and the control drive circuit extracts data signals according to the change of voltage, so that the data signals are transmitted on the alternating current power line.

In order to make the zero signal waveform long, the zero signal waveform can be stably detected, the power supply of the lamp tube is accelerated to discharge, the zero signal is quickly generated, and therefore the communication success rate is convenient to improve.

As shown in fig. 6 and 7, the AC input terminal of the lamp power supply is charged by a capacitor CX 1; when the switch is in phase-cut, the voltage at point a after the phase-cut slowly drops due to the presence of the capacitance CX1 in the lamp tube. Therefore, the zero-point waveform detection at points C and D is affected, and particularly when the lamp power is minimized at 277VAC input, the capacitor CX1 discharges very slowly, which is particularly significant, resulting in false zero-point detection and unsuccessful communication.

By applying a high level to the point B, the MOS transistor Q10 is turned on, and the resistor R64 consumes the extra power of the capacitor CX1, so that the voltage at the point a rapidly drops to 0V.

As shown in fig. 8, when there is no accelerated discharge, the AC voltage can only slowly drop after the phase-cut signal is reached due to the residual power of the capacitor CX1, such as the falling edge of the sine wave in fig. 82A. Since the voltage needs to be slow to drop to 0V, the zero-point detection signal time is very short, as shown in fig. 83A, the zero-point signal waveform is very narrow, and it may be too narrow to be detected successfully.

After the accelerated discharge is used, the residual electricity of the capacitor CX1 can be consumed quickly, the voltage can be reduced to 0V quickly, and as shown in FIG. 82B, a zero signal can be generated quickly, so that the zero signal has long waveform time, the detection can be stable, and the success rate of communication is ensured.

The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种LED模组控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!