Invention content
The purpose of the present invention is to provide a kind of segmenteds to control LED light string control system, to solve above-mentioned background technology
The problem of middle proposition.There is the segmented control LED light string control system pressure difference between LED light string to compensate, to reach
The characteristics of being controlled to segmented.
To achieve the above object, the present invention provides the following technical solutions:
A kind of segmented control LED light string control system, including voltage sampling circuit, voltage compensating circuit and PID controls
Device processed, the voltage sampling circuit input terminal are connected to LED light string, and output end is connected to A/D moduluss of conversion by voltage transmitter
Block, the A/D conversion modules are connected to the PID controller;One in two input terminals of comparator is connected to voltage transmitter
Between A/D conversion modules, another is connected to the PID controller, output end and the electricity of the comparator by phase shifter
The input terminal connection of compensation circuit, the output end of the voltage compensating circuit is pressed to be connect with LED light string.
Preferably, the voltage sampling circuit includes voltage transformer pt, amplifier U1A and amplifier U2A;The voltage is mutual
The positive input terminal of sensor PT is connected with current-limiting resistance R1, and output end is connected to by antiparallel diode D1 and diode D2
The input terminal of amplifier U1A is connected with the both ends capacitance C2, the capacitance C2 between the inverting input and output end of amplifier U1A
It is parallel with slide-changing resistor R2 and slide-changing resistor R3, the slide-changing resistor R2 is serially connected with capacitance C1, slide-changing resistor R3 is serially connected with resistance
R4;The inverting input of the amplifier U2A is connected to the output end of amplifier U1A, homophase input by resistance R6 and resistance R5
End is connected with resistance R7 and resistance R8, and resistance R8 is shorted to output end;The one end resistance R6 is grounded by capacitance C5, the one end resistance R5
It is grounded by capacitance C3, while short circuit has capacitance C4 between amplifier U2A output ends.
Preferably, the voltage compensating circuit includes amplifier U3A;The input terminal of the amplifier U3A be connected with resistance R13 and
Resistance R14, resistance R13 are connected between series resistor R9 and series resistor R10, and resistance R14 is connected to series resistor R11 and string
Between connecting resistance R12, series resistor R9 and series resistor R10 latter terminations in parallel with series resistor R11 and series resistor R12
Ground;Be grounded by resistance R16 between resistance R13 and amplifier U3A inverting inputs, resistance R14 and amplifier U3A in-phase input ends it
Between the output end of amplifier U3A is connected to by resistance R17;The input pin of the amplifier U3A is inputted by resistance R15, output
Pin is exported by resistance R18.
Preferably, the PID controller uses ADuC848 chips.
Preferably, further include EEPROM, RS-232 serial ports and bluetooth module being connect with the PID controller.
Compared with prior art, the beneficial effects of the invention are as follows:Voltage between LED light string is first examined by voltage sampling circuit
It surveys, and is carried out this signal after being exported by linear scale by voltage transmitter, through A/D conversion modules, be sent into PID controller
Convert thereof into digital quantity;This digital quantity is through processing such as digital filtering, error correction, scale conversion, linear fits, by voltage value
Compared with by control (pressure difference between LED light string) actual value, according to the size of its deviation, control algolithm is supplied to carry out operation,
Last shifted device output determines pressure difference between LED light string through comparator, and by voltage compensating circuit, pressure difference carries out between LED light string
Compensation, to reach Discrete control purpose.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
~3 are please referred to Fig.1, the present invention provides a kind of technical solution:
A kind of segmented control LED light string control system, including voltage sampling circuit, voltage compensating circuit and PID controls
Device processed, the voltage sampling circuit input terminal are connected to LED light string, and output end is connected to A/D moduluss of conversion by voltage transmitter
Block, the A/D conversion modules are connected to the PID controller;One in two input terminals of comparator is connected to voltage transmitter
Between A/D conversion modules, another is connected to the PID controller, output end and the electricity of the comparator by phase shifter
The input terminal connection of compensation circuit, the output end of the voltage compensating circuit is pressed to be connect with LED light string.
The PID controller uses ADuC848 chips, is based on pid control algorithm, handles more complex data and control function
Intelligent controller, so that it is can not only be used for independent single-chip computer control system, and can coordinate with external microcomputer and constitute two-step evolution
System has control accuracy high, has higher flexibility and reliability.
The voltage sampling circuit includes voltage transformer pt, amplifier U1A and amplifier U2A;The voltage transformer pt
Positive input terminal be connected with current-limiting resistance R1, output end is connected to amplifier by antiparallel diode D1 and diode D2
The input terminal of U1A is connected with the parallel connection of the both ends capacitance C2, the capacitance C2 between the inverting input and output end of amplifier U1A
There are slide-changing resistor R2 and slide-changing resistor R3, the slide-changing resistor R2 to be serially connected with capacitance C1, slide-changing resistor R3 is serially connected with resistance R4;Institute
The inverting input for stating amplifier U2A is connected to the output end of amplifier U1A, in-phase input end connection by resistance R6 and resistance R5
There are resistance R7 and resistance R8, resistance R8 to be shorted to output end;Resistance R6 and the both ends resistance R5 are grounded by capacitance C3 and capacitance C5,
Short circuit has capacitance C4 between amplifier U2A output ends simultaneously.
Using resistance R5 as front portion signal acquisition and rear portion signal condition, in signal acquisition part, voltage is mutual
Sensor PT is using current mode voltage transformer, it is ensured that actual rated current, R1 are current-limiting resistances, adjust the value of R1, make
Specified input current input is constant, meets use condition, secondary circuit is current/voltage converter circuit, resistance R4, slide-changing resistor
R3 is feedback effect, adjusts its resistance value and can be obtained required voltage output, capacitance C1 and can slide-changing resistor R2 be used for mending
Phase shift is repaid, capacitance C2 and capacitance C3 are used for decoupling and close filtering, and the diode D1 and diode D2 of two reversal connections play protection amplifier and make
With, amplifier U1A and amplifier U2A can reach higher accuracy and preferable stability with OP07, in signal condition part, fortune
It puts U2A, capacitance C4 and capacitance C5, resistance R6 and resistance R8 and constitutes low-pass filter, the voltage value for keeping acquisition next reaches and A/D
The voltage value to match is converted, A/D conversions are then carried out.
The voltage compensating circuit includes amplifier U3A;The input terminal of the amplifier U3A is connected with resistance R13 and resistance
R14, resistance R13 are connected between series resistor R9 and series resistor R10, and resistance R14 is connected to series resistor R11 and concatenation electricity
Between hindering R12, series resistor R9 and series resistor R10 latter end ground connection in parallel with series resistor R11 and series resistor R12;Electricity
It is grounded by resistance R16 between resistance R13 and amplifier U3A inverting inputs, is led between resistance R14 and amplifier U3A in-phase input ends
Cross the output end that resistance R17 is connected to amplifier U3A;The input pin of the amplifier U3A is inputted by resistance R15, output pin
It is exported by resistance R18.
Amplifier U3A uses LM348, input terminal 2 and input terminal 3, is correspondingly connected with two-way resistance in parallel:Resistance R9 and electricity all the way
Hinder R10 concatenations;Another way resistance R11 and resistance R12 concatenations;By output pin 11 by voltage output.
Further include EEPROM, RS-232 serial ports and bluetooth module being connect with the PID controller.
EEPROM is stored for signal, and RS-232 serial ports is used for external PC machine, and bluetooth module side is connect with just communication apparatus,
Convenient for being used for short-distance wireless communication control.
Voltage between each LED light string is first detected by voltage sampling circuit, and is carried out this signal by voltage transmitter
After pressing linear scale output, through A/D conversion modules, it is sent into PID controller and converts thereof into digital quantity;This digital quantity is through number
The processing such as filtering, error correction, scale conversion, linear fit, by voltage value and by control (pressure difference between LED light string) actual value ratio
Compared with according to the size of its deviation, control algolithm being supplied to carry out operation, last shifted device output determines LED through comparator
Pressure difference between lamp string, by voltage compensating circuit, pressure difference compensates between LED light string, operating power will not be caused excessive, after protection
Grade component controls purpose to reach system segment.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
Understanding without departing from the principles and spirit of the present invention can carry out these embodiments a variety of variations, modification, replace
And modification, the scope of the present invention is defined by the appended.