A kind of variable color mini light night
Technical field
The utility model relates to a kind of mini light night, and is especially a kind of with the variable color mini light night of light-emitting diode as light source.
Background technology
Traditional mini light night is general to use common miniature bulb, and direct incoming transport civil power by manually carrying out switch control, uses very inconveniently, and the color of light has only solid color, and is ornamental relatively poor.
Now existingly utilize the mini light night of light-emitting diode as light source because light-emitting diode has low-voltage driving, power saving, is difficult for characteristic such as fragmentation, with light-emitting diode as the light fixture of light source have antidetonation, power consumption few, do not generate heat and advantage such as environmental protection; Therefore light-emitting diode has been widely used in lighting and decorative lamp as a kind of new type light source.But existing light-emitting diode variable color mini light night generally can only use inconvenience, and need be furnished with dedicated control circuit by manually carrying out switch control, can only realize a kind of or a few colour switching effect, very flexible.
The utility model content
The purpose of this utility model provide a kind of can be according to ambient light illumination automatic switch and the simple variable color mini light night of control circuit.
The technical solution of the utility model is such: a kind of variable color mini light night, comprise drive part, control section and the Lights section, and the input of above-mentioned drive part can directly connect electric main, and its output connects the power input of above-mentioned control section; Above-mentioned control section comprises control chip and is connected in the light-controlled switching circuit of control chip control input end so that when ambient light illumination control chip work during less than set point, when ambient light illumination during greater than set point control chip do not work; Above-mentioned the Lights section is versicolor light-emitting diode, and this versicolor light-emitting diode is connected to each output of above-mentioned control chip; The adjustment input of above-mentioned control chip is connected with the adjustment button, is used to make above-mentioned versicolor light-emitting diode to carry out colour switching adjustment and luminosity adjustment according to the program that writes above-mentioned control chip in advance.
Above-mentioned drive part comprises step-down rectifier, filtering and the loop of voltage regulation that is connected successively, thereby provides the DC voltage-stabilizing working power for above-mentioned control section.
Above-mentioned light-controlled switching circuit comprises triode and light-dependent control element, the base stage of this triode connects the output of above-mentioned drive part by resistance, be connected above-mentioned light-dependent control element between the base stage of this triode and the ground, the collector electrode of this triode connects the control input end of above-mentioned control chip, the grounded emitter of this triode.
Above-mentioned light-dependent control element is photo resistance.
Above-mentioned versicolor light-emitting diode is located in the same Transparent lamp shade.
The utility model utilizes the light source of light-emitting diode as mini light night, and its be provided with can be according to the light-controlled switching circuit of ambient brightness auto switching control chip, also be provided with can make different colours light-emitting diode according to the luminous adjustment button of setting program.Drive part of the present utility model is connected with AC power, is connected with the triode of photo resistance to base stage by drive part output constant voltage dc source.When ambient light illumination was higher than set point, the bright resistance of photo resistance was less, and the base voltage of triode is less than its cut-in voltage, and triode switch ends, and control chip is in sleep state, and light-emitting diode does not work; When ambient light illumination is lower than set point, it is big that the resistance of photo resistance becomes, the base voltage of triode is greater than its cut-in voltage, the triode conducting, control chip is started working, according to the light-emitting diode of setting program output corresponding signal to respective color, make the light-emitting diode of respective color shinny, use easily.In the time will adjusting the mini light night turn colors, push the adjustment button according to the setting pattern, just the change color that can versicolor light-emitting diode be enriched increases ornamental and interesting.
Description of drawings
Fig. 1 is circuit theory diagrams of the present utility model.
Embodiment
The utility model relates to a kind of variable color mini light night, as shown in Figure 1, AC power inserts resistance R 1 and the capacitor C 1 that is in parallel, insert again by diode D1, D2, the rectifier bridge that D3 and D4 form, rectifier bridge output negative pole ground connection, rectifier bridge output cathode series resistor R2, the other end of resistance R 2 connects the positive terminal of filter capacitor C2 respectively, the negative pole end of voltage-stabiliser tube D6, one end of resistance R 8, one end of resistance R 4, one end of resistance R 3 and the power end of control chip U1, the positive terminal ground connection of the negative pole end of filter capacitor C2 and voltage-stabiliser tube D6, the other end of resistance R 8 connects the end of adjustment button KEY1 and the adjustment input of control chip U1 respectively, adjust the other end ground connection of button KEY1, the other end of resistance R 4 connects the base stage of triode Q1 (NPN) and the end of photo resistance RG respectively, the other end ground connection of photo resistance RG, the collector electrode of triode Q1 connects the control input end of the other end and the control chip U1 (pic12 series) of resistance R 3 respectively, the grounded emitter of triode Q1, three outputs of control chip U1 are respectively by resistance R 5, R6, R7 connects red, green, the light-emitting diode RLED of blue three-color, GLED, the positive pole of BLED, light-emitting diode RLED, GLED, the minus earth of BLED.
During the utility model work, AC power is carried out step-down by capacitor C 1 and resistance R 1, is rectified into direct current through rectifier bridge again, passes through filtering capacitor C 2 elimination clutters again, again through voltage-stabiliser tube D6 voltage stabilizing, obtains the DC power supply of voltage stabilizing.This constant voltage dc source inserts base stage and the photo resistance of triode Q1 through resistance R 4; When ambient brightness during greater than set point, the bright resistance of photo resistance RG is less, and the base voltage of triode Q1 is less than its cut-in voltage, and triode Q1 ends, and control chip U1 is in sleep state, and light-emitting diode does not work; When ambient brightness during less than set point, it is big that the resistance of photo resistance RG becomes, and the base voltage of triode Q1 is greater than its cut-in voltage, triode Q1 conducting, control chip Q1 is waken up, and the signal that output is set is to the light-emitting diode of respective color, and the light-emitting diode of respective color is just shinny.If when wanting the color of conversion mini light night, only need to push adjustment button KEY1 by the setting pattern, signal is adjusted in input to control chip Q1, just can make control chip export the light-emitting diode of corresponding signal to respective color, thereby color that obtains setting and brightness change.Color control of the present utility model both can realize red, green, blue and combined color checker thereof, can also realize the gradual change of red, green, blue light-emitting diode luminance.After control chip is waken up from sleep state, can keep with enter the sleep before the same colour switching pattern of light-emitting diode.The gradual change of led color is to realize that by the pwm signal of program output duty cycle gradual change on each output of control chip the duty ratio gradual change realizes by the control chip timer.
The used control chip U1 maximum of the utility model can have the driving force of 25mA, therefore, light-emitting diode RLED, GLED, BLED can directly link to each other with the output of control chip U1 with R7 by current-limiting resistance R5, R6 respectively, also can control by triode switch respectively between current-limiting resistance R5, R6 and R7 and light-emitting diode RLED, GLED, the BLED.
In sum, the utility model can be according to the ambient brightness automatic control switch, use easily, and the utility model comes direct driven for emitting lights diode by the pic single-chip microcomputer as control chip, circuit structure is than the colour switching mode diversification of simple and light-emitting diode, and is ornamental stronger with interest.