CN106612577B - A kind of power switch degree of lightening LED light controller and its control method - Google Patents

A kind of power switch degree of lightening LED light controller and its control method Download PDF

Info

Publication number
CN106612577B
CN106612577B CN201611207992.0A CN201611207992A CN106612577B CN 106612577 B CN106612577 B CN 106612577B CN 201611207992 A CN201611207992 A CN 201611207992A CN 106612577 B CN106612577 B CN 106612577B
Authority
CN
China
Prior art keywords
led light
power supply
brightness
microcontroller
switching power
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.)
Expired - Fee Related
Application number
CN201611207992.0A
Other languages
Chinese (zh)
Other versions
CN106612577A (en
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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201611207992.0A priority Critical patent/CN106612577B/en
Publication of CN106612577A publication Critical patent/CN106612577A/en
Application granted granted Critical
Publication of CN106612577B publication Critical patent/CN106612577B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/37Converter circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • 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]

Landscapes

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

Abstract

The invention discloses a kind of controllers and its control method of the LED light brightness of power switch tune, it is mainly made of a typical LED lamp Switching Power Supply plus microcontroller auxiliary setting brightness, realizing the common lamp switch (with original) adjusts (new clothes) LED light brightness, the characteristic for keeping LED light especially energy saving, long-lived under low-light level state fully to wave.With housing improvements, many rooms do not need to always highlight, but turn off the light and lack popularity yet, there is the low bright just highly desirable of power saving;It need not also be highlighted for another seeing TV, upper computer, playing mobile phone.The present invention using gradually moment it is powered-down adjust LED light brightness, brightness-adjustable LED light can directly be loaded onto by making original common lamp switch and circuit that need not change, and still with former commonly lamp switch come degree of lightening.Have benefited from intelligent decision, the state storage of microcontroller, even if there is 4 grades or more of brightness setting, operating experience can still be designed fine, including once switch the rotation in two brightness that prestores;It just turns on light and always restores used brightness recently.

Description

A kind of power switch degree of lightening LED light controller and its control method
Technical field
The present invention relates to lighting brightness control and field of household appliance control more particularly to a kind of power switch degree of lightening LED light controller and its control method.
Background technology
The application of LED light at present does not have degree of lightening function, therefore not body mostly to substitute based on traditional lighting lamp Reveal LED light characteristic especially energy saving, long-lived under low-light level state.Although also there is the LED light of brightness-adjustable in market, adjust The operation panel of brightness is installed or increases complexity with remote controler.
Lamp brightness or electric fan wind speed only are adjusted with common power switch, has simple in structure, easy for installation, does not have to transformation Original circuit or installation adjust operation panel on wall.The special IC chip of this control is realized at present almost without especially wanting Ask perfect in shape and function.However be currently the top flower phase of microprocessor (MCU) control, New Type of Chip Microcomputer, which is removed, has typical micro- place It manages outside device function, the trend of largely integrated common exemplary functions component occurs so that common function circuit can be directly by monolithic Machine, which realizes and have intelligent functions extension, substitutes a large amount of observing and controlling components makes circuit become extremely simple, and the present invention is exactly this new list The concentrated reflection of piece machine design method.
The present invention takes full advantage of domestic 15 series monolithics of macrocrystalline STC, and there is shutdown micro energy lose pattern time-out to exit work( Energy, the detection of supply pin low pressure and interrupt function, interior band power-off non-volatile storage EEPROM make historic state power-off preservation, each IO Four states of mouth configure (standard is two-way, recommends strong pull-up output, pure input, open-drain output) and without crystal oscillator and electrification reset electricity Road, it is all I/O port to make all pins other than positive-negative power foot, this is particularly important to 8 succinct foot microcontrollers.Exactly to Rightly fully using for the upper microcontroller new features, can from various types of connection relations of the present invention It arrives, is exactly almost 2,3 points that the several resistance capacitances of microcontroller band are connected in former Switching Power Supply.Therefore microcontroller becomes Application-specific integrated circuit, functional development become software programming, and hardware production cost, manufacture craft are almost unchanged.
Invention content
In view of the deficiencies of the prior art, a kind of power switch degree of lightening LED light controller of present invention offer and its controlling party Method.
In order to achieve the above object, the technical solution adopted in the present invention is as follows:A kind of power switch degree of lightening LED light control Device processed, by power switch adjusting brightness of LED lamps, it mainly by a box Switching Power Supply, microcontroller, diode D, Shutdown transient power supply capacitor C, several resistance composition;Any place in the power input inlet wire of Switching Power Supply is arranged in power switch; The Switching Power Supply is isolation type LED lamp Switching Power Supply, is compared as feedback sample with voltage stabilizing comparator TL431 or DC-DC classes The DC decompression of chip composition, boosting LED light Switching Power Supply, the FB feet or non-isolated LED light that the feedback sample that chip has compares Constant-current switch power source, chip lighten control foot or feedback control foot, should also include light-coupled isolation device thereon;The switch The LED light power supply of power supply output+, it is connected with the anode of diode D after lowering and stabilizing blood pressure, the cathode and capacitance C of diode D are just The all same microcontroller power supply+connection in end, negative terminal, microcontroller grounding leg G, the LED light power supply-of capacitance C link together ground connection;It is several Single-chip processor i/o mouth Pk.n go here and there resistance a R, all resistance R with voltage stabilizing comparator TL431 or FB foot or light-coupled isolation device It is connected.
Further, when being isolation type LED lamp Switching Power Supply to the Switching Power Supply, made with voltage stabilizing comparator TL431 Feedback sample compares, several single-chip processor i/o mouth Pk.n go here and there different numerical value resistance R, all resistance R with voltage stabilizing comparator The poles the Ref feedback sample comparison point of TL431 is connected.
Further, it is the DC-DC class chips DC decompression constituted, LED light Switching Power Supply of boosting to the Switching Power Supply When, the FB feet that the feedback sample that chip has compares, several single-chip processor i/o mouth Pk.n go here and there the resistance R, all resistance R of different numerical value It is connected with the FB feet of chip;To booster type LED light power supply, the direct current supply of the input terminal and electric power incoming line of decompression+5V voltage stabilizings Anode is connected;To voltage-dropping type LED light power supply, the input terminal of decompression+5V voltage stabilizings is connected with LED light positive pole.
Further, to the Switching Power Supply be non-isolated LED light constant-current switch power source, chip lighten control foot or Feedback control foot should also include light-coupled isolation device thereon;Several single-chip processor i/o mouth Pk.n go here and there the resistance R of different numerical value, own Resistance R is connected with the cathode of the input diode of optocoupler;The anode of the input diode of optocoupler connects microcontroller power supply anode;Light The output par, c of coupling connects feedback control foot:Non-isolation type Switching Power Supply is exported with top, the current collection of the output par, c of optocoupler Pole connects feedback control foot, emitter connects the power input cathode of non-isolation type Switching Power Supply;Below non-isolation type Switching Power Supply Side output, the emitter of the output par, c of optocoupler connects feedback control foot, collector connects the driving in non-isolation type Switching Power Supply The operating voltage of chip inputs Vdd feet.
Further, the capacity value of the shutdown transient power supply capacitor C requires as when microcontroller enters shutdown micro energy lose It keeping powering for about 1 second when pattern, the microcontroller first choice has the microcontroller for shutting down micro energy lose banding timing exit function, or Microcontroller choosing has IDLE idle mode energy response timing devices to interrupt;
The low pressure that the microcontroller power supply foot has detects or interrupt function;
The microcontroller is according to domestic 15 series monolithics of macrocrystalline STC, the optional product of supply pin low pressure detection threshold value Possessed high-voltage value setting;
The I/O mouths Pk.n output form of the microcontroller is configurable, with several I/O mouthfuls of Pk.n for being configured to the output of open-drain type Brightness is arranged to LED light Switching Power Supply in string resistance R;
In the microcontroller band power-off non-volatile storage EEPROM, microcontroller can cancel/without external crystal oscillation circuit and on Reset circuit.
Further, it may also include metal-oxide-semiconductor M, the source electrode ground connection of metal-oxide-semiconductor M, the grid of metal-oxide-semiconductor M connects single-chip processor i/o mouth The drain electrode of Pk.n, metal-oxide-semiconductor M become LED light power supply output negative terminal, and former Switching Power Supply LED light power supply exports negativing ending grounding;To not having Metal-oxide-semiconductor M's, Switching Power Supply LED light power supply output negative terminal is exactly LED light power supply output negative terminal, ground connection;
Further, may also include with two transistor T1, T2, metal-oxide-semiconductor a M, two diodes D1, D2, five electricity R1-R5 is hindered, the control extension that two mouth line tune third gear brightness of realization and not powering off are turned off the light:Two single-chip processor i/o mouth Pk.n difference String current-limiting resistance R1, R2 are connected to respective inverter transistor T1, T2 base stage, and T1, T2 collector distinguish the connection of string resistance R3, R4 To feedback sample comparison point (6), while the two single-chip processor i/o mouths Pk.n connects the anode of diode D1, D2, diode respectively The cathode of D1, D2 and the grid for meeting metal-oxide-semiconductor M together, the grid also connecting resistance R5 of metal-oxide-semiconductor M are to ground, the drain electrode of metal-oxide-semiconductor M LED light power supply export negative terminal, constitute logic or LED light output control.
Further, further include information ring lamp, the information ring lamp is LED light, with the Pk.n connections of single-chip processor i/o mouth;Or, The information ring lamp is buzzer, with the Pk.n connections of single-chip processor i/o mouth;It may also include external information ring lamp, the external information ring lamp can To be LED light or buzzer or each shelves have LED light and include electromotion pilot lamp or LED display again, at this time With several LED lights of several single-chip processor i/o mouth Pk.n connections or LED display;
The power switch is battery main switch, is locking button, ship type switch, toggle switch, rotary switch or bracing wire Switch.
The present invention also provides a kind of control of foundation on the basis of above-mentioned power switch degree of lightening LED light controller hardware Method, including following operation rules:
Rapidly switching off and opening for power switch is operated as brightness settings, and concrete operations rule is as follows:The microcontroller It is opened again according to the primary shutdown of power switch, and power-off time is less than 1 second, is determined as brightness settings operation, referred to as " short pass ", It is short for the first time to close the brightness for always preserving luminance recovery to last time;
And then short pass, brightness add one grade again;Continuous short pass, brightness are incremented by by shelves;When to most bright shelves, information ring lamp or external Information ring lamp is bright or ticks the sound once, then is most dark shelves, successively rotation afterwards;
Constant more than 1 second to certain grade of brightness, this grade of brightness as prestores recently;Turn off the light the time be more than after 1 second next time open It is then restored to pre- archive brightness recently, does not change and prestores;If short pass lightens, new brightness again be prestore recently, front it is nearest Prestoring, which becomes last time, prestores, and switch to last time for clicking short pass at any time achieves in advance;
When brightness or the stepping that also to change colour are 4 grades and 4 grades or more, 3 or more pre- archives can be set;
It prestores and exactly data of transferring the files is stored in the power-off non-volatile storage EEPROM of band in microcontroller.
To third gear and third gear degree of lightening below, can be reduced to:Short pass is exactly the operation of one grade of blast, when arriving most bright shelves, Information ring lamp or external information ring lamp are bright or tick the sound once, then are most dark shelves, successively rotation afterwards;Information ring lamp and external information ring lamp It can not have to or cancel;Next open after turning off the light can be required always to be restored to last time used brightness.
The present invention also provides a kind of power switches to lighten LED light, including LED light and above-mentioned power switch degree of lightening LED light controller;The anode of the LED light is connected with the LED light positive pole of Switching Power Supply output, the cathode of the LED light It is connected with LED light power cathode;
Or, including LED light, power switch and above-mentioned power switch degree of lightening LED light controller;The LED light Anode is connected with the LED light positive pole of Switching Power Supply output, and the cathode of the LED light is connected with LED light power cathode;It is described Any place in the power input inlet wire of Switching Power Supply is arranged in power switch.
The beneficial effects of the invention are as follows:1, just with the simultaneous degree of lightening of power switch.Even if there is 4 grades or more of brightness and color to set It sets, operating experience can still be designed fine, including once close out (short pass) rotation, total recovery of just having turned on light in two brightness that prestores To nearest used brightness.2, brightness-adjustable LED light can directly be loaded onto by making original common lamp switch and circuit that need not change, And still with original common lamp switch come degree of lightening.3, it is only achieved that switch is simultaneous with a power switch to transfer the files, extend to Alternating current-direct current LED desk lamp, electric fan etc., make that simple in structure, easy to operate, reliability is high.4, microcontroller fully achieves application-specific integrated circuit Function, and flexible function " can be compiled ".
Description of the drawings
Fig. 1 is that the embodiment of the present invention installs and uses overall structure diagram;
Fig. 2 is the microcontroller connection figure of the common isolation type switch power of the embodiment of the present invention;
Fig. 3 is two groups of LED light switching controls extension connection figure of the embodiment of the present invention;
Fig. 4 is that two mouth lines of the embodiment of the present invention realize that third gear brightness adds the control extension for not powering off and turning off the light;
Fig. 5 (a) be the constant-current type non-isolation type Switching Power Supply top output class of the embodiment of the present invention microcontroller connection and Increased optic coupling element circuit diagram;
Fig. 5 (b) be the following output class of constant-current type non-isolation type Switching Power Supply of the embodiment of the present invention microcontroller connection and Increased optic coupling element circuit diagram;
Fig. 6 (a) is the microcontroller connection figure of the direct current supply booster type LED light of the embodiment of the present invention;
Fig. 6 (b) is the microcontroller connection figure of the direct current supply voltage-dropping type LED light of the embodiment of the present invention;
Fig. 7 is the typical case of the isolation type LED lamp Switching Power Supply (efficient quasi-resonance type soft switching power) of the embodiment of the present invention Circuit diagram;
In figure:1, power switch;2, Switching Power Supply;3, information ring lamp;4, external information ring lamp;5, LED light;6, feedback sample ratio Compared with point;7, brightness settings resistance R;8, microcontroller power supply+;9, feedback control point;10, single-chip processor i/o mouth Pk.n.
Specific implementation mode
The present invention is further illustrated with reference to the accompanying drawings and examples.
Embodiment:
In the present invention be added microcontroller can't do without give microcontroller power supply, microcontroller voltage request 3 arrive 5V, so from Fig. 2 to Fig. 6, all higher than 5V but be relatively close to the power supply of 5V+take electricity, unidirectionally powered by diode D after lowering and stabilizing blood pressure.It is so-called Lowering and stabilizing blood pressure (and " decompression+5V voltage stabilizings ") is exactly commonly three terminal regulator, simpler such as 78L05,7550,7144, AMS1117 It being singly also possible to be that one resistance of series connection connects microcontroller power supply+8, microcontroller power supply+8 is again and a voltage-stabiliser tube is grounded, that is, with Power filtering capacitor C is in parallel.Why unidirectionally to be powered by diode D, here it is the key points of the present invention:It is controlled by powering off System.When power-off, power supply disappears quickly, due to diode D unilateral conductions, will not miss the power supply that microcontroller power supply+(8) are connect The storing up electricity of filter capacitor C, so microcontroller power supply filter capacitor C becomes shutdown transient power supply capacitor C at this moment, capacity takes Value requires to keep powering for about 1 second when microcontroller enters the when of shutting down micro energy lose pattern.More specific shutdown transient implementation procedure It is:Microcontroller operation itself has no small power consumption, and the operating voltage (8 in Fig. 2) of the microcontroller of filter capacitor C is connected to after power-off Also decline quickly, detected by the low-voltage detection function of microcontroller, and starting low pressure interrupt function program makes microcontroller entrance stop Machine micro energy lose pattern (because translation is accustomed to, is named always " power-down mode ") (including turn off all power consumption ports), at this time microcontroller Operating voltage decline it is just very slow, and every hundred milliseconds of auto-timeouts exit shut down micro energy lose mode detection power supply it is whether extensive It is multiple normal.If normally, then it represents that primary power-off control occur, for program according to requiring to execute control.If being still low pressure shape State then goes successively to the time-out such as shutdown micro energy lose pattern and exits detection power supply state again.If being more than not restore electricity yet for nearly 1 second (shutdown transient power supply capacitor C only maintains power for 1 second, and microcontroller does not just work within more than 1 second, and next time, incoming call was exactly cold start-up), That is not just powered off control, is just to turn off.Here work(is exited in the shutdown micro energy lose banding timing for having used New Type of Chip Microcomputer Energy, the detection of supply pin low pressure and interrupt function, domestic 15 series monolithics of macrocrystalline STC not only have the function of these, and supply pin Low pressure detection threshold value can be set, if it is high, can early find to power off, program it is well-to-do flexibly.Particularly with regard to supply pin low pressure Detection and interrupt function, refer to macrocrystalline STC15F2K60S2 microcontroller product manuals.It is therefore, external that there is no need to design power-off inspection Survey sample circuit.
Note that the shutdown micro energy lose pattern (documents and materials are named always " power-down mode ") about microcontroller, it should not be literally As long as takeing for the operating voltage of supply pin as low as power down micro energy lose pattern will be entered naturally to a certain degree.In fact early in 30 years Microcontroller has just had the micro energy lose pattern, symbol to 8031 series of preceding founder (and later ATMEL89 series) is PD, i.e., Power Down (power down), it must could enter " non-crash " pattern of this least power consumption by executing instruction, so-called " non- Crash ", i.e., it be shut down, but can also respond some events triggering interrupt, exit PD patterns return to normal instructions execution State.The PD patterns (directly renaming as herein " shutting down micro energy lose pattern ") of New Type of Chip Microcomputer especially mentioned here have band fixed When automatically exit from PD mode capabilities, keep program detection off-position particularly convenient, peripheral circuit breaks with regard to more diode D Electric power supply capacitor C is natively necessary power filtering capacitor, exactly because the also micro energy lose of PD patterns, just so that the volume of C It can be small big to the grain of rice.Setting is automatically exited from about the timing of specific PD bandings, refers to macrocrystalline STC15F2K60S2 microcontroller products Handbook.
The microcontroller of function, the cooperation timing of available free IDL patterns are not automatically exited from periodically to shutting down micro energy lose pattern Device interrupts, but power-off power supply capacitor C will be increased (but volume is still smaller than mung bean) at this time.IDLE idle mode power consumptions are in 0.1mA Hereinafter, can the spilling interruption of response timing device.
Once the power operation (i.e. power switch lightens) of power switch will carry out brightness settings, monolithic by microcontroller identification The I/O mouths Pk.n of machine is (10 in Fig. 2.K=0-5, i.e. port P0-P5;N=0-7, i.e. mouth line position bit Pk.0-Pk.7) output State will preferably realize that the brightness to former Switching Power Supply controls, and find the control access point for meeting following condition:1, electric current Change brightness sensitive spot;2, control point operating voltage has identical reference ground in microcontroller operating voltage range with microcontroller Current potential (otherwise usually uses light-coupled isolation, such as Fig. 5 (a), 5 (b));3, the closed loop feedback control of original voltage or current mode is not destroyed System.Feedback sample comparison point 6 in Fig. 2 is exactly to meet the control point of these conditions in common isolation type switch power, it is steady The ends Ref of comparator TL431, i.e. feedback sample comparison point is pressed (to pay attention to:Microcontroller with LED light power supply-, TL431 altogether).Monolithic The feedback sample comparison point 6 is connected after I/O mouthfuls of Pk.n string resistances R of machine, I/O mouthfuls can be the accurate two-way of acquiescence, but be preferably configured (former closed loop feedback control is influenced minimum) at open-drain pattern, conducting when institute string resistance R more lampets are brighter over the ground, but R cannot mistake It is small, it is too small to influence voltage close loop feedback control.Here the output form configuration requirement to single-chip I/O mouth is had also been proposed.About The output form configuration of specific single-chip I/O mouth, refers to macrocrystalline STC15F2K60S2 microcontroller product manuals.
Fig. 2 is the microcontroller connection figure of common isolation type switch power.Although isolation type switch power also there are many form, But for microcontroller tie point related to the present invention and control, pertain only to the LED light power supply+, sampling feedback compares Point 6 is just much of that.Fig. 7 is the typical complete graph of isolation type LED lamp Switching Power Supply, wherein to the LED light power supply+, sampling it is anti- Feedback comparison point 6 is indicated.The new and effective quasi-resonance type soft switching power of IC models in Fig. 7, even if being most common warp Allusion quotation UC3842, circuit diagram are also substantially similar (the two access points are constant, and very clear).
It is this generally to there are several grades of brightness several (really to subtract 1, all break with the control of single-chip processor i/o mouth Pk.n break-makes Format body also has a brightness), Fig. 2 illustrates as connection relation, has only drawn two-way.It will be single with this succinct connection types of Fig. 2 Brightness is arranged for LED light Switching Power Supply in piece machine, is premised on fully excavating potential function possessed by New Type of Chip Microcomputer, simultaneously The project has rightly been used, has kept hardware volume, production cost almost unchanged, and functional expansionary is strong, with that Say this.
Used herein of being New Type of Chip Microcomputer (without crystal oscillator and two capacitances, electrification reset circuit), except two supply pins anode/ Can be entirely I/O mouthfuls of Pk.n feet (10 in Fig. 2) outside cathode.To macrocrystalline STC15 series, k=0-5, i.e. port P0-P5;n =0-7, i.e. mouth line position bit Pk.0-Pk.7.Therefore, New Type of Chip Microcomputer not only in IC chip foot (except two supply pins anode/ Outside cathode) I/O feet are all given over to, and the auxiliary circuit of microcontroller operation is supported to eliminate (such as crystal oscillating circuit, electrification reset electricity entirely Road, input and output matching circuit), so access microcontroller can be simplified with regard to 2,3 access points.
It is more in view of LED light type, the connection Switching Power Supply output described in figure of microcontroller shown in Fig. 2 and Switching Power Supply LED light power supply+, feedback sample comparison point 6, to have corresponding adjustment in different types of Switching Power Supply, adjustment also includes being The requirement of some Function Extensions is added, it is specific as follows:
Fig. 3 is two groups of LED light switching control extensions, and metal-oxide-semiconductor is increased on the basis of Fig. 2 and switchs control respectively respectively The conducting of LED light, connection type are that the negative terminal of LED light 5 connects the drain electrode of metal-oxide-semiconductor M, the source electrode ground connection of metal-oxide-semiconductor M, single-chip processor i/o mouth Pk.n connects the grid of metal-oxide-semiconductor M.Two groups of LED light are typically different tones, when microcontroller mouth Pk.n high level connected metal-oxide-semiconductor Conducting, for the LED light of this group of tone with regard to bright, the brightness set by same Fig. 2 essential parts in Fig. 3 is exactly the LED to this group of tone The degree of lightening of lamp.Especially have ultralow electric conduction resistance type metal-oxide-semiconductor at present, it is small such as the grain of rice, without heat sink.
Fig. 4 is that two mouth lines realize that third gear brightness adds the control extension for not powering off and turning off the light, and is the single-chip processor i/o mouth in Fig. 2 Pk.n strings brightness settings resistance R, which is connected in feedback sample comparison point 6, increases transistor inverter stage T1, T2, two microcontrollers String resistance R1, R2 is connected to respective T1, T2 base stage to I/O mouthfuls of Pk.n respectively, and T1, T2 collector are adopted through R3, R4 to feedback respectively Sample comparison point 6, R3, R4 are the brightness settings resistance R in Fig. 2;The two single-chip processor i/o mouths Pk.n is respectively through diode simultaneously D1, D2 connect the grid of metal-oxide-semiconductor M, grid connecting resistance R5 to ground, constitute logic or circuit control LED light 5 conducting.With two A mouth line realizes:Two mouth lines all low levels are to close LED light, and other three kinds of assembled states are third gear LED light brightness, especially suitable With 8 foot microcontrollers of I/O mouth line anxieties.Why some intelligence are allowed in Switching Power Supply working condition ShiShimonoseki LED light Control, for example, someone lamp it is bright, nobody turn off the light automatically, Switching Power Supply always will working condition be intelligent control power supply.
Fig. 5 (a) is the microcontroller connection of constant-current type non-isolation type Switching Power Supply top output class and increases light-coupled isolation, schemes 5 (b) is the microcontroller connection of the following output class of constant-current type non-isolation type Switching Power Supply and increases light-coupled isolation, wherein lowering and stabilizing blood pressure Input voltage needed for power supply microcontroller be all connected to the LED light power supply of Switching Power Supply output+, LED light power supply-and microcontroller are total Ground;The cathode of the input diode of optocoupler OC through different brightness settings resistance R connect each Pk.n of single-chip processor i/o mouth, optocoupler OC it is defeated Enter diode anode connect microcontroller power supply+;The output par, c of optocoupler OC then connects respective feedback control point, and Fig. 5 (a) is OC The reversed feedback control point 9 of collector of output par, c, emitter connect the power input cathode of non-isolation type Switching Power Supply;Fig. 5 (b) is The reversed feedback control point 9 of emitter of the output par, c of OC, collector connect the work of the driving chip in non-isolation type Switching Power Supply Control source Vdd feet.This constant-current type non-isolation type LED light Switching Power Supply because of its high conversion efficiency, without the expensive high frequency of cost Isolating transformer, using very wide in LED lamp.
It is direct current supply voltage-dropping type LED light that Fig. 6 (a), which is the microcontroller connection figure of direct current supply booster type LED light, Fig. 6 (b), Microcontroller connection figure, substantially same Fig. 2 of their connection, except that several single-chip processor i/o mouth Pk.n go here and there different brightness Setting resistance R is connected to the ends FB (ends Ref for being equivalent to the TL431 in Fig. 2) that feedback sample comparison point 6 is chip.Fig. 6 (a) In 5V voltage stabilizings be derived from direct current supply anode, but if battery power voltage less than 5V (such as lithium battery 3.7V) can also connect switch electricity The LED light power supply of source output+, same to Fig. 2, Fig. 6 (b).Noticing that this boosting, decompression IC chip (being usually DC-DC) are internal is also Switching Power Supply pattern.This direct current or battery powered LED light are typically desk lamp, emergency light, torch or Vehicular lamp.
IC chip model in Fig. 5 to Fig. 7 is used merely as Typical Representative of the signal present invention with the connection relation of microcontroller, Practical all kinds of chip models are also very much, but almost similar with the relevant control point of connection microcontroller.
Single-chip processor i/o mouth Pk.n is also connected with information ring lamp (3) or external information ring lamp (4), and it acts as when being transferred to most bright shelves When, indicator light is bright or the sound buzzer that ticks is loud or (some products need line extraction to be attached to outside) external information ring lamp (4) is bright Or the sound that ticks, let the user know that this is most bright shelves, then adjust and just become most dark shelves (certain information ring lamp does not work yet).
Power switch (1) is battery main switch, and any place in the power input inlet wire of Switching Power Supply (2) is arranged, can be with It is locking button, ship type switch, toggle switch, rotary switch or pullswitch.
It is the key that rationally that operating experience is good that design of control method, which obtains,.The present invention is to solve the choosing of (on-off switch) multi gear It selects and operates numerous problem, introduce two brightness and achieve in advance automatically, short pass once switches to last pre- archive, successively rotation.Even Continuous short close is exactly by shelves increased brightness since last pre- archive brightness, and when arriving most bright shelves, information ring lamp is bright or the sound buzzer that ticks is rung Once, then afterwards it is most dark shelves, successively rotation.So-called " short pass " refers to (being opened again afterwards less than 1 second (switch circuit breaking) pass time Open).The difference of " short close primary " and " continuous short pass " is with regard to light yellow after " short close primary " regardless of (turning on conduction time is more than 1 second);" continuous short pass " referred to the conduction time between adjacent pass short twice less than 1 second.As long as changing brightness, (stablize constant Afterwards more than 1 second) new brightness just automatically into prestoring recently, and the brightness of front becomes last time and prestores, and short concern is changed at any time for confession Last time achieve in advance (interior design be exactly for the first time short Guan be always to switch to last time and achieve in advance.It is short to close primary namely short pass for the first time).
Nearest used brightness twice is exactly that archive and last time achieve in advance in advance recently.(1 second or more) next time opened after turning off the light Always it is restored to pre- archive brightness recently (this, which does not change, prestores);All short passes are always since last time achieves brightness in advance.
Note that this lighten can all carry out at any time, it is not only effective when just turning on light.
To brightness stepping 3 grades (referring mainly to 3 grades of brightness) below, the operation of power switch 1 can be reduced to only " short Close " (function is exactly to increase by one grade of brightness), this also not contradiction with definition above.Turning on light next time, it is used recently to be always restored to Brightness also could dictate that.But information ring lamp 3, external information ring lamp 4 yet can not have to or cancel.
Brightness stepping is more or also to change colour, and it is to simplify the mode of operation that can introduce multiple switchings that prestore.
It prestores and exactly data of transferring the files is stored in the power-off non-volatile storage EEPROM of band in microcontroller, make length of turning off the light Used brightness before being still remembered after time power-off, reduces the trouble often lightened.
It is mainly described in detail above from technological layer and microcontroller and control method is added, but this microcontroller power supply switch lightens LED light Switching Power Supply, it may include LED light 5 makes the complete products such as LED lamp holder, LED lamp (itself is without power switch), also It may include that power switch (1) makes the simultaneous AC and DC LED desk lamp transferred the files of power switch, electric fan, battery powered emergency light, vehicle The complete products such as lamp, torch are carried, it is especially battery powered, it is long-term not have to that dead electricity damage charging is caused because of micro- power consumption Pond.

Claims (10)

1. a kind of power switch degree of lightening LED light controller, passes through power switch(1)Adjusting brightness of LED lamps, which is characterized in that It is mainly by the Switching Power Supply in a box(2), microcontroller, diode D, shutdown transient power supply capacitor C, several resistance (7)Composition;Power switch(1)It is arranged in Switching Power Supply(2)Power input inlet wire any place;The Switching Power Supply(2)For Isolation type LED lamp Switching Power Supply, compared as feedback sample with voltage stabilizing comparator TL431 or DC-DC class chips constitute direct current Decompression, boosting LED light Switching Power Supply, the FB feet or non-isolated LED light constant-current switch power source that the feedback sample that chip has compares, Its chip lightens control foot or feedback control foot, should also include light-coupled isolation device thereon;The Switching Power Supply(2)Output LED light power supply+, it is connected with the anode of diode D after lowering and stabilizing blood pressure, the cathode of diode D and all same monolithic of the anode of capacitance C Electromechanical source+(8)Connection, negative terminal, microcontroller grounding leg G, the LED light power supply-of capacitance C link together ground connection;Several microcontrollers I/O mouthfuls of Pk.n(10)One resistance R of string(7), all resistance R(7)With voltage stabilizing comparator TL431 or FB foot or light-coupled isolation Device is connected;
The microcontroller is to have the function of that shutting down micro energy lose banding timing automatically exits from, or do not have to shutting down micro energy lose pattern Timing automatically exits from the microcontroller of function, and available free IDL patterns coordinate timer interruption.
2. power switch degree of lightening LED light controller according to claim 1, which is characterized in that the Switching Power Supply (2)For isolation type LED lamp Switching Power Supply when, compared as feedback sample with voltage stabilizing comparator TL431, several single-chip processor i/o mouths Pk.n(10)Go here and there the resistance R of different numerical value(7), all resistance R(7)With the poles the Ref feedback sample ratio of voltage stabilizing comparator TL431 Compared with point(6)It is connected.
3. power switch degree of lightening LED light controller according to claim 1, which is characterized in that the Switching Power Supply (2)When the DC decompression constituted for DC-DC class chips, LED light Switching Power Supply of boosting, chip has the FB that feedback sample compares Foot, several single-chip processor i/o mouth Pk.n(10)Go here and there the resistance R of different numerical value(7), all resistance R(7)With the FB feet of chip(6) It is connected;To booster type LED light power supply, the input terminal of decompression+5V voltage stabilizings is connected with the direct current supply anode of electric power incoming line;To decompression The input terminal of type LED light power supply, decompression+5V voltage stabilizings is connected with LED light positive pole.
4. power switch degree of lightening LED light controller according to claim 1, which is characterized in that the Switching Power Supply (2)For non-isolated LED light constant-current switch power source, chip lightens control foot or feedback control foot, should also include optocoupler thereon Isolating device;Several single-chip processor i/o mouth Pk.n(10)Go here and there the resistance R of different numerical value(7), all resistance R(7)It is defeated with optocoupler The cathode for entering diode is connected;The anode of the input diode of optocoupler connects microcontroller power supply anode(8);The output section of optocoupler taps Feedback control foot(9):Non-isolation type Switching Power Supply is exported with top, the collector of the output par, c of optocoupler connects feedback control Foot(9), emitter connect the power input cathode of non-isolation type Switching Power Supply;To non-isolation type Switching Power Supply to export below, The emitter of the output par, c of optocoupler connects feedback control foot(9), collector connect the driving chip in non-isolation type Switching Power Supply Operating voltage inputs Vdd feet.
5. power switch degree of lightening LED light controller according to claim 1, which is characterized in that the shutdown transient supplies The capacity value of capacitance C requires to keep powering for 1 second when microcontroller enters and shuts down micro energy lose pattern, and the microcontroller is tool There are the microcontroller for shutting down micro energy lose banding timing exit function or microcontroller choosing to have in IDLE idle mode energy response timing devices Disconnected;
The microcontroller power supply foot(8)With low pressure detection or interrupt function;
The microcontroller is according to domestic 15 series monolithics of macrocrystalline STC, and supply pin low pressure detection threshold value is by domestic macrocrystalline High-voltage value possessed by 15 series monolithics of STC is set;
The I/O mouths Pk.n of the microcontroller(10)Output form is configurable, with being configured to several I/O mouthfuls of the output of open-drain type Pk.n(10)String resistance R(7)To LED light Switching Power Supply(2)Brightness is set;
Band power-off non-volatile storage EEPROM, microcontroller are without external crystal oscillation circuit and electrification reset circuit in the microcontroller.
6. according to claim 2-5 any one of them power switch degree of lightening LED light controllers, which is characterized in that further include The source electrode of metal-oxide-semiconductor M, metal-oxide-semiconductor M is grounded, and the drain electrode that the grid of metal-oxide-semiconductor M meets single-chip processor i/o mouth Pk.n, metal-oxide-semiconductor M becomes LED light electricity Source exports negative terminal, and former Switching Power Supply LED light power supply exports negativing ending grounding;To no metal-oxide-semiconductor M, Switching Power Supply LED light power supply is defeated It is exactly LED light power supply output negative terminal, ground connection to go out negative terminal.
7. according to claim 2-5 any one of them power switch degree of lightening LED light controllers, which is characterized in that further include With two transistor T1, T2, a metal-oxide-semiconductor M, two diode D1, D2, five resistance R1-R5, two mouth line tune third gear of realization The control extension that brightness and not powering off is turned off the light:Two single-chip processor i/o mouth Pk.n go here and there respectively current-limiting resistance R1, R2 be connected to it is respective Inverter transistor T1, T2 base stage, string resistance R3, R4 is connected to feedback sample comparison point to T1, T2 collector respectively(6), while this Two single-chip processor i/o mouth Pk.n connect the anode of diode D1, D2 respectively, and the cathode of diode D1, D2 simultaneously meet metal-oxide-semiconductor M together Grid, the drain electrode of the grid also connecting resistance R5 of metal-oxide-semiconductor M to ground, metal-oxide-semiconductor M are that LED light power supply exports negative terminal, constitute logic Or LED light output control.
8. according to claim 2-5 any one of them power switch degree of lightening LED light controllers, which is characterized in that
It further include information ring lamp(3), the information ring lamp is LED light, with the Pk.n connections of single-chip processor i/o mouth;Or, the information ring lamp (3)It is buzzer, with the Pk.n connections of single-chip processor i/o mouth;
Or, further including external information ring lamp(4), the external information ring lamp(4)Being LED light or buzzer or each shelves has LED Indicator light and again include electromotion pilot lamp or LED display, at this time with several single-chip processor i/o mouth Pk.n(10)It connects several LED light or LED display;
The power switch(1)It is battery main switch, is opened for locking button, ship type switch, toggle switch, rotary switch or bracing wire It closes.
9. a kind of control method of foundation on the basis of power switch degree of lightening LED light controller hardware according to any one of claims 8, It is characterised in that it includes following operation rules:
Power switch(1)Rapidly switch off and open as brightness settings operate, concrete operations rule it is as follows:The microcontroller root According to power switch(1)It is primary shutdown again open, and power-off time be less than 1 second, be determined as brightness settings operation, referred to as it is " short Close ", it is short for the first time to close the brightness for always preserving luminance recovery to last time;
And then short pass, brightness add one grade again;Continuous short pass, brightness are incremented by by shelves;When to most bright shelves, information ring lamp(3)Or it is external Information ring lamp(4)It is bright or tick the sound once, then be most dark shelves, successively rotation afterwards;
Constant more than 1 second to certain grade of brightness, this grade of brightness as prestores recently;Turn off the light the time be more than after 1 second next time open just it is extensive It is multiple to achieve brightness to pre- recently, do not change and prestores;If short pass lightens, new brightness is to prestore recently again, and front prestores recently Becoming last time prestores, and switch to last time for clicking short pass at any time achieves in advance;
When brightness or the stepping that also to change colour are 4 grades and 4 grades or more, setting 3 or more is pre- to be achieved;
It prestores and exactly data of transferring the files is stored in the power-off non-volatile storage EEPROM of band in microcontroller;
To third gear and third gear degree of lightening below, it is reduced to:Short pass is exactly the operation of one grade of blast, when arriving most bright shelves, information ring lamp (3)Or external information ring lamp(4)It is bright or tick the sound once, then be most dark shelves, successively rotation afterwards;Or, information ring lamp(3)With external news Ring lamp(4)It need not;It is required that next time, unlatching was always restored to last time used brightness after turning off the light.
10. a kind of power switch lightens LED light, which is characterized in that including LED light(5)And any one of claim 6,7,8 institute Power switch degree of the lightening LED light controller stated;The LED light(5)Anode and Switching Power Supply(2)The LED light power supply of output Anode is connected, the LED light(5)Cathode be connected with LED light power cathode;
Or, including LED light(5), power switch(1)And 6,7,8 any one of them power switch degree of lightening LED of claim Lamp controller;The LED light(5)Anode and Switching Power Supply(2)The LED light positive pole of output is connected, the LED light(5) Cathode be connected with LED light power cathode;The power switch(1)It is arranged in Switching Power Supply(2)Power input inlet wire appoint At meaning.
CN201611207992.0A 2016-12-23 2016-12-23 A kind of power switch degree of lightening LED light controller and its control method Expired - Fee Related CN106612577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611207992.0A CN106612577B (en) 2016-12-23 2016-12-23 A kind of power switch degree of lightening LED light controller and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611207992.0A CN106612577B (en) 2016-12-23 2016-12-23 A kind of power switch degree of lightening LED light controller and its control method

Publications (2)

Publication Number Publication Date
CN106612577A CN106612577A (en) 2017-05-03
CN106612577B true CN106612577B (en) 2018-08-10

Family

ID=58636636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611207992.0A Expired - Fee Related CN106612577B (en) 2016-12-23 2016-12-23 A kind of power switch degree of lightening LED light controller and its control method

Country Status (1)

Country Link
CN (1) CN106612577B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6851567B2 (en) * 2017-05-27 2021-03-31 李玉麟 Drive system
TWI628975B (en) 2017-05-27 2018-07-01 李玉麟 Driver system
TWI687132B (en) 2018-05-03 2020-03-01 李玉麟 Driver device
CN109194492B (en) * 2018-06-27 2020-09-18 华为技术有限公司 Powered device PD and power over Ethernet POE system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01159716A (en) * 1987-12-16 1989-06-22 Alpine Electron Inc Reset circuit for microcomputer
CN105554935A (en) * 2015-12-16 2016-05-04 冯秋林 Fade-in or fade-out LED lamp programmable controller
CN105451400A (en) * 2016-01-14 2016-03-30 鲁东大学 Method and device for intelligent light modulation of LED street lamps
CN105744676B (en) * 2016-01-29 2017-07-14 高玉扬 A kind of LED light-dimming methods based on simple switch
CN106231724B (en) * 2016-08-02 2018-03-16 陕西亚成微电子股份有限公司 A kind of LED is without stroboscopic adjusting control circuit

Also Published As

Publication number Publication date
CN106612577A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN106612577B (en) A kind of power switch degree of lightening LED light controller and its control method
CN106571616B (en) Power supply suspend mode and wake-up circuit
CN106793295B (en) A kind of microcontroller power supply switch lightens LED light Switching Power Supply and its control method
CN102984866A (en) Intelligent power module for LED lamps, based on electric carrier waves with address control
CN209046912U (en) A kind of multiloop list firewire intelligent switch
CN100463580C (en) Driving circuit of backlight device with the protection module group
CN201142133Y (en) Intelligent switch
CN109840006A (en) Main control chip power supply unit
CN203251460U (en) Intelligent switch for scene control
CN200941606Y (en) Two-line system electronic switching power supplying circuit
CN207965806U (en) System and electronic equipment are restarted in power supply
CN106681207B (en) A kind of microcontroller power supply switchs and shift module and its control method
CN108488948A (en) Air-conditioning, air-conditioner control system and outdoor unit switching circuit
CN108040403B (en) Light modulator
CN113612369B (en) Power supply circuit, household appliance and control method for household appliance
CN107608258A (en) A kind of Intelligent clock for controlling household electrical appliances
CN104202890B (en) The stand-by circuit of luminaire and the operating circuit of luminaire
CN101938875B (en) Intelligent illumination control system and control method thereof
CN209593840U (en) Controllable silicon light modulation toning power supply with memory and reset function
CN201114886Y (en) Electronic energy-saving timer for Christmas lamp or neon light
CN109149286B (en) Multi-working-mode energy-saving power socket board
CN202979388U (en) LED lamp touch control device
CN103997225B (en) A kind of low idling consumption control method and control circuit
CN201733481U (en) LED bulb capable of mechanically adjusting light
CN212970168U (en) Intelligent lamp

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180810

Termination date: 20191223