CN106604454A - Driving circuit and driving method of using switch to set LED luminance - Google Patents
Driving circuit and driving method of using switch to set LED luminance Download PDFInfo
- Publication number
- CN106604454A CN106604454A CN201611095955.5A CN201611095955A CN106604454A CN 106604454 A CN106604454 A CN 106604454A CN 201611095955 A CN201611095955 A CN 201611095955A CN 106604454 A CN106604454 A CN 106604454A
- Authority
- CN
- China
- Prior art keywords
- module
- led
- switch
- current
- mcu
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
Abstract
The invention provides a driving circuit of using a switch to set LED luminance. The driving circuit comprises a rectification module, an MCU module, a high voltage PWM controllable constant current module, and the switch. The rectification module is connected with alternating current, and is connected with the MCU module and the high voltage PWM controllable constant current module. The MCU module is connected with the high voltage PWM controllable constant current module and the switch. The rectification module is used to rectify the alternating current into direct current, which is provided for the high voltage PWM controllable constant current module and the MCU module, and the MCU module is used to control power on luminance output and user setting. The PWM pin output of the MCU module is directly connected with the high voltage PWM controllable constant current module, and a duty ratio is used to control the output current of the high voltage PWM controllable constant current module. The driving circuit and the driving method provided by the invention are advantageous in that costs are low, use is practical and simple, and a user can set the LED luminance at will, and therefore operation is convenient.
Description
Technical field
The present invention relates to LED control technology fields, more particularly to it is a kind of using switch arrange LED luminance drive circuit and
Method.
Background technology
As the development of LED illumination technology, electric filament lamp light modulation are gradually replaced by LED light modulations, current LED is heightened mainly to be had
Following several ways:Light modulation is realized by IR remote controller/wireless radio frequency remote control device, by controllable silicon light modulation, also by opening
Close sectional dimming.Or these dimming mode high costs, or being exactly using complicated, or being exactly single function, it is impossible to meet
Low cost, using demand that is simple, arbitrarily dimming.
Any brightness regulation in 0-100% brightness can be realized by the light modulation of infrared or wireless radio frequency remote control device, is lacked
Point is to need collocation remote control, high cost, and remote control to be easily lost;By controllable silicon light modulation, it is also possible to realize that 0-100% is bright
Any brightness regulation in degree, shortcoming are equally that circuit is complicated, high cost, in addition it is also necessary to arrange in pairs or groups and special heighten switch panel;And
Dimmed by existing switch-segment, although low cost, but single function, several brightness can only be carried out by switching on-off
The regulation of grade, producer are once produced, and user can not adjust out the brightness value outside presetting.
The content of the invention
One of the technical problem to be solved in the present invention, is to provide a kind of drive circuit that LED luminance is arranged using switch,
Low cost, practical simple, user can arbitrarily arrange LED luminance, convenient to operate.
What one of problem of the present invention was realized in:A kind of drive circuit that LED luminance is set using switch, including rectification
Module, MCU module, High-voltage PWM converter controllable constant-current module and switch;The rectification module connects AC alternating currents, the rectification mould
Block is connected with the MCU module and High-voltage PWM converter controllable constant-current module respectively;The MCU module is controllable with the High-voltage PWM converter respectively
Constant flow module and switch connection;The rectification module is made into direct current AC alternating currents, supply High-voltage PWM converter controllable constant-current module and
MCU module is used, the brightness value output and the setting of user of the upper electricity of MCU module control;The PWM pins output of MCU module is direct
It is connected in High-voltage PWM converter controllable constant-current module, the output current that High-voltage PWM converter controllable constant-current module is controlled by dutycycle is big
It is little.
Further, the High-voltage PWM converter controllable constant-current module is directly connected to LED, by High-voltage PWM converter controllable constant-current module
Output current size controlling LED luminance.
The two of the technical problem to be solved in the present invention, are to provide a kind of driving method that LED luminance is arranged using switch,
Low cost, practical simple, user can arbitrarily arrange LED luminance, convenient to operate.
What the two of problem of the present invention were realized in:A kind of driving method that LED luminance is set using switch, the driving
Method adopts the drive circuit, methods described to be:LED is connected to into the High-voltage PWM converter controllable constant-current module, in setting time
The switch of closed and disconnected control LED alternating-current electricity repeatedly, causes LED to enter pattern with an automatic light meter, the rectification module
AC alternating currents are made into direct current, supply High-voltage PWM converter controllable constant-current module and MCU module are used, the brightness of the upper electricity of MCU module control
Value output and the setting of user;The PWM pins output of MCU module is directly connected in High-voltage PWM converter controllable constant-current module, by accounting for
Empty ratio controls LED luminance to control the output current size of High-voltage PWM converter controllable constant-current module.
Further, methods described is further specially:Step 1, switch are off, and MCU module acquiescence is preserved
Upper electric number of times be masked as 0;
Step 2, switch closure, MCU module are started working, and arrange upper electricity number of times mark immediately and add 1;Read in MCU module
The brightness value of portion's storage, and corresponding pwm control signal is exported, High-voltage PWM converter controllable constant-current module lights LED;While MCU module
Internal timer is started from scratch timing, if the time of timer exceedes preset time T, the upper electric number of times flag clear;
Internal timer stops timing and resets, and LED is in normal mode of operation, if in T time, being disconnected switch, then now
Inside MCU module, upper electricity number of times is masked as 1;
If step 3, in step 2, switch is just disconnected in T time, again closure switch, MCU module can be arranged
Electric number of times mark adds 1 again, thus, be all every time the closing switch in T time in closure switch, then the upper electric number of times inside MCU
Mark can add up 1 always, and after upper electric number of times mark reaches the numerical value of N of a setting, flicker once, reminds user LED to LED automatically
Into pattern with an automatic light meter, LED can first reduce brightness in raise-intensity from present intensity, then reduce brightness;Until user makes
After suitable brightness is selected, switch is disconnected;As MCU module is that current brightness value is kept when adjusting, user disconnects switch
Afterwards, the brightness value that the user that can be preserved inside MCU module needs, when LED goes up electricity again, will be bright with what is selected before
Spend the default luminance as start.
Further, upper electric number of times is before n times are reached, as long as LED is arbitrarily once being gone up in electricity, MCU module work
Time exceedes T time, then go up electric number of times meeting automatic clear, and user need to such as enter pattern with an automatic light meter, in addition it is also necessary to re-close out
Close n times.
Further, user can become each user's closure switch in the brightness for carrying out selecting during LED is with an automatic light meter
The default luminance of LED, after user is dimmed next time, default luminance can change.
The invention has the advantages that:The present invention does not change original lamp wiring, just can be with using original switch panel
Any brightness regulation is carried out, diversified demand of the user to lamplight brightness is met, while solve remote control in desk lamp with dimmer switch holding
Easily lose, the problem of high cost.Pattern with an automatic light meter is entered using on-off times counting mode, it is simple and practical, while using pure soft
The upper electric number of times detection algorithm of part, reduces LED circuit complexity, reduces driving cost.
Description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Structural representations of the Fig. 1 for present invention driver circuit.
Schematic flow sheets of the Fig. 2 for the inventive method.
Specific embodiment
Refer to shown in Fig. 1, it is a kind of using switch arrange LED luminance drive circuit, including rectification module, MCU module,
High-voltage PWM converter controllable constant-current module and switch (i.e. switch panel);The rectification module connects AC alternating currents, the rectification module
It is connected with the MCU module and High-voltage PWM converter controllable constant-current module respectively;The MCU module respectively with the High-voltage PWM converter controllable constant
Flow module and switch connection;The rectification module is made into direct current, supply High-voltage PWM converter controllable constant-current module and MCU AC alternating currents
Module is used, the brightness value output and the setting of user of the upper electricity of MCU module control;The PWM pins output of MCU module is directly connected to
To in High-voltage PWM converter controllable constant-current module, the output current size of High-voltage PWM converter controllable constant-current module is controlled by dutycycle.Its
The maximum current of 100% corresponding High-voltage PWM converter controllable constant-current module of middle dutycycle.0% is not output current.The maximum functional of lamp bead
Electric current should be consistent with the electric current of High-voltage PWM converter controllable constant-current module.
The High-voltage PWM converter controllable constant-current module is directly connected to LED, by the output electricity of High-voltage PWM converter controllable constant-current module
Flow size to control LED luminance.
The present invention controls the panel-switch of LED alternating-current electricity by closed and disconnected within a certain period of time repeatedly, causes
LED enters pattern with an automatic light meter, and subsequent LED starts from present intensity to be gradually lowered to minimum bright, and stops several seconds (such as
1 second), then being gradually increased to maximum brightness from minimum brightness, and stop several seconds in maximum brightness, then again from highest
Brightness is gradually lowered to minimum brightness, so repeatedly.In self-regulating process, user feels that to be transferred to oneself suitable
Brightness, can be reached by disconnecting switch to stop pattern with an automatic light meter, and LED can automatically save the brightness of user's selection, when with
Family closure switch again, then LED be automatically set as the brightness adjusted by user.
As shown in Fig. 2 a kind of driving method that LED luminance is arranged using switch of the present invention, the driving method employing
Drive circuit, methods described is:LED is connected to into the High-voltage PWM converter controllable constant-current module, the closing repeatedly in the setting time
The switch of control LED alternating-current electricity is closed and disconnected, causes LED to enter pattern with an automatic light meter, the rectification module exchanges AC
Electricity is made into direct current, and supply High-voltage PWM converter controllable constant-current module and MCU module are used, the brightness value output of the upper electricity of MCU module control and
The setting of user;The PWM pins output of MCU module is directly connected in High-voltage PWM converter controllable constant-current module, is controlled by dutycycle
The output current size of High-voltage PWM converter controllable constant-current module processed is controlling LED luminance.
Methods described is further specially:Step 1, switch are off, the upper electric number of times that MCU module acquiescence is preserved
It is masked as 0;
Step 2, switch closure, MCU module are started working, and arrange upper electricity number of times mark immediately and add 1;Read in MCU module
The brightness value of portion's storage, and corresponding pwm control signal is exported, High-voltage PWM converter controllable constant-current module lights LED;While MCU module
Internal timer is started from scratch timing, if the time of timer exceedes preset time T, and (T is LED preset values, fixed here
For 1 second), then the upper electric number of times flag clear;Internal timer stops timing and resets, and LED is in normal mode of operation, such as
Fruit is disconnected switch in T time, then now inside MCU module, upper electricity number of times is masked as 1;
If step 3, in step 2, switch is just disconnected in T time, again closure switch, MCU module can be arranged
Electric number of times mark adds 1 again, thus, be all every time the closing switch in T time in closure switch, then the upper electric number of times inside MCU
Mark is understood, and after the numerical value of N that upper electric number of times mark arrival one sets, (N is the natural number more than 2, it is assumed here that N
=5), flicker once, reminds user LED to enter pattern with an automatic light meter to LED automatically, and LED can first reduce brightness from present intensity and exist
Raise-intensity, then reduce brightness;After user makes suitable brightness selection, switch is disconnected;As MCU module is that side is adjusted
After side keeps current brightness value, user to disconnect switch, the brightness value that the user that can be preserved inside MCU module needs, when LED again
When secondary electric, will be with the brightness for selecting before as the default luminance started shooting.
, before n times are reached, as long as LED is arbitrarily once being gone up in electricity, the time of MCU module work is more than T for upper electric number of times
Time, then electric number of times meeting automatic clear is gone up, user need to such as enter pattern with an automatic light meter, in addition it is also necessary to re-close switch n times.
User can become the acquiescence of each user's closure switch LED in the brightness for carrying out selecting during LED is with an automatic light meter
Brightness, after user is dimmed next time, default luminance can change.
Below by by specific example come illustrate the present invention implementation procedure.
LED drives factory default brightness for the 50% of LED luminance, when normally use, each closure switch LED
Brightness is all 50%.
User needs the brightness value of adjustment acquiescence, it is only necessary in the state of LED does not work, quickly continuously give repeatedly
LED drives 5 upper electricity (each power-on time is less than 1 second), then LED can flash 1 time automatically, remind user to come into automatically
Light-modulating mode, and start the cycle over light modulation.When LED luminance is reduced to 30% from 50%, user's closing switch, and close again
Combination switch, then LED luminance is 30%.And subsequently turn on light every time, LED luminance is maintained at 30% state.
In a word, detection switch closed and disconnected number of times in invention, is realized using pure software, without the need for detection of power loss
Circuit, keeps MCU to work in shutdown transient without the need for bulky capacitor.Diversified demand of the user to lamplight brightness is met, together
When solve desk lamp with dimmer switch in remote control easily lose, the problem of high cost.
Although the foregoing describing the specific embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this
The technical staff in field should be covered the present invention's in the equivalent modification and change made according to the spirit of the present invention
In scope of the claimed protection.
Claims (6)
1. a kind of using the drive circuit for switching setting LED luminance, it is characterised in that:Including rectification module, MCU module, high pressure
PWM controllable constant-currents module and switch;The rectification module connects AC alternating currents, the rectification module respectively with the MCU moulds
Block and the connection of High-voltage PWM converter controllable constant-current module;The MCU module is connected with the High-voltage PWM converter controllable constant-current module and switch respectively
Connect;The rectification module is made into direct current AC alternating currents, and supply High-voltage PWM converter controllable constant-current module and MCU module are used, MCU moulds
The brightness value output and the setting of user of the upper electricity of block control;It is controllable that the PWM pins output of MCU module is directly connected to High-voltage PWM converter
On constant flow module, the output current size of High-voltage PWM converter controllable constant-current module is controlled by dutycycle.
2. according to claim 1 a kind of using the drive circuit for switching setting LED luminance, it is characterised in that:The height
Pressure PWM controllable constant-current modules are directly connected to LED, control LED by the output current size of High-voltage PWM converter controllable constant-current module
Brightness.
3. a kind of using the driving method for switching setting LED luminance, it is characterised in that:The driving method adopts claim 1
Drive circuit, methods described is:LED is connected to into the High-voltage PWM converter controllable constant-current module, in the setting time repeatedly
The switch of closed and disconnected control LED alternating-current electricity, causes LED to enter pattern with an automatic light meter, and the rectification module hands over AC
Stream electricity is made into direct current, and supply High-voltage PWM converter controllable constant-current module and MCU module are used, the brightness value output of the upper electricity of MCU module control
With the setting of user;MCU module PWM pins output be directly connected in High-voltage PWM converter controllable constant-current module, by dutycycle come
The output current size of control High-voltage PWM converter controllable constant-current module is controlling LED luminance.
4. according to claim 3 a kind of using the driving method for switching setting LED luminance, it is characterised in that:The side
Method is further specially:Step 1, switch are off, and the upper electric number of times that MCU module acquiescence is preserved is masked as 0;
Step 2, switch closure, MCU module are started working, and arrange upper electricity number of times mark immediately and add 1;Read
The brightness value of storage, and corresponding pwm control signal is exported, High-voltage PWM converter controllable constant-current module lights LED;Simultaneously inside MCU module
Timer is started from scratch timing, if the time of timer exceedes preset time T, the upper electric number of times flag clear;It is internal
Timer stops timing and simultaneously resets, and LED is in normal mode of operation, if in T time, being disconnected switch, then now MCU moulds
Inside block, upper electricity number of times is masked as 1;
If step 3, in step 2, switch is just disconnected in T time, again closure switch, it is secondary that MCU module can arrange electricity
Number marks add 1 again, thus, be all every time the closing switch in T time in closure switch, then the upper electric number of times mark inside MCU
1 is added up always can, after upper electric number of times mark reaches the numerical value of N of a setting, flicker once, reminds user LED to enter to LED automatically
Pattern with an automatic light meter, LED can first reduce brightness in raise-intensity from present intensity, then reduce brightness;Until user makes properly
Brightness select after, disconnect switch;As MCU module is that current brightness value is kept when adjusting, user is disconnected after switching,
The brightness value that the user that can be preserved inside MCU module needs, when LED goes up electricity again, will be with the brightness for selecting before
As the default luminance of start.
5. according to claim 1 a kind of using the driving method for switching setting LED luminance, it is characterised in that:Upper electricity
Before n times are reached, as long as LED is arbitrarily once being gone up in electricity, the time of MCU module work exceedes T time to number, then go up electric number of times
Meeting automatic clear, user need to such as enter pattern with an automatic light meter, in addition it is also necessary to re-close switch n times.
6. according to claim 1 a kind of using the driving method for switching setting LED luminance, it is characterised in that:User exists
The brightness for carrying out selecting during LED is with an automatic light meter can become the default luminance of each user's closure switch LED, until user enters
After row is dimmed next time, default luminance can change.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611095955.5A CN106604454A (en) | 2016-12-02 | 2016-12-02 | Driving circuit and driving method of using switch to set LED luminance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611095955.5A CN106604454A (en) | 2016-12-02 | 2016-12-02 | Driving circuit and driving method of using switch to set LED luminance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106604454A true CN106604454A (en) | 2017-04-26 |
Family
ID=58595988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611095955.5A Pending CN106604454A (en) | 2016-12-02 | 2016-12-02 | Driving circuit and driving method of using switch to set LED luminance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604454A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110233327A (en) * | 2019-05-28 | 2019-09-13 | 北京星网锐捷网络技术有限公司 | A kind of UHF RFID reader antenna and switching method |
CN110856319A (en) * | 2019-11-25 | 2020-02-28 | 欧普照明股份有限公司 | Multi-lamp synchronous control method, single chip microcomputer and multi-lamp control system |
CN112584056A (en) * | 2019-09-29 | 2021-03-30 | 浙江宇视科技有限公司 | Image pickup method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101835316A (en) * | 2010-05-21 | 2010-09-15 | 冯林 | Dimming driving method and device and dimming lamp |
CN102438362A (en) * | 2011-10-11 | 2012-05-02 | 宁波市瑞通新材料科技有限公司 | One key type brightness adjusting device |
CN102984856A (en) * | 2010-05-21 | 2013-03-20 | 冯林 | Dimming lamp |
CN103607818A (en) * | 2012-12-25 | 2014-02-26 | 生迪光电科技股份有限公司 | A light-adjustable LED lamp and a light adjusting method |
CN105392239A (en) * | 2015-12-23 | 2016-03-09 | 冷俊 | Lamp brightness control method and LED lamp with brightness adjusting function |
CN205491296U (en) * | 2016-01-18 | 2016-08-17 | 刘承玉 | A stepless control module for adjusting luminance of LED lamps and lanterns |
-
2016
- 2016-12-02 CN CN201611095955.5A patent/CN106604454A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101835316A (en) * | 2010-05-21 | 2010-09-15 | 冯林 | Dimming driving method and device and dimming lamp |
CN102984856A (en) * | 2010-05-21 | 2013-03-20 | 冯林 | Dimming lamp |
CN102438362A (en) * | 2011-10-11 | 2012-05-02 | 宁波市瑞通新材料科技有限公司 | One key type brightness adjusting device |
CN103607818A (en) * | 2012-12-25 | 2014-02-26 | 生迪光电科技股份有限公司 | A light-adjustable LED lamp and a light adjusting method |
CN105392239A (en) * | 2015-12-23 | 2016-03-09 | 冷俊 | Lamp brightness control method and LED lamp with brightness adjusting function |
CN205491296U (en) * | 2016-01-18 | 2016-08-17 | 刘承玉 | A stepless control module for adjusting luminance of LED lamps and lanterns |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110233327A (en) * | 2019-05-28 | 2019-09-13 | 北京星网锐捷网络技术有限公司 | A kind of UHF RFID reader antenna and switching method |
CN110233327B (en) * | 2019-05-28 | 2021-01-15 | 北京星网锐捷网络技术有限公司 | UHF RFID reader antenna and switching method |
CN112584056A (en) * | 2019-09-29 | 2021-03-30 | 浙江宇视科技有限公司 | Image pickup method, device, equipment and storage medium |
CN110856319A (en) * | 2019-11-25 | 2020-02-28 | 欧普照明股份有限公司 | Multi-lamp synchronous control method, single chip microcomputer and multi-lamp control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203590555U (en) | Light-adjustable LED lamp | |
CN104812146B (en) | It is parallel to the radio controllable LED multi-path light modulation toning control method of current source | |
CN205946280U (en) | Module of adjusting luminance and application product thereof | |
CN105682295B (en) | Led control circuit | |
CN205232499U (en) | LED lamp convenient to adjust luminance | |
CN103139978A (en) | Led driving device and method thereof | |
CN205610982U (en) | LED lamp that LED lamp switch was adjusted luminance and is mixed colours and review drive circuit and have it | |
CN106604454A (en) | Driving circuit and driving method of using switch to set LED luminance | |
CN103458591A (en) | Color-temperature adjustable LED lamp | |
CN103997835B (en) | LED illumination control circuit and the method for the photochromic people having the same aspiration and interest is realized for controllable silicon dimmer | |
CN105592587A (en) | LED lamp control method | |
CN208273300U (en) | A kind of control circuit that colour temperature can be adjusted individually with light modulation | |
CN103379713A (en) | Light adjusting circuit | |
CN105657914A (en) | Color-temperature-adjustable dimming control circuit and color-temperature-adjustable dimming control method | |
CN108200689A (en) | LED illumination device light synchronization system based on alternating current voltage zero crossing | |
CN208540218U (en) | LED colour temperature-color adaptation device is realized based on single firewire | |
CN203896560U (en) | LED illumination control circuit used for realizing light and color simultaneous adjustment by silicon controlled rectifier light modulator | |
CN110493920A (en) | A kind of automatic control intelligent LED lamp | |
CN205648073U (en) | Response lighting device that low order luminance can be regulated and control | |
CN206807830U (en) | Phase-cut dimming control device after a kind of | |
CN201533439U (en) | Gradually dimmable lamp cup type cold light lamp control system | |
CN111615231B (en) | Group synchronous dimming and color mixing control method | |
CN108200691A (en) | A kind of LED PAR lamps driving circuit and LED PAR lamps | |
CN203289697U (en) | Dimming circuit | |
CN101702859B (en) | Lamp cup type cold light lamp control system capable of adjusting light one by one |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170426 |