CN110996432A - Dimming method, readable storage medium and LED lamp - Google Patents

Dimming method, readable storage medium and LED lamp Download PDF

Info

Publication number
CN110996432A
CN110996432A CN201911404513.8A CN201911404513A CN110996432A CN 110996432 A CN110996432 A CN 110996432A CN 201911404513 A CN201911404513 A CN 201911404513A CN 110996432 A CN110996432 A CN 110996432A
Authority
CN
China
Prior art keywords
dimming
discrete data
exponential function
output
led
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
CN201911404513.8A
Other languages
Chinese (zh)
Other versions
CN110996432B (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.)
Shenzhen C&D Electronics Co Ltd
Original Assignee
Shenzhen C&D Electronics 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 Shenzhen C&D Electronics Co Ltd filed Critical Shenzhen C&D Electronics Co Ltd
Priority to CN201911404513.8A priority Critical patent/CN110996432B/en
Publication of CN110996432A publication Critical patent/CN110996432A/en
Application granted granted Critical
Publication of CN110996432B publication Critical patent/CN110996432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a dimming method, a readable storage medium and an LED lamp, and relates to the field of LED dimming. The dimming method comprises the following steps: calculating dimming discrete data by utilizing a mutual conversion relation between a dimming linear function and another exponential function output by the singlechip; and outputting a PWM signal according to the dimming discrete data to realize dimming. According to the voltage and current characteristics of the LED, the dimming discrete data which can be called by the single chip microcomputer is calculated, so that the PWM duty ratio is controlled to be output in an exponential function mode according to the light characteristics, and the light change seen by human eyes is soft and gentle.

Description

Dimming method, readable storage medium and LED lamp
Technical Field
The invention relates to the field of LED dimming, in particular to a dimming method, a readable storage medium and an LED lamp.
Background
At present, most of LED dimming technologies adopt PWM (pulse-width modulation) signal regulation, and meanwhile, a plurality of single-chip microcomputers on the market support PWM signal generation. The electronic components for adjusting the light output by the PWM signal are mostly a single chip microcomputer, a PWM signal dimming drive IC, an LED lamp bead string and other electronic components such as an inductor, a capacitor, a resistor and the like. In the process of outputting the PWM signals by the single chip microcomputer, the frequency of PWM output can be controlled to control the LED lamp to adapt to eyes of people, meanwhile, the duty ratio of the PWM output is controlled to adjust different brightness levels of the lamp light, the duty ratios of three paths of PWM signals can be controlled to control RGB color change or color temperature mixing of the LED lamp, and the gradual change effect of the lamp light can be controlled by outputting different PWM duty ratios at different time. PWM control techniques are therefore a central part of the light control.
Due to the light emitting characteristics of LED lamps, the LED current is substantially constant or small when the LED dimming voltage is small, whereas when the LED voltage is in a critical range, the LED current varies greatly as long as there is little voltage variation. When writing the PWM dimming software code, the characteristics of the LED lamp are followed, so that the change of the LED lamp light looks soft and comfortable to human eyes. Conventional PWM control of LED lamps does not follow such lamp characteristics well. The traditional LED lamp PWM control method can only linearly adjust the duty ratio change of PWM according to the one-grid-by-one of a single chip microcomputer register, the linear change is not suitable for the characteristics of LED lamp light, the control method causes that the LED lamp has sudden change feeling of the lamp light at the time of pause when the dimming changes, and people look very steep and uncomfortable.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a dimming method which can control the PWM signal to be output in an exponential function according to the light characteristic, so that the light change seen by human eyes is soft and gentle.
The invention also provides a computer readable storage medium.
The invention further provides the LED lamp.
In a first aspect, an embodiment of the present invention provides a dimming method, including:
calculating dimming discrete data by utilizing a mutual conversion relation between a dimming linear function output by the single chip microcomputer and another exponential function, wherein the exponential function is determined according to the voltage and current characteristics of the LED;
and outputting a PWM signal according to the dimming discrete data to realize dimming.
The dimming method provided by the embodiment of the invention at least has the following beneficial effects: the PWM signal can be controlled to be output in an exponential function according to the light characteristics, so that the light change seen by human eyes is soft and gentle.
According to the dimming method of another embodiment of the present invention, the step of obtaining the discrete data by using a mutual conversion relationship between the dimming linear function and another exponential function output by the single chip microcomputer specifically includes:
calculating first discrete data according to a dimming linear function output by the single chip microcomputer;
calculating second discrete data according to the other exponential function;
and calculating the dimming discrete data by using the interconversion relationship of the first discrete data and the second discrete data.
According to the dimming method of the other embodiments of the present invention, the dimming linear function output by the single chip microcomputer is: and y is (x/11059) × 100%, x is the PWM duty cycle, and y is the output power.
According to further embodiments of the dimming method of the present invention, the exponential function is: y is 0.1e0.0138xX is the PWM duty cycle and y is the output power.
In a second aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the dimming method described above.
In a third aspect, an embodiment of the present invention provides an LED lamp, and the dimming method is adopted to adjust the light of the LED lamp.
Drawings
Fig. 1 is a schematic flow chart illustrating a dimming method according to an embodiment of the present invention;
FIG. 2 is a graph of a dimming line function according to the present invention;
FIG. 3 is a voltage current characteristic of an LED according to the present invention;
fig. 4 is a graph of an exponential function of the present invention.
Detailed Description
The concept and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments to fully understand the objects, features and effects of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and those skilled in the art can obtain other embodiments without inventive effort based on the embodiments of the present invention, and all embodiments are within the protection scope of the present invention.
In the description of the present invention, if an orientation description is referred to, for example, the orientations or positional relationships indicated by "upper", "lower", "front", "rear", "left", "right", etc. are based on the orientations or positional relationships shown in the drawings, only for convenience of describing the present invention and simplifying the description, but not for indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" to another feature, it can be directly disposed, secured, or connected to the other feature or indirectly disposed, secured, connected, or mounted to the other feature.
In the description of the embodiments of the present invention, if "a number" is referred to, it means one or more, if "a plurality" is referred to, it means two or more, if "greater than", "less than" or "more than" is referred to, it is understood that the number is not included, and if "greater than", "lower" or "inner" is referred to, it is understood that the number is included. If reference is made to "first" or "second", this should be understood to distinguish between features and not to indicate or imply relative importance or to implicitly indicate the number of indicated features or to implicitly indicate the precedence of the indicated features.
Example one
Referring to fig. 1, a flowchart of the dimming method in the present embodiment is shown. The method comprises the following steps:
s100, calculating dimming discrete data by utilizing a mutual conversion relation between a dimming linear function and another exponential function output by the single chip microcomputer;
and S200, outputting a PWM signal according to the dimming discrete data to realize dimming.
Firstly, the LED light can output the brightness intensity change from 0% to 100% by using the PWM signal output by the singlechip, and a table of PWM pulse width modulation is listed firstly as shown in Table 1. The table is presented as 14-bit binary data, which represents that the PWM pulse width duty ratio can be modulated up to 16384 (14 th power of 2) levels, and only discrete data of the PWM pulse width duty ratio and the output power of 11059 levels are listed in table 1 as the first discrete data. The data formula of the table follows a dimming straight line function y of (x/11059) × 100%, x representing the PWM duty cycle and y representing the output power.
TABLE 1 relationship of PWM duty cycle to output Power
Figure BDA0002348269870000031
Figure BDA0002348269870000041
The curve was plotted for y ═ 100% (x/11059), as shown in fig. 2.
Next, as shown in fig. 3, a voltage-current characteristic curve, i.e., a current-voltage characteristic curve, of the LED is shown. It can be seen from fig. 3 that the voltage and current of the LED lamp change in an exponential manner, so that the duty ratio of the PWM signal output by the single chip microcomputer changes in an exponential manner when the lamp light is adjusted by the PWM signal, and the lamp light adjustment is softer and gentler.
Taking an exponential function y similar to the LED light characteristic curve function as 0.1e0.0138xX is the PWM duty cycle and y is the output power. A graph of this exponential function is shown in fig. 4.
List index function y 0.1e0.0138xAs shown in table 2, the second discrete data is the discrete data of (2). In Table 2, x is an integer of 0 to 500.
TABLE 2 relationship of PWM duty cycle to output Power
Figure BDA0002348269870000051
Figure BDA0002348269870000061
Figure BDA0002348269870000071
Figure BDA0002348269870000081
In conjunction with tables 1 and 2, the values of both functions output power y are 0 to 100, so the equation can be established:
(x1/11059)*100%=0.1e0.0138x2
x1 is the PWM duty ratio of (x1/11059) × 100% for the dimming linear function y1, and x2 is the exponential function y2 ═ 0.1e0.0138x2PWM duty cycle of (d).
Since the output power y2 of the exponential function has been listed by table 2, a table of PWM duty ratio x1 versus output power y2 can be found from the above equation and the discrete data y2 in table 2, as shown in table 3. It should be noted here that, since the PWM duty ratio x1 output by the single chip microcomputer cannot be a decimal, the repeated x1 and the corresponding y2 values are discarded by rounding, and only 1 is left.
TABLE 3 relationship of PWM duty cycle to output Power
Figure BDA0002348269870000082
Figure BDA0002348269870000091
Figure BDA0002348269870000101
Figure BDA0002348269870000111
The data in table 3 is dimming discrete data. The dimming discrete data are stored in the single chip microcomputer, the single chip microcomputer can call the discrete data to perform dimming, and due to the data conversion, dimming is changed according to an exponential function, a voltage and current characteristic curve of the LED is well followed, so that light change seen by human eyes is soft and smooth.
It is understood that the exponential function selected in this embodiment may also be other exponential functions, and only a curve function similar to the voltage-current characteristic of the LED is required. Through the data conversion, the control process of the light gradual change can be completed.
Example two
The present embodiments provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a dimming method as described in embodiment one.
EXAMPLE III
The embodiment provides an LED lamp, and the dimming method as described in the first embodiment is adopted to adjust the light of the LED lamp.
For the dimming process, please refer to the description in the first embodiment, which is not repeated herein.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.

Claims (6)

1. A method of dimming, the method comprising the steps of:
calculating dimming discrete data by utilizing a mutual conversion relation between a dimming linear function output by the single chip microcomputer and another exponential function, wherein the exponential function is determined according to the voltage and current characteristics of the LED;
and outputting a PWM signal according to the dimming discrete data to realize dimming.
2. A dimming method according to claim 1, wherein the step of obtaining discrete data by using a mutual conversion relationship between a dimming linear function and another exponential function output by the single chip microcomputer specifically comprises:
calculating first discrete data according to a dimming linear function output by the single chip microcomputer;
calculating second discrete data according to the other exponential function;
and calculating the dimming discrete data by using the interconversion relationship of the first discrete data and the second discrete data.
3. A dimming method according to claim 2, wherein the dimming linear function output by the single chip microcomputer is: and y is (x/11059) × 100%, x is the PWM duty cycle, and y is the output power.
4. A dimming method as claimed in claim 3, wherein the exponential function is: y is 0.1e0.0138xX is the PWM duty cycle and y is the output power.
5. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the dimming method according to any one of claims 1 to 4.
6. An LED lamp, characterized in that the dimming method of any one of claims 1 to 4 is adopted to adjust the light of the LED lamp.
CN201911404513.8A 2019-12-31 2019-12-31 Dimming method, readable storage medium and LED lamp Active CN110996432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911404513.8A CN110996432B (en) 2019-12-31 2019-12-31 Dimming method, readable storage medium and LED lamp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911404513.8A CN110996432B (en) 2019-12-31 2019-12-31 Dimming method, readable storage medium and LED lamp

Publications (2)

Publication Number Publication Date
CN110996432A true CN110996432A (en) 2020-04-10
CN110996432B CN110996432B (en) 2021-10-08

Family

ID=70079423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911404513.8A Active CN110996432B (en) 2019-12-31 2019-12-31 Dimming method, readable storage medium and LED lamp

Country Status (1)

Country Link
CN (1) CN110996432B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01250766A (en) * 1988-03-31 1989-10-05 Toshiba Corp Signal level output circuit
EP1659830A1 (en) * 2004-11-23 2006-05-24 Dialog Semiconductor GmbH Combined exponential/linear RGB LED I-sink digital-to-analog converter
CN102131333A (en) * 2011-04-28 2011-07-20 浙江晶日照明科技有限公司 Dimming method of light emitting diode (LED)
EP2473011A1 (en) * 2010-12-29 2012-07-04 Rohm Co., Ltd. Method and apparatus for dimming a light source
US20130113841A1 (en) * 2011-11-08 2013-05-09 Ds Electron Co., Ltd. Backlight unit and display device including the same
CN103582218A (en) * 2012-07-31 2014-02-12 西安展芯微电子技术有限公司 LED drive circuit having index-correction and dimming functions
CN203722873U (en) * 2013-12-31 2014-07-16 广东科谷电源有限公司 Light-regulating and color-temperature-regulating LED drive circuit
CN204217168U (en) * 2014-09-15 2015-03-18 上海俪德照明科技股份有限公司 LED single hop constant-current dimming drive circuit
CN105163418A (en) * 2015-07-01 2015-12-16 深圳天珑无线科技有限公司 Linear light adjustment method and device
CN105491734A (en) * 2014-09-15 2016-04-13 上海俪德照明科技股份有限公司 LED single-segment constant-current light-modulation drive circuit and method
CN109379804A (en) * 2018-10-15 2019-02-22 广东宝莱特医用科技股份有限公司 A kind of LED light light adjusting system and light-dimming method
CN109640464A (en) * 2019-02-27 2019-04-16 上海客益电子有限公司 A kind of pwm signal duty ratio control method and corresponding circuit and LED light

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01250766A (en) * 1988-03-31 1989-10-05 Toshiba Corp Signal level output circuit
EP1659830A1 (en) * 2004-11-23 2006-05-24 Dialog Semiconductor GmbH Combined exponential/linear RGB LED I-sink digital-to-analog converter
EP2473011A1 (en) * 2010-12-29 2012-07-04 Rohm Co., Ltd. Method and apparatus for dimming a light source
CN102131333A (en) * 2011-04-28 2011-07-20 浙江晶日照明科技有限公司 Dimming method of light emitting diode (LED)
US20130113841A1 (en) * 2011-11-08 2013-05-09 Ds Electron Co., Ltd. Backlight unit and display device including the same
CN103582218A (en) * 2012-07-31 2014-02-12 西安展芯微电子技术有限公司 LED drive circuit having index-correction and dimming functions
CN203722873U (en) * 2013-12-31 2014-07-16 广东科谷电源有限公司 Light-regulating and color-temperature-regulating LED drive circuit
CN204217168U (en) * 2014-09-15 2015-03-18 上海俪德照明科技股份有限公司 LED single hop constant-current dimming drive circuit
CN105491734A (en) * 2014-09-15 2016-04-13 上海俪德照明科技股份有限公司 LED single-segment constant-current light-modulation drive circuit and method
CN105163418A (en) * 2015-07-01 2015-12-16 深圳天珑无线科技有限公司 Linear light adjustment method and device
CN109379804A (en) * 2018-10-15 2019-02-22 广东宝莱特医用科技股份有限公司 A kind of LED light light adjusting system and light-dimming method
CN109640464A (en) * 2019-02-27 2019-04-16 上海客益电子有限公司 A kind of pwm signal duty ratio control method and corresponding circuit and LED light

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘欢: "基于视觉舒适度LED背光亮度自适应控制系统研究", 《万方学位论文数据库》 *

Also Published As

Publication number Publication date
CN110996432B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US9253849B2 (en) LED lighting device with incandescent lamp color temperature behavior
US8400071B2 (en) LED lamp power management system and method
CN101151942A (en) Lighting unit
EP3446546A1 (en) A method of controlling a lighting arrangement, a lighting control circuit and a lighting system
US20110241552A1 (en) Method for maximizing the performance of a luminaire
JP2010176986A (en) Color temperature variable lighting system and controller used in same
JP5406542B2 (en) Lighting device
JP2011009078A (en) Lighting system
JP2011171006A (en) Lighting system
JP2010176985A (en) Lighting system
US11259377B2 (en) Color temperature and intensity configurable lighting fixture using de-saturated color LEDs
CN105007647A (en) Driving method and circuit of intelligent control lighting appliance
EP2911475A1 (en) PDM modulation of LED current
CN110996432B (en) Dimming method, readable storage medium and LED lamp
US20170041992A1 (en) Light source driving device and dimming/toning control method
US10645781B1 (en) High-voltage linear drive and memory dimming LED lighting device
CN216391471U (en) Circuit for adjusting duty ratio of signal and LED lamp
JP2011113794A (en) Led lighting apparatus and illuminating device
TWI605437B (en) Backlight module
EP3076758B1 (en) Turn on optimization
EP2538754B1 (en) Illumination apparatus
WO2019120230A1 (en) Red light compensation method and device for rgb lamp and rgb lamp
JP5807208B2 (en) Color temperature variable lighting device
JP5663055B2 (en) Lighting device and lighting device
CN213462406U (en) Analog dimming circuit for LED driving chip

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