CN112351549B - Device and communication method for digital communication with LED lamp through 0-10V dimming interface - Google Patents

Device and communication method for digital communication with LED lamp through 0-10V dimming interface Download PDF

Info

Publication number
CN112351549B
CN112351549B CN202011327730.4A CN202011327730A CN112351549B CN 112351549 B CN112351549 B CN 112351549B CN 202011327730 A CN202011327730 A CN 202011327730A CN 112351549 B CN112351549 B CN 112351549B
Authority
CN
China
Prior art keywords
singlechip
lamp
dimming
led
control module
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.)
Active
Application number
CN202011327730.4A
Other languages
Chinese (zh)
Other versions
CN112351549A (en
Inventor
雒俊锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Laihao Shanghai Optoelectronics Technology Co ltd
Original Assignee
Laihao Shanghai Optoelectronics Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Laihao Shanghai Optoelectronics Technology Co ltd filed Critical Laihao Shanghai Optoelectronics Technology Co ltd
Priority to CN202011327730.4A priority Critical patent/CN112351549B/en
Publication of CN112351549A publication Critical patent/CN112351549A/en
Application granted granted Critical
Publication of CN112351549B publication Critical patent/CN112351549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/34Voltage stabilisation; Maintaining constant voltage
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/345Current stabilisation; Maintaining constant current
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/36Circuits for reducing or suppressing harmonics, ripples or electromagnetic interferences [EMI]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/50Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention relates to a device and a communication method for digital communication with an LED lamp through a 0-10V dimming interface, wherein the device comprises a control module and an interface circuit in the lamp, the interface circuit in the lamp is arranged in the LED lamp, one end of the interface circuit in the lamp is connected with the 0-10V dimming interface, the other end of the interface circuit in the lamp is connected with a first singlechip, the control module comprises a second singlechip, the interface circuit in the control module and a man-machine interaction unit, one end of the interface circuit in the control module is connected with the second singlechip, the other end of the interface circuit in the control module is connected with the 0-10V dimming interface on the LED lamp through a 0-10V connecting bus, and the man-machine interaction unit is connected with the second singlechip. The communication method is embedded in the first singlechip and the second singlechip and is used for realizing digital communication between the control module and the lamp. Compared with the prior art, the invention has the advantages of strong universality, reduced factory stock, rich functions, flexible configuration, simplicity, convenience and the like.

Description

Device and communication method for digital communication with LED lamp through 0-10V dimming interface
Technical Field
The invention relates to the technical field of LED lamp manufacturing, in particular to a device and a communication method for digital communication with an LED lamp through a 0-10V dimming interface.
Background
The technical development of the LED is mature at present, and the LED has generally replaced traditional light sources such as incandescent lamps, fluorescent lamps and the like. The 0-10V dimming technology is a dimming mode commonly adopted by traditional illumination, and the 0-10V dimmer circuit is simple and reliable. The existing 0-10V dimming lamp is internally provided with a constant current drive controlled by 0-10V, the constant current drive is connected with the 0-10V dimmer through two wires, the voltage between the two wires changes when the 0-10V dimmer is rotated or slid, the general change range is between 0.5V and 10V, the current output by the constant current drive can be adjusted according to the voltage, and the brightness of the corresponding LED changes.
Because the 0-10V signal is an analog signal and is generally used for adjusting the brightness of the lamp, the 0-10V control lamp is used for adjusting the brightness of the lamp and adjusting the color of the lamp at the same time in the market at present, the most typical application is that a high-color-temperature LED and a low-color-temperature LED are used in the lamp, the high-color-temperature LED is bright when the lamp is fully lighted, the low-color-temperature LED and the high-color-temperature LED are simultaneously lighted when the brightness is reduced, only the low-color-temperature LED is lighted when the brightness is low, and the driving current of the high-color-temperature LED and the low-color-temperature LED is changed when the overall brightness is changed according to a proportion rule. There is no way to keep the high and low color temperature LEDs at a fixed ratio for brightness variation. In addition, as LEDs of the 0-10V dimming LED lamp have different color temperatures, in the field of commercial illumination, general customers can require the color temperatures of the LEDs, and different projects have different requirements on the color temperatures of the LEDs, so that lamp manufacturers are required to produce the LED lamp with different color temperatures, a large amount of lamp inventory is caused in factories, and inventory resources are wasted.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide the device and the communication method which have strong universality, reduced factory stock, rich functions, flexible configuration, simplicity and convenience and are used for carrying out digital communication with the LED lamp through the 0-10V dimming interface.
The aim of the invention can be achieved by the following technical scheme:
the device is connected with the existing LED lamp, and comprises a 0-10V dimming interface, a first singlechip, a plurality of constant-current driving power supplies, a plurality of LED lamp panel modules and a constant-voltage power supply, wherein the constant-current driving power supplies are respectively connected with the constant-current driving power supplies; the internal interface circuit in the lamp is arranged in the LED lamp, one end of the internal interface circuit in the lamp is connected with the 0-10V dimming interface, and the other end of the internal interface circuit in the lamp is connected with the first singlechip;
the control module comprises a second singlechip, an internal interface circuit in the control module and a man-machine interaction unit; one end of the internal circuit in the control module is connected with the second singlechip, and the other end of the internal circuit in the control module is connected with a 0-10V dimming interface on the LED lamp through a 0-10V connecting bus; the man-machine interaction unit is connected with the second singlechip.
Preferably, the in-circuit interface circuit in the control module comprises a signal receiving sub-circuit and a signal transmitting sub-circuit; one end of the signal receiving sub-circuit is connected with a signal receiving pin of the second singlechip, and the other end of the signal receiving sub-circuit is connected with a 0-10V connecting bus; one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the second singlechip, and the other end of the signal transmitting sub-circuit is connected with a 0-10V connecting bus;
the internal circuit in the lamp comprises a signal receiving sub-circuit, a signal transmitting sub-circuit and an analog signal collecting sub-circuit; one end of the signal receiving sub-circuit is connected with a signal receiving pin of the first singlechip, and the other end of the signal receiving sub-circuit is connected with a 0-10V dimming interface; one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the first singlechip, and the other end of the signal transmitting sub-circuit is connected with a 0-10V dimming interface; one end of the analog signal acquisition sub-circuit is connected with the AD pin of the first singlechip, and the other end of the analog signal acquisition sub-circuit is connected with a 0-10V dimming interface.
More preferably, the signal receiving subcircuit includes a first resistor and a first high-speed switching diode; the anode of the first high-speed switching diode is connected with a signal receiving pin of the first singlechip or the second singlechip, and the cathode of the first high-speed switching diode is connected with a 0-10V dimming interface;
One end of the first resistor is connected to a circuit between the first high-speed switching diode and the signal receiving pin, and the other end of the first resistor is connected to a positive 5V power supply.
More preferably, the signal transmitting sub-circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first MOSFET and a second MOSFET;
one end of the second resistor is connected with a signal transmitting pin of the first singlechip or the second singlechip, and the other end of the second resistor is connected with a grid electrode of the first MOSFET; one ends of the third resistor and the fourth resistor are respectively connected to a circuit between the second resistor and the first MOSFET; the other end of the third resistor is connected with a positive 5V power supply; the other end of the fourth resistor is grounded;
the source electrode of the first MOSFET is grounded; one end of the fifth resistor is connected with the drain electrode of the first MOSFET, and the other end of the fifth resistor is connected with a positive 5V power supply;
and the grid electrode of the second MOSFET is connected to a circuit between the fifth resistor and the first MOSFET, the source electrode of the second MOSFET is grounded, and the drain electrode of the second MOSFET is connected with a 0-10V dimming interface.
More preferably, the analog signal acquisition sub-circuit includes a second high-speed switching diode, a sixth resistor, a seventh resistor, an eighth resistor, a first capacitor, a second capacitor and a voltage follower;
The negative electrode of the second high-speed switching diode is connected with a 0-10V dimming interface, and the positive electrode of the second high-speed switching diode is connected with the positive input end of the voltage follower; one end of the sixth resistor and one end of the first capacitor are respectively connected to a circuit between the second high-speed switching diode and the voltage follower; the other end of the sixth resistor is connected with a positive 5V power supply; the other end of the first capacitor is grounded;
the positive power supply of the voltage follower is connected with a positive 10V power supply, and the negative power supply is connected with the ground; the output end of the voltage follower is respectively connected with the reverse input end of the voltage follower and the seventh resistor; the other end of the seventh resistor is connected with an AD pin of the first singlechip; the eighth resistor and the second capacitor are respectively connected to a circuit between the seventh resistor and the first singlechip; the other ends of the eighth resistor and the second capacitor are grounded respectively.
Preferably, the man-machine interaction unit comprises an LCD display screen (2031) and keys (2032); the LCD display screen (2031) and the keys (2032) are respectively connected with the second singlechip.
The communication method for the device to carry out digital communication with the LED lamp through the 0-10V dimming interface comprises a control side communication sub-method and a lamp side communication sub-method;
The control side communication sub-method comprises the following steps:
the second singlechip acquires a command to be transmitted according to the input data of the man-machine interaction unit, and a signal transmission pin of the second singlechip transmits the command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the first singlechip judges whether a command signal sent by the second singlechip is received, if the command signal is received, the first singlechip responds to the command signal, otherwise, whether the command signal is received is continuously judged;
the command sent by the second singlechip comprises a lamp color setting command, a lamp dimming curve setting command, a color matching mode setting command and a lamp parameter setting command;
the lamp side communication sub-method comprises the following steps:
the first singlechip acquires a command to be transmitted, and a signal transmission pin of the first singlechip transmits command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the second singlechip judges whether a command signal sent by the first singlechip is received, if the command signal is received, the second singlechip responds to the command signal, otherwise, whether the command signal is received is continuously judged.
Preferably, when the command sent by the second singlechip is a lamp color setting command, the control side communication sub-method specifically comprises:
The second singlechip executes the following steps:
step 101: the control module obtains a lamp color setting command through the man-machine interaction unit;
step 102: judging a specific instruction for setting a lamp color command at present, wherein the instruction comprises a single-channel LED brightness setting instruction and a multi-channel LED color mixing setting instruction, executing step 103 if the instruction is the single-channel LED brightness setting instruction, and executing step 108 if the instruction is the multi-channel LED color mixing setting instruction;
step 103: the control module enters a single-channel LED brightness setting mode, and acquires an LED channel serial number to be set and a brightness value to be adjusted, which are input by the man-machine interaction unit;
step 104: the control module sends the LED channel serial number and the brightness value to be adjusted to the first singlechip through the signal sending pin, and the first singlechip completes the single-channel LED brightness setting instruction;
step 105: the control module judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 104 is returned;
step 106: ending the color setting of the current LED channel, and then executing step 107;
step 107: judging whether the brightness of other channels meets the requirement, if so, executing the step 111, otherwise, returning to the step 103;
Step 108: the control module enters a multi-channel LED color mixing setting mode, and acquires needed color mixing data;
step 109: the control module sends the color mixture color data to the first singlechip through the signal sending pin, and the first singlechip completes the color mixture setting instruction of the multichannel LED;
step 110: the control module judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 108 is returned;
step 111: the control module completes the lamp color setting command, and the second singlechip sends an instruction for finishing the lamp color setting command;
the first singlechip performs the following steps:
step 201: the first singlechip continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 202 is executed, otherwise, the step 201 is continuously executed;
step 202: the first singlechip stops AD conversion of the AD pin;
step 203: judging whether the lamp color command is a single-channel LED brightness setting command or a multi-channel LED color mixing setting command, if the lamp color command is the single-channel LED brightness setting command, executing step 204, and if the lamp color command is the multi-channel LED color mixing setting command, executing step 207;
step 204: the first singlechip enters a single-channel LED brightness setting mode, converts a received brightness value to be adjusted into a PWM duty ratio, and adjusts the LED brightness value of a corresponding channel according to the LED channel serial number;
Step 205: the first singlechip judges whether an instruction for ending the lamp color setting command sent by the second singlechip is received, if yes, step 206 is executed, otherwise, step 204 is returned;
step 206: the first singlechip stores the brightness value code finally received by each LED channel, and then executes step 210;
step 207: the first singlechip enters a multi-channel LED color mixing setting mode, obtains PWM duty ratio values of all channels according to the received color mixing data, and uses the duty ratio values to carry out PWM dimming on the LEDs of all channels;
step 208: the first singlechip judges whether an instruction for finishing setting the lamp color command sent by the second singlechip is received, if yes, step 209 is executed, otherwise, step 207 is returned;
step 209: the first singlechip stores the mixed color data code, and then performs step 210;
step 210: and finishing the lamp color setting command, exiting the digital communication mode by the first singlechip, and starting AD conversion of the AD pin.
Preferably, when the command sent by the second singlechip is a lamp dimming curve setting and color matching mode command, the control side communication sub-method specifically comprises:
the second singlechip executes the following steps:
Step 301: the control module obtains a lamp dimming curve setting and color mixing mode command through the man-machine interaction unit;
step 302: entering a lamp dimming curve setting mode, and acquiring a lamp dimming curve instruction, wherein the lamp dimming curve instruction comprises a linear dimming curve instruction, a Gamma correction curve and an S-shaped dimming curve, by a control module through a human-computer interaction unit;
step 303: the control module sends the dimming curve instruction and the corresponding key to the first singlechip through the signal sending pin;
step 304: entering the setting of a lamp color matching mode, and obtaining a lamp dimming instruction, including a single-color light and shade change instruction and a multicolor color mixing light and shade change instruction, by a control module through a human-computer interaction unit;
step 305: the control module sends the lamp dimming instruction and the corresponding key to the first singlechip through the signal sending pin;
step 306: the control module finishes setting the dimming curve and the dimming mode of the LED lamp, and the second singlechip sends an ending instruction;
the first singlechip performs the following steps:
step 401: the first singlechip continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 402 is executed, otherwise, the step 401 is continuously executed;
step 402: the first singlechip stops AD conversion of the AD pin and enters a digital communication mode;
Step 403: the first singlechip receives the data, judges whether a dimming curve command key is received, if yes, executes step 405, otherwise, executes step 404;
step 404: the first singlechip judges whether the lamp dimming command key is received, if yes, step 405 is executed, and if not, step 406 is executed;
step 405: the first singlechip latches the data, responds according to the instruction, and then executes step 406;
step 406: the first singlechip judges whether an ending instruction sent by the second singlechip is received, if yes, step 407 is executed, and otherwise, step 403 is returned;
step 407: and finishing the lamp dimming curve setting and the color mixing mode command, exiting the digital communication mode by the first singlechip, and starting AD conversion of the AD pin.
Preferably, when the command sent by the second singlechip is a lamp parameter setting command, the control side communication sub-method specifically comprises:
the second singlechip executes the following steps:
step 501: the control module obtains a lamp parameter setting command through the man-machine interaction unit;
step 502: the control module obtains lamp parameter setting instructions through the man-machine interaction unit, wherein the lamp parameter setting instructions comprise an LED driving output current setting instruction, an LED driving dimming frequency setting instruction, an LED driving dimming rate setting instruction and an LED driving output voltage setting instruction, and the steps 503, 504, 505 and 506 are respectively executed aiming at the instructions;
Step 503: the control module enters an LED driving output current setting mode, and sends a channel code, a current code and a secret key to the first singlechip through a signal sending pin;
step 504: the control module enters an LED driving dimming frequency setting mode, and sends a dimming frequency code and a secret key to the first singlechip through a signal sending pin;
step 505: the control module enters an LED driving dimming rate setting mode, and sends a dimming rate code and a secret key to the first singlechip through a signal sending pin;
step 506: the control module enters an LED driving output voltage setting mode, and an output voltage code and a secret key are sent to the first singlechip through a signal sending pin;
step 507: setting a lamp parameter command to finish, and sending a finishing command by the control module;
the first singlechip performs the following steps:
step 601: the first singlechip continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 602 is executed, otherwise, the step 601 is continuously executed;
step 602: the first singlechip stops AD conversion of the AD pin and enters a digital communication mode;
step 603: the first singlechip judges whether the LED driving output current setting key is received, if yes, step 607 is executed, otherwise step 604 is executed;
Step 604: the first singlechip judges whether the LED driving dimming frequency setting key is received, if yes, step 607 is executed, otherwise step 605 is executed;
step 605: the first singlechip judges whether the LED driving dimming rate setting key is received, if yes, step 607 is executed, otherwise step 606 is executed;
step 606: the first singlechip judges whether the LED driving output voltage setting key is received, if yes, step 607 is executed, otherwise step 608 is executed;
step 607: the first singlechip latches the received data, responds, and then performs step 608;
step 608: judging whether an end instruction is received, if yes, executing step 609, otherwise, returning to step 603;
step 609: and finishing the lamp parameter setting command, exiting the digital communication mode by the first singlechip, and starting AD conversion of the AD pin.
Compared with the prior art, the invention has the following advantages:
1. the suitability is good: the traditional 0-10V dimming lamp can only adjust the brightness of the lamp, and parameters such as the color of the lamp cannot be adjusted to change, the invention can change parameters such as a dimming curve for a monochromatic lamp according to requirements by digital communication through the 0-10V interface, and can change the brightness of LEDs with more than two colors, namely the color of the lamp, the dimming curve, the color mixing mode and the like, so that the brightness of the LEDs with high color temperature and low color temperature can be changed in a fixed proportion, the adjustment requirements of most LED lamps in the current market are met, and the adaptability is greatly improved.
2. Flexible configuration, simplicity and convenience: by adopting the communication method, the internal parameters of the lamp, the color of the lamp and the like can be flexibly configured, different working parameters can be modified according to the requirements of a user in a factory or a construction site, different effects can be achieved by purchasing one driver for a constructor, the product specification can be simplified, and the communication method is easy to realize.
3. And (3) reducing the stock quantity: the production of the general lamp is to purchase LEDs with different colors according to the requirements of customers, and produce lamps with different colors, and the production management and control and inventory cost are relatively high.
4. The functions are rich: the traditional 0-10V adjustable LED driver can only adjust the size of the driving output current through a 0-10V interface, and the method provided by the invention can be used for carrying out digital communication through the 0-10V interface and can change: 1. the output voltage value of the drive, output current value; 2. dimming frequency of PWM; 3. calling different dimming curves; 4. dimming rate of change; 5. setting the proportion of the multiplex driving output and the like.
Drawings
FIG. 1 is a schematic diagram of a control module and an LED lamp in the present invention;
FIG. 2 is a schematic diagram of the circuit structure of the interface circuit in the lamp and the interface circuit in the control module according to the present invention;
FIG. 3 is a schematic diagram of a circuit structure of a signal receiving sub-circuit according to the present invention;
FIG. 4 is a schematic diagram of a circuit configuration of a signal transmitting sub-circuit according to the present invention;
FIG. 5 is a schematic circuit diagram of an analog signal acquisition sub-circuit according to the present invention;
FIG. 6 is a schematic diagram of the control module of the present invention when connected to a 0-10V dimming lamp;
FIG. 7 is a schematic diagram of the control module of the present invention when connected with 0-10V adjustable drive;
FIG. 8 is a schematic diagram of a standard 0-10V dimmer connected to a 0-10 dimming lamp according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart of the control module of the present invention when sending a signal to set the light color of a lamp;
FIG. 10 is a schematic flow chart of the lamp receiving a control signal to set a lamp color according to the present invention;
FIG. 11 is a schematic flow chart of the control module of the present invention when sending a signal to set the dimming curve and the color matching mode of the lamp;
FIG. 12 is a schematic flow chart of the lamp receiving control signals to set the dimming curve and the color matching mode according to the present invention;
FIG. 13 is a flow chart of the control module according to the present invention when sending a signal to set parameters of a lamp;
Fig. 14 is a flow chart of the lamp receiving a control signal to set parameters of the lamp according to the present invention.
The reference numerals shown in the drawings specifically are:
1. the LED lamp comprises an LED lamp, a first singlechip, 102, a constant-current driving power supply, 103, an LED lamp panel module, 104 and a constant-voltage power supply;
2. the control module 201, the second singlechip 202, an internal interface circuit in the control module 203 and a man-machine interaction unit; 2031. LCD display screen, 2032, keys;
3. an internal circuit is connected in the lamp.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The device is shown in fig. 1, the device is connected with an existing LED lamp 1 through a 0-10V dimming interface, the LED lamp 1 comprises a 0-10V dimming interface arranged on the lamp, a first singlechip 101, a plurality of constant current driving power supplies 102 respectively connected with the first singlechip 101, a plurality of LED lamp panel modules 103 respectively connected with the constant current driving power supplies 102 and a constant voltage power supply 104, the first singlechip 101 and the constant current driving power supplies 102 are respectively connected with the constant voltage power supplies, the device comprises a control module 2 and an in-lamp interface circuit 3, the in-lamp interface circuit 3 is arranged in the LED lamp 1, one end of the in-lamp interface circuit 3 is connected with the 0-10V dimming interface, the other end of the in-lamp interface circuit 3 is connected with the first singlechip 101, the control module 2 comprises a second singlechip 201, an in-control module interface circuit 202 and a man-machine interaction unit 203, one end of the in-machine interaction unit 202 is connected with the second singlechip 201, and the other end of the in-control module is connected with the 0-10V dimming interface on the LED lamp 1 through a 0-10V connecting bus, and the man-machine interaction unit 203 is connected with the second singlechip 201.
The structure of the interface circuit is shown in fig. 2, and the interface circuit 202 in the control module comprises a signal receiving sub-circuit and a signal transmitting sub-circuit, wherein one end of the signal receiving sub-circuit is connected with a signal receiving pin of the second singlechip 201, the other end of the signal receiving sub-circuit is connected with a 0-10V connecting bus, one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the second singlechip 201, and the other end of the signal transmitting sub-circuit is connected with the 0-10V connecting bus;
the interface circuit 3 in the lamp comprises a signal receiving sub-circuit, a signal transmitting sub-circuit and an analog signal collecting sub-circuit, wherein one end of the signal receiving sub-circuit is connected with a signal receiving pin of the first singlechip 101, the other end of the signal receiving sub-circuit is connected with a 0-10V dimming interface, one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the first singlechip 101, the other end of the signal transmitting sub-circuit is connected with a 0-10V dimming interface, one end of the analog signal collecting sub-circuit is connected with an AD pin of the first singlechip 101, and the other end of the analog signal collecting sub-circuit is connected with the 0-10V dimming interface.
The following three subcircuits are described in detail:
1. signal receiving subcircuit
The structure of the signal receiving subcircuit is shown in fig. 3, the circuit comprises a first resistor and a first high-speed switching diode, the positive electrode of the first high-speed switching diode is connected with a signal receiving pin of the first singlechip 101 or the second singlechip 201, the negative electrode of the first high-speed switching diode is connected with a 0-10V dimming interface, one end of the first resistor is connected with a circuit between the first high-speed switching diode and the signal receiving pin, and the other end of the first resistor is connected with a positive 5V power supply.
The control module 2 in this embodiment is connected to the control module via R11And D11The composed circuit transmits the digital signal on the 0-10V bus to the PC1/RX pin of the singlechip. D (D)11D is a high-speed switching diode with reverse cut-off voltage higher than 30V11Is reversely connected to the 0-10V interface, when the 0-10V interface is low level<0.5V), D11Forward conduction clamps the voltage of the PC1/RX pin to 1V, the PC1/RX detects low level, and D is detected when the interface voltage of 0-10V is less than 5V11Always in a forward conduction state, when the interface voltage of 0-10V is more than 5V, D11In a reverse cut-off state, thus 0-10V connection can be preventedThe on-port voltage damages the PC1/RX interface.
2. Signal transmitting sub-circuit
The structure of the signal transmitting sub-circuit is shown in fig. 4, and the signal transmitting sub-circuit comprises a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first MOSFET and a second MOSFET, wherein one end of the second resistor is connected with a signal transmitting pin of the first singlechip 101 or the second singlechip 201, the other end of the second resistor is connected with a grid electrode of the first MOSFET, one ends of the third resistor and the fourth resistor are respectively connected with a circuit between the second resistor and the first MOSFET, the other end of the third resistor is connected with a positive 5V power supply, the other end of the fourth resistor is grounded, the source electrode of the first MOSFET is grounded, one end of the fifth resistor is connected with a drain electrode of the first MOSFET, the other end of the fifth resistor is connected with a positive 5V power supply, the grid electrode of the second MOSFET is connected with a circuit between the fifth resistor and the first MOSFET, the source electrode is grounded, and the drain electrode is connected with a 0-10V dimming interface.
The control module 2 sends signals to be output from a PC2/TX pin of the singlechip through R12、R13、R14、R15、Q11And Q12The composed transmitting circuit transmits the signal to the 0-10V interface bus. Q (Q)11And Q12Typically, a low voltage high current MOSFET is used with an open drain connected to a 0-10V interface.
Q11And Q12Is characterized by comprising the following main functions:
(1) When the control module is connected with a plurality of lamps or drives through a 0-10V bus, as each lamp or the 0-10V interface of the drive is a current output type, 0.5-2 mA current is output, when hundreds of lamps or the drives are connected to the same 0-10V bus, the current on the bus can reach hundreds of mA, and when the MOS tube is conducted and passes through a large current, the voltage of a 0-10V port can be controlled below the low level of TTL/CMOS, and a signal receiving end can correctly receive the low level type;
(2) Through Q11And Q12The I/O port of the singlechip and the 0-10V interface can be effectively isolated, and the voltage of the 0-10V interface is prevented from damaging the singlechip;
(3) Through Q11And Q12And high-speed switch and high-current performance, which can rapidly release the capacitance on the bus, thereby effectively performing high-speed digital communication.
3. Analog signal acquisition sub-circuit
The structure of the analog signal acquisition sub-circuit is shown in fig. 5, the analog signal acquisition sub-circuit comprises a second high-speed switch diode, a sixth resistor, a seventh resistor, an eighth resistor, a first capacitor, a second capacitor and a voltage follower, wherein the negative electrode of the second high-speed switch diode is connected with a 0-10V dimming interface, the positive electrode of the second high-speed switch diode is connected with the positive input end of the voltage follower, one end of the sixth resistor and one end of the first capacitor are respectively connected with a circuit between the second high-speed switch diode and the voltage follower, the other end of the sixth resistor is connected with a positive 5V power supply, the other end of the first capacitor is grounded, the positive power supply of the voltage follower is connected with a positive 10V power supply, the negative power supply is grounded, the output end of the voltage follower is respectively connected with the reverse input end of the voltage follower and the seventh resistor, the other end of the seventh resistor is connected with an AD pin of the first singlechip 101, the eighth resistor and the second capacitor are respectively connected with a circuit between the seventh resistor and the first singlechip 101, and the other ends of the eighth resistor and the second capacitor are respectively grounded.
Analog Signal acquisition sub-Circuit route D in this embodiment21、R21、C21、U2、R22、C22When the standard 0-10V dimmer is used for dimming, the 0-10V bus is at a constant level, D21In a forward conduction state, R21Pull up to 10V, supply current to 0-10V dimmer, C21Is a signal filter capacitor, pass through C21The filtered signal is sent to U2Input end of U2The voltage of the input end is 0-10V bus voltage plus D21Forward Voltage (VF), U2Is a voltage follower, U2The output voltage ranges from 0V to 10V, and passes R22And R is23The partial pressure is sent to PB1/AD interface, C22Is a filter capacitor. Wherein D is21Is a high-speed switching diode with a low forward Voltage (VF).
D21Is characterized by comprising the following main functions:
(1) Preventing the inflow of current from the external circuit.
Typically there will be many lamps or drivers on the 0-10V bus and each lamp or driver port will output a fixed current and have a fixed impedance, when one or more of the lamps or drivers fail, the 0-10V interface will not output current, if there is no D21The output current of the 0-10V interface of other lamps or driving can flow into the lamp with fault, thus the voltage of the 0-10V bus is reduced, and the other lamps or driving are in abnormal state;
(2) The capacitance of the 0-10V interface is isolated so as not to affect the digital communication.
The common 0-10V interface is provided with a filter capacitor C21In digital communication, if there is no D21The bus goes from low to high to C21The charging is performed, and the rising edge delay of the waveform becomes long, thereby affecting the communication rate. Increase D21Thereafter, D is changed from low to high21Reverse cut-off, so will not be to C21Charging is performed.
The man-machine interaction unit 203 comprises an LCD display 2031 and keys 2032, and the LCD display 2031 and keys 2032 are respectively connected with the second singlechip 201.
In this embodiment, a schematic diagram of the control module 2 when connected to a 0-10V dimming lamp is shown in fig. 6, a schematic diagram of the control module 2 when connected to a 0-10V adjustable driving is shown in fig. 7, and a schematic diagram of the connection of a conventional standard 0-10V dimmer and a 0-10V dimming lamp is shown in fig. 8.
When the control module 2 is in communication with the drive connection, the LED drive circuit generally consists of an AC-DC constant voltage power supply, a single chip microcomputer control circuit, a 0-10V interface circuit, and one or more LED constant current or constant voltage drive circuits. Each LED constant current drive is connected with an LED of one color, and each LED constant current drive circuit can accurately control the output current through a PWM interface of the LED constant current drive circuit, so that the brightness of each LED is changed. The LED constant voltage drive may work with LEDs of one or more colors. The singlechip is connected with PWM interfaces of each LED constant-current or constant-voltage driving circuit through pins such as PA1, PA2, … …, pan and the like, so that PWM duty ratios output by the PA1, PA2, … … and the PAn interfaces are changed, and the brightness of the corresponding LEDs on each path is correspondingly changed.
The driving is single-path or multi-path constant current output: different working modes can be set through the control module: 1. setting a current value of each path of constant current driving output; 2. setting the proportion among the multiple paths of output currents; 3. when the 0-10V dimmer is connected, the multiple paths are changed independently or simultaneously; 4. setting PWM dimming frequency; 5. different dimming curve modes, such as a linear dimming mode, a Gamma curve dimming mode, a Log curve dimming mode and an S curve dimming mode, are set.
The drive is constant voltage output: according to the serial number of LEDs on the LED lamp panel module or the lamp strip which are in driving connection, the voltage of driving output is set through the control module.
2 wires for dimming with 0-10V are used between the control module and the LED lamp or the drive, wherein 1 wire is a negative electrode of a 0-10V signal, namely a negative electrode wire with 0-10V, the other wire is a positive electrode wire with 0-10V, and the voltage on the positive electrode wire changes in the dimming process. The digital communication between the control module and the LED lamp or the drive is also realized by using 2 wires with 0-10V interfaces, wherein a negative wire with 0-10V is used as a ground wire for digital communication, and a positive wire with 0-10V is used as a positive wire for digital communication. And the control module is in single-wire bidirectional digital communication with the LED lamp or the driver. When the 0-10V dimmer is connected with the lamp or the driver (figure 5), the 0-10V interface circuit in the lamp or the driver converts the 0-10V level signal into the 0-5V level signal and sends the 0-5V level signal to the PB1/AD interface of the singlechip, and after the singlechip performs A/D conversion, the singlechip calls different PWM duty ratio values according to the set dimming curve and sends the different PWM duty ratio values to the PWM dimming interfaces PA1, PA2, … …, PAn and the like, so that the dimming function is achieved. Meanwhile, the PB2/RX interface of the lamp or the drive is always in a receiving state, when the 0-10V dimmer is replaced by the control module, the control module is used for sending digital signals to the 0-10V bus, the LED lamp or the PB2/RX interface of the drive can receive the digital signals, and the LED lamp or the drive enters a set mode.
A communication method for the device to carry out digital communication with an LED lamp through a 0-10V dimming interface comprises a control side communication sub-method and a lamp side communication sub-method,
the control side communication sub-method comprises the following steps:
the second singlechip 201 acquires a command to be transmitted according to the input data of the man-machine interaction unit 203, and a signal transmission pin of the second singlechip 201 transmits the command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the first singlechip 101 judges whether a command signal sent by the second singlechip 201 is received, if the command signal is received, the signal is responded, otherwise, whether the command signal is received is continuously judged;
the commands sent by the second singlechip 201 comprise a lamp color setting command, a lamp dimming curve setting command, a color matching mode setting command and a lamp parameter setting command;
the luminaire-side communication sub-method comprises:
the first singlechip 101 acquires a command to be transmitted, and a signal transmission pin of the first singlechip 101 transmits command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the second singlechip 201 determines whether a command signal sent by the first singlechip 201 is received, if the command signal is received, the second singlechip responds to the command signal, otherwise, whether the command signal is received is continuously determined.
The following describes specific steps of the control side communication sub-method when the second singlechip 201 sends a lamp color setting command, a lamp dimming curve setting and color mixing mode setting command, and a lamp parameter setting command:
1. setting luminaire color commands
The second singlechip 201 executes the flow shown in fig. 9, including:
step 101: the control module 2 obtains a lamp color setting command through the man-machine interaction unit 203;
step 102: judging a specific instruction for setting a lamp color command at present, wherein the instruction comprises a single-channel LED brightness setting instruction and a multi-channel LED color mixing setting instruction, executing step 103 if the instruction is the single-channel LED brightness setting instruction, and executing step 108 if the instruction is the multi-channel LED color mixing setting instruction;
step 103: the control module 2 enters a single-channel LED brightness setting mode, and the control module 2 acquires an LED channel serial number to be set and a brightness value to be adjusted, which are input by the man-machine interaction unit 203;
step 104: the control module 2 sends the LED channel serial number and the brightness value to be adjusted to the first singlechip 101 through a signal sending pin, and the first singlechip 101 completes a single-channel LED brightness setting instruction;
step 105: the control module 2 judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 104 is returned;
Step 106: ending the color setting of the current LED channel, and then executing step 107;
step 107: judging whether the brightness of other channels meets the requirement, if so, executing the step 111, otherwise, returning to the step 103;
step 108: the control module 2 enters a multi-channel LED color mixing setting mode, and the control module 2 acquires needed color mixing color data;
step 109: the control module 2 sends the color mixture color data to the first singlechip 101 through a signal sending pin, and the first singlechip 101 finishes the instruction for setting the color mixture of the multichannel LED;
step 110: the control module 2 judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 108 is returned;
step 111: the control module 2 finishes the lamp color setting command, and the second singlechip 201 sends an instruction for finishing the lamp color setting command;
the first singlechip 101 executes a flow shown in fig. 10, including:
step 201: the first singlechip 101 continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 202 is executed, otherwise, the step 201 is continuously executed;
step 202: the first singlechip 101 stops the AD conversion of the AD pin;
step 203: judging whether the lamp color command is a single-channel LED brightness setting command or a multi-channel LED color mixing setting command, if the lamp color command is the single-channel LED brightness setting command, executing step 204, and if the lamp color command is the multi-channel LED color mixing setting command, executing step 207;
Step 204: the first singlechip 101 enters a single-channel LED brightness setting mode, the first singlechip 101 converts a received brightness value to be adjusted into a PWM duty ratio, and adjusts the LED brightness value of a corresponding channel according to the LED channel serial number;
step 205: the first singlechip 101 judges whether an instruction for ending the lamp color setting command sent by the second singlechip 201 is received, if yes, step 206 is executed, otherwise, step 204 is returned;
step 206: the first singlechip 101 stores the last received brightness value code of each LED channel, and then executes step 210;
step 207: the first singlechip 101 enters a multi-channel LED color mixing setting mode, the first singlechip 101 obtains PWM duty ratio values of all channels according to the received color mixing color data, and PWM dimming is carried out on the LEDs of all channels by using the duty ratio values;
step 208: the first singlechip 101 judges whether an instruction for ending the lamp color setting command sent by the second singlechip 201 is received, if yes, step 209 is executed, otherwise, step 207 is returned;
step 209: the first singlechip 101 stores the color mixture color data code, and then performs step 210;
step 210: the first singlechip 101 exits the digital communication mode and starts AD conversion of the AD pin after finishing the lamp color setting command.
In this embodiment, the control module 2 is used to digitally communicate with the lamp, so that the brightness of the lamp when leaving the factory can be preset, and the lamp using LEDs with more than two different colors can be set. The color mixing can be divided into two different control modes, one is to adjust the maximum brightness of each path of LEDs respectively, and the other is to adjust the color mixing of multiple paths of LEDs simultaneously. When the brightness of each path of LEDs is independently adjusted, a single path of LEDs is selected through a KEY on the color matching device, the channel of the LEDs is selected, then the brightness of the LEDs of the corresponding channel is increased according to a KEY1 on the man-machine interaction unit 203, the brightness of the LEDs of the corresponding channel is reduced according to a KEY4, the color matching device sends data to the lamp once according to a set communication protocol after the KEY1 or KEY4 is pressed once, the lamp converts the received data into the brightness of the LEDs of the corresponding channel, the human eyes check or test instrument judges that the overall color of the lamp meets the requirement, if the brightness of the LEDs of the single path is not met, the brightness of the LEDs of the single path is continuously adjusted through the KEY1 or KEY4, if the brightness of the LEDs of the single path is met, the brightness of the LEDs of the corresponding channel is continuously adjusted according to the requirement, the KEY3 is pressed, the color matching device sends a latch instruction, and the current value set by each channel is used as the maximum brightness value of each channel of the LEDs after the lamp receives the latch instruction. If the color mixture of multiple paths of LEDs is adjusted, the color mixture setting of the multiple paths of LEDs is selected through KEYs on the color mixing device, then the color mixture change is carried out according to different set proportion values according to KEY1 and KEY4, the whole color of the lamp is judged to be satisfactory through human eyes checking or testing instruments, if the whole color of the lamp is not satisfactory, different proportion value serial numbers are selected through KEY1 or KEY4, if the color mixture is satisfactory, the color mixing device sends a latching instruction according to KEY Y3, and the lamp stores the proportion value serial numbers after receiving the latching instruction and calculates the maximum brightness value of each path of LEDs according to the proportion value. The color matching device can be connected with a computer through a USB, and the setting of the overall color and brightness of the lamp is carried out through the upper computer software of the computer.
2. Setting a luminaire dimming curve and a tinting mode command
The second singlechip 201 executes the flow shown in fig. 11, including:
step 301: the control module 2 obtains a lamp dimming curve setting and color matching mode command through the man-machine interaction unit 203;
step 302: entering a lamp dimming curve setting mode, and acquiring a lamp dimming curve instruction, including a linear dimming curve instruction, a Gamma correction curve and an S-shaped dimming curve, by the control module 2 through the human-computer interaction unit 203;
step 303: the control module 2 sends the dimming curve instruction and the corresponding key to the first singlechip 101 through the signal sending pin;
step 304: entering the setting of a lamp color matching mode, and obtaining a lamp dimming instruction comprising a single-color light and shade change instruction and a multicolor color mixing light and shade change instruction by the control module 2 through the man-machine interaction unit 203;
step 305: the control module 2 sends the lamp dimming instruction and the corresponding key to the first singlechip 101 through the signal sending pin;
step 306: the control module 2 finishes setting the dimming curve and the dimming mode of the LED lamp, and the second singlechip 201 sends an ending instruction;
the first singlechip 101 executes a flow shown in fig. 12, including:
step 401: the first singlechip 101 continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 402 is executed, otherwise, the step 401 is continuously executed;
Step 402: the first singlechip 101 stops AD conversion of the AD pin and enters a digital communication mode;
step 403: the first singlechip 101 receives the data, judges whether a dimming curve command key is received, if yes, executes step 405, otherwise, executes step 404;
step 404: the first singlechip 101 judges whether the lamp dimming command key is received, if yes, step 405 is executed, otherwise step 406 is executed;
step 405: the first singlechip 101 latches data, responds according to the instruction, and then executes step 406;
step 406: the first singlechip 101 judges whether an end instruction sent by the second singlechip 201 is received, if yes, step 407 is executed, otherwise, step 403 is returned;
step 407: and finishing the lamp dimming curve setting and the color mixing mode command, and exiting the digital communication mode by the first singlechip 101 to start AD conversion of the AD pin.
3. Setting lamp parameter commands
The second singlechip 201 executes the flow shown in fig. 13, including:
step 501: the control module 2 obtains a lamp parameter setting command through the man-machine interaction unit 203;
step 502: the control module 2 obtains lamp parameter setting instructions through the man-machine interaction unit 203, including an LED driving output current setting instruction, an LED driving dimming frequency setting instruction, an LED driving dimming rate setting instruction, and an LED driving output voltage setting instruction, and executes steps 503, 504, 505, and 506 respectively for the above instructions;
Step 503: the control module 2 enters an LED driving output current setting mode and sends a channel code, a current code and a secret key to the first singlechip 101 through a signal sending pin;
step 504: the control module 2 enters an LED driving dimming frequency setting mode and sends a dimming frequency code and a secret key to the first singlechip 101 through a signal sending pin;
step 505: the control module 2 enters an LED driving dimming rate setting mode, and sends a dimming rate code and a secret key to the first singlechip 101 through a signal sending pin;
step 506: the control module 2 enters an LED driving output voltage setting mode and sends an output voltage code and a secret key to the first singlechip 101 through a signal sending pin;
step 507: the lamp parameter setting command is ended, and the control module 2 sends an ending command;
the first singlechip 101 executes a flow shown in fig. 14, including:
step 601: the first singlechip 101 continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 602 is executed, otherwise, the step 601 is continuously executed;
step 602: the first singlechip 101 stops AD conversion of the AD pin and enters a digital communication mode;
step 603: the first singlechip 101 judges whether the LED driving output current setting key is received, if yes, step 607 is executed, otherwise step 604 is executed;
Step 604: the first singlechip 101 judges whether the LED driving dimming frequency setting key is received, if yes, step 607 is executed, otherwise step 605 is executed;
step 605: the first singlechip 101 judges whether the LED driving dimming rate setting key is received, if yes, step 607 is executed, otherwise step 606 is executed;
step 606: the first singlechip 101 judges whether the LED driving output voltage setting key is received, if yes, step 607 is executed, otherwise step 608 is executed;
step 607: the first singlechip 101 latches the received data, responds, and then performs step 608;
step 608: judging whether an end instruction is received, if yes, executing step 609, otherwise, returning to step 603;
step 609: the first singlechip 101 exits the digital communication mode and starts AD conversion of the AD pin after finishing the lamp parameter setting command.
The color setting explanation is carried out by using LED color mixing of 2 colors in the lamp, wherein the PA1 port of the singlechip in the lamp controls the LED DC-DC constant current drive 1, the PA1 corresponds to the PWM1, the color temperature of the corresponding LED1 is 2200K, the PA2 port controls the LED DC-DC constant current drive 2, the PA2 corresponds to the PWM2, and the color temperature of the corresponding LED2 is 6500K.
1. Setting lamp color
The second singlechip 201 performs the following steps:
step 101: the control module 2 obtains a lamp color setting command through the man-machine interaction unit 203;
step 102: judging a specific instruction for setting a lamp color command at present, wherein the instruction comprises a single-channel LED brightness setting instruction and a multi-channel LED color mixing setting instruction, executing step 103 if the instruction is the single-channel LED brightness setting instruction, and executing step 108 if the instruction is the multi-channel LED color mixing setting instruction;
step 103: the control module 2 enters a single-channel LED brightness setting mode, a user selects an LED channel serial number by using a KEY1 or KEY4 on the control module 2, confirms a channel to be set with brightness according to a KEY3 and enters a brightness setting mode, and the control module 2 acquires the LED channel serial number to be set and a brightness value to be adjusted, which are input by the man-machine interaction unit 203;
step 104: the user adjusts the brightness value through a KEY1 or KEY4 on the control module 2, and the control module 2 sends the LED channel serial number and the brightness value to be adjusted to the first singlechip 101 through a signal sending pin by a PC2/TX interface every time the KEY is pressed, and the first singlechip 101 completes a single-channel LED brightness setting instruction;
step 105: the control module 2 judges whether the brightness of the lamp meets the requirement, if so, the user presses the KEY3 to finish the brightness setting of the selected channel, then the step 111 is executed, otherwise, the step 104 is returned;
Step 106: ending the color setting of the current LED channel, and then executing step 107;
step 107: judging whether the brightness of other channels meets the requirement, if so, executing the step 111, otherwise, returning to the step 103;
step 108: the control module 2 enters a multi-channel LED color mixing setting mode, a KEY1 or a KEY4 is pressed to select a required color mixing color, and each time the KEY is pressed, the control module sends data to the lamp once through a PC2/TX interface, and the control module 2 acquires the required color mixing color data;
step 109: the control module 2 sends the color mixture color data to the first singlechip 101 through a signal sending pin, and the first singlechip 101 finishes the instruction for setting the color mixture of the multichannel LED;
step 110: the control module 2 judges whether the brightness of the lamp meets the requirement, if so, the user presses the KEY3 to finish the color mixing setting, then the step 111 is executed, otherwise, the step 108 is returned;
step 111: the control module 2 completes the lamp color setting command, and the second singlechip 201 sends an instruction for ending the lamp color setting command.
The first singlechip 101 executes a flow shown in fig. 10, including:
step 201: the PB2/RX pin of the first SCM 101 continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 202 is executed, otherwise, the step 201 is continuously executed;
Step 202: the first singlechip 101 stops the AD conversion of the PB1/AD pin;
step 203: judging whether the lamp color command is a single-channel LED brightness setting command or a multi-channel LED color mixing setting command, if the lamp color command is the single-channel LED brightness setting command, executing step 204, and if the lamp color command is the multi-channel LED color mixing setting command, executing step 207;
step 204: the first singlechip 101 enters a single-channel LED brightness setting mode, the first singlechip 101 converts a received brightness value to be adjusted into a PWM duty ratio, and adjusts the LED brightness value of a corresponding channel according to the LED channel serial number;
step 205: the first singlechip 101 judges whether an instruction for ending the lamp color setting command sent by the second singlechip 201 is received, if yes, step 206 is executed, otherwise, step 204 is returned;
step 206: the first singlechip 101 stores the last received brightness value code of each LED channel, and then executes step 210;
step 207: the first singlechip 101 enters a multi-channel LED color mixing setting mode, the first singlechip 101 obtains PWM duty ratio values of all channels according to the received color mixing color data, and PWM dimming is carried out on the LEDs of all channels by using the duty ratio values;
step 208: the first singlechip 101 judges whether an instruction for ending the lamp color setting command sent by the second singlechip 201 is received, if yes, step 209 is executed, otherwise, step 207 is returned;
Step 209: the first singlechip 101 stores the color mixture color data code, and then performs step 210;
step 210: the first singlechip 101 exits the digital communication mode and starts AD conversion of the AD pin after finishing the lamp color setting command.
2. Setting dimming curve and color matching mode of LED lamp
The second singlechip 201 performs the following steps:
step 301: the control module 2 obtains a lamp dimming curve setting and color matching mode command through the man-machine interaction unit 203;
step 302: entering a lamp dimming curve setting mode, wherein the control module selects a dimming curve through KEY1 and KEY4, and after the dimming curve is selected, the control module 2 obtains lamp dimming curve instructions, including a linear dimming curve instruction, a Gamma correction curve and an S-shaped dimming curve, through the human-computer interaction unit 203;
step 303: the user presses KEY3, and PC2/TX of control module 2 sends data 0x01,0x03, dimming curve code, 0x00,0x01;
the control module 2 sends the dimming curve instruction and the corresponding key to the first singlechip 101 through the signal sending pin;
step 304: entering the setting of a lamp color matching mode, and obtaining a lamp dimming instruction comprising a single-color light and shade change instruction and a multi-color mixed color light and shade change instruction by a control module 2 through a KEY1 and a KEY 4;
Step 305: after the control module 2 presses the KEY3 KEY, the PC2/TX transmits data 0x01,0x04, dimming mode codes, 0x00 and 0x0F;
transmitting the lamp dimming instruction and the corresponding key to the first singlechip 101 through a signal transmitting pin;
step 306: the control module 2 finishes setting the dimming curve and the dimming mode of the LED lamp, and the second singlechip 201 sends an ending instruction;
the first singlechip 101 comprises the following steps:
step 401: the PB2/RX pin of the first SCM 101 continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 402 is executed, otherwise, the step 401 is continuously executed;
step 402: the first singlechip 101 stops the AD conversion of the PB1/AD pin and enters a digital communication mode;
step 403: the first singlechip 101 receives the data, judges whether a dimming curve command key is received, if yes, executes step 405, otherwise, executes step 404;
step 404: the first singlechip 101 judges whether the lamp dimming command key is received, if yes, step 405 is executed, otherwise step 406 is executed;
step 405: the first singlechip 101 latches data, responds according to the instruction, and then executes step 406;
step 406: the first singlechip 101 judges whether an end instruction sent by the second singlechip 201 is received, if yes, step 407 is executed, otherwise, step 403 is returned;
Step 407: and finishing the lamp dimming curve setting and the color mixing mode command, and exiting the digital communication mode by the first singlechip 101 to start AD conversion of the AD pin.
3. Setting lamp parameters
The second singlechip 201 performs the following steps:
step 501: the control module 2 obtains a lamp parameter setting command through the man-machine interaction unit 203;
step 502: the control module 2 obtains lamp parameter setting instructions, including an LED driving output current setting instruction, an LED driving dimming frequency setting instruction, an LED driving dimming rate setting instruction, and an LED driving output voltage setting instruction, and executes steps 503, 504, 505, and 506 respectively for the above instructions;
step 503: the control module 2 enters an LED driving output current setting mode, sets the LED driving output current through the KEY1 and the KEY4, presses a KEY3 KEY, and sends data 0x02,0x01, channel codes and current codes to the PC2/TX, wherein the channel codes and the current codes are 0x01;
step 504: the control module 2 enters an LED driving dimming frequency setting mode, the LED driving dimming frequency is selected and set through the KEY1 and the KEY4, the KEY3 is pressed, and the PC2/TX transmits data 0x02,0x03, dimming frequency codes, 0x00 and 0x01;
step 505: the control module 2 enters an LED driving dimming rate setting mode, the LED driving dimming rate is selectively set through the KEY1 and the KEY4, the KEY3 is pressed, and the PC2/TX transmits data 0x02,0x03, dimming rate codes, 0x00 and 0x01;
Step 506: the control module 2 enters an LED driving output voltage setting mode, the LED driving output voltage is selectively set through the KEY1 and the KEY4, the KEY3 is pressed, and the PC2/TX transmits data 0x02 and 0x05, and output voltage codes, 0x00 and 0x0F;
step 507: the lamp parameter setting command is ended, and the control module 2 sends an ending command;
the first singlechip 101 performs the following steps:
step 601: the first singlechip 101PB2/RX pin continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, step 602 is executed, otherwise step 601 is continuously executed;
step 602: the first singlechip 101 stops the AD conversion of the PB1/AD pin and enters a digital communication mode;
step 603: the first singlechip 101 judges whether the LED driving output current setting key is received, if yes, step 607 is executed, otherwise step 604 is executed;
step 604: the first singlechip 101 judges whether the LED driving dimming frequency setting key is received, if yes, step 607 is executed, otherwise step 605 is executed;
step 605: the first singlechip 101 judges whether the LED driving dimming rate setting key is received, if yes, step 607 is executed, otherwise step 606 is executed;
step 606: the first singlechip 101 judges whether the LED driving output voltage setting key is received, if yes, step 607 is executed, otherwise step 608 is executed;
Step 607: the first singlechip 101 latches the received data, responds, and then performs step 608;
step 608: judging whether an end instruction is received, if yes, executing step 609, otherwise, returning to step 603;
step 609: the first singlechip 101 exits the digital communication mode and starts AD conversion of the AD pin after finishing the lamp parameter setting command.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. The device is connected with an existing LED lamp (1) through a 0-10V dimming interface, the LED lamp (1) comprises a 0-10V dimming interface arranged on the lamp, a first singlechip (101), a plurality of constant current driving power supplies (102) respectively connected with the first singlechip (101), a plurality of LED lamp panel modules (103) respectively connected with the constant current driving power supplies (102) and a constant voltage power supply (104), and the first singlechip (101) and the constant current driving power supplies (102) are respectively connected with the constant voltage power supply, and the device is characterized by comprising a control module (2) and an interface circuit (3) in the lamp; the lamp internal interface circuit (3) is arranged in the LED lamp (1), one end of the lamp internal interface circuit (3) is connected with a 0-10V dimming interface, and the other end of the lamp internal interface circuit is connected with the first singlechip (101);
The control module (2) comprises a second singlechip (201), an internal interface circuit (202) in the control module and a man-machine interaction unit (203); one end of an internal interface circuit (202) in the control module is connected with the second singlechip (201), and the other end of the internal interface circuit is connected with a 0-10V dimming interface on the LED lamp (1) through a 0-10V connecting bus; the man-machine interaction unit (203) is connected with the second singlechip (201);
the internal interface circuit (202) in the control module comprises a signal receiving sub-circuit and a signal transmitting sub-circuit; one end of the signal receiving sub-circuit is connected with a signal receiving pin of the second singlechip (201), and the other end of the signal receiving sub-circuit is connected with a 0-10V connecting bus; one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the second singlechip (201), and the other end of the signal transmitting sub-circuit is connected with a 0-10V connecting bus;
the lamp internal interface circuit (3) comprises a signal receiving sub-circuit, a signal transmitting sub-circuit and an analog signal collecting sub-circuit; one end of the signal receiving subcircuit is connected with a signal receiving pin of the first singlechip (101), and the other end of the signal receiving subcircuit is connected with a 0-10V dimming interface; one end of the signal transmitting sub-circuit is connected with a signal transmitting pin of the first singlechip (101), and the other end of the signal transmitting sub-circuit is connected with a 0-10V dimming interface; one end of the analog signal acquisition sub-circuit is connected with an AD pin of the first singlechip (101), and the other end of the analog signal acquisition sub-circuit is connected with a 0-10V dimming interface;
The signal receiving subcircuit comprises a first resistor and a first high-speed switching diode; the anode of the first high-speed switching diode is connected with a signal receiving pin of the first singlechip (101) or the second singlechip (201), and the cathode of the first high-speed switching diode is connected with a 0-10V dimming interface;
one end of the first resistor is connected to a circuit between the first high-speed switching diode and the signal receiving pin, and the other end of the first resistor is connected to a positive 5V power supply;
the signal transmitting sub-circuit comprises a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first MOSFET and a second MOSFET;
one end of the second resistor is connected with a signal sending pin of the first singlechip (101) or the second singlechip (201), and the other end of the second resistor is connected with a grid electrode of the first MOSFET; one ends of the third resistor and the fourth resistor are respectively connected to a circuit between the second resistor and the first MOSFET; the other end of the third resistor is connected with a positive 5V power supply; the other end of the fourth resistor is grounded;
the source electrode of the first MOSFET is grounded; one end of the fifth resistor is connected with the drain electrode of the first MOSFET, and the other end of the fifth resistor is connected with a positive 5V power supply;
the grid electrode of the second MOSFET is connected to a circuit between the fifth resistor and the first MOSFET, the source electrode of the second MOSFET is grounded, and the drain electrode of the second MOSFET is connected with a 0-10V dimming interface;
The analog signal acquisition sub-circuit comprises a second high-speed switching diode, a sixth resistor, a seventh resistor, an eighth resistor, a first capacitor, a second capacitor and a voltage follower;
the negative electrode of the second high-speed switching diode is connected with a 0-10V dimming interface, and the positive electrode of the second high-speed switching diode is connected with the positive input end of the voltage follower; one end of the sixth resistor and one end of the first capacitor are respectively connected to a circuit between the second high-speed switching diode and the voltage follower; the other end of the sixth resistor is connected with a positive 5V power supply; the other end of the first capacitor is grounded;
the positive power supply of the voltage follower is connected with a positive 10V power supply, and the negative power supply is connected with the ground; the output end of the voltage follower is respectively connected with the reverse input end of the voltage follower and the seventh resistor; the other end of the seventh resistor is connected with an AD pin of the first singlechip (101); the eighth resistor and the second capacitor are respectively connected to a circuit between the seventh resistor and the first singlechip (101); the other ends of the eighth resistor and the second capacitor are respectively grounded;
the analog signal acquisition sub-circuit specifically comprises D21、R21、C21、U2、R22And C22When the standard 0-10V dimmer is used for dimming, the 0-10V bus is at a constant level, D 21In a forward conduction state, R21Pull up to 10V, supply current to 0-10V dimmer, C21Is a signal filter capacitor, pass through C21The filtered signal is sent to U2Input end of U2The voltage of the input end is 0-10V bus voltage plus D21Forward Voltage (VF), U2Is a voltage follower, U2The output voltage ranges from 0V to 10V, and passes R22And R is23The partial pressure is sent to PB1/AD interface, C22Is a filter capacitor, wherein D21Is a high-speed switching diode with low forward Voltage (VF);
D21the functions of (1) include: (1) preventing current flow in an external circuit; (2) Isolating the capacitance of the 0-10V interface so as not to influence digital communication;
2 wires for dimming with 0-10V are used between the control module and the LED lamp or the drive, wherein one wire is a negative electrode of a 0-10V signal, namely a negative electrode wire with 0-10V, the other wire is a positive electrode wire with 0-10V, and the voltage on the positive electrode wire changes in the dimming process; the digital communication between the control module and the LED lamp or the drive is also realized by using 2 wires with 0-10V interfaces, wherein a negative wire with 0-10V is used as a ground wire for digital communication, and a positive wire with 0-10V is used as a positive wire for digital communication; the control module is in single-wire bidirectional digital communication with the LED lamp or the driver; when the 0-10V dimmer is connected with the lamp or the drive, a 0-10V interface circuit in the lamp or the drive converts a 0-10V level signal into a 0-5V level signal and sends the 0-5V level signal to a PB1/AD interface of the singlechip, and after the singlechip performs A/D conversion, the singlechip calls different PWM duty ratio values to be sent to PWM dimming interfaces PA1, PA2, … … and PAn according to a set dimming curve, so that the dimming function is achieved; meanwhile, the PB2/RX interface of the lamp or the drive is always in a receiving state, when the 0-10V dimmer is replaced by the control module, the control module is used for sending digital signals to the 0-10V bus, the LED lamp or the PB2/RX interface of the drive can receive the digital signals, and the LED lamp or the drive enters a set mode.
2. The device for digital communication with an LED luminaire through a 0-10V dimming interface according to claim 1, wherein the man-machine interaction unit (203) comprises an LCD display (2031) and keys (2032); the LCD display screen (2031) and the keys (2032) are respectively connected with the second singlechip (201).
3. A communication method for digital communication with an LED luminaire through a 0-10V dimming interface for use in a device as claimed in claim 1, characterized in that the communication method comprises a control side communication sub-method and a luminaire side communication sub-method;
the control side communication sub-method comprises the following steps:
the second singlechip (201) acquires a command to be transmitted according to input data of the man-machine interaction unit (203), and a signal transmission pin of the second singlechip (201) transmits the command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the first singlechip (101) judges whether a command signal sent by the second singlechip (201) is received, if the command signal is received, the first singlechip responds to the command signal, otherwise, whether the command signal is received is continuously judged;
the commands sent by the second singlechip (201) comprise a lamp color setting command, a lamp dimming curve setting command, a color matching mode setting command and a lamp parameter setting command;
The lamp side communication sub-method comprises the following steps:
the first singlechip (101) acquires a command to be transmitted, and a signal transmission pin of the first singlechip (101) transmits command data to a 0-10V dimming interface through a signal transmission sub-circuit;
meanwhile, the second singlechip (201) judges whether a command signal sent by the first singlechip (201) is received, if the command signal is received, the second singlechip responds to the command signal, otherwise, whether the command signal is received is continuously judged.
4. The communication method for digital communication with an LED lamp through a 0-10V dimming interface according to claim 3, wherein when the command sent by the second singlechip (201) is a lamp color setting command, the control side communication sub-method specifically comprises:
the second singlechip (201) executes the following steps:
step 101: the control module (2) obtains a lamp color setting command through the man-machine interaction unit (203);
step 102: judging a specific instruction for setting a lamp color command at present, wherein the instruction comprises a single-channel LED brightness setting instruction and a multi-channel LED color mixing setting instruction, executing step 103 if the instruction is the single-channel LED brightness setting instruction, and executing step 108 if the instruction is the multi-channel LED color mixing setting instruction;
Step 103: the control module (2) enters a single-channel LED brightness setting mode, and the control module (2) acquires an LED channel serial number which is input by the man-machine interaction unit (203) and needs to be set and a brightness value which needs to be adjusted;
step 104: the control module (2) sends the LED channel serial number and the brightness value to be adjusted to the first singlechip (101) through a signal sending pin, and the first singlechip (101) completes a single-channel LED brightness setting instruction;
step 105: the control module (2) judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 104 is returned;
step 106: ending the color setting of the current LED channel, and then executing step 107;
step 107: judging whether the brightness of other channels meets the requirement, if so, executing the step 111, otherwise, returning to the step 103;
step 108: the control module (2) enters a multi-channel LED color mixing setting mode, and the control module (2) acquires needed color mixing color data;
step 109: the control module (2) sends the color mixing color data to the first singlechip (101) through a signal sending pin, and the first singlechip (101) finishes the instruction of setting the color mixing of the multichannel LED;
step 110: the control module (2) judges whether the brightness of the lamp meets the requirement, if so, the step 111 is executed, otherwise, the step 108 is returned;
Step 111: the control module (2) finishes the lamp color setting command, and the second singlechip (201) sends a command for finishing the lamp color setting command;
the first singlechip (101) executes the following steps:
step 201: the first singlechip (101) continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 202 is executed, otherwise, the step 201 is continuously executed;
step 202: the first singlechip (101) stops AD conversion of the AD pin;
step 203: judging whether the lamp color command is a single-channel LED brightness setting command or a multi-channel LED color mixing setting command, if the lamp color command is the single-channel LED brightness setting command, executing step 204, and if the lamp color command is the multi-channel LED color mixing setting command, executing step 207;
step 204: the first singlechip (101) enters a single-channel LED brightness setting mode, the first singlechip (101) converts a received brightness value to be adjusted into a PWM duty ratio, and the LED brightness value of a corresponding channel is adjusted according to the LED channel serial number;
step 205: the first singlechip (101) judges whether an instruction for ending the lamp color setting command sent by the second singlechip (201) is received, if yes, step 206 is executed, otherwise, step 204 is returned;
step 206: the first singlechip (101) stores the brightness value code finally received by each LED channel, and then executes step 210;
Step 207: the first singlechip (101) enters a multi-channel LED color mixing setting mode, the first singlechip (101) obtains PWM duty ratio values of all channels according to the received color mixing data, and PWM dimming is carried out on the LEDs of all the channels by using the duty ratio values;
step 208: the first singlechip (101) judges whether an instruction for ending the lamp color setting command sent by the second singlechip (201) is received, if yes, step 209 is executed, otherwise, step 207 is returned;
step 209: the first singlechip (101) stores the mixed color data code, and then executes step 210;
step 210: and finishing the lamp color setting command, and exiting the digital communication mode by the first singlechip (101) to start AD conversion of the AD pin.
5. The communication method for digital communication with an LED lamp through a 0-10V dimming interface according to claim 3, wherein when the command sent by the second singlechip (201) is a lamp dimming curve setting and color mixing mode command, the control side communication sub-method specifically comprises:
the second singlechip (201) executes the following steps:
step 301: the control module (2) obtains a lamp dimming curve setting and color matching mode command through the man-machine interaction unit (203);
Step 302: entering a lamp dimming curve setting mode, and acquiring a lamp dimming curve instruction comprising a linear dimming curve instruction, a Gamma correction curve and an S-shaped dimming curve by a control module (2) through a human-computer interaction unit (203);
step 303: the control module (2) sends the dimming curve instruction and the corresponding key to the first singlechip (101) through the signal sending pin;
step 304: entering the setting of a lamp color matching mode, and acquiring a lamp dimming instruction comprising a single-color light and shade change instruction and a multi-color mixed color light and shade change instruction by a control module (2) through a man-machine interaction unit (203);
step 305: the control module (2) sends the lamp dimming instruction and the corresponding key to the first singlechip (101) through the signal sending pin;
step 306: the control module (2) finishes the setting of the dimming curve and the dimming mode of the LED lamp, and the second singlechip (201) sends an ending instruction;
the first singlechip (101) executes the following steps:
step 401: the first singlechip (101) continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 402 is executed, otherwise, the step 401 is continuously executed;
step 402: the first singlechip (101) stops AD conversion of the AD pin and enters a digital communication mode;
Step 403: the first singlechip (101) receives the data, judges whether a dimming curve command key is received, if yes, executes step 405, otherwise, executes step 404;
step 404: the first singlechip (101) judges whether a lamp dimming command key is received, if yes, step 405 is executed, and if not, step 406 is executed;
step 405: the first singlechip (101) latches data, responds according to the instruction, and then executes step 406;
step 406: the first singlechip (101) judges whether an ending instruction sent by the second singlechip (201) is received, if yes, step 407 is executed, and if not, step 403 is returned;
step 407: and finishing the lamp dimming curve setting and the color mixing mode command, and exiting the digital communication mode by the first singlechip (101) to start AD conversion of the AD pin.
6. The communication method for digital communication with an LED lamp through a 0-10V dimming interface according to claim 3, wherein when the command sent by the second singlechip (201) is a lamp parameter setting command, the control side communication sub-method specifically comprises:
the second singlechip (201) executes the following steps:
step 501: the control module (2) obtains a lamp parameter setting command through the man-machine interaction unit (203);
Step 502: the control module (2) obtains lamp parameter setting instructions through the man-machine interaction unit (203), wherein the lamp parameter setting instructions comprise an LED driving output current setting instruction, an LED driving dimming frequency setting instruction, an LED driving dimming speed setting instruction and an LED driving output voltage setting instruction, and the steps 503, 504, 505 and 506 are respectively executed aiming at the instructions;
step 503: the control module (2) enters an LED driving output current setting mode, and sends a channel code, a current code and a secret key to the first singlechip (101) through a signal sending pin;
step 504: the control module (2) enters an LED driving dimming frequency setting mode, and sends a dimming frequency code and a secret key to the first singlechip (101) through a signal sending pin;
step 505: the control module (2) enters an LED driving dimming rate setting mode, and sends a dimming rate code and a secret key to the first singlechip (101) through a signal sending pin;
step 506: the control module (2) enters an LED driving output voltage setting mode, and sends an output voltage code and a secret key to the first singlechip (101) through a signal sending pin;
step 507: the lamp parameter setting command is ended, and the control module (2) sends an ending command;
The first singlechip (101) executes the following steps:
step 601: the first singlechip (101) continuously monitors whether the signal receiving pin receives a valid digital signal, if yes, the step 602 is executed, otherwise, the step 601 is continuously executed;
step 602: the first singlechip (101) stops AD conversion of the AD pin and enters a digital communication mode;
step 603: the first singlechip (101) judges whether an LED driving output current setting key is received, if yes, step 607 is executed, otherwise, step 604 is executed;
step 604: the first singlechip (101) judges whether the LED driving dimming frequency setting key is received, if yes, step 607 is executed, otherwise, step 605 is executed;
step 605: the first singlechip (101) judges whether an LED driving dimming rate setting key is received, if yes, step 607 is executed, otherwise step 606 is executed;
step 606: the first singlechip (101) judges whether the LED driving output voltage setting key is received, if yes, step 607 is executed, otherwise step 608 is executed;
step 607: the first singlechip (101) latches the received data, responds, and then executes step 608;
step 608: judging whether an end instruction is received, if yes, executing step 609, otherwise, returning to step 603;
Step 609: and finishing the lamp parameter setting command, and exiting the digital communication mode by the first singlechip (101) to start AD conversion of the AD pin.
CN202011327730.4A 2020-11-24 2020-11-24 Device and communication method for digital communication with LED lamp through 0-10V dimming interface Active CN112351549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011327730.4A CN112351549B (en) 2020-11-24 2020-11-24 Device and communication method for digital communication with LED lamp through 0-10V dimming interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011327730.4A CN112351549B (en) 2020-11-24 2020-11-24 Device and communication method for digital communication with LED lamp through 0-10V dimming interface

Publications (2)

Publication Number Publication Date
CN112351549A CN112351549A (en) 2021-02-09
CN112351549B true CN112351549B (en) 2023-04-18

Family

ID=74365647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011327730.4A Active CN112351549B (en) 2020-11-24 2020-11-24 Device and communication method for digital communication with LED lamp through 0-10V dimming interface

Country Status (1)

Country Link
CN (1) CN112351549B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201928502U (en) * 2011-01-20 2011-08-10 南京云泰电气制造有限公司 Dimmer for electroless lamp
CN102811525A (en) * 2011-05-31 2012-12-05 海洋王照明科技股份有限公司 LED lamp and control circuit thereof
CN202998609U (en) * 2012-12-26 2013-06-12 四川新力光源股份有限公司 Led constant current dimming power supply
WO2017004427A1 (en) * 2015-07-01 2017-01-05 Cree, Inc. Control circuit for modulating an analog dimming command signal

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004146916A (en) * 2002-10-22 2004-05-20 Fdk Corp High frequency switch circuit and high frequency signal switch module
CN103025031A (en) * 2012-12-28 2013-04-03 上海澳星照明电器制造有限公司 Dimming circuit and dimming method for LED light supplementing lamp
CN105281748B (en) * 2014-07-22 2018-04-17 巨控自动化股份有限公司 Isolation instructing signal transfer device and isolation signals transmitting circuit and its receiving circuit
CN204335111U (en) * 2015-01-27 2015-05-13 西安极众数字通讯有限公司 A kind of LED novel intelligent power supply of binary channels tunable optical color-temperature regulating
CN105578639B (en) * 2015-12-09 2017-08-25 浙江凯耀照明股份有限公司 LED and light-dimming method
CN106358338A (en) * 2016-08-16 2017-01-25 上海互兴科技股份有限公司 Intelligent light-color regulation dual-output LED power supply
CN107509278B (en) * 2017-09-21 2024-08-06 深圳市朗科智能电气股份有限公司 LED driving power supply
CN107787085A (en) * 2017-10-18 2018-03-09 浙江凯耀照明股份有限公司 0 10V of one kind light modulation isolation LED power circuits
CN110049595B (en) * 2019-04-24 2022-05-24 金松山 Wired remote intelligent multi-channel dimming control method for LED industrial illumination
CN210431961U (en) * 2019-05-20 2020-04-28 江西恩迪光电科技有限公司 LED lamp constant power control device
CN111405724A (en) * 2020-05-04 2020-07-10 上海欧切斯实业有限公司 Dimming parameter online adjusting circuit and dimming method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201928502U (en) * 2011-01-20 2011-08-10 南京云泰电气制造有限公司 Dimmer for electroless lamp
CN102811525A (en) * 2011-05-31 2012-12-05 海洋王照明科技股份有限公司 LED lamp and control circuit thereof
CN202998609U (en) * 2012-12-26 2013-06-12 四川新力光源股份有限公司 Led constant current dimming power supply
WO2017004427A1 (en) * 2015-07-01 2017-01-05 Cree, Inc. Control circuit for modulating an analog dimming command signal

Also Published As

Publication number Publication date
CN112351549A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN101916548B (en) Control circuit of light-emitting diode (LED) lamp tube of liquid crystal display
CN103843458A (en) Dimmable LED light fixture having adjustable color temperature
CN101940063A (en) Light color tunability
CN108650748A (en) A kind of constant pressure dimming power source device being compatible with a variety of dimming modes
CN112584573A (en) Seven-primary-color LED mixed light source and drive control circuit thereof
EP2145509A1 (en) Modular solid-state lighting system
CN103561528A (en) LED power source platform capable of integrating various dimming ways
CN103124459A (en) Color and brightness adjustable light-adjusting method and device and illuminating system
CN112351549B (en) Device and communication method for digital communication with LED lamp through 0-10V dimming interface
CN106937441B (en) A kind of control circuit and luminescence fan component of luminescence fan
CN211909244U (en) LED drive circuit with variable color temperature
CN211047308U (en) Circuit system of multi-path PWM signal sharing driving module
CN203761617U (en) Multipath light modulation apparatus
CN103634986A (en) Multipath dimming device and dimming method thereof
CN207969019U (en) A kind of LED intelligent dimming tinting systems for household
CN202514107U (en) LED dimming control panel and LED lamp
CN214429747U (en) Brightness adjusting circuit and lamp
CN211090068U (en) Hybrid dimming driving circuit
WO2014081210A1 (en) Optical communication device using ac led lighting and communication method using said device
CN211321572U (en) Hybrid dimming driving circuit
CN110730535A (en) Module and method for switching color temperature through dimming
CN114222402A (en) Trinity dimmer circuit
CN113179564A (en) Remote control dimming LED lamp compatible with 0-10V dimmer
CN207460541U (en) The driving circuit of Bluetooth remote control LED light and Bluetooth remote control LED light
CN110621101A (en) Hybrid dimming driving circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant