Invention content
In order to solve the above technical problems, the object of the present invention is to provide a kind of multigroup touch key-press to realize multi-functional control
LED driver.
The technical solution adopted by the present invention is:
A kind of multigroup touch key-press realizes the LED drive circuit of multi-functional control, including:
Several touch key-press units, for acquiring touch signal;
Main control module is electrically connected with several touch key-press units to acquire the touch of each touch key-press unit respectively
Signal, and different touch signals is modulated to corresponding control signal;
Pulse output module, pulse output module include control terminal, input terminal and output end, the control of pulse output module
End processed is electrically connected with main control module to receive control signal, and input terminal and the external communication electricity of pulse output module are electrically connected
And pulse output module is according to the pulse signal of the corresponding coding of control signal output;
Power supply sampling module and LED light group, LED light group include the lamp bar of several different-colours, and mould is exported with pulse
The output end of block is electrically connected so that AC rectification to be powered at direct current as LED light group;
Pulse decoding module is electrically connected with power supply sampling module to obtain pulse signal and demodulate;
Switch drive module, pulse decoding module are electrically connected with switch drive module and are connected with controlling switch drive module
Or shutdown, switch drive module are electrically connected with LED light group to drive several lamp bars to operate.
Further include the temperature detecting module for detecting ambient temperature signal, main control module electrically connects with temperature detecting module
It connects with according to ambient temperature signal modulation control signal.
The main control module is provided with delay unit, and delay unit formulates delay letter according to the touch duration of touch signal
Number, main control module is according to time delayed signal modulation control signal.
The pulse output module includes photoelectrical coupler, bidirectional triode thyristor SCR1, resistance R14, resistance R15, resistance
R16, capacitance C5, photoelectrical coupler include photophore and light-receiving device, anode and the main control module electricity of the photophore of photoelectrical coupler
Property connection, the photophore of photoelectrical coupler cathode ground connection, one end of the input terminal and resistance R14 of the light-receiving device of photoelectrical coupler
Be electrically connected, the other end of resistance R14 respectively with the poles L of external communication electricity, the anode of bidirectional triode thyristor SCR1, resistance R16
One end is electrically connected, and the output end of the light-receiving device of photoelectrical coupler is respectively at one end of resistance R15, the control of bidirectional triode thyristor SCR1
Pole processed is electrically connected, and the cathode of bidirectional triode thyristor SCR1 is sampled with the other end of resistance R15, one end of capacitance C5, power supply respectively
Modularity connects, and the other end of capacitance C5 is electrically connected with the other end of resistance R16.
The power supply sampling module includes rectifier bridge BD2, voltage transformation unit and sampling unit, and the rectifier bridge BD2's is defeated
Enter end to be electrically connected with the input terminal of the output end of pulse output module, sampling unit respectively, the output end difference of rectifier bridge BD2
It is electrically connected with the input terminal of voltage transformation unit, the anode of LED light group, output end and the pulse decoding module of voltage transformation unit electrically connect
It is connected in pulse decoding module for power supply, output end and the pulse decoding module of sampling unit are electrically connected with output pulse signal.
The sampling unit includes diode D6, resistance R18, resistance R22, the anode of the diode D6 and pulse
The output end of output module is electrically connected, and the cathode of the diode D6 is electrically connected with one end of resistance R18, resistance R18's
The other end is electrically connected with the output end of one end of resistance R22, rectifier bridge BD2 respectively, the other end and pulse decoding of resistance R22
Module is electrically connected.
The LED light group includes warm light lamp, cold light lamp, and switch drive module includes the first field-effect tube, the second field-effect
Pipe, diode D7, diode D8, diode D9, diode D10, metal-oxide-semiconductor Q2, metal-oxide-semiconductor Q3, metal-oxide-semiconductor Q4, resistance R30, resistance
R32;
The anode of warm light lamp and the anode of cold light lamp and the output end of rectifier bridge BD2 are electrically connected;
The drain electrode of the cathode of warm light lamp and the first field-effect tube is electrically connected, the cathode of the cold light lamp and the second field-effect
The drain electrode of pipe is electrically connected;
The source electrode of first field-effect tube is electric with one end of the anode of diode D7, the anode of diode D8, resistance R30 respectively
Property connection;
The grid of first field-effect tube is electrically connected with the other end of resistance R30;
The cathode of diode D7 is electrically connected with the drain electrode of metal-oxide-semiconductor Q2, the source electrode ground connection of metal-oxide-semiconductor Q2, the grid of metal-oxide-semiconductor Q2
It is electrically connected with pulse decoding module;
The source electrode of second field-effect tube one end with the anode of diode D9, the anode of diode D10, resistance R32 respectively
It is electrically connected;
The grid of second field-effect tube is electrically connected with the other end of resistance R32;
The cathode of diode D10 is electrically connected with the drain electrode of metal-oxide-semiconductor Q4, the source electrode ground connection of metal-oxide-semiconductor Q4, the grid of metal-oxide-semiconductor Q4
Pole is electrically connected with pulse decoding module;
The drain electrode of metal-oxide-semiconductor Q3 and the cathode of the cathode of diode D8, diode D9 are electrically connected, and the source electrode of metal-oxide-semiconductor Q3 connects
Ground, grid and the pulse decoding module of metal-oxide-semiconductor Q3 are electrically connected.
The LED light group further includes night-light, switch drive module further include third field-effect tube, metal-oxide-semiconductor Q5, resistance R31,
Resistance R33;
The anode of night-light is electrically connected with the output end of rectifier bridge BD2, the leakage of the cathode and third field-effect tube of night-light
Pole is electrically connected, the source electrode drain electrode with one end of resistance R33, one end of resistance R31, metal-oxide-semiconductor Q5 respectively of third field-effect tube
It is electrically connected;The other end of resistance R33 is electrically connected with the grid of third field-effect tube;The other end of resistance R31 and resistance R32
One end be electrically connected, the source electrode of metal-oxide-semiconductor Q5 ground connection, grid and the pulse decoding module of metal-oxide-semiconductor Q5 are electrically connected.
The LED light group further includes background light, and switch drive module further includes the 4th field-effect tube, metal-oxide-semiconductor Q6, resistance
R34;
The output end electric connection of the anode of background light and rectifier bridge BD2, the cathode of background light and the 4th field-effect tube
Drain electrode be electrically connected, the source electrode of the 4th field-effect tube is electrically connected with the drain electrode of one end of resistance R34, metal-oxide-semiconductor Q6 respectively;Electricity
The other end for hindering R34 and the grid of third field-effect tube are electrically connected;The source electrode of metal-oxide-semiconductor Q6 is grounded, the grid and arteries and veins of metal-oxide-semiconductor Q6
Rush decoding module electric connection.
Further include brightness detection module and prompt lamp group, prompts lamp group to be used to indicate on touch key-press unit and touch acquisition
The position at end, main control module are electrically connected with brightness detection module, prompt lamp group respectively.
Beneficial effects of the present invention:
LED driver of the present invention, main control module receives the touch signal of touch key-press unit, according to different touch signals
Corresponding control signal is modulated, by the exchange electricity output of pulse output module combination externally fed with control Signal coding
Pulse signal, power supply sampling module on the one hand to AC rectification voltage stabilizing with supply pulse decoding module, LED light group run, one
Aspect acquisition pulse signal is input in pulse decoding module, and pulse decoding module demodulates pulse signal, accordingly defeated
Go out in pwm signal to switch drive module to control switch drive module conducting, to lightening LED lamp group, the design exports pulse
Signal imitation and the switching signal generated instead of original switch key component, when switching the illuminating state of LED light group,
It need not be switched on and off lamps and lanterns in multiple times, reduce flashing times, meanwhile, by being encoded to pulse signal, to right
Answer more functions.
Specific implementation mode
As Figure 1-Figure 4, LED driver of the present invention, including:
Several touch key-press units, for acquiring touch signal;
Main control module 2 is electrically connected respectively with several touch key-press units to acquire touching for each touch key-press unit
Signal is touched, and different touch signals is modulated to corresponding control signal;
Pulse output module 3, pulse output module 3 include control terminal, input terminal and output end, pulse output module 3
Control terminal and main control module 2 be electrically connected to receive control signal, input terminal and the external communication electricity electricity of pulse output module 3
Property connection and pulse output module according to the pulse signal of the corresponding coding of control signal output;
Power supply sampling module 4 and LED light group 5, LED light group 5 include the lamp bar of several different-colours, are exported with pulse
The output end of module 3 is electrically connected so that AC rectification to be powered at direct current as LED light group 5;
Pulse decoding module 6 is electrically connected with power supply sampling module 4 to obtain pulse signal and demodulate;
Switch drive module 7, pulse decoding module 6 are electrically connected with switch drive module 7 to control switch drive module 7
Conducting or shutdown, switch drive module 7 are electrically connected with LED light group 5 to drive several lamp bars to operate.
Wherein, herein main control module 2, pulse output module 6 can be by MCU or CPU and corresponding peripheral circuit structure
At as shown in Fig. 2, the design further includes rectifying and voltage-stabilizing module 8, rectifying and voltage-stabilizing module 8 is electrically connected with external communication electricity to incite somebody to action
AC conversion is that direct current is touch key-press unit, 2 electricity power supply of main control module.
Pulse output module 3 directly can use silicon-controlled or IGBT power components to constitute, the design pulse output module 3
Preferred embodiment includes photoelectrical coupler 31, bidirectional triode thyristor SCR1, resistance R14, resistance R15, resistance R16, capacitance C5, light
Electric coupler 31 includes photophore and light-receiving device, and anode and the main control module 2 of the photophore of photoelectrical coupler 31 are electrically connected, light
The cathode of the photophore of electric coupler 31 is grounded, and one end of the input terminal and resistance R14 of the light-receiving device of photoelectrical coupler 31 is electrical
Connection, the other end of resistance R14 respectively with the poles L of external communication electricity, one end of the anode of bidirectional triode thyristor SCR1, resistance R16
It is electrically connected, the output end of the light-receiving device of photoelectrical coupler 31 is respectively at one end of resistance R15, the control of bidirectional triode thyristor SCR1
Pole is electrically connected, and the cathode of bidirectional triode thyristor SCR1 samples mould with the other end of resistance R15, one end of capacitance C5, power supply respectively
Block 4 is electrically connected, and the other end of capacitance C5 is electrically connected with the other end of resistance R16.
Sampling module 4 of powering includes rectifier bridge BD2, voltage transformation unit 41 and sampling unit 42, and the rectifier bridge BD2's is defeated
Enter end to be electrically connected with the input terminal of the output end of pulse output module 3, sampling unit 42 respectively, the output end of rectifier bridge BD2
The anode with the input terminal of voltage transformation unit 42, LED light group 5 is electrically connected respectively, the output end and pulse decoding of voltage transformation unit 41
It is that pulse decoding module 6 is powered that module 6, which is electrically connected, the output end of sampling unit 42 and pulse decoding module 6 be electrically connected with
Output pulse signal.
Wherein, voltage transformation unit 41 has conventional capacitance-resistance voltage reduction circuit cooperation voltage-stabiliser tube to constitute herein, can also be by integrated drop
Press chip to constitute, and sampling unit 42 includes diode D6, resistance R18, resistance R22, the diode D6 positive and
The output end of pulse output module 3 is electrically connected, and the cathode of the diode D6 is electrically connected with one end of resistance R18, resistance
The other end of R18 is electrically connected with the output end of one end of resistance R22, rectifier bridge BD2 respectively, the other end and arteries and veins of resistance R22
Rush the electric connection of decoding module 3.
Main control module 2 receives the touch signal of touch key-press unit, and corresponding control is modulated according to different touch signals
Signal combines the exchange electricity output of externally fed with the pulse signal of control Signal coding, power supply by pulse output module 3
4 one side of sampling module, to supply pulse decoding module 6, the operation of LED light group 5, on the one hand acquires arteries and veins to AC rectification voltage stabilizing
It rushes signal to be input in pulse decoding module 6, pulse decoding module 6 demodulates pulse signal, accordingly output pwm signal
It is connected to switch drive module 7 is controlled in switch drive module 7, to lightening LED lamp group 5, the design output pulse signal mould
Intend and is not required to instead of the switching signal that original switch key component generates when switching the illuminating state of LED light group 5
It to be switched on and off lamps and lanterns in multiple times, reduces flashing times, meanwhile, by being encoded to pulse signal, to correspond to more
More functions.
There are many achievable functions of the design, for example, as shown in Figure 1, Figure 3, preferred embodiment is in the design, if
May include that warm light touch unit 11, cold light touch unit 12, mixed light touch unit 13, night-light touch in dry touch key-press unit
Unit 14, background light touch unit 15 and OFF is touched to turn off the light unit 16.
Correspondingly, LED light group 5 include warm light lamp 51, cold light lamp 52, switch drive module 7 include the first field-effect tube 71,
Second field-effect tube 72, diode D7, diode D8, diode D9, diode D10, metal-oxide-semiconductor Q2, metal-oxide-semiconductor Q3, metal-oxide-semiconductor Q4,
Resistance R30, resistance R32;
The anode of warm light lamp 51 and the anode of cold light lamp 52 and the output end of rectifier bridge BD2 are electrically connected;
The drain electrode of the cathode of warm light lamp 51 and the first field-effect tube 71 is electrically connected, the cathode of the cold light lamp 52 and second
The drain electrode of field-effect tube 72 is electrically connected;
The source electrode of first field-effect tube 71 one end with the anode of diode D7, the anode of diode D8, resistance R30 respectively
It is electrically connected;
The grid of first field-effect tube 71 is electrically connected with the other end of resistance R30;
The cathode of diode D7 is electrically connected with the drain electrode of metal-oxide-semiconductor Q2, the source electrode ground connection of metal-oxide-semiconductor Q2, the grid of metal-oxide-semiconductor Q2
It is electrically connected with pulse decoding module 6;
The source electrode of second field-effect tube 72 respectively with the anode of diode D9, the anode of diode D10, resistance R32 one
End is electrically connected;
The grid of second field-effect tube 72 is electrically connected with the other end of resistance R32;
The cathode of diode D10 is electrically connected with the drain electrode of metal-oxide-semiconductor Q4, the source electrode ground connection of metal-oxide-semiconductor Q4, the grid of metal-oxide-semiconductor Q4
Pole is electrically connected with pulse decoding module 6;
The drain electrode of metal-oxide-semiconductor Q3 and the cathode of the cathode of diode D8, diode D9 are electrically connected, and the source electrode of metal-oxide-semiconductor Q3 connects
Ground, grid and the pulse decoding module 6 of metal-oxide-semiconductor Q3 are electrically connected.
The LED light group 5 further includes night-light 53, and switch drive module 7 further includes third field-effect tube 73, metal-oxide-semiconductor Q5, electricity
Hinder R31, resistance R33;
The anode of night-light 53 is electrically connected with the output end of rectifier bridge BD2, cathode and the third field-effect tube 73 of night-light 53
Drain electrode be electrically connected, the source electrode of third field-effect tube 73 respectively with one end of resistance R33, one end of resistance R31, metal-oxide-semiconductor
The drain electrode of Q5 is electrically connected;The other end of resistance R33 is electrically connected with the grid of third field-effect tube 73;Resistance R31's is another
End and one end of resistance R32 are electrically connected, the source electrode ground connection of metal-oxide-semiconductor Q5, and the grid and pulse decoding module 6 of metal-oxide-semiconductor Q5 is electrical
Connection.
LED light group 5 further includes background light 54, and switch drive module 7 further includes the 4th field-effect tube 74, metal-oxide-semiconductor Q6, resistance
R34;
The anode of background light 54 is electrically connected with the output end of rectifier bridge BD2, the cathode of background light 54 and the 4th field-effect
The drain electrode of pipe 74 is electrically connected, and the source electrode of the 4th field-effect tube 74 is electric with the drain electrode of one end of resistance R34, metal-oxide-semiconductor Q6 respectively
Property connection;The other end of resistance R34 is electrically connected with the grid of third field-effect tube 73;The source electrode of metal-oxide-semiconductor Q6 is grounded, metal-oxide-semiconductor
The grid of Q6 is electrically connected with pulse decoding module 6.
Wherein, other functions also are added on the basis of touching output control signal, it is specific as follows:
The design further includes the temperature detecting module 17 for detecting ambient temperature signal, main control module 2 and temperature detection
Module 17 is electrically connected with according to ambient temperature signal modulation control signal.
Main control module 2 is provided with delay unit 21, and delay unit 21 formulates delay letter according to the touch duration of touch signal
Number, main control module 2 is according to time delayed signal modulation control signal.
The design further includes brightness detection module 9 and prompt lamp group 10, and lamp group 10 is prompted to be used to indicate touch key-press list
The position of collection terminal is touched in member, main control module 2 is electrically connected with brightness detection module 9, prompt lamp group 10 respectively.
Touch warm white touch unit may make warm white lamp individually to light by the design LED driver.
Touch the white touch unit of cool white may make cool white lamp individually to light by the design LED driver.
Mixed light touch unit is touched, by the design LED driver, may make warm white lamp and cool white lamp mix to light to be formed
White light.
Combination temperature detection module, touch OFF turn off the light unit can start-up temperature self-regulated pattern, main control module examines according to temperature
The ambient temperature signal modulation control signal of module detection is surveyed, and then control warm white lamp is lighted and/or cool white lamp is lighted, and herein may be used
Temperature self-regulating touch unit and OFF unit of turning off the light also can as above be integrated, in shape of turning off the light by peripheral hardware temperature self-regulating touch unit
Under state, temperature self-regulating pattern, when environment temperature is high, output can be entered by OFF touch key-press (i.e. temperature self-regulating touch unit)
LED drivings lamp group is switched to the state that cool white lamp is lighted, warm white lamp is closed by corresponding pulse signal, and when environment temperature is low,
It exports corresponding pulse signal and LED drivings lamp group is switched into the state that warm white lamp is closed, cool white lamp is lighted, here by software
Design, saves the number of button.
Long-press 3s night-light touch units, delay unit 21 specify time delayed signal to be sent to master control template 2, and master control template 2 exists
Signal of turning off the light is sent out after 30 minutes.At this point, prompt lamp group 10 also can flash for prompting enter delay turn-off.
And in background light part, short-press background light touch unit increases background light on the basis of original light, and grows
By background light touch unit, then it is to close original light, only opens background light.
The foregoing is merely the preferred embodiments of the present invention, and the present invention is not limited to the above embodiments, as long as with
Essentially identical means realize that the technical solution of the object of the invention belongs within protection scope of the present invention.