CN213718260U - Programming control circuit and programming controller for LED power supply - Google Patents

Programming control circuit and programming controller for LED power supply Download PDF

Info

Publication number
CN213718260U
CN213718260U CN202022295490.6U CN202022295490U CN213718260U CN 213718260 U CN213718260 U CN 213718260U CN 202022295490 U CN202022295490 U CN 202022295490U CN 213718260 U CN213718260 U CN 213718260U
Authority
CN
China
Prior art keywords
power supply
pin
chip
resistor
circuit
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
CN202022295490.6U
Other languages
Chinese (zh)
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.)
Shenzhen Sosen Electronics Co Ltd
Original Assignee
Shenzhen Sosen Electronics 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 Shenzhen Sosen Electronics Co Ltd filed Critical Shenzhen Sosen Electronics Co Ltd
Priority to CN202022295490.6U priority Critical patent/CN213718260U/en
Application granted granted Critical
Publication of CN213718260U publication Critical patent/CN213718260U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]
    • 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

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The utility model relates to a programming control circuit and programming controller for LED power, programming control circuit include master control circuit, instruct the indicating circuit of current state, prestore power program and control program and place in master control circuit's power down protection memory, the digital isolation circuit that electric was kept apart, trun into the single line communication circuit of single line communication with the double-line communication, at least one key circuit, receive input voltage and transmit communication data's USB commentaries on classics serial ports communication circuit and connect through power singlechip power supply line LED power does the power programming line connector of singlechip power supply in the LED power. The utility model discloses need not to go up the commercial power for the LED power, practiced thrift the electric energy, can realize modifying LED power output current size to LED power transmission power supply procedure fast programming, transmission control signal through the button, support simultaneously and use and break away from the host computer to the LED power on-line and off-line programming, satisfy different user demands, use single line communication circuit and reduced output line quantity.

Description

Programming control circuit and programming controller for LED power supply
Technical Field
The utility model relates to a power programming control technical field especially relates to a programming control circuit and programming controller for LED power.
Background
The existing LED power supply programming controller can be connected with an upper computer through a wire, and the LED power supply is programmed on line through the upper computer, but in an actual situation, in an installation site of the existing LED power supply, the environment is quite severe, instruments are simple and crude, the upper computer possibly does not exist, and a plurality of LED power supplies need to be modified, for example, in a remote mountain construction site with insufficient conditions, the programming control of the LED power supply cannot be realized; the existing programming controller through infrared programming needs to supply commercial power to a power supply, and infrared signals are easily interfered, so that programming failure can be caused; the existing power supply programming controller regulated by a potentiometer also needs to supply commercial power to a power supply, and the regulation is not accurate enough, so that the power supply is easily damaged due to excessive regulation; although the existing handheld programming controller is separated from an upper computer to realize off-line programming, the existing handheld programming controller does not support the connection of the upper computer, so that the existing handheld programming controller is not suitable for occasions with complex operations such as collection of LED power state information and the like, and a display screen with higher cost and more occupied chip pins is adopted to display programming process information, so that the cost is higher.
SUMMERY OF THE UTILITY MODEL
The to-be-solved technical problem of the utility model lies in that, to prior art's defect, a programming control circuit and programming controller for LED power is provided.
The utility model provides a technical scheme that its technical problem adopted is:
there is provided a programming control circuit for an LED power supply, comprising: the LED power supply comprises a main control circuit, an indicating circuit for indicating the current state, a power-down protection memory for prestoring a power supply program and a control program and being arranged in the main control circuit, an electrically isolated digital isolation circuit, a single-wire communication circuit for converting double-wire communication into single-wire communication, at least one key circuit, a USB-to-serial port communication circuit for receiving input voltage and transmitting communication data, and a power supply programming wire connector for connecting the LED power supply through a power supply singlechip power supply line to supply power to a singlechip in the LED power supply;
the main control circuit is respectively connected with the indicating circuit, the digital isolating circuit, the single-wire communication circuit and the key circuit; the USB-to-serial port communication circuit is connected with the digital isolation circuit; a programming line of the power supply programming line connector is connected with the single-wire communication circuit and is connected with the LED power supply;
the main control circuit transmits the power supply program and the control signal to the single-wire communication circuit under the trigger of the key circuit and transmits the power supply program and the control signal to the LED power supply through the power supply programming wire connector.
Preferably, in the programming control circuit provided by the present invention, the main control circuit includes a fourth chip U4, an eleventh resistor R11, a ninth capacitor C9 and a third capacitor C3;
a fourteenth pin PA14 of the fourth chip U4 is connected with a first burning line TX; a thirteenth pin PA13 of the fourth chip U4 is connected with a second burning line RX; a tenth pin VCC of the fourth chip U4 is connected to a 3V3 power supply line for receiving a 3V3 supply voltage, and one pin VCC is connected to a signal ground through the ninth capacitor C9; a ninth pin GND of the fourth chip U4 is connected with the signal ground; a fourth pin RST of the fourth chip U4 is connected to the 3V3 power supply line through the eleventh resistor R11 to receive the 3V3 supply voltage, and connected to the signal ground through the third capacitor C3; a fifth pin PA0 of the fourth chip U4 is connected with the single-wire communication circuit through a first data line RXD; the seventh pin PA4 of the fourth chip U4 is connected with the single-wire communication circuit through a second data line TXD; a twelfth pin PA10 of the fourth chip U4 is connected with the digital isolation circuit; an eleventh pin PA9 of the fourth chip U4 is connected with the digital isolation circuit.
Preferably, in the programming control circuit provided by the present invention, the single-wire communication circuit includes a first transistor Q1, a third transistor Q3, a sixth MOS transistor Q6, a second MOS transistor Q2, a third resistor R3, a twenty-first resistor R21, a thirteenth resistor R13, a twenty-second resistor R22, a seventeenth resistor R17, a twenty-third resistor R23, a twentieth resistor R20, a twenty-second capacitor C22, a second diode D2, a third diode D3, and a compensation constant current source; the band compensation constant current source comprises a sixth three-terminal regulator tube U6, a twenty-fifth resistor R25, a twenty-fourth resistor R24 and a ninth double transistor Q9;
a seventh pin PA4 of the fourth chip U4 is connected to a first end of the third resistor R3 and to a gate of the sixth MOS transistor Q6 through the second data line TXD; the 3V3 power supply line for transmitting the 3V3 power supply voltage to the single-wire communication circuit is connected with the second end of the third resistor R3 and the source electrode of the sixth MOS transistor Q6 in one way, and is connected with a signal ground after being connected with a twenty-second capacitor C22 in one way; the drain of the sixth MOS transistor Q6 is connected to the base of the first transistor Q1 through the twenty-second resistor R22, and is connected to the first end of the twenty-third resistor R23; two ends of the twentieth resistor R20 are respectively connected with the gate and the source of the second MOS transistor Q2; the drain of the second MOS transistor Q2 is connected to the base of the third triode Q3 through the twenty-first resistor R21, and one of the drains is connected to the first end of the seventeenth resistor R17; the gate of the second MOS transistor Q2 is connected to the anode of the second diode D2, and the cathode of the second diode D2 is connected to the collector of the first transistor Q1; the 3V3 power supply line which transmits the 3V3 supply voltage to the single-wire communication circuit is connected with the collector of the third triode Q3 through the thirteenth resistor R13; the fifth pin PA0 of the fourth chip U4 is connected with the collector of the third triode Q3 through the first data line RXD; a programming line PROG connected to the power supply programming line connector is connected to the collector of the first transistor Q1, to the cathode of the third diode D3, and to the anode of the third diode D3 is connected to the third collector of the ninth phototransistor Q9; the ninety-first transistor of the ninth phototransistor Q9 includes a third collector, a fourth emitter, and a fifth base, and the ninety-second transistor of the ninth phototransistor Q9 includes a second base, a sixth collector, and a first emitter; a fourth emitter of the ninth double transistor Q9 is connected with the reference electrode of the sixth three-terminal regulator tube U6 through the twenty-fifth resistor R25 in one way, and is connected with the cathode of the sixth three-terminal regulator tube U6 in one way; a first emitter of the ninth phototransistor Q9 is connected to an anode of the sixth three-terminal regulator U6, a sixth collector of the ninth phototransistor Q9 is connected to the first terminal of the twenty-fourth resistor R24, and is connected to the fifth base, and the fifth base is connected to the second base; a 12V power supply line for transmitting 12V power supply voltage to the single-wire communication circuit is connected with the cathode of the sixth three-terminal voltage regulator tube U6; the second end of the twenty-third resistor R23, the emitter of the first transistor Q1, the second end of the seventeenth resistor R17, the emitter of the third transistor Q3, and the second end of the twenty-fourth resistor R24 are commonly connected to a signal ground.
Preferably, in the programming control circuit provided by the present invention, the USB to serial port communication circuit includes a third chip U3, a USB interface, a fifth capacitor C5, a first capacitor C1, a fourth capacitor C4, a first inductor L1, a first resistor R1, a second resistor R2, a first light emitting diode LED1, a second light emitting diode LED2, a fifth resistor R5, a fourth resistor R4, and a second capacitor C2;
one path of a first pin VDD of the USB interface is connected with a first end of the inductor L1, the other path of the first pin VDD is connected with the fifth capacitor C5 and then grounded, and the other path of the first pin VDD is connected with a 5VIN power supply line to output 5V power supply voltage; the second pin D-of the USB interface is connected with the sixteenth pin D-of the third chip U3 through the first resistor R1; a fourth pin D + of the USB interface is connected with a fifteenth pin D + of the third chip U3 through the second resistor R2; a fourth pin GND of the USB interface is grounded; the second end of the first inductor L1 is connected to the twentieth pin VCC of the third chip U3, the first end of the first inductor L1 is connected to the ground after being connected to the first capacitor C1, the fourth end of the first inductor L4 is connected to the positive electrode of the fourth polar capacitor C4, the fourth end of the first inductor L3 is connected to the VCCIO of the fourth polar capacitor C4, and the 5V power supply voltage is output to the digital isolation circuit by connecting a 5VUSB power supply line; the negative electrode of the fourth polarity capacitor C4 is grounded; the seventeenth pin 3.3VOUT of the third chip U3 is connected to the twenty fifth pin AGND, the seventh pin GND, the eighteenth pin GND1, the twenty first pin GND2 and the twenty sixth pin TEST of the third chip U3 via the second capacitor C2 and then grounded; the first pin TXD of the third chip U3 is connected with the digital isolation circuit through a third data line USB-TX; a fifth pin RXD of the third chip U3 is connected with the digital isolation circuit through a fourth data line USB-RX; a twenty-third pin CBUS0 of the third chip U3 is connected to the cathode of the first LED1 through the fifth resistor R5, a twenty-second pin CBUS1 of the third chip U3 is connected to the cathode of the second LED2 through the fourth resistor R4, and an anode connection node of the first LED1 and an anode connection node of the second LED2 is connected to the 5V USB supply line for receiving the 5V supply voltage; and the fifth pin and the sixth pin of the USB interface are grounded after being connected.
Preferably, in the programming control circuit provided by the present invention, the digital isolation circuit includes a first chip U1, a thirteenth capacitor C13, a twelfth capacitor C12, an eleventh capacitor C11, a fourth capacitor C14, a sixteenth resistor R16, a fifteenth resistor R15, a twelfth resistor R12, and a fourteenth resistor R14;
a seventh pin VI1 of the first chip U1 is connected with the third data line USB-TX through the sixteenth resistor R16; one path of the fourth data line USB-RX is connected to the sixth pin VO2 of the first chip U1 through the fifteenth resistor R15, and the other path is connected to the fifth pin GND2 of the first chip U1 through the capacitor C14; a fifth pin GND2 of the first chip U1 is grounded; an eighth pin VCC2 of the first chip U1 is connected to the 5V usb power supply line all the way to receive the 5V supply voltage, and the other way is grounded through the thirteenth capacitor C13; a first pin VCC1 of the first chip U1 is connected all the way to the 3V3 supply line to receive the 3V3 supply voltage, and all the way to signal ground via the twelfth capacitor C12; a fourth pin GND1 of the first chip U1 is connected with a signal ground; the second pin VO1 of the first chip U1 is connected to the signal ground after being connected to the eleventh capacitor C11 through the fourteenth resistor R14, and is connected to the twelfth pin PA10 of the fourth chip U4; the third pin VI2 of the first chip U1 is connected with the eleventh pin PA9 of the fourth chip U4 through the resistor R12.
Preferably, in the programming control circuit provided by the present invention, a single key circuit includes a key SW1, a ninth resistor R9 and a tenth resistor R10;
the first end of the ninth resistor R9 is connected to the 3V3 power supply line to receive the 3V3 power supply voltage, the second end is connected to the signal ground through the tenth resistor R10 after being connected to the key SW1, and the connection node between the key SW1 and the tenth resistor R10 is the output end of the key circuit and is connected to the first pin BOOT0 of the fourth chip U4.
Preferably, in the programming control circuit provided by the present invention, the indication circuit includes a buzzer circuit and an LED circuit; wherein,
preferably, the buzzer circuit comprises a fourth diode D4, a fourth triode Q4, a buzzer B1, a nineteenth resistor R19 and an eighteenth resistor R18; the 3V3 supply line which delivers the 3V3 supply voltage to the buzzer circuit is connected to the cathode of the fourth diode D4 and to the second pin of the buzzer B1, the anode of the fourth diode D4 is connected to the collector of the fourth transistor Q4, the emitter of the fourth transistor Q4 is connected to signal ground, and the eighteenth resistor R18 is connected between the base and the emitter of the fourth transistor Q4; the base electrode of the fourth triode Q4 is connected with the sixth pin PA1 of the fourth chip U4 through the nineteenth resistor R19; a first pin of the buzzer B1 is connected with an anode of the fourth diode D4;
preferably, the LED circuit includes a third light emitting diode LED3, a fourth light emitting diode LED4, a fifth light emitting diode LED5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8; the 3V3 supply line that transmits the 3V3 supply voltage to the LED circuit connects the anode of the third light emitting diode LED3, the anode of the fourth light emitting diode LED4, and the anode of the fifth light emitting diode LED5, respectively; the cathode of the third light emitting diode LED3 is connected to the eighth pin PA7 of the fourth chip U4 through the sixth resistor R6; the cathode of the fourth light emitting diode LED4 is connected to the third pin PC15 of the fourth chip U4 through the seventh resistor R7; the cathode of the fifth light emitting diode LED5 is connected to the second pin PC14 of the fourth chip U4 through the eighth resistor R8.
Preferably, in the programming control circuit provided by the present invention, the power supply programming line connector comprises a first diode D1, a port J1;
the third end of the port J1 is respectively connected with the cathode of the first diode D1 and the LED power supply through the power supply singlechip power supply line, and the anode of the first diode D1 is connected with a 12V power supply line to receive 12V power supply voltage; the third end of the port J1 is connected with the LED power supply and provides conversion voltage of required voltage for a single chip microcomputer in the LED power supply; the second end of the port J1 is connected with the single-wire communication circuit through a programming line PROG, and the programming line PROG is a dimming line; a first end of the port J1 is connected to signal ground and to the LED power supply.
Preferably, in the programming control circuit provided in the present invention, the programming control circuit further includes: 5V to 12V isolation power circuit, 12V to 3.3V circuit; wherein,
preferably, the 5V to 12V isolation power supply circuit comprises a chip AUX1, a second inductor L2, a third inductor L3, an eighth polarity capacitor C8 and a tenth polarity capacitor C10; transmitting a 5V supply voltage to a 5VIN supply line of the 5V-to-12V isolation power supply circuit, wherein one path of the 5VIN supply line is connected with a first pin VIN of the chip AUX1 through the second inductor L2, the other path of the 5VIN supply line is connected with the anode of the eighth polar capacitor C8, and the cathode of the eighth polar capacitor C8 is grounded; the second pin GND of the chip AUX1 is grounded; the third pin 0V of the chip AUX1 is connected with a signal ground; a fourth pin VO + of the chip AUX1 is connected to a 12V power supply line through the third inductor L3 for outputting 12V power supply voltage, and one of the fourth pin VO + is connected to the anode of the tenth polarity capacitor C10, and the cathode of the tenth polarity capacitor C10 is connected to signal ground;
preferably, the 12V to 3.3V circuit comprises a second chip U2, a sixth capacitor C6 and a seventh capacitor C7; the 12V power supply line for transmitting the 12V power supply voltage to the circuit for converting 12V to 3.3V is connected with a signal ground through the seventh capacitor C7, and is connected with the third terminal IN of the second chip U2; the first end GND of the second chip U2 is connected with a signal ground; two ends of the sixth capacitor C6 are respectively connected with a signal ground and a second end OUT of the second chip U2; the second end OUT of the second chip U2 is connected with a 3V3 power supply line to output 3V3 power supply voltage.
The utility model also provides a programming controller is applied to the LED power, programming controller includes above programming control circuit.
Implement the utility model provides a programming control circuit has following beneficial effect:
when the LED power supply is specifically implemented, the main control circuit transmits a power supply program to the LED power supply under the trigger of the key circuit, so that the LED power supply can be rapidly programmed off-line under the condition of being separated from an upper computer, and a control signal is output through a preset control program to adjust the output current of the LED power supply, in addition, the USB-to-serial port communication circuit can be connected to the upper computer to support the on-line programming of the LED power supply and the adjustment of the output current by the upper computer, the LED power supply can be operated more complexly by the upper computer to meet the use requirements of different scenes of a user, in addition, the single-wire communication circuit supports the double-wire to single-wire communication, the number of output wires of the programming control circuit can be reduced, the resources and the production cost are greatly saved, in addition, the single-chip microcomputer in the LED power supply is supplied with power through a power supply wire, so that, thereby saving electrical energy.
Drawings
The invention will be further explained with reference to the drawings and examples, wherein:
fig. 1 is a schematic structural diagram of an embodiment of the programming control circuit of the present invention;
fig. 2 is a schematic circuit diagram of a buzzer circuit according to an embodiment of the present invention;
fig. 3 is a schematic circuit diagram of a key circuit, an LED circuit, and a main control circuit according to an embodiment of the present invention;
fig. 4 is a schematic circuit diagram of a USB-to-serial communication circuit according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of a single-wire communication circuit according to an embodiment of the present invention;
fig. 6 is a schematic circuit diagram of an isolated power supply circuit for converting 5V to 12V according to an embodiment of the present invention;
fig. 7 is a schematic circuit diagram of a 12V to 3.3V circuit according to an embodiment of the present invention;
fig. 8 is a circuit schematic of a power supply programming line connector circuit according to an embodiment of the invention;
fig. 9 is a schematic circuit diagram of a digital isolation circuit according to an embodiment of the present invention.
Detailed Description
In order to clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a programming control circuit according to an embodiment of the present invention, which can be used to connect an LED power supply to implement fast programming of the LED power supply and modify the output of the LED power supply. In this embodiment, the program control circuit includes: the LED power supply comprises a main control circuit 10, an indicating circuit 50 for indicating the current state, a power failure protection memory for pre-storing a power supply program and a control program and being arranged in the main control circuit 10, an electrically isolated digital isolation circuit 30, a single-wire communication circuit 20 for converting double-wire communication into single-wire communication, at least one key circuit 40, a USB-to-serial communication circuit 60 for receiving input voltage and transmitting communication data, and a power supply programming line connector 70 for connecting an LED power supply through a power supply singlechip power supply line to supply power for a singlechip in the LED power supply.
As shown in fig. 1, in the programming control circuit, the main control circuit 10 is connected to the indication circuit 50, the digital isolation circuit 30, the single-wire communication circuit 20, and the key circuit 40, respectively. The USB to serial communication circuit 60 is connected to the digital isolation circuit 30. The programming line of the power programming line connector 70 is connected to the single wire communication circuit 20 and to the LED power source.
The main control circuit 10 transmits the power program and the control signal generated by the control program to the single-wire communication circuit 20 under the trigger of the key circuit 40 and transmits the control signal to the LED power supply through the power programming wire connector 70, so as to realize the fast programming and output modification of the LED power supply. The main control circuit 10 may be composed of an MCU (micro control unit) and its peripheral circuits.
It should be noted that the current state indicated by the indicating circuit 50 refers to the current state of the programming control circuit, and includes a program-writing mode, a current-increasing mode, a current-decreasing mode, and the like, so as to facilitate the programming and output control of the LED power supply by the user. The power supply program is a program for controlling the output of the LED power supply, for example, the power supply outputs power after operating for 3 hours, the control program is a program which is operated in the main control circuit 10 of the program control circuit and outputs a corresponding control signal according to the detected trigger signal of the key circuit 40, the control signal may be a digital signal such as a save command for saving the LED power supply for the relevant settings, an instruction for increasing or decreasing the output current of the LED power supply, and an instruction signal for indicating the current state by the control instruction circuit 50, and the single chip in the LED power supply which operates the power supply program may receive the save command for saving the LED power supply for the relevant settings, and the instruction for increasing or decreasing the output current of the LED power supply, and implement the corresponding functions. The communication data refers to data mutually transmitted after the programming control circuit is connected with the upper computer through the USB-to-serial port communication circuit 60, such as state data of a power supply, a power supply program and the like. The power supply singlechip power supply line refers to one line of the power supply programming line connector 70, the input voltage of the programming control circuit can be converted into the voltage meeting the electrical requirements of the LED power supply singlechip after passing through a series of voltage conversion circuits, and then the power supply singlechip power supply line supplies power to the singlechip of the LED power supply, so that the LED power supply can be quickly programmed and output modified without being supplied with commercial power through the programming control circuit, the power supply singlechip power supply line is favorable for reducing power consumption and saving electric energy. The input voltage is used for supplying power to the programming control circuit, the preferred value is 5V, the input voltage can be provided by an upper computer connected with the USB-to-serial port circuit 60, and the mobile power supply can also be provided by being connected with the USB-to-serial port circuit 60 through a USB data line, so that the programming control circuit not only supports the upper computer to realize online programming and output modification of the LED power supply, but also can be separated from the independent offline programming and output modification of the LED power supply of the upper computer, and not only can the use requirements of complex occasions such as data acquisition of the LED power supply be met, but also the use requirements of occasions without the upper computer in remote areas but needing simple programming and output modification of the LED power supply can be met.
Referring to fig. 3, fig. 3 is a schematic circuit diagram of the key circuit 40, the LED circuit 501, and the main control circuit 10 according to an embodiment of the present invention. Preferably, the main control circuit 10 includes a fourth chip U4, an eleventh resistor R11, a ninth capacitor C9 and a third capacitor C3. The fourth chip U4 is an MCU (micro control unit), and its model is preferably STM32L011D4P 7.
As shown in fig. 3, in particular, the fourteenth pin PA14 of the fourth chip U4 is connected to the first burning line TX. The thirteenth pin PA13 of the fourth chip U4 is connected to the second programming line RX. The tenth pin VCC of the fourth chip U4 is connected to the 3V3 power supply line for receiving the 3V3 supply voltage, and connected to the signal ground via the ninth capacitor C9, where the 3V3 supply voltage can be provided by the output terminal of the 12V to 3.3V circuit shown in fig. 7. The ninth pin GND of the fourth chip U4 is connected to the signal ground. The fourth pin RST of the fourth chip U4 is connected to the 3V3 power supply line via the eleventh resistor R11 to receive the 3V3 supply voltage, and connected to the signal ground via the third capacitor C3, where the 3V3 supply voltage may be provided by the output terminal of the 12V to 3.3V circuit shown in fig. 7, and in other embodiments, may be provided by the fourth chip U4 connected to the eleventh resistor R11 via the tenth pin VCC. The fifth pin PA0 of the fourth chip U4 is connected to the single-wire communication circuit 20 through the first data line RXD. The seventh pin PA4 of the fourth chip U4 is connected to the single-wire communication circuit 20 through a second data line TXD. The twelfth pin PA10 of the fourth chip U4 is connected to the digital isolation circuit 30. The eleventh pin PA9 of the fourth chip U4 is connected to the digital isolation circuit 30. The first programming line TX and the second programming line RX are used as programming connection nodes of a control program of the fourth chip UP4 before the programming control circuit leaves a factory. The fourth chip U4 accessible first data line RXD can receive the data that the LED power sent, then transmits to digital isolating circuit 50 through eleventh pin PA9, and is transmitted to the host computer by digital isolating circuit 50 through USB commentaries on classics serial ports circuit to realize carrying out data acquisition to the LED power on line, the host computer can arrange in order the LED power data of acquireing and generate the curve chart and supply the user to know the information of this LED power directly perceivedly. The fourth chip U4 can receive a power supply program from the upper computer through the twelfth pin PA10 to implement a power supply program prestored in the programming control circuit, and send the power supply program to the single-wire communication circuit 20 through the second data line TXD, and the power supply program is modulated by the single-wire communication circuit 20 and then output to the LED power supply through the power supply programming line connector 70 to perform fast offline or online programming on the LED power supply, and also can send a control signal to the LED power supply through the second data line TXD to modify the magnitude of the output current of the LED power supply.
Referring to fig. 5, fig. 5 is a schematic circuit diagram of a single-line communication circuit according to an embodiment of the present invention. The programming control circuit adopts a half-duplex communication mode, the single-wire communication circuit 20 can transmit data or signals such as power supply programs, control signals, LED power supply return data and the like through a single power supply programming line PROG, and can share one wire with a power supply dimming line, so that the number of external wires of the LED power supply can be reduced, and the cost can be greatly saved due to the reduced number of external wires when the control circuit is programmed in mass production. Preferably, the single-wire communication circuit 20 includes a first transistor Q1, a third transistor Q3, a sixth MOS transistor Q6, a second MOS transistor Q2, a third resistor R3, a twenty-first resistor R21, a thirteenth resistor R13, a twenty-second resistor R22, a seventeenth resistor R17, a twenty-third resistor R23, a twentieth resistor R20, a twenty-second capacitor C22, a second diode D2, a third diode D3, and a constant current source with compensation. Preferably, the band compensation constant current source comprises a sixth three-terminal regulator U6, a twenty-fifth resistor R25, a twenty-fourth resistor R24, and a ninth double transistor Q9. The sixth MOS transistor Q6 and the second MOS transistor Q2 are both P-channel MOS transistors. The first transistor Q1 and the third transistor Q3 are NPN transistors. The sixth three-terminal regulator tube U6 is preferably of type AZ 432. The ninth two-transistor Q9 is preferably MMDT3906 in model.
Referring to fig. 3 and 5, in particular, the seventh pin PA4 of the fourth chip U4 is connected to the first end of the third resistor R3 and the gate of the sixth MOS transistor Q6 through the second data line TXD. The 3V3 power supply line for transmitting the 3V3 power supply voltage to the single-wire communication circuit 20 is connected to the second end of the third resistor R3 and the source of the sixth MOS transistor Q6, and is connected to the signal ground after being connected to the twenty-second capacitor C22, where the 3V3 power supply line may be connected to the output end of the 12V to 3.3V circuit shown in fig. 7, and may also be connected to the tenth pin VCC of the fourth chip U4 in other embodiments. The drain of the sixth MOS transistor Q6 is connected to the base of the first transistor Q1 through a twenty-second resistor R22, and one of the drains is connected to the first end of the twenty-third resistor R23. Two ends of the twentieth resistor R20 are respectively connected to the gate and the source of the second MOS transistor Q2. The drain of the second MOS transistor Q2 is connected to the base of the third transistor Q3 through a twenty-first resistor R21, and one of the drains is connected to the first end of a seventeenth resistor R17. The gate of the second MOS transistor Q2 is connected to the anode of the second diode D2, and the cathode of the second diode D2 is connected to the collector of the first transistor Q1. The 3V3 power supply line for transmitting the 3V3 supply voltage to the single-wire communication circuit 20 is connected to the collector of the third transistor Q3 via a thirteenth resistor R13, where the 3V3 power supply line can be connected to the output terminal of the 12V to 3.3V circuit shown in fig. 7, and in other embodiments, can also be connected to the tenth pin VCC of the fourth chip U4. The fifth pin PA0 of the fourth chip U4 is connected to the collector of the third transistor Q3 via the first data line RXD. The programming line PROG connected to the power supply programming line connector 70 is connected to the collector of the first transistor Q1, the cathode of the third diode D3, and the anode of the third diode D3 is connected to the third collector of the ninth phototransistor Q9. The ninety-first transistor of the ninth phototransistor Q9 includes a third collector, a fourth emitter, and a fifth base, and the ninety-second transistor of the ninth phototransistor Q9 includes a second base, a sixth collector, and a first emitter. A fourth emitter of the ninth phototransistor Q9 is connected to a reference electrode of a sixth three-terminal regulator U6 through a twenty-fifth resistor R25, and one emitter is connected to a cathode of the sixth three-terminal regulator U6. A first emitter of the ninth phototransistor Q9 is connected to an anode of a sixth three-terminal regulator U6. A sixth collector of the ninth phototransistor Q9 is connected to the first terminal of the twenty-fourth resistor R24, and is connected to the fifth base, and the fifth base is connected to the second base. The 12V power supply line for transmitting 12V supply voltage to the single wire communication circuit 20 is connected to the cathode of the sixth three terminal regulator U6 where the 12V power supply line may be connected to the output of the 5V to 12V isolated power supply circuit shown in fig. 6. The second end of the twenty-third resistor R23, the emitter of the first transistor Q1, the second end of the seventeenth resistor R17, the emitter of the third transistor Q3, and the second end of the twenty-fourth resistor R24 are commonly connected to signal ground.
It should be noted that the signal transmitted by the fourth chip U4 through the second data line TXD and the power supply program are digital signals with high and low levels, and the single-line data transmission can be realized by changing the high and low levels of the programming line PROG. The constant current source with compensation can output a stable 12V voltage to supply power to the line on which the programming line PROG is located, and at the same time, the constant current source with compensation is used as an analog signal during digital signal modulation. The process of programming the control circuit to transmit data to the LED power supply is as follows: the gate of the sixth MOS transistor Q6 is turned off when receiving a high level, so that the first transistor Q1 is turned off because its base receives a low level, and thus the programming line PROG connected to the collector of the first transistor Q1 transmits a low level to the LED power supply, at this time, the second MOS transistor Q2 is turned off because its gate receives a high level, the third transistor Q3 is turned off because its base is a low level, and the first data line RXD transmits a high level signal to the fourth chip U4; when the sixth MOS transistor receives the low level data transmitted by the fourth chip U4 through the second data line TXD, the sixth MOS transistor Q6 is turned on, the first transistor Q1 is turned on, so that the signal transmitted from the programming line PROG to the LED power supply is a low level signal, the second MOS transistor Q2 is turned on, and the third transistor Q3 is turned on, so that the signal output from the first data line RXD to the fourth chip U4 is a low level signal. When the high level is transmitted from the programming line PROG, the second MOS tube Q2 is turned off, the third triode Q3 is turned off because the base electrode of the third triode Q3 is connected with the seventeenth resistor R17 to obtain the low level, so that the first data line RXD receives the high level signal through the thirteenth resistor R13 and transmits the high level signal to the fourth chip U4; when the programming line PROG is fed with a low level, the gate of the second MOS transistor Q2 receives the low level to turn on the second MOS transistor Q2, and the base of the third transistor Q3 is connected to the pull-up resistor twenty-first resistor R21 to obtain a high level to turn on the third transistor Q3526, so that the first data line RXD is connected to a signal ground to obtain a low level, and the fifth pin PA0 of the fourth chip U4 obtains a low level signal. The second diode D2 and the third diode D3 can limit the current flowing direction, and prevent the circuit from being damaged.
Referring to fig. 4, fig. 4 is a schematic diagram of a USB to serial communication circuit according to an embodiment of the present invention. The USB-to-serial communication circuit 60 may be connected to an upper computer through a USB interface to provide an input voltage for the programming control circuit, and perform operations such as online programming, output modification, and power information acquisition on the LED power supply through the programming control circuit. Preferably, the USB to serial port communication circuit 60 includes a third chip U3, a USB interface, a fifth capacitor C5, a first capacitor C1, a fourth polarity capacitor C4, a first inductor L1, a first resistor R1, a second resistor R2, a first light emitting diode LED1, a second light emitting diode LED2, a fifth resistor R5, a fourth resistor R4, and a second capacitor C2. The third chip U3 is an interface conversion chip, and preferably the third chip U3 is model number FT232 RL. The USB interface is a male port, and in other embodiments, the USB interface may also be a female port.
As shown in fig. 4, the first pin VDD of the USB interface is connected to the first end of the inductor L1, and the first pin VDD is connected to the fifth capacitor C5 and then grounded, and the first pin VDD is connected to the 5VIN power supply line to output 5V power supply voltage, where the output 5V power supply voltage can be provided by an upper computer or a mobile power supply through the USB interface, can supply power to the twentieth pin VCC of the third slice U3, and is transmitted to the input terminal of the 5V to 12V isolation power supply circuit shown in fig. 6. The second pin D-of the USB interface is connected with the sixteenth pin D-of the third chip U3 through a first resistor R1. The fourth pin D + of the USB interface is connected to the fifteenth pin D + of the third chip U3 through the second resistor R2. The fourth pin GND of the USB interface is grounded. The second end of the first inductor L1 is connected to the twentieth pin VCC of the third chip U3, and is connected to the ground after being connected to the first capacitor C1, and is connected to the positive electrode of the fourth polarity capacitor C4, and is connected to the fourth pin VCCIO of the third chip U3, and is connected to the 5V usb power supply line to output the 5V power supply voltage to the digital isolation circuit 30. The negative pole of the fourth polarity capacitor C4 is grounded. The seventeenth pin 3.3VOUT of the third chip U3 is connected to the twenty fifth pin AGND, the seventh pin GND, the eighteenth pin GND1, the twenty first pin GND2, and the twenty sixth pin TEST of the third chip U3 via the second capacitor C2, and then grounded. The first pin TXD of the third chip U3 is connected to the digital isolation circuit 30 via a third data line USB-TX. The fifth pin RXD of the third chip U3 is connected to the digital isolation circuit 30 via a fourth data line USB-RX. A twenty-third pin CBUS0 of the third chip U3 is connected to the cathode of the first light emitting diode LED1 through a fifth resistor R5, a twenty-second pin CBUS1 of the third chip U3 is connected to the cathode of the second light emitting diode LED2 through a fourth resistor R4, and the anode of the first light emitting diode LED1 and the anode connection node of the second light emitting diode LED2 are connected to a 5V usb power supply line to receive a 5V supply voltage. And the fifth pin and the sixth pin of the USB interface are grounded after being connected. When the upper computer is used, the third chip U3 receives communication data and input voltage through the USB interface, and transmits data to the fourth chip U4 through the first pin TXD, such as a command for acquiring LED power information, a power program for transmission, and the like, and when the power returns data, the third chip U3 receives data transmitted from the fourth chip through the fifth pin RXD, and outputs the data to the upper computer through the USB interface. When the mobile power supply is used, the input voltage is received through the USB interface to supply power for the programming control circuit. It is understood that data transmission between the third chip U3 and the fourth chip U4 may pass through the digital isolation circuit 30 to prevent the host computer from signal interference. In addition, any one of the first light emitting diode LED1 and the second light emitting diode LED2 can be used as a power lamp to indicate whether the power supply of the programming control circuit is good, and the other one can be used to indicate the receiving and sending states of the serial port data.
Referring to fig. 9, in an alternative embodiment, in order to prevent the interference signal inside the LED power supply from being fed back to the upper computer and cause the upper computer to be interfered by the interference signal, a digital isolation circuit may be disposed between the USB to serial communication circuit 60 and the main control circuit 10. Preferably, the digital isolation circuit 30 includes a first chip U1, a thirteenth capacitor C13, a twelfth capacitor C12, an eleventh capacitor C11, a fourth capacitor C14, a sixteenth resistor R16, a fifteenth resistor R15, a twelfth resistor R12, and a fourteenth resistor R14. The first chip U1 is a dual-channel digital isolator, which can effectively isolate signals between the programming host and the programming control circuit and simultaneously realize signal transmission, and is preferably of the type admum 3201.
As shown in FIG. 9, the seventh pin VI1 of the first chip U1 is connected to the third data line USB-TX via the sixteenth resistor R16, and the third data line USB-TX is connected to the first pin TXD of the third chip U3. One path of a fourth data line USB-RX connected to the fifth pin RXD of the third chip U3 is connected to the sixth pin VO2 of the first chip U1 through a fifteenth resistor R15, and the other path is connected to the fifth pin GND2 of the first chip U1 through a capacitor C14. The fifth pin GND2 of the first chip U1 is grounded. An eighth pin VCC2 of the first chip U1 is connected to a 5V usb power supply line for receiving a 5V supply voltage, and is grounded via a thirteenth capacitor C13. The first pin VCC1 of the first chip U1 is connected to the 3V3 power supply line for receiving the 3V3 supply voltage, and is connected to the signal ground via the twelfth capacitor C12, and the 3V3 power supply line may be connected to the output terminal of the 12V to 3V circuit shown in fig. 7, or may be connected to the tenth pin VCC of the fourth chip U4 in other embodiments. The fourth pin GND1 of the first chip U1 is connected to signal ground. The second pin VO1 of the first chip U1 is connected to the signal ground after being connected to the eleventh capacitor C11 through the fourteenth resistor R14, and is connected to the twelfth pin PA10 of the fourth chip U4. The third pin VI2 of the first chip U1 is connected to the eleventh pin PA9 of the fourth chip U4 via a resistor R12. The data transmitted from the USB to serial port communication circuit 60 to the main control circuit 10 is coupled after being input through the seventh pin VI1 of the first chip U1, and the isolated data is output to the fourth chip U4 through the second pin VO1 by the internal isolation transformer. Data transmitted to the USB to serial communication circuit 60 by the main control circuit 10 is input from the third pin VI2 of the first chip U1 for coupling, and the isolated data is output by the isolation transformer inside the first chip U1 and then output to the upper computer through the USB to serial communication circuit 60. The interference of the interference signal of the data returned by the LED power supply on the upper computer can be effectively prevented.
Referring to fig. 3, fig. 3 is a schematic circuit diagram of the key circuit 40, the LED circuit 501, and the main control circuit 10 according to an embodiment of the present invention. The key circuit 40 is configured to trigger the main control circuit 10 to output a power program to quickly program the LED power, and output a control signal generated by the control program to adjust the output current of the LED power, where the control signal may also include a save command, and an indication signal for controlling the indication circuit 50 to indicate the current state of the programmed control circuit. Preferably, the single key circuit 40 includes a key SW1, a ninth resistor R9 and a tenth resistor R10.
As shown in fig. 3, a first end of the ninth resistor R9 is connected to the 3V3 power supply line to receive the 3V3 power supply voltage, a second end of the ninth resistor R9 is connected to the key SW1 and then connected to the signal ground through the tenth resistor R10, a connection node between the key SW1 and the tenth resistor R10 is an output terminal of the key circuit 40 and is connected to the first pin BOOT0 of the fourth chip U4, where the 3V3 power supply line may be connected to an output terminal of the 12V to 3V3 circuit shown in fig. 7, and in other embodiments, may also be connected to the tenth pin VCC of the fourth chip U4 of the main control circuit 10. When the key SW1 is not pressed, the first pin BOOT0 of the fourth chip U1 receives a low level signal, and when the key SW1 is pressed, the first pin BOOT0 of the fourth chip U1 receives a high level signal, and whether the key SW1 is pressed, that is, whether the key circuit 50 is triggered can be detected by detecting the high level signal.
In this embodiment, the key circuit 40 is single, and the main control circuit 10 implements a plurality of functions, such as fast programming of the transmission power program on the LED power, modification of the output of the LED power by the transmission control signal, control of the indication circuit 50 by the transmission indication signal, and transmission of the storage command to the LED power for storage of settings, so that the fourth chip U4 can execute different functions according to the duration and frequency of receiving the high level signal by long-pressing, short-pressing, and multiple clicks, where the multiple clicks include continuous clicks, and clicks at preset intervals. The function corresponding to the specific click method is not limited in this embodiment.
In another embodiment, three key circuits 40 are provided to respectively implement writing of a power program to the LED power supply, increasing of an output current of the LED power supply, and decreasing of the output current of the LED power supply, which is convenient for a user to use, at this time, output terminals of the three key circuits 40 are respectively connected to the first pin BOOT0, the fourteenth pin PA14, and the thirteenth pin PA13 of the fourth chip U4, and the user transmits a save command to the LED power supply to save the setting of the LED power supply after pressing a key for a long time or a short time each time.
In another embodiment, the key circuit 40 is provided in two, and the output terminal of the key circuit 40 can be connected to any two of the first pin BOOT0, the fourteenth pin PA14 and the thirteenth pin PA13 of the fourth chip U4. The keys of one of the key circuits 40 can alternately switch the modes of "write power program", "increase current mode", "decrease current mode", etc. by the fourth chip U4 every long press or short press, and then the fourth chip U4 executes the function of the corresponding mode by the long press or short press of the other key circuit 40, and of course, a save command is output after each long press or short press. It is to be understood that the at least one keying circuit 40 refers to at least one keying circuit 40 that does not exceed the number of remaining available I/O pins of the fourth chip U4.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic diagram of a buzzer circuit 502 in an indicating circuit according to an embodiment of the present invention, and fig. 3 is a schematic circuit diagram of a key circuit 40, an LED circuit 501, and a main control circuit 10 according to an embodiment of the present invention. The indication circuit 50 can be used to indicate the current state of the programmed controller for convenient operation and use by the user. The indication circuit 50 may include any one or any combination of the following: LED display screen circuit, LCD display screen circuit, buzzer circuit, LED circuit. In this embodiment, preferably, the indication circuit 50 includes the buzzer circuit 502 and the LED circuit 501, and compared with a circuit that occupies more chip pins, such as an LED display screen and an LCD display screen, the pins of the fourth chip U4 can be saved, and the cost is relatively lower.
As shown in fig. 2, the buzzer circuit 502 preferably includes a fourth diode D4, a fourth transistor Q4, a buzzer B1, a nineteenth resistor R19, and an eighteenth resistor R18. In other embodiments, the power supply line 3V3 for transmitting the 3V3 supply voltage to the buzzer circuit 502 may be connected to the cathode of the fourth diode D4 and the second pin of the buzzer B1, the power supply line 3V3 may be connected to the output terminal of the 12V to 3V3 circuit shown in fig. 7, and may also be connected to the tenth pin VCC of the fourth chip U4 of the main control circuit 10, the anode of the fourth diode D4 is connected to the collector of the fourth transistor Q4, the emitter of the fourth transistor Q4 is connected to the signal ground, and the eighteenth resistor R18 is connected between the base and the emitter of the fourth transistor Q4. The base of the fourth transistor Q4 is connected to the sixth pin PA1 of the fourth chip U4 through a nineteenth resistor R19. The first pin of the buzzer B1 is connected to the anode of a fourth diode D4. The fourth transistor Q4 is an NPN transistor. When the key circuit 40 is triggered, the fourth chip U4 may control the sixth pin PA1 to output a high level to turn on the fourth transistor Q4 and further sound the buzzer B1, and may control the time when the sixth pin PA1 outputs a high level and the time when the sixth pin PA1 outputs a low level to sound the buzzer B1 at different frequencies, thereby indicating different current states of the programmed control circuit.
As shown in fig. 3, the LED circuit 501 preferably includes three light emitting diodes. Specifically, the LED circuit 501 includes a third light emitting diode LED3, a fourth light emitting diode LED4, a fifth light emitting diode LED5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8. The 3V3 power supply line for transmitting the 3V3 power supply voltage to the LED circuit 501 is connected to the anode of the third LED3, the anode of the fourth LED4 and the anode of the fifth LED5, respectively, and the 3V3 power supply line can be connected to the output terminal of the 12V to 3V3 circuit shown in fig. 7, and in other embodiments, can also be connected to the tenth pin VCC of the fourth chip U4 of the main control circuit 10. The cathode of the third LED3 is connected to the eighth pin PA7 of the fourth chip U4 via a sixth resistor R6. The cathode of the fourth LED4 is connected to the third pin PC15 of the fourth chip U4 via a seventh resistor R7. The cathode of the fifth LED5 is connected to the second pin PC14 of the fourth chip U4 through an eighth resistor R8. The third to fifth light emitting diodes LED3 to LED5 are light emitting diodes of three different colors, respectively. In specific implementation, when the key circuit 50 is activated, the control program of the fourth chip U4 may control the second pin PC14, the third pin PC15, and the eighth pin PA7 to output low levels to make the third to fifth light emitting diodes LED3 to LED5 emit light, and output high levels to make them turn off. Before the programmable control circuit leaves factory, a control program can be set in advance to enable the light-emitting diode to represent different current states of the programmable control circuit in the forms of quick flashing, slow flashing, light of which color and the like. In some embodiments, the LED circuit 501 may be other numbers of LEDs, and it is understood that the number of LEDs does not exceed the number of pins of the chip U4.
By using the buzzer circuit 502 and the LED circuit 501 as the indication circuit 50, compared with the current state of the programming control circuit represented by characters displayed by an LED display screen or an LCD display screen, the number of pins of the fourth chip U4 of the main control circuit 10 can be reduced, thereby facilitating the function expansion in the future, and the circuit is simple, low in cost and capable of reducing the maintenance cost in the future.
Referring to fig. 8, fig. 8 is a schematic circuit diagram of a power supply programming line connector circuit according to an embodiment of the present invention. Preferably, the power supply programming line connector 70 includes a first diode D1, port J1.
As shown in fig. 8, the third terminal of the port J1 is connected to the cathode of the first diode D1 and the LED power supply (not shown) through the power supply of the power supply single chip microcomputer, and the anode of the first diode D1 is connected to the 12V power supply line for receiving the 12V power supply voltage, and the 12V power supply line can be connected to the 5V to 12V isolation power supply circuit shown in fig. 6. The third end of the port J1 is connected to an LED power supply (not shown) and provides a conversion voltage of a required voltage for a single chip microcomputer (not shown) in the LED power supply, the required voltage refers to a working voltage of the single chip microcomputer, the conversion voltage refers to a 12V power supply voltage received by the LED power supply, and the 12V power supply voltage can be converted into the working voltage required by the single chip microcomputer in the LED power supply through a voltage conversion circuit in the LED power supply. The second terminal of the port J1 is connected to the single-wire communication circuit 20 shown in fig. 5 via a programming line PROG, and the programming line PROG is a dimming line. A first end of port J1 is connected to signal ground and to the LED power supply. Therefore, the programming control circuit can realize off-line programming, on-line programming and output current adjustment of the LED power supply when the LED power supply is not supplied with commercial power through the power supply programming line connector 70, dimming is also realized due to the change of the output current of the LED power supply, the external connection number of the LED power supply can be reduced through the sharing of the programming line PROG and the dimming line, a large amount of lead resources can be saved during mass production, the cost is greatly saved, and the cost of the programming control circuit is further reduced.
Referring to fig. 6 and 7, the program control circuit further includes: 5V changes 12V and keeps apart power supply circuit and 12V changes 3.3V circuit, and fig. 6 is the utility model discloses a 5V changes 12V and keeps apart power supply circuit's circuit schematic diagram. Fig. 7 is a schematic circuit diagram of a 12V to 3.3V circuit according to an embodiment of the present invention. The 5V to 12V isolated power supply circuit can convert the 5V power supply voltage transmitted from the USB interface in the USB to serial communication circuit 60 into 12V power supply voltage, which supplies power to the input terminal of the 12V to 3.3V circuit, the power programming line connector 70, and the single-wire communication circuit 20. The 12V to 3.3V circuit can convert the 12V power supply voltage provided by the output terminal of the 5V to 12V isolation power supply circuit into the 3V3 power supply voltage required by the fourth chip U4 of the main control circuit 10, so that the fourth chip U4 directly supplies power to the digital isolation circuit 30, the single-wire communication circuit 20, the LED circuit 501, the key circuit 40 and the buzzer circuit 502, or directly supplies power to the circuits through the output terminal of the 12V to 3.3V circuit.
As shown in fig. 6, preferably, the 5V to 12V isolated power supply circuit includes a chip AUX1, a second inductor L2, a third inductor L3, an eighth polarity capacitor C8, and a tenth polarity capacitor C10. One path of a 5VIN power supply line for transmitting 5V power supply voltage to the 5V-to-12V isolation power supply circuit is connected with a first pin VIN of the chip AUX1 through the second inductor L2, the other path of the 5VIN power supply line is connected with the anode of the eighth polar capacitor C8, the cathode of the eighth polar capacitor C8 is grounded, and the 5VIN power supply line is connected with the USB interface to receive 5V input voltage. The second pin GND of the chip AUX1 is grounded. The third pin 0V of the chip AUX1 is connected to signal ground. A fourth pin VO + of the chip AUX1 is connected to a 12V power supply line through a third inductor L3, and outputs 12V power supply voltage, one of the pins is connected to the positive electrode of a tenth-polarity capacitor C10, and the negative electrode of the tenth-polarity capacitor C10 is connected to the signal ground. The chip AUX1 is a power isolation chip, and can convert a 5V power supply voltage into a 12V power supply voltage, and the type of the chip AUX1 is preferably B0512S.
As shown in fig. 7, preferably, the 12V to 3.3V circuit includes a second chip U2, a sixth capacitor C6, and a seventh capacitor C7. One path of a 12V power supply line for transmitting 12V power supply voltage to a circuit of converting 12V to 3.3V is connected with a signal ground through a seventh capacitor C7, and the other path is connected with a third end IN of a second chip U2, and the 12V power supply line can be connected with an output end of a 5V to 12V isolation power supply circuit shown IN figure 6. The first terminal GND of the second chip U2 is connected to signal ground. Two ends of the sixth capacitor C6 are respectively connected to the signal ground and the second end OUT of the second chip U2. The second terminal OUT of the second chip U2 is connected to a 3V3 supply line outputting a 3V3 supply voltage. The second chip U2 is a low dropout three-terminal regulator, and can reduce the 12V dc to 3.3V, and its model is preferably AZ1117-3.3, and its output precision is within 1%, can output a stable voltage, and has the functions of limiting current, thermal turn-off protection, thereby ensuring that the fourth chip U4 of the main control circuit 10 can stably work.
The utility model also provides a programming controller is applied to the LED power, and programming controller includes the programming control circuit in the above-mentioned embodiment. In specific implementation, the programming control circuit may be disposed on a PCB (printed circuit board), and then the PCB is disposed in the housing, and the indication circuit, such as the light emitting diode, corresponding to the housing of the programming controller indicates the current state of the programming controller, which is indicated by the light emitting diode, such as a program writing execution mode, an output current increasing mode, and an output current decreasing mode, so as to facilitate user operation and use.
Through the embodiment, various scenes needing to modify the output of the LED power supply can be met, in scenes with limited conditions, some common pre-stored power supply programs can be written into the LED power supply through a programming control circuit or a key circuit on a programming controller, then the output current of the LED power supply can be changed through common switching tubes and other modes through control signals, in scenes with sufficient conditions, the LED power supply can be programmed and modified through being connected between an upper computer and the LED power supply, or more complicated operation of collecting LED power supply information is carried out, namely, off-line programming and on-line programming are simultaneously supported, in addition, in scenes in which the LED power supply is produced in large batch, the LED power supply can be quickly programmed and set through the key circuit of the programming control circuit or the programming controller without purchasing a large number of upper computers and only needing to pre-store the power supply programs in advance, is beneficial to improving the production and delivery speed of factories and reducing the production cost. In addition, the programming line and the dimming line are shared, the number of external lines of the LED power supply is reduced, resources are effectively saved and the cost is reduced during mass production. The programming control circuit or the programming controller can also realize the power supply of the singlechip in the LED power supply, so that the LED power supply can also program the LED power supply without the need of commercial power, the power consumption can be reduced, and the electric energy can be saved.
It is to be understood that the foregoing examples merely represent preferred embodiments of the present invention, and that the description thereof is more specific and detailed, but not intended to limit the scope of the invention; it should be noted that, for those skilled in the art, the above technical features can be freely combined, and several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention; therefore, all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (10)

1. A programmed control circuit for an LED power supply, comprising: the LED power supply comprises a main control circuit (10), an indicating circuit (50) for indicating the current state, a power failure protection memory for pre-storing a power supply program and a control program and being arranged in the main control circuit (10), an electrically isolated digital isolation circuit (30), a single-wire communication circuit (20) for converting double-wire communication into single-wire communication, at least one key circuit (40), a USB-to-serial communication circuit (60) for receiving input voltage and transmitting communication data, and a power supply programming line connector (70) for connecting the LED power supply through a power supply singlechip power supply line to supply power to the singlechip in the LED power supply;
the main control circuit (10) is respectively connected with the indicating circuit (50), the digital isolating circuit (30), the single-wire communication circuit (20) and the key circuit (40); the USB-to-serial port communication circuit (60) is connected with the digital isolation circuit (30); a programming line of the power supply programming line connector (70) is connected with the single-wire communication circuit (20) and connected with the LED power supply;
the main control circuit (10) transmits the power supply program and the control signal to the single-wire communication circuit (20) under the trigger of the key circuit (40) and transmits the power supply program and the control signal to the LED power supply through the power supply programming wire connector (70).
2. The program control circuit of claim 1, wherein the master control circuit (10) comprises a fourth chip U4, an eleventh resistor R11, a ninth capacitor C9, and a third capacitor C3;
a fourteenth pin PA14 of the fourth chip U4 is connected with a first burning line TX; a thirteenth pin PA13 of the fourth chip U4 is connected with a second burning line RX; a tenth pin VCC of the fourth chip U4 is connected to a 3V3 power supply line for receiving a 3V3 supply voltage, and one pin VCC is connected to a signal ground through the ninth capacitor C9; a ninth pin GND of the fourth chip U4 is connected with the signal ground; a fourth pin RST of the fourth chip U4 is connected to the 3V3 power supply line through the eleventh resistor R11 to receive the 3V3 supply voltage, and connected to the signal ground through the third capacitor C3; the fifth pin PA0 of the fourth chip U4 is connected with the single-wire communication circuit (20) through a first data line RXD; the seventh pin PA4 of the fourth chip U4 is connected with the single-wire communication circuit (20) through a second data line TXD; a twelfth pin PA10 of the fourth chip U4 is connected with the digital isolation circuit (30); an eleventh pin PA9 of the fourth chip U4 is connected with the digital isolation circuit (30).
3. The programming control circuit of claim 2, wherein the single-wire communication circuit (20) comprises a first transistor Q1, a third transistor Q3, a sixth MOS transistor Q6, a second MOS transistor Q2, a third resistor R3, a twenty-first resistor R21, a thirteenth resistor R13, a twenty-second resistor R22, a seventeenth resistor R17, a twenty-third resistor R23, a twentieth resistor R20, a twenty-second capacitor C22, a second diode D2, a third diode D3, and a compensation constant current source; the band compensation constant current source comprises a sixth three-terminal regulator tube U6, a twenty-fifth resistor R25, a twenty-fourth resistor R24 and a ninth double transistor Q9;
a seventh pin PA4 of the fourth chip U4 is connected to a first end of the third resistor R3 and to a gate of the sixth MOS transistor Q6 through the second data line TXD; the 3V3 power supply line for transmitting the 3V3 power supply voltage to the single-wire communication circuit (20) is connected with the second end of the third resistor R3 and the source electrode of the sixth MOS transistor Q6 in one way, and is connected with the signal ground after being connected with the twenty-second capacitor C22 in one way; the drain of the sixth MOS transistor Q6 is connected to the base of the first transistor Q1 through the twenty-second resistor R22, and is connected to the first end of the twenty-third resistor R23; two ends of the twentieth resistor R20 are respectively connected with the gate and the source of the second MOS transistor Q2; the drain of the second MOS transistor Q2 is connected to the base of the third triode Q3 through the twenty-first resistor R21, and one of the drains is connected to the first end of the seventeenth resistor R17; the gate of the second MOS transistor Q2 is connected to the anode of the second diode D2, and the cathode of the second diode D2 is connected to the collector of the first transistor Q1; the 3V3 power supply line which transmits the 3V3 supply voltage to the single wire communication circuit (20) is connected with the collector of the third triode Q3 through the thirteenth resistor R13; the fifth pin PA0 of the fourth chip U4 is connected with the collector of the third triode Q3 through the first data line RXD; a programming line PROG connected to the power programming line connector (70) is connected to the collector of the first transistor Q1, to the cathode of the third diode D3, and the anode of the third diode D3 is connected to the third collector of the ninth phototransistor Q9; the ninety-first transistor of the ninth phototransistor Q9 includes a third collector, a fourth emitter, and a fifth base, and the ninety-second transistor of the ninth phototransistor Q9 includes a second base, a sixth collector, and a first emitter; a fourth emitter of the ninth double transistor Q9 is connected with the reference electrode of the sixth three-terminal regulator tube U6 through the twenty-fifth resistor R25 in one way, and is connected with the cathode of the sixth three-terminal regulator tube U6 in one way; a first emitter of the ninth phototransistor Q9 is connected to an anode of the sixth three-terminal regulator U6, a sixth collector of the ninth phototransistor Q9 is connected to the first terminal of the twenty-fourth resistor R24, and is connected to the fifth base, and the fifth base is connected to the second base; a 12V power supply line for transmitting 12V power supply voltage to the single-wire communication circuit (20) is connected with the cathode of the sixth three-terminal voltage regulator tube U6; the second end of the twenty-third resistor R23, the emitter of the first transistor Q1, the second end of the seventeenth resistor R17, the emitter of the third transistor Q3, and the second end of the twenty-fourth resistor R24 are commonly connected to a signal ground.
4. The programming control circuit of claim 2, wherein the USB to serial port communication circuit (60) comprises a third chip U3, a USB interface, a fifth capacitor C5, a first capacitor C1, a fourth polarity capacitor C4, a first inductor L1, a first resistor R1, a second resistor R2, a first LED1, a second LED2, a fifth resistor R5, a fourth resistor R4, and a second capacitor C2;
one path of a first pin VDD of the USB interface is connected with a first end of the inductor L1, the other path of the first pin VDD is connected with the fifth capacitor C5 and then grounded, and the other path of the first pin VDD is connected with a 5VIN power supply line to output 5V power supply voltage; the second pin D-of the USB interface is connected with the sixteenth pin D-of the third chip U3 through the first resistor R1; a fourth pin D + of the USB interface is connected with a fifteenth pin D + of the third chip U3 through the second resistor R2; a fourth pin GND of the USB interface is grounded; the second end of the first inductor L1 is connected to the twentieth pin VCC of the third chip U3, the first end of the first inductor L1 is connected to the ground after being connected to the first capacitor C1, the fourth end of the first inductor L4 is connected to the positive electrode of the fourth polarity capacitor C4, the fourth end of the first inductor L3 is connected to the VCCIO of the fourth polarity capacitor C4, and the 5V power supply line is connected to the digital isolation circuit (30); the negative electrode of the fourth polarity capacitor C4 is grounded; the seventeenth pin 3.3VOUT of the third chip U3 is connected to the twenty fifth pin AGND, the seventh pin GND, the eighteenth pin GND1, the twenty first pin GND2 and the twenty sixth pin TEST of the third chip U3 via the second capacitor C2 and then grounded; the first pin TXD of the third chip U3 is connected with the digital isolation circuit (30) through a third data line USB-TX; a fifth pin RXD of the third chip U3 is connected with the digital isolation circuit (30) through a fourth data line USB-RX; a twenty-third pin CBUS0 of the third chip U3 is connected to the cathode of the first LED1 through the fifth resistor R5, a twenty-second pin CBUS1 of the third chip U3 is connected to the cathode of the second LED2 through the fourth resistor R4, and an anode connection node of the first LED1 and an anode connection node of the second LED2 is connected to the 5V USB supply line for receiving the 5V supply voltage; and the fifth pin and the sixth pin of the USB interface are grounded after being connected.
5. The program control circuit of claim 4, wherein the digital isolation circuit (30) comprises a first chip U1, a thirteenth capacitor C13, a twelfth capacitor C12, an eleventh capacitor C11, a fourth capacitor C14, a sixteenth resistor R16, a fifteenth resistor R15, a twelfth resistor R12 and a fourteenth resistor R14;
a seventh pin VI1 of the first chip U1 is connected with the third data line USB-TX through the sixteenth resistor R16; one path of the fourth data line USB-RX is connected to the sixth pin VO2 of the first chip U1 through the fifteenth resistor R15, and the other path is connected to the fifth pin GND2 of the first chip U1 through the capacitor C14; a fifth pin GND2 of the first chip U1 is grounded; an eighth pin VCC2 of the first chip U1 is connected to the 5V usb power supply line all the way to receive the 5V supply voltage, and the other way is grounded through the thirteenth capacitor C13; a first pin VCC1 of the first chip U1 is connected all the way to the 3V3 supply line to receive the 3V3 supply voltage, and all the way to signal ground via the twelfth capacitor C12; a fourth pin GND1 of the first chip U1 is connected with a signal ground; the second pin VO1 of the first chip U1 is connected to the signal ground after being connected to the eleventh capacitor C11 through the fourteenth resistor R14, and is connected to the twelfth pin PA10 of the fourth chip U4; the third pin VI2 of the first chip U1 is connected with the eleventh pin PA9 of the fourth chip U4 through the resistor R12.
6. The programming control circuit of claim 2, wherein a single one of the key circuits (40) includes a key SW1, a ninth resistor R9, and a tenth resistor R10;
the first end of the ninth resistor R9 is connected to the 3V3 power supply line to receive the 3V3 power supply voltage, the second end is connected to the button SW1 and then connected to the signal ground through the tenth resistor R10, and the connection node between the button SW1 and the tenth resistor R10 is the output end of the button circuit (40) and connected to the first pin BOOT0 of the fourth chip U4.
7. The programming control circuit of claim 2, wherein the indication circuit (50) comprises a buzzer circuit (502) and an LED circuit (501); wherein,
the buzzer circuit (502) comprises a fourth diode D4, a fourth triode Q4, a buzzer B1, a nineteenth resistor R19 and an eighteenth resistor R18; the 3V3 supply line, which delivers the 3V3 supply voltage to the buzzer circuit (502), is connected to the cathode of the fourth diode D4 and to the second pin of the buzzer B1, the anode of the fourth diode D4 is connected to the collector of the fourth transistor Q4, the emitter of the fourth transistor Q4 is connected to signal ground, and the eighteenth resistor R18 is connected between the base and the emitter of the fourth transistor Q4; the base electrode of the fourth triode Q4 is connected with the sixth pin PA1 of the fourth chip U4 through the nineteenth resistor R19; a first pin of the buzzer B1 is connected with an anode of the fourth diode D4;
the LED circuit (501) comprises a third light emitting diode LED3, a fourth light emitting diode LED4, a fifth light emitting diode LED5, a sixth resistor R6, a seventh resistor R7 and an eighth resistor R8; the 3V3 supply line that transmits the 3V3 supply voltage to the LED circuit (501) connects the anode of the third light emitting diode LED3, the anode of the fourth light emitting diode LED4, and the anode of the fifth light emitting diode LED5, respectively; the cathode of the third light emitting diode LED3 is connected to the eighth pin PA7 of the fourth chip U4 through the sixth resistor R6; the cathode of the fourth light emitting diode LED4 is connected to the third pin PC15 of the fourth chip U4 through the seventh resistor R7; the cathode of the fifth light emitting diode LED5 is connected to the second pin PC14 of the fourth chip U4 through the eighth resistor R8.
8. The program control circuit of claim 1, wherein the power supply programming line connector (70) comprises a first diode D1, a port J1;
the third end of the port J1 is respectively connected with the cathode of the first diode D1 and the LED power supply through the power supply singlechip power supply line, and the anode of the first diode D1 is connected with a 12V power supply line to receive 12V power supply voltage; the third end of the port J1 is connected with the LED power supply and provides conversion voltage of required voltage for a single chip microcomputer in the LED power supply; the second end of the port J1 is connected with the single-wire communication circuit (20) through a programming line PROG, and the programming line PROG is a dimming line; a first end of the port J1 is connected to signal ground and to the LED power supply.
9. The programming control circuit of claim 1, further comprising: 5V to 12V isolation power circuit, 12V to 3.3V circuit; wherein,
the 5V-to-12V isolation power supply circuit comprises a chip AUX1, a second inductor L2, a third inductor L3, an eighth polarity capacitor C8 and a tenth polarity capacitor C10; transmitting a 5V supply voltage to a 5VIN supply line of the 5V-to-12V isolation power supply circuit, wherein one path of the 5VIN supply line is connected with a first pin VIN of the chip AUX1 through the second inductor L2, the other path of the 5VIN supply line is connected with the anode of the eighth polar capacitor C8, and the cathode of the eighth polar capacitor C8 is grounded; the second pin GND of the chip AUX1 is grounded; the third pin 0V of the chip AUX1 is connected with a signal ground; a fourth pin VO + of the chip AUX1 is connected to a 12V power supply line through the third inductor L3 for outputting 12V power supply voltage, and one of the fourth pin VO + is connected to the anode of the tenth polarity capacitor C10, and the cathode of the tenth polarity capacitor C10 is connected to signal ground;
the 12V-to-3.3V circuit comprises a second chip U2, a sixth capacitor C6 and a seventh capacitor C7; the 12V power supply line for transmitting the 12V power supply voltage to the circuit for converting 12V to 3.3V is connected with a signal ground through the seventh capacitor C7, and is connected with the third terminal IN of the second chip U2; the first end GND of the second chip U2 is connected with a signal ground; two ends of the sixth capacitor C6 are respectively connected with a signal ground and a second end OUT of the second chip U2; the second end OUT of the second chip U2 is connected with a 3V3 power supply line to output 3V3 power supply voltage.
10. A programming controller for use with an LED power supply, the programming controller comprising a programming control circuit as claimed in any one of claims 1 to 9.
CN202022295490.6U 2020-10-15 2020-10-15 Programming control circuit and programming controller for LED power supply Active CN213718260U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202022295490.6U CN213718260U (en) 2020-10-15 2020-10-15 Programming control circuit and programming controller for LED power supply

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202022295490.6U CN213718260U (en) 2020-10-15 2020-10-15 Programming control circuit and programming controller for LED power supply

Publications (1)

Publication Number Publication Date
CN213718260U true CN213718260U (en) 2021-07-16

Family

ID=76798197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202022295490.6U Active CN213718260U (en) 2020-10-15 2020-10-15 Programming control circuit and programming controller for LED power supply

Country Status (1)

Country Link
CN (1) CN213718260U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114211390A (en) * 2021-11-03 2022-03-22 重庆智能机器人研究院 Robot power control end controller
CN117950654A (en) * 2024-02-02 2024-04-30 北京麦克思维科技有限公司 Offline programming module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114211390A (en) * 2021-11-03 2022-03-22 重庆智能机器人研究院 Robot power control end controller
CN114211390B (en) * 2021-11-03 2023-03-28 重庆智能机器人研究院 Robot power control end controller
CN117950654A (en) * 2024-02-02 2024-04-30 北京麦克思维科技有限公司 Offline programming module

Similar Documents

Publication Publication Date Title
CN213718260U (en) Programming control circuit and programming controller for LED power supply
US10349481B2 (en) DALI interface circuit with bootstrap function
CN117685542A (en) Three-wire continuous LED lamp string set and online address writing method thereof
CN218886450U (en) Instrument data collector
CN109587883B (en) Light source self-adapting device and system of light emitting diode
CN101626201B (en) Switch power supply circuit
CN107577574B (en) Debugging switching circuit and debugging circuit board
CN110323941A (en) Low-power consumption standby circuit
CN201039335Y (en) Power supply circuit and TV set for multi-channel voltage switch output
CN214255821U (en) Multi-channel power supply management module with state display function
CN215453338U (en) Lighting control system
CN215813801U (en) Electrical apparatus interface arrangement and electrical equipment
CN210466112U (en) PLC input/output port multiplexing circuit
CN219740360U (en) Wireless information transmitting device for Internet of things system
CN105065949A (en) LED lamp
CN211627759U (en) Switching value analog quantity acquisition terminal
CN221668390U (en) Intelligent equipment
CN218213857U (en) Multifunctional intelligent device for internet of things
CN115066060B (en) Receiving and transmitting integrated multiplexing circuit for LED driving power supply communication
CN207442814U (en) ON-OFF control circuit
CN210072373U (en) Multi-way switch control system
CN212009319U (en) Bi-pass downloader circuit and communication system
CN219552981U (en) Multi-type interface conversion device based on CPLD
CN214544884U (en) Intelligent lighting controller
CN216751536U (en) Low-cost low-power consumption multifunctional flashlight drive control circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant