LED control system
By using two wires in the LED control system to send data signals and decode and convert power in the LED light string, the complex structure and high cost in the existing technology are solved, and the simplified LED control system design and high reliability are realized sex.
Patent Information
- Application Number
- CN202110670723.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-17
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-06-17
AI Technical Summary
The existing LED control system has complex structure, high cost and low reliability. Especially in application solutions using two wires, data decoding is difficult, and it is necessary to accurately separate valid data from the power supply line.
An LED control system was designed, in which the controller sends data signals through two wires, and the LED light string can receive and decode these signals for display control and power conversion, using power conversion circuit, data decoding circuit, display control circuit and driving control. Circuit simplifies the data transmission protocol, and no data classification operation is required between the controller and the LED unit.
The simplified design of the LED control system is realized, which reduces costs and improves reliability. The system implementation method is simple and suitable for series control of multiple LED units.
Smart Images

Figure CN113242628B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of LED control, and in particular to an LED control system. Background Art
[0002] At present, LED has been widely used in many fields such as furniture decoration, holiday scene beautification, Christmas lights, etc. In order to make LED show various lighting effects, the LED drive circuit needs to control or adjust its output grayscale, and a controller is required to send control data as required. Generally, four wires are required to connect the controller and the LED unit, and there are also cases where three wires are used. Whether it is a four-wire system or a three-wire system, there is a special data line for the controller to send data to the LED unit. With the cost requirements in this field and the needs to adapt to some special applications, such as series use, there are already two-wire application solutions. This solution is also difficult to decode the data, and it is necessary to accurately separate the valid data from the power line. All these make the design of this type of product complex, high cost, and low reliability. Summary of the invention
[0003] The present invention provides an LED control system, which solves the problem of complex structure and high cost of the LED control system in the related art.
[0004] As one aspect of the present invention, there is provided an LED control system, comprising:
[0005] A controller and an LED light string electrically connected to the controller;
[0006] The controller comprises a first data output port and a second data output port, and is used to send out a first data signal through the first data output port and send out a second data signal through the second data output port, and the first data signal and the second data signal are in opposite phases to each other;
[0007] The LED light string can receive the first data signal and the second data signal through the data receiving port, and can realize the display control of the LED light according to the first data signal and the second data signal, and can realize the power supply of the LED light by power conversion of the first data signal and the second data signal.
[0008] Furthermore, the LED light string includes: N LED units connected in series, each LED unit includes a first data receiving port and a second data receiving port, the first data receiving port of the first LED unit is used to receive the first data signal, the second data receiving port of the Nth LED unit is used to receive the second data signal, the second data receiving port of the first LED unit and the first data receiving port of the Nth LED unit are connected in series in sequence, and N is a natural number greater than or equal to 1.
[0009] Further, each of the LED units comprises: a power conversion circuit, a data decoding circuit, a display control circuit, a drive control circuit and an LED lamp, the two input ends of the power conversion circuit respectively serve as a first data receiving port and a second data receiving port of the LED unit, the output end of the power conversion circuit is respectively connected to a power supply end of the data decoding circuit and a power supply end of the display control circuit, the data input end of the data decoding circuit is connected to the first data receiving port of the LED unit, the data output end of the data decoding circuit is connected to the data input end of the display control circuit, the data output end of the display control circuit is connected to the data input end of the drive control circuit, the drive control circuit is also respectively connected to the first data receiving port and the second data receiving port of the LED unit, the data output end of the drive control circuit is connected to the cathode of the LED lamp, and the anode of the LED lamp is connected to the first data receiving port of the LED unit;
[0010] The power conversion circuit is capable of converting the first data signal and the second data signal into power supply;
[0011] The data decoding circuit is capable of decoding the first data signal to obtain display control data;
[0012] The display control circuit is used to generate drive control data according to the display control data;
[0013] The drive control circuit is used to generate a drive signal according to the drive control data, so that the LED performs display according to the drive signal.
[0014] Further, the power conversion circuit includes: a first diode, a second diode, a third diode, a fourth diode and a first capacitor, the cathode of the first diode is connected to the first data receiving port of the LED unit, the anode of the first diode is connected to the anode of the third diode, the cathode of the third diode is connected to the second data receiving port of the LED unit, the anode of the second diode is connected to the first data receiving port of the LED unit, the cathode of the second diode is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the second data receiving port of the LED unit, one end of the first capacitor is connected to the cathode of the second diode, the other end of the first capacitor is connected to the anode of the first diode, one end of the first capacitor is the positive power supply terminal of the power conversion circuit, and the other end of the first capacitor is the negative grounding terminal of the power conversion circuit.
[0015] Furthermore, the data decoding circuit includes: an edge detection circuit, an oscillator, a counter, a comparator and a shift register, the input end of the edge detection circuit is connected to the first data receiving port of the LED unit, the data output end of the edge detection circuit is respectively connected to the oscillator, the counter and the shift register, the counter is connected to the oscillator, the comparator is connected to the counter, and the shift register is connected to the comparator.
[0016] Furthermore, the data decoding circuit includes: an edge detection circuit, an oscillator, a counter, a comparator, a shift register and a reference bit processing circuit, the input end of the edge detection circuit is connected to the first data receiving port of the LED unit, the data output end of the edge detection circuit is respectively connected to the oscillator, the counter, the reference bit processing circuit and the shift register, the timer is connected to the oscillator, the comparator is respectively connected to the counter and the reference bit processing circuit, and the shift register is connected to the comparator.
[0017] Furthermore, the display control circuit includes: a reset code detection circuit, a display data register and a switch control circuit, the data input end of the reset code detection circuit is connected to the first data receiving port of the LED unit, the display data register is connected to the reset code detection circuit, and the switch control circuit is connected to the display data register.
[0018] Further, the controller includes: a step-down unit, a data transmission main control unit, a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a fifth switch tube, a sixth switch tube, a first resistor and a second resistor, the input end of the step-down unit is connected to the power supply end, and the output end of the step-down unit is connected to the data transmission main control unit.
[0019] The output end of the data transmission main control unit is respectively connected to the control end of the first switch tube and the control end of the second switch tube, the first end of the first switch tube is connected to the power supply end through the first resistor, the second end of the first switch tube is connected to the signal ground, the first end of the second switch tube is connected to the power supply end through the second resistor, and the second end of the second switch tube is connected to the signal ground,
[0020] The control end of the third switch tube and the control end of the fourth switch tube are both connected to the first end of the first switch tube, the first end of the third switch tube is connected to the power supply end, the second end of the third switch tube is connected to the first end of the fourth switch tube and serves as the first data output port of the controller, and the second end of the fourth switch tube is connected to the signal ground.
[0021] The control end of the fifth switch tube and the control end of the sixth switch tube are both connected to the first end of the second switch tube, the first end of the fifth switch tube is connected to the power supply end, the second end of the fifth switch tube and the first end of the sixth switch tube are connected and serve as the second data output port of the controller, and the second end of the sixth switch tube is connected to the signal ground.
[0022] Furthermore, the data sending main control unit includes a single chip microcomputer.
[0023] Further, the first switch tube, the second switch tube, the fourth switch tube and the sixth switch tube all include N-type MOS tubes, and the third switch tube and the fifth switch tube all include P-type MOS tubes.
[0024] The LED control system provided by the present invention is composed of a controller and an LED light string. The controller can send data in the form of ordinary digital signals, and the LED light string can receive data in the form of digital signals. No matter whether the controller sends data or the LED light string receives data, there is no need to perform operations such as data classification. The implementation method of the LED control system is simple, low-cost and highly reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0026] Figure 1 This is a structural block diagram of the LED control system provided by the present invention.
[0027] Figure 2 This is a schematic diagram of the data transmission waveform and the internal power waveform of the LED unit provided by the present invention.
[0028] Figure 3 This is a circuit structure block diagram of the LED unit provided by the present invention.
[0029] Figure 4 This is a schematic diagram of a specific implementation circuit of the controller provided by the present invention.
[0030] Figure 5 This is a circuit schematic diagram of the power conversion circuit provided by the present invention.
[0031] Figure 6 A waveform diagram of the data transmission protocol provided by the present invention.
[0032] Figure 7 A schematic diagram of the circuit structure of a specific implementation of the data decoding circuit provided by the present invention.
[0033] Figure 8A schematic diagram of the circuit structure of another specific implementation of the data decoding circuit provided by the present invention.
[0034] Fig. 9 This is a circuit schematic diagram of the edge detection circuit provided by the present invention.
[0035] Fig.10 This is a circuit schematic diagram of the reference bit processing circuit provided by the present invention.
[0036] Fig.11 This is a circuit schematic diagram of the display control circuit provided by the present invention.
[0037] Fig.12 This is a circuit schematic diagram of the reset code detection circuit provided by the present invention.
[0038] Fig.13 This is a circuit schematic diagram of the display data register provided by the present invention.
[0039] Fig.14 This is a circuit schematic diagram of the switch control circuit provided by the present invention.
[0040] Fig.15 This is a schematic diagram of the VA sending data waveform provided by the present invention.
[0041] Fig.16 A schematic diagram of timing waveforms in the decoding process provided by the present invention.
[0042] Fig.17 A schematic diagram of a rate adaptive data transmission protocol waveform provided by the present invention.
[0043] Fig.18 This is a circuit schematic diagram of the drive control circuit provided by the present invention. DETAILED DESCRIPTION
[0044] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] In this embodiment, a LED control system is provided. Figure 1 is a structural block diagram of an LED control system provided according to an embodiment of the present invention, such as Figure 1 As shown, including:
[0048] A controller 10 and an LED light string 20 electrically connected to the controller 10;
[0049] The controller 10 includes a first data output port VA and a second data output port VB, for sending a first data signal through the first data output port VA and sending a second data signal through the second data output port VB, and the first data signal and the second data signal are in opposite phases to each other;
[0050] The LED light string 20 can receive the first data signal and the second data signal through the data receiving port, and can realize the display control of the LED light according to the first data signal and the second data signal, and can realize the power supply of the LED light by power conversion of the first data signal and the second data signal.
[0051] The LED control system provided by the present invention is composed of a controller and an LED light string. The controller can send data in the form of ordinary digital signals, and the LED light string can receive data in the form of digital signals. No matter whether the controller sends data or the LED light string receives data, there is no need to perform operations such as data classification. The implementation method of the LED control system is simple, low-cost and highly reliable.
[0052] Specifically, the LED light string 20 includes: N LED units connected in series, each LED unit includes a first data receiving port and a second data receiving port, the first data receiving port of the first LED unit is used to receive the first data signal, the second data receiving port of the Nth LED unit is used to receive the second data signal, the second data receiving port of the first LED unit and the first data receiving port of the Nth LED unit are connected in series in sequence, and N is a natural number greater than or equal to 1.
[0053] It should be noted that the LED light string is composed of multiple LED units connected in series. It is necessary to ensure that the total current of the LED units is continuously stable and the current / voltage characteristic curves of all the LED units connected in series are as consistent as possible.
[0054] In the embodiment of the present invention, the controller 10 is connected to the LED light string 20 through two wires VA and VB. The controller 20 sends data and provides power to the LED light string 20 through VA and VB. The LED light string 20 is composed of one or more LED units connected in series. The LED unit has two lead terminals VA and VB. VA and VB are the power input ports of the LED unit, and VA is also the data input port. The LED unit receives data sent from the controller through VA and is used to control the on and off of the LED light and the output current size. The LED light string 20 can be a single LED unit or a plurality of LED units connected in series, such as Figure 1 In the embodiment, multiple LED units are connected in series, and the connection method is that the VA end of the first LED unit is connected to the VA end of the controller, and its VB end is connected to the VA end of the second LED unit, and the VB end of the second LED unit is connected to the VA end of the third LED unit, and so on, and the VB end of the last LED unit is connected to the VB end of the controller. When in use, the output ends VA and VB of the controller 10 should be able to provide enough voltage to make a 4V~5V voltage drop on each LED unit.
[0055] It should be noted that, in the embodiment of the present invention, the LED light string in the LED control system may specifically be five LED units connected in series, each LED unit having two data ports VA and VB. Figure 3 The 5 LED units are connected in series in the following way: the VA end of the first LED unit is connected to the VA end of the controller, the VB end is connected to the VA end of the second LED unit, the VB end of the second LED unit is connected to the VA end of the third LED unit, and the VB end of the fifth LED unit is connected to the VB end of the controller. The system uses a 24V power supply, and the output voltage of the controller output ports VA and VB is also 24V. The average voltage difference dropped on each LED unit is 4.8V.
[0056] The controller 10 provides power and sends data to the LED light string 20 through the VA and VB terminals. Figure 2 The waveforms of VA and VB in the figure are schematic diagrams of data transmission. When sending data, VA output has only two states, high level or low level, which is the so-called digital signal transmission. When the data transmission is completed, VA maintains a high level. The VB output only needs to be inverted with VA in real time.
[0057] In the embodiment of the present invention, only one specific data transmission protocol needs to be defined, and the data sent by the controller 10 and the data received by the LED unit are designed according to the data protocol, which simplifies the implementation of the controller and the LED unit circuit.
[0058] The data protocol used in the embodiment of the present invention is as follows Figure 6 As shown, VA and VB driven by the controller 10 can complete the task of sending data and powering the LED unit. Its biggest advantage is that there is no special requirement for VA and VB when sending data, such as Figure 6 As shown, VA only needs to switch between high level VH and low level 0V to complete the data transmission task, which is exactly the same as ordinary digital signal transmission, and the same is true for VB, which only needs VB and VA to be in opposite phases. After the data transmission is completed, VA maintains a high level VH, and VB maintains a low level 0V, which means that the power supply state is entered to power the LED unit. Such a data protocol has almost no requirements for the controller 10, is easy to complete and has extremely high reliability.
[0059] The corresponding LED unit, its decoding circuit can complete the decoding task by processing the input VA data signal according to the digital signal, which is extremely simple and reliable. Compared with the existing similar schemes, in the data protocol adopted by the present invention, in both cases of sending data and powering the LED unit, the controller only needs to send a high level VH or a low level 0V, and there is no requirement for sending an intermediate level. Such an output signal is very easy for the controller to achieve and its reliability can be guaranteed, even when multiple LED units are driven by the same controller, and the corresponding LED unit decoding becomes very simple.
[0060] Therefore, the LED control system provided by the present invention, the controller is as follows Figure 6 The waveforms shown make it simple to send data and power the LED units, and the corresponding LED units decoding the data from the VA is also easily accomplished.
[0061] In practical applications, a data transmission protocol is formulated, and the controller sends data according to the data protocol requirements. The LED unit adopts the above power supply module and data decoding circuit to achieve stable and reliable operation of the two-line LED light control system.
[0062] Specifically, each of the LED units includes: a power conversion circuit 201, a data decoding circuit 202, a display control circuit 203, a drive control circuit 207 and an LED lamp, the two input ends of the power conversion circuit 201 are respectively used as a first data receiving port VA and a second data receiving port VB of the LED unit, the output end of the power conversion circuit 201 is respectively connected to a power supply end of the data decoding circuit 202 and a power supply end of the display control circuit 203, the data input end of the data decoding circuit 202 is connected to the first data receiving port VA of the LED unit, the data output end of the data decoding circuit 202 is connected to the data input end of the display control circuit 203, the data output end of the display control circuit 203 is connected to the data input end of the drive control circuit 207, the drive control circuit 207 is also respectively connected to the first data receiving port VA and the second data receiving port VB of the LED unit, the data output end of the drive control circuit 207 is connected to the cathode of the LED lamp, and the anode of the LED lamp is connected to the first data receiving port of the LED unit;
[0063] The power conversion circuit 201 is capable of converting the first data signal and the second data signal into power supply;
[0064] The data decoding circuit 202 can decode the first data signal to obtain display control data;
[0065] The display control circuit 203 is used to generate drive control data according to the display control data;
[0066] The driving control circuit 207 is used to generate a driving signal according to the driving control data, so that the LED performs display according to the driving signal.
[0067] It should be noted that the LED unit has two ports VA and VB. VA and VB are both power input terminals and data input terminals. One of them (for example, VA) can be used as the data port. From the above description, it can be seen that when transmitting data, the VA and VB terminals from the controller 10 cannot continuously and stably provide power to the LED unit. Therefore, the LED unit needs to be equipped with a power conversion circuit 201. During the data transmission stage, VA will switch between a high level VH and a low level 0V, and VA and VB are also the power supply terminals of the LED unit. In order for the LED unit to work normally and decode smoothly when VA becomes 0V, the power supply system of the LED drive circuit in the LED unit needs to be specially processed. This part of the work is implemented by the power conversion circuit 201. This power conversion circuit 201 is used to obtain a stable internal power supply from the VA and VB terminals for stable operation of other circuits. The stable power supply obtained by the power conversion circuit is as follows. Figure 2As shown in the waveforms of vdd and vss, vdd is the power supply and vss is the ground. The LED unit should also include a data decoding circuit 202 for obtaining control data from the VA terminal. Since VA is a common digital signal for the decoding circuit, it only needs to be decoded according to the agreed data protocol. The LED unit should also have a display control circuit 203. The function of this circuit is to control the on and off of the LED lamp or the current size, etc. through the data obtained by the above data decoding circuit. According to actual needs, the LED unit can also include more other functions, which are not limited here.
[0068] It should also be noted that, in the embodiments of the present invention, Figure 3 As shown, the LED lamp may include LED lamp 204, LED lamp 205 and LED lamp 206, and may specifically include other numbers of LED lamps, which are only used as examples and are not limited thereto.
[0069] As a specific implementation of the controller 10, Figure 4 As shown, the controller 10 includes: a step-down unit 109, a data transmission main control unit 1010, a first switch tube 105, a second switch tube 106, a third switch tube 101, a fourth switch tube 102, a fifth switch tube 103, a sixth switch tube 104, a first resistor 107 and a second resistor 108, the input end of the step-down unit 109 is connected to the power supply end, and the output end of the step-down unit 109 is connected to the data transmission main control unit 1010,
[0070] The output end of the data transmission main control unit 1010 is respectively connected to the control end of the first switch tube 105 and the control end of the second switch tube 106, the first end of the first switch tube 105 is connected to the power supply end through the first resistor 107, the second end of the first switch tube 105 is connected to the signal ground, the first end of the second switch tube 106 is connected to the power supply end through the second resistor 108, and the second end of the second switch tube 106 is connected to the signal ground.
[0071] The control end of the third switch tube 101 and the control end of the fourth switch tube 102 are both connected to the first end of the first switch tube 105, the first end of the third switch tube 101 is connected to the power supply end, the second end of the third switch tube 101 and the first end of the fourth switch tube 102 are connected and serve as the first data output port VA of the controller, and the second end of the fourth switch tube 102 is connected to the signal ground.
[0072] The control end of the fifth switch tube 103 and the control end of the sixth switch tube 104 are both connected to the first end of the second switch tube 106, the first end of the fifth switch tube 103 is connected to the power supply end, the second end of the fifth switch tube 103 and the first end of the sixth switch tube 104 are connected and serve as the second data output port VB of the controller, and the second end of the sixth switch tube 104 is connected to the signal ground.
[0073] Preferably, the data sending main control unit 1010 includes a single chip microcomputer.
[0074] Preferably, the first switch tube 105 , the second switch tube 106 , the fourth switch tube 102 and the sixth switch tube 104 all include N-type MOS tubes, and the third switch tube 101 and the fifth switch tube 103 all include P-type MOS tubes.
[0075] The controller 10 provides power and sends data to the LED light string 20 through the VA and VB ports. The schematic diagram of the controller 10 is shown in FIG. Figure 4 As shown, it includes a step-down unit 109, a data transmission main control unit 1010, PMOS tubes 101 and 103, NMOS tubes 102, 104, 105 and 106, and resistors 107 and 108. The step-down unit 109 can process and obtain a power supply suitable for the use requirements of the data transmission main control unit. The working voltage of the data transmission main control unit 1010 is generally 3V~5V. Because the system uses a 24V power supply, the step-down unit is required to generate a 5V low-voltage power supply for the data transmission main control unit 1010. The data for controlling the LED light string 20 is sent through the data transmission main control unit 1010, and the data for controlling the LED light string 20 is stored therein. When the system is powered on and works normally, these data will be output according to the designed process requirements.
[0076] In the embodiment of the present invention, the data of the data transmission main control unit 1010 is output in the form of signals a and b, and the signals a and b are always inverted. When sending data, the signal a is sent as the data, and the signal a maintains a high level after the sending is completed. The data transmission main control unit 1010 can be a data processing module with a single chip as the core, or it can be designed in other forms, as long as it can send signals a and b according to the above requirements. A and b are low-voltage signals with very small driving force, and cannot be used directly. It is necessary to amplify the signals a and b and convert them into VA and VB for use. The following is an example of a. The signal a is connected to the gate of the NMOS tube 105, and the drain of the NMOS tube 105 is connected to the gate of the PMOS tube 101 and the gate of the NMOS tube 102. At the same time, it is also connected to one end of the resistor 107, and the other end of the resistor 107 is connected to the system power supply. The source end of the PMOS tube 101 is connected to the system power supply, and the drain end is connected to the drain end of the NMOS tube 102 and serves as the output end VA of the controller. The source end of the NMOS tube 102 is connected to the system ground. It can be seen that the output amplitude of VA obtained by amplifying signal a is the same as the system power supply. When combined with the selection of PMOS tube 101 and NMOS tube 102 of a certain power, VA can have the required driving force, which enables VA to be used as a signal end to send data and as a power end to power the LED light string. Figure 4 , process signal b in the same way to obtain VB. Figure 2 The waveforms of VA and VB are schematic diagrams of the controller sending data.
[0077] In the embodiment of the present invention, the voltage reduction unit 109 may specifically be a circuit capable of achieving voltage reduction. The specific implementation is well known to those skilled in the art and will not be described in detail herein.
[0078] As a specific implementation of the power conversion circuit 201, Figure 5As shown, the power conversion circuit 201 includes: a first diode 311, a second diode 312, a third diode 313, a fourth diode 314 and a first capacitor 315, the cathode of the first diode 311 is connected to the first data receiving port VA of the LED unit, the anode of the first diode 311 is connected to the anode of the third diode 313, the cathode of the third diode 313 is connected to the second data receiving port VB of the LED unit, the anode of the second diode 312 is connected to the first data receiving port VA of the LED unit, the cathode of the second diode 312 is connected to the cathode of the fourth diode 314, the anode of the fourth diode 314 is connected to the second data receiving port VB of the LED unit, one end of the first capacitor 315 is connected to the cathode of the second diode 312, the other end of the first capacitor 315 is connected to the anode of the first diode 311, one end of the first capacitor 315 is the positive power supply terminal vdd of the power conversion circuit, and the other end of the first capacitor 315 is the negative ground terminal vss of the power conversion circuit.
[0079] It should be understood that the input terminals of the power conversion circuit 201 are VA and VB, and the outputs vdd and vss are used as power and ground respectively to supply power to other circuits in the LED unit. The diode in the power conversion circuit can also be replaced by an equivalent structure of a MOS tube. The diode is used here to more intuitively show its working principle. The biggest feature of this circuit structure is that the one with a higher voltage can be selected from VA and VB as the driving terminal of the internal power supply vdd, and the one with a lower voltage can be selected from VA and VB as the driving terminal of the internal ground vss. According to the above description, VB and VA are in anti-phase. When sending data, when VA is at a low level of 0V, VB is at a high level. At this time, the fourth diode 314 is in a conducting state, and VB ensures the power supply capacity of the internal power supply vdd through the fourth diode 314. The corresponding first diode 311 is also in a conducting state, and VA ensures the power supply capacity of the internal ground vss through the first diode 311. When VA returns to a high level, VB changes back to a low level. At this time, diodes 314 and 311 are in an off state, while diodes 312 and 313 are in an on state. VA supplies power to the internal power supply vdd through the second diode 312, and VB supplies power to the internal ground vss through the third diode 313. Figure 2 Vdd and vss are schematic diagrams of the vdd and vss output by the power conversion circuit. It can be seen that the power vdd and vss output by the power conversion circuit 201 are not affected by the state flipping of its input terminals VA and VB, and can provide continuous and stable working power for other circuits in the LED unit.
[0080] As a specific implementation of the data decoding circuit 202, Figure 7As shown, the data decoding circuit 202 includes: an edge detection circuit 321, an oscillator 322, a counter 323, a comparator 324 and a shift register 325, the input end of the edge detection circuit 321 is connected to the first data receiving port VA of the LED unit, the data output end of the edge detection circuit 321 is respectively connected to the oscillator 322, the counter 323 and the shift register 324, the counter 323 is connected to the oscillator 322, the comparator 324 is connected to the counter 323, and the shift register 325 is connected to the comparator 324.
[0081] As another specific implementation of the data decoding circuit 202, Figure 8 As shown, the data decoding circuit 202 includes: an edge detection circuit 331, an oscillator 332, a counter 333, a comparator 334, a shift register 335 and a reference position processing circuit 336, the input end of the edge detection circuit 331 is connected to the first data receiving port VA of the LED unit, the data output end of the edge detection circuit 331 is respectively connected to the oscillator 332, the counter 333, the reference position processing circuit 336 and the shift register 335, the timer 333 is connected to the oscillator 332, the comparator 334 is respectively connected to the counter 333 and the reference position processing circuit 336, and the shift register 335 is connected to the comparator 334.
[0082] As a specific working principle diagram of the edge detection circuit 321 and the edge detection circuit 331, as shown in Fig. 9 shown.
[0083] As a specific working principle diagram of the reference bit processing circuit 336, Fig.10 shown.
[0084] Specifically, Fig.11 As shown, the display control circuit includes: a reset code detection circuit 341, a display data register 342 and a switch control circuit 343, the data input end of the reset code detection circuit 341 is connected to the first data receiving port VA of the LED unit, the display data register 342 is connected to the reset code detection circuit 341, and the switch control circuit 343 is connected to the display data register 342.
[0085] In the embodiment of the present invention, as a specific implementation of the reset code detection circuit 341, as shown in FIG. Fig.12 As shown, this is a schematic diagram of its working principle.
[0086] As a specific implementation of the display data register 342, Fig.13 As shown, this is a schematic diagram of its working principle.
[0087] As a specific implementation of the switch control circuit 343, Fig.14 As shown, this is a schematic diagram of its working principle.
[0088] Combine the following Figures 15 to 18 The specific working processes of the data decoding circuit, the display control circuit and the drive control circuit provided in the embodiments of the present invention are described in detail.
[0089] Take VA as the data transmission line, define a bit of data starting from the falling edge of VA, and return to the high level after a certain period of low level and maintain for a certain period of time. The data 1 and 0 are determined by the length of the low level time. For example, it can be defined that a bit of data with a low level time length of 2us is 0, and a bit of data with a low level time length of 4us is 1. The data bits need to be sent continuously, and VA remains at a high level after all data bits are sent. Define the VA high level duration exceeding a certain length as a reset code. For example, define the VA high level duration of 100us as a reset code. The reset code makes the received data effective. The waveform of VA sending data is as follows Fig.15 shown.
[0090] Determine how many bits of data need to be sent in total according to the actual function of the product. For example, in this embodiment, 3 LED outputs need to be controlled, and each LED needs 8 bits of data to control its output grayscale, so a total of 24 bits of data are required. After all data are sent, VA can be kept at a high level. When VA continues to be at a high level for more than 100us, a reset code is generated and the received data is effective.
[0091] The data decoding circuit completes the work of decoding data from VA. The data decoding circuit is as follows: Figure 7 As shown, it includes an edge detection circuit, an oscillator, a counter, a comparator and a shift register. The so-called data decoding is the process of obtaining the required data from VA and storing it for backup according to the data protocol definition. According to the definition of the data protocol, the data bit can be determined to be 1 or 0 by judging the length of VA low level time. And each bit of the determined data is stored in the shift register to complete the data decoding task. There are many ways to achieve this, and the data decoding circuit described in the present invention is only one of the solutions, not the only solution.
[0092] The specific decoding process is as follows: the edge detection circuit detects the change of the VA signal in real time, and generates pulse signals SF and SR at the falling edge and rising edge of VA respectively. The timing waveform is as follows Fig.16As shown; SF triggers the oscillator 322 to work and output a precise clock signal CK, and the CK cycle is designed to be 150ns. At the same time, the counter 323 starts counting from 0 with the signal CK as the clock under the action of SF, and the result DQ is output to the positive input terminal of the digital comparator 324. The negative input terminal of the comparator 324 is connected to the data DK, and the value of DK is directly designed to be 20. SR is responsible for storing the result DY of the comparator as data into the shift register 325. From the above description, it can be seen that when the low level length of a bit of data exceeds 3us, it is judged as 1, and when it is less than 3us, it is judged as 0, and it is stored in the shift register at the rising edge of VA. The controller will send 24 bits of data, divided into 3 groups, each group of 8 bits of data, for controlling one LED light. Here, the shift register is designed to be 24 bits, and the 24 bits of data will be stored in it in sequence during the decoding process. When the 24 bits of data are sent, VA remains high until the next time new data is sent.
[0093] The above is a data protocol for sending data at a fixed rate and the corresponding decoding process. It is also possible to define a data protocol with adaptive data transmission rate. The corresponding data decoding circuit only needs to be slightly modified on the basis of the above decoding circuit. The following introduces the control scheme for adaptive rate transmission.
[0094] The rate adaptive data protocol is basically the same as the fixed rate data protocol, except that a reference bit Mbit is sent before sending the data, and then all the data is sent in sequence. The waveform diagram of the rate adaptive data transmission protocol is shown in the figure below. Fig.17 As shown. The so-called rate adaptation means that the length of the data bit does not need to be fixed, but only needs to be in a certain proportional relationship with the reference bit Mbit. For example, the low-level length of data 0 is defined as 2*T, the low-level length of data 1 is defined as 4*T, and the low-level length of the reference bit Mbit is defined as 3K*T. Here T is a unit of time length, and K is an integer. When applied, the controller can send the reference bit and the data bit according to the above proportional relationship according to actual needs, without requiring a fixed data bit length. The use of this solution greatly improves the adaptability and flexibility of such products.
[0095] For the above rate adaptive data transmission protocol, the data decoding circuit is as follows Figure 8As shown, it includes an edge detection circuit 331, an oscillator 332, a counter 333, a comparator 334, a shift register 335 and a reference bit processing circuit 336. The decoding process of a frame of data is as follows: First, the reference bit processing circuit calculates the low level length of the reference bit in cooperation with the edge detection circuit and the oscillator. After the rising edge of the reference bit, the result DK obtained by dividing this value by K is used as the negative input data of the comparator. After that, each bit of data is decoded, specifically, the low level length of each bit of data is calculated and locked to DQ at its rising edge, and this length value DQ is connected to the positive input of the comparator. The result DY of the comparator is the value of the current bit of data obtained by decoding, which is stored in the shift register in sequence at the rising edge of each bit of data, and is completed by the SR signal. The above is the decoding process of the rate adaptive data transmission protocol.
[0096] After the data decoding circuit decodes the data from the VA, the data will be provided to the display control circuit for use. The working process of the display control circuit is introduced below.
[0097] The display control circuit is responsible for obtaining data from the decoding circuit and controlling the switch status of the 3-way LED lights through this data. Fig.11 As shown, it includes a reset code detection circuit 341, a display data register 342 and a switch control 343. When the reset code detection circuit detects that VA continues to be high for more than 100us, it generates a reset signal FR, and FR loads the data DN[23:0] in the data decoding circuit into the display data register. The switch control circuit generates a switch control signal of the LED according to the display data. The drive circuit is responsible for turning the LED light on and off and the specific current size when it is turned on.
[0098] The circuit schematic diagram of the drive control circuit 207 is as follows: Fig.18 As shown, the specific working process is well known to those skilled in the art and will not be described in detail here.
[0099] The above is the specific working process of the embodiment of the present invention. It can be seen that the present invention achieves the purpose of two-line control of the LED unit, and its control method is simple and reliable, and the requirements for the controller and the corresponding decoding circuit of the LED unit are greatly reduced.
[0100] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A LED control system, It is characterized in that include: A controller and an LED light string electrically connected to the controller; The controller comprises a first data output port and a second data output port, and is used to send out a first data signal through the first data output port and send out a second data signal through the second data output port, and the first data signal and the second data signal are in opposite phases to each other; The LED light string can receive the first data signal and the second data signal through the data receiving port, and can realize the display control of the LED light according to the first data signal and the second data signal, and can realize the power supply of the LED light by power conversion of the first data signal and the second data signal; The power conversion circuit includes: a first diode, a second diode, a third diode, a fourth diode and a first capacitor, wherein the cathode of the first diode is connected to the first data receiving port of the LED unit, the anode of the first diode is connected to the anode of the third diode, the cathode of the third diode is connected to the second data receiving port of the LED unit, the anode of the second diode is connected to the first data receiving port of the LED unit, the cathode of the second diode is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the second data receiving port of the LED unit, one end of the first capacitor is connected to the cathode of the second diode, the other end of the first capacitor is connected to the anode of the first diode, one end of the first capacitor is the positive power supply terminal of the power conversion circuit, and the other end of the first capacitor is the negative grounding terminal of the power conversion circuit; The LED light string comprises: N LED units connected in series, each LED unit comprises a first data receiving port and a second data receiving port, the first data receiving port of the first LED unit is used to receive the first data signal, the second data receiving port of the Nth LED unit is used to receive the second data signal, the second data receiving port of the first LED unit and the first data receiving port of the Nth LED unit are connected in series in sequence, and N is a natural number greater than or equal to 1; Each of the LED units comprises: a power conversion circuit, a data decoding circuit, a display control circuit, a drive control circuit and an LED lamp, wherein two input ends of the power conversion circuit serve as a first data receiving port and a second data receiving port of the LED unit respectively, and an output end of the power conversion circuit is connected to a power supply end of the data decoding circuit and a power supply end of the display control circuit respectively, a data input end of the data decoding circuit is connected to the first data receiving port of the LED unit, a data output end of the data decoding circuit is connected to a data input end of the display control circuit, a data output end of the display control circuit is connected to a data input end of the drive control circuit, the drive control circuit is also connected to the first data receiving port and the second data receiving port of the LED unit respectively, a data output end of the drive control circuit is connected to a cathode of the LED lamp, and an anode of the LED lamp is connected to the first data receiving port of the LED unit; The power conversion circuit is capable of converting the first data signal and the second data signal into power supply; The data decoding circuit is capable of decoding the first data signal to obtain display control data; The display control circuit is used to generate drive control data according to the display control data; The drive control circuit is used to generate a drive signal according to the drive control data, so that the LED is displayed according to the drive signal; The data decoding circuit includes: an edge detection circuit, an oscillator, a counter, a comparator and a shift register. The input end of the edge detection circuit is connected to the first data receiving port of the LED unit, and the data output end of the edge detection circuit is respectively connected to the oscillator, the counter and the shift register. The counter is connected to the oscillator, the comparator is connected to the counter, and the shift register is connected to the comparator.
2. The LED control system according to claim 1, It is characterized in that The data decoding circuit includes: an edge detection circuit, an oscillator, a counter, a comparator, a shift register and a reference bit processing circuit. The input end of the edge detection circuit is connected to the first data receiving port of the LED unit, and the data output end of the edge detection circuit is respectively connected to the oscillator, the counter, the reference bit processing circuit and the shift register. The counter is connected to the oscillator, the comparator is respectively connected to the counter and the reference bit processing circuit, and the shift register is connected to the comparator.
3. The LED control system according to claim 1, It is characterized in that The display control circuit includes: a reset code detection circuit, a display data register and a switch control circuit, the data input end of the reset code detection circuit is connected to the first data receiving port of the LED unit, the display data register is connected to the reset code detection circuit, and the switch control circuit is connected to the display data register.
4. The LED control system according to any one of claims 1 to 3, It is characterized in that The controller includes: a step-down unit, a data transmission main control unit, a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a fifth switch tube, a sixth switch tube, a first resistor and a second resistor. The input end of the step-down unit is connected to the power supply end, and the output end of the step-down unit is connected to the data transmission main control unit. The output end of the data transmission main control unit is respectively connected to the control end of the first switch tube and the control end of the second switch tube, the first end of the first switch tube is connected to the power supply end through the first resistor, the second end of the first switch tube is connected to the signal ground, the first end of the second switch tube is connected to the power supply end through the second resistor, and the second end of the second switch tube is connected to the signal ground, The control end of the third switch tube and the control end of the fourth switch tube are both connected to the first end of the first switch tube, the first end of the third switch tube is connected to the power supply end, the second end of the third switch tube is connected to the first end of the fourth switch tube and serves as the first data output port of the controller, and the second end of the fourth switch tube is connected to the signal ground. The control end of the fifth switch tube and the control end of the sixth switch tube are both connected to the first end of the second switch tube, the first end of the fifth switch tube is connected to the power supply end, the second end of the fifth switch tube and the first end of the sixth switch tube are connected and serve as the second data output port of the controller, and the second end of the sixth switch tube is connected to the signal ground.
5. The LED control system according to claim 4, It is characterized in that The data sending main control unit includes a single chip microcomputer.
6. The LED control system according to claim 4, It is characterized in that The first switch tube, the second switch tube, the fourth switch tube and the sixth switch tube all include N-type MOS tubes, and the third switch tube and the fifth switch tube all include P-type MOS tubes.
