CN108012368A - A kind of PWM light-dimming methods of LED - Google Patents

A kind of PWM light-dimming methods of LED Download PDF

Info

Publication number
CN108012368A
CN108012368A CN201710597442.2A CN201710597442A CN108012368A CN 108012368 A CN108012368 A CN 108012368A CN 201710597442 A CN201710597442 A CN 201710597442A CN 108012368 A CN108012368 A CN 108012368A
Authority
CN
China
Prior art keywords
light
pwm
led
value
microcontroller
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.)
Granted
Application number
CN201710597442.2A
Other languages
Chinese (zh)
Other versions
CN108012368B (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.)
Ningbo Fotile Kitchen Ware Co Ltd
Original Assignee
Ningbo Fotile Kitchen Ware Co Ltd
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 Ningbo Fotile Kitchen Ware Co Ltd filed Critical Ningbo Fotile Kitchen Ware Co Ltd
Priority to CN201710597442.2A priority Critical patent/CN108012368B/en
Publication of CN108012368A publication Critical patent/CN108012368A/en
Application granted granted Critical
Publication of CN108012368B publication Critical patent/CN108012368B/en
Active 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/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)

Abstract

The present invention relates to the PWM light-dimming methods of LED a kind of, the PWM ripples for being exported to microcontroller are adjusted, it is characterised in that:Include the following steps:Step 1:Determine that the total number of degrees of light modulation is N*L, dim total time TC, it is M that SCM PWM ripple, which produces register value, and M is definite value, and n is assigned a value of 0;Step 2:The time T of PWM ripples when calculating each light adjusting gradeC/(N*L);Step 3:L is assigned a value of 0;Step 4:L=l+1;The duty cycle of the PWM ripples of microcontroller reality output is arranged to Expression rounds up real number x;Step 5:Judge whether l is more than or equal to L, it is no to be transferred to step 4 if being transferred to step 6;Step 6:N=n+1;Step 7:Judge whether n is more than or equal to N, if EP (end of program), step 3 is jumped into Ru no.Method provided by the invention considerably increases light adjusting grade so that light modulation is more soft, can make the non-linear sensation that people is substantially reduced during adjusting LED, make light modulation more uniform.

Description

A kind of PWM light-dimming methods of LED
Technical field
The present invention relates to the PWM light-dimming methods of LED a kind of.
Background technology
With the development of LED lighting technology, it is protruded compared to traditional lighting advantage, LED light just taking gradually in society For traditional lighting.It has following advantage:Manufacture material environmental protection;LED lamp particle is laid out so that producing scattering less, significantly Reduce light pollution;Light is directly converted electrical energy into, efficiency is high;Manufacture material is stablized, and is hardly damaged.
And the optical parameter of LED light mainly has:Light intensity, luminous flux, illumination, luminous efficiency etc., the electrical parameter master of LED light Have:Electric current, voltage, power, power factor etc..Typically, since the minor variations of the forward voltage drop of LED can be led The large change of LED light forward current is caused, LED light controls brightness by the way of constant-current source driving.
Present country vigorously advocates green economy, it is necessary to which the whole society carries out energy-saving and emission-reduction, and reduction electric consumption on lighting has certain Effect, and for the user, softer light is also more comfortable to human body, and this requires we go to pursue more adduction Suitable dimming mode, is realized for upper from technology, has simulation light modulation, controllable silicon light modulation and pulsewidth modulation (PWM) to dim three kinds of tune Light mode, in these three dimming modes, most common light regulating technology is PWM light modulations, it is switched repeatedly using pulse-width signal LED light, adjusts LED average currents, and then adjusts the brightness of LED light.
PWM light modulations give load LED lamp power supply by starting the cyclic process stopped in short time, and LED light is two poles Pipe, the pulse width of control PWM ripples, which can be realized, rapidly switches off LED light, since the human eye vision residence time is generally 24 / mono- second or so, as long as the frequency of PWM light modulations is far above human eye resolution capability, people was not felt by LED light flicker. In the case where the voltage at LED both ends is certain, LED luminous intensities are directly proportional to by its size of current for temperature and loading.With Development in science and technology, the method for adjusting LED light using PWM ripples has following advantage:1. light modulation precision is high;2. color will not be produced Spectral migration, LED operation electric current are stablized adjustable;3. it can be combined with digital modulation technique.But actually use PWM ripples control LED Lamp needs to make choice the frequency (duty cycle) of PWM ripples, generally requires more than 100Hz, so can effectively avoid human eye sense Situation about being flickered by LED light.
However, existing light regulating technology only takes into account the control of LED light PWM ripples, it is unactual to consider human eye to LED tune The impression of the soft degree of light, its scope adjusted can not actually reflect the impression of people.In fact, human eye discovers brightness change Ability be limited, the change of intrinsic brilliance is in units of nit.Due to the afterglow effect of human eye, LED's seen by person Brightness is just the k/n of high-high brightness, this has just achieveed the purpose that to control LED to send different brightness light.PWM dimming modes, if Simply simply change duty cycle come adjust the brightness of LED and without any processing, then lamps and lanterns discoloration when ladder Feel obvious, and be accompanied by slight jitter phenomenon, therefore for human eye, PWM dimming modes are uneven there is light modulation It is even, the shortcomings that human eye feels non-linear, and light adjusting grade is inadequate.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of microcontroller that is directed to for the above-mentioned prior art to handle power letter In the case of several abilities is weaker, the PWM light modulation sides that light adjusting grade makes human eye feel softer LED can be greatly increased Method.
Technical solution is used by the present invention solves above-mentioned technical problem:A kind of PWM light-dimming methods of LED, for pair The PWM ripples of microcontroller output are adjusted, the PWM wave output terminals connection of LED and microcontroller, it is characterised in that:Including following step Suddenly:
Step 1:It is N*L to determine the total number of degrees of light modulation, and N is original light adjusting grade number, and N is default natural number, and L is to original For each light adjusting grade into the number of degrees of row interpolation, L is default natural number, dims total time T in beginning light adjusting gradeC, monolithic It is M that machine PWM ripples, which produce register value, and M is definite value, sets light modulation index ranking n, n is assigned a value of 0;
Step 2:The time T of PWM ripples when calculating each light adjusting gradeC/(N*L);
Step 3:Light modulation interpolation grade l is set, l is assigned a value of 0;
Step 4:L=l+1;SCM PWM ripple comparand register is arranged to
The duty cycle of the PWM ripples of microcontroller reality output is arranged to
Expression rounds up real number x, and under the light adjusting grade, the duration of the PWM ripples of microcontroller output is TC/ NL;
Step 5:Judge whether l is more than or equal to L, if being transferred to step 6 if setting up, step 4 is transferred to if invalid;
Step 6:N=n+1;
Step 7:Judge whether n is more than or equal to N, if EP (end of program) if setting up, step 3 is jumped into if invalid.
Preferably, the N=5~10, L=5~10.
Compared with prior art, the advantage of the invention is that:In the case where original light adjusting grade is N, by light modulation etc. Level is changed into N*L grades, considerably increases light adjusting grade so that light modulation is more soft, can make to substantially reduce people during adjusting LED Non-linear sensation, make light modulation more uniform, at the same substantially reduce microcontroller processing power function when burden.
Brief description of the drawings
Fig. 1 is the PWM light-dimming method flow charts of LED in the embodiment of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with attached drawing embodiment.
The PWM light-dimming methods of LED as described in Figure 1, the PWM ripples for being exported to microcontroller are adjusted, LED and monolithic The PWM wave output terminals connection of machine, it includes the following steps:
Step 1:It is N*L to determine the total number of degrees of light modulation, and N is original light adjusting grade number, and N is default natural number, and L is to original For each light adjusting grade into the number of degrees of row interpolation, L is default natural number, dims total time T in beginning light adjusting gradeC, monolithic It is M that machine PWM ripples, which produce register value, and M is definite value, sets light modulation index ranking n, n is assigned a value of 0;
Step 2:The time T of PWM ripples when calculating each light adjusting gradeC/(N*L);
Step 3:Light modulation interpolation grade l is set, l is assigned a value of 0;
Step 4:L=l+1;SCM PWM ripple comparand register is arranged to
The duty cycle of the PWM ripples of microcontroller reality output is arranged at this time
Expression rounds up real number x;SCM PWM ripple output mode is configured, and under the light adjusting grade, microcontroller The duration of the PWM ripples of output is TC/NL;
Step 5:Judge whether l is more than or equal to L, if being transferred to step 6 if setting up, step 4 is transferred to if invalid;
Step 6:N=n+1;
Step 7:Judge whether n is more than or equal to N, if EP (end of program) if setting up, step 3 is jumped into if invalid.
The problem of power function ability is weaker is handled for microcontroller, the value of N can be set to 5~10, L=5~10, this Sample can not only considerably increase light adjusting grade so that light modulation is more soft, moreover it is possible to can make to substantially reduce people during adjusting LED Non-linear sensation, make light modulation more uniform, improve the treatment effeciency of microcontroller.

Claims (2)

1. the PWM light-dimming methods of LED a kind of, the PWM ripples for being exported to microcontroller are adjusted, the PWM ripples of LED and microcontroller Output terminal connects, it is characterised in that:Include the following steps:
Step 1:It is N*L to determine the total number of degrees of light modulation, and N is original light adjusting grade number, and N is default natural number, and L is to original tune For each light adjusting grade into the number of degrees of row interpolation, L is default natural number, dims total time T in light gradeC, SCM PWM It is M that ripple, which produces register value, and M is definite value, sets light modulation index ranking n, n is assigned a value of 0;
Step 2:The time T of PWM ripples when calculating each light adjusting gradeC/(N*L);
Step 3:Light modulation interpolation grade l is set, l is assigned a value of 0;
Step 4:L=l+1;SCM PWM ripple comparand register is arranged to
The duty cycle of the PWM ripples of microcontroller reality output is arranged to
Expression rounds up real number x, and under the light adjusting grade, the duration of the PWM ripples of microcontroller output is TC/NL;
Step 5:Judge whether l is more than or equal to L, if being transferred to step 6 if setting up, step 4 is transferred to if invalid;
Step 6:N=n+1;
Step 7:Judge whether n is more than or equal to N, if EP (end of program) if setting up, step 3 is jumped into if invalid.
2. PWM light-dimming methods according to claim 1, it is characterised in that:The N=5~10, L=5~10.
CN201710597442.2A 2017-07-18 2017-07-18 A kind of PWM light-dimming method of LED Active CN108012368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710597442.2A CN108012368B (en) 2017-07-18 2017-07-18 A kind of PWM light-dimming method of LED

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710597442.2A CN108012368B (en) 2017-07-18 2017-07-18 A kind of PWM light-dimming method of LED

Publications (2)

Publication Number Publication Date
CN108012368A true CN108012368A (en) 2018-05-08
CN108012368B CN108012368B (en) 2019-09-20

Family

ID=62047660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710597442.2A Active CN108012368B (en) 2017-07-18 2017-07-18 A kind of PWM light-dimming method of LED

Country Status (1)

Country Link
CN (1) CN108012368B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290615A (en) * 2019-06-19 2019-09-27 大连工业大学 A kind of illumination control method based on light radiation theory and PWM light modulation principle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02284394A (en) * 1989-04-25 1990-11-21 Matsushita Electric Works Ltd Lighting load controlling device
CN201651825U (en) * 2009-12-11 2010-11-24 茅于海 Photosensitive automatic dimming LED lamp
CN203482448U (en) * 2013-07-22 2014-03-12 厦门厦荣达电子有限公司 Self-adaptive LED lamp dimming control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02284394A (en) * 1989-04-25 1990-11-21 Matsushita Electric Works Ltd Lighting load controlling device
CN201651825U (en) * 2009-12-11 2010-11-24 茅于海 Photosensitive automatic dimming LED lamp
CN203482448U (en) * 2013-07-22 2014-03-12 厦门厦荣达电子有限公司 Self-adaptive LED lamp dimming control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
祝建科: "《基于单片机的LED调光控制器设计》", 《现代电子技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290615A (en) * 2019-06-19 2019-09-27 大连工业大学 A kind of illumination control method based on light radiation theory and PWM light modulation principle
CN110290615B (en) * 2019-06-19 2021-05-28 大连工业大学 Illuminance control method based on optical radiation theory and PWM dimming principle

Also Published As

Publication number Publication date
CN108012368B (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN107172745B (en) Color temperature automatic adjusting method and device and lamp mirror
CN106304474B (en) The tone variations of dimmable device with stable color temperature light sources
CN102196634B (en) Led lighting device
CN107333359A (en) The LED Mixed Lights Illuminations system and its light-dimming method of a kind of adjustable color
CN201657429U (en) Color temperature adjustable LED illuminating device based on ambient temperature
CN101956941B (en) LED (Light Emitting Diode) aquarium light
CN104717807A (en) LED sleep-supporting and awakening lamp and method
CN107094335B (en) A kind of the colour temperature brightness adjusting method and device of LED light light comfort level
CN205987484U (en) Backlight unit's drive circuit , backlight unit and display device
CN103096565B (en) LED light device and lamp light control method thereof
CN108012367B (en) A kind of PWM light-dimming method of LED
CN206226780U (en) Intelligent LED lighting system based on non-vision photo-biological effect
CN206743614U (en) A kind of easily toning light modulation and LED and its drive circuit without stroboscopic
CN203240334U (en) Intelligent light-adjusting LED (light-emitting diode) lamp
CN108012368B (en) A kind of PWM light-dimming method of LED
CN105357815A (en) LED (light emitting diode) table lamp
CN202992741U (en) Light-emitting diode (LED) lamp capable of adjusting light and color synchronously
CN104113953B (en) Electro-optical device and control method
CN201403231Y (en) LED illumination lamp with stepless adjustable color temperature
CN201403232Y (en) Color temperature adjustable LED illumination lamp with RGB light source
CN111083827B (en) LED intelligent light and color adjusting circuit
CN208479985U (en) LED light adjusting system
CN201944766U (en) LED aquarium lamp
CN211860594U (en) LED dimming and color mixing circuit
CN213783638U (en) Double-light-source LED lamp with color temperature adjusting complementary circuit

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