A kind of LED dimmer switch
Technical field
The utility model relates to the LED lighting technical field, relates in particular to a kind of LED dimmer switch.
Background technology
LED is a kind of energy-saving and environmental protection, profile is little, the life-span is long and luminous strong solid light source, more and more receive liking of people, but the LED light modulation is cumbersome; During commonly used LED light modulation; Brightness alters a great deal, and is discontinuous, and significantly flicker appears in LED when brightness will change; Make the people very uncomfortable, and the LED lamp is damaged.
Summary of the invention
The technical problem that the utility model need solve does not change under the condition of house internal wiring, carries out the LED light modulation through common switch, and the LED light modulation is continuous.
The technical problem that the utility model need solve realizes through following technical scheme: a kind of LED dimmer switch; Comprise LED Switching Power Supply, the LED light adjusting circuit that is connected with the LED Switching Power Supply, microcontroller power supply circuit, circuit for light coupler, LED illuminating circuit that described LED light adjusting circuit comprises single-chip microcomputer, links to each other with single-chip microcomputer; Described circuit for light coupler comprises four end photoelectrical couplers; 1 pin of photoelectrical coupler links to each other with Switching Power Supply through R1; 2 pin of photoelectrical coupler link to each other with the GND pin of single-chip microcomputer, and 3 pin of photoelectrical coupler link to each other with the PG0 pin of single-chip microcomputer, 4 pin ground connection of photoelectrical coupler; Described LED illuminating circuit comprises the LED light-emitting diode of serial connection, and the LED light-emitting diode is through metal-oxide-semiconductor ground connection, and the grid of metal-oxide-semiconductor links to each other with the PG1 pin of single-chip microcomputer through R3.
Further: in above-mentioned LED dimmer switch, 2,4 pin of described four end photoelectrical couplers link to each other.Described microcontroller power supply circuit comprises diode; The negative pole of diode links to each other with the VCC pin of single-chip microcomputer; Capacity earth through being connected in parallel between the VCC pin of the negative pole of diode and single-chip microcomputer, the positive pole of diode links to each other with Switching Power Supply through resistance R 2.The described electric capacity that is connected in parallel is meant electrodeless electric capacity C2 and has electrode capacitance C1 to be connected in parallel.Described single-chip microcomputer is the PIC8 type, and described four end photoelectrical couplers are PC817 types, and described diode is the IN4148 type.Described LED light-emitting diode is 7.
Compared with prior art; The LED dimmer switch of the utility model; Comprise LED Switching Power Supply, the LED light adjusting circuit that is connected with the LED Switching Power Supply, microcontroller power supply circuit, circuit for light coupler, LED illuminating circuit that described LED light adjusting circuit comprises single-chip microcomputer, links to each other with single-chip microcomputer; Described circuit for light coupler comprises four end photoelectrical couplers; 1 pin of photoelectrical coupler links to each other with Switching Power Supply through R1; 2 pin of photoelectrical coupler link to each other with the GND pin of single-chip microcomputer, and 3 pin of photoelectrical coupler link to each other with the PG0 pin of single-chip microcomputer, 4 pin ground connection of photoelectrical coupler; Described LED illuminating circuit comprises the LED light-emitting diode of serial connection, and the LED light-emitting diode is through metal-oxide-semiconductor ground connection, and the grid of metal-oxide-semiconductor links to each other with the PG1 pin of single-chip microcomputer through R3.This LED dimmer switch dimming mode is simple, and light modulation is continuous.
Description of drawings
Fig. 1 is the utility model circuit theory diagrams.
Embodiment
With reference to accompanying drawing 1 and embodiment the utility model is described.
A kind of LED dimmer switch comprises LED Switching Power Supply, the LED light adjusting circuit that is connected with the LED Switching Power Supply, microcontroller power supply circuit, circuit for light coupler, LED illuminating circuit that described LED light adjusting circuit comprises single-chip microcomputer, links to each other with single-chip microcomputer; Described circuit for light coupler comprises four end photoelectrical couplers; 1 pin of photoelectrical coupler links to each other with Switching Power Supply through R1; 2 pin of photoelectrical coupler link to each other with the GND pin of single-chip microcomputer, and 3 pin of photoelectrical coupler link to each other with the PG0 pin of single-chip microcomputer, 4 pin ground connection of photoelectrical coupler; Described LED illuminating circuit comprises the LED light-emitting diode of serial connection, and the LED light-emitting diode is through metal-oxide-semiconductor ground connection, and the grid of metal-oxide-semiconductor links to each other with the PG1 pin of single-chip microcomputer through R3.2,4 pin of described four end photoelectrical couplers link to each other.Described microcontroller power supply circuit comprises diode; The negative pole of diode links to each other with the VCC pin of single-chip microcomputer; Capacity earth through being connected in parallel between the VCC pin of the negative pole of diode and single-chip microcomputer, the positive pole of diode links to each other with Switching Power Supply through resistance R 2.The described electric capacity that is connected in parallel is meant electrodeless electric capacity C2 and has electrode capacitance C1 to be connected in parallel.Described single-chip microcomputer is the PIC8 type, and described four end photoelectrical couplers are PC817 types, and described diode is the IN4148 type.Described LED light-emitting diode is 7.
During work, close LED Switching Power Supply no-output, opening the LED Switching Power Supply has output.Power down and power on signal are exported to the LED light adjusting circuit.R2 obtains 24V voltage during the energising of LED Switching Power Supply, and through diode D8, C1 charging back supplies power to single-chip microcomputer.R1 obtains 24V voltage during the energising of LED Switching Power Supply, and photoelectrical coupler normally, single-chip microcomputer PG0 mouth transfer low level to by high level to be triggered once.The LED light-emitting diode of serial connection is through metal-oxide-semiconductor ground connection during the energising of LED Switching Power Supply, and the LED light-emitting diode is controlled by metal-oxide-semiconductor.The LED Switching Power Supply when when outage D8 oppositely end, single-chip microcomputer is by the C1 short-term operation of discharging.The LED Switching Power Supply is the R1 no-voltage when outage, and photoelectrical coupler ends, and single-chip microcomputer PG0 transfers high level to.LED Switching Power Supply break-make once can make monolithic PG0 mouth trigger once in the regular hour.Can make metal-oxide-semiconductor obtain the brightness that different frequencies is controlled LED through software control.
The above is a preferred embodiment of the utility model, is not breaking away under the utility model design situation, carries out any conspicuous distortion and replacement, all belongs to the utility model protection range.