CN107027214B - A kind of lamp power automatic correcting method - Google Patents
A kind of lamp power automatic correcting method Download PDFInfo
- Publication number
- CN107027214B CN107027214B CN201710142296.4A CN201710142296A CN107027214B CN 107027214 B CN107027214 B CN 107027214B CN 201710142296 A CN201710142296 A CN 201710142296A CN 107027214 B CN107027214 B CN 107027214B
- Authority
- CN
- China
- Prior art keywords
- value
- point
- data
- led
- temp
- 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.)
- Active
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
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a kind of lamp power automatic correcting methods, comprising: initialization system, and parameter is set;The effective average value of ambient brightness is calculated, and exports the control of PWM [n] value and lights LED;LED luminance, voltage and current are sampled and collected respectively, and calculates its virtual value, obtains sampling LED luminance virtual value, sampled voltage virtual value and current sample virtual value, and then performance number is calculated;Compared according to LED luminance, to carry out capability correction.The present invention all detects lamp brightness, voltage and current after in real time, and automatically adjusts current correction power to realize that brightness remains unchanged, and prolongs the service life.And present invention detection, except the normal real-time sampling data that rejects, calculating effective average value using algorithm ensures the validity of sampled data, and the accuracy for ensuring data can be effectively improved by being compared by the calculating of environment light and total brightness.It the composite can be widely applied in LED technology field.
Description
Technical field
The present invention relates to LED technology field more particularly to a kind of lamp power automatic correcting methods.
Background technique
The rapid development of LED technology in recent years, some light sources can accomplish 150lm/W or more, but in terms of light decay still
In the presence of, and the light decay rate of different producers or different styles is also different.Some lamps and lanterns are upper without more preferably solving light in application
Decline problem, makes light decay increasingly severe instead.Increase with using the time to extend light decay amount, darkness deepens shortens for lamp brightness
Service life, the serious use for influencing people.With reference to the star LM-80 standard of american energy, 6000H luminous flux sustainment rate >=
94.1%, 50000H luminous flux sustainment rate >=70%.So the brightness of lamps and lanterns is maintained just to become most important.
Existing usual way is as follows: 1. tabilized current power supplies;2. time control tabilized current power supply;3. increasing NTC thermistor to pass
Sensor;4. increasing fan or high heat sink material;5. reducing light source uses power;Although above method can reduce the light decay of LED
Rate extends the service life.But cause brightness to decline without solving light decay, it is same not realize that brightness maintenance is not spent.
It selects tabilized current power supply and time control tabilized current power supply to adjust electric current, is carried out manually or automatically according to the light decay amount of LED
Adjusting, which makes up brightness, to be made to reach consistency, but precision is inadequate, complicated for operation, at high cost, low efficiency.Increased by lamp interior
NTC thermistor sensor, fan or high heat sink material and reduction light source are provided to control and reduce the work of LED using power
Make temperature and reduce light decay rate, but is at high cost and be finally not carried out brightness and remain unchanged and extend the service life.To watertight light fitting inside
For sealing structure air not convection current, therefore it is very worthless for increasing fan.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of energy automatic power adjustment, maintain lamps and lanterns bright
Spend a kind of constant lamp power automatic correcting method.
The technical solution used in the present invention is:
A kind of lamp power automatic correcting method, comprising the following steps:
A, system is initialized, and parameter is set;
B, the effective average value SEM of ambient brightness is calculated, and exports the control of PWM [n] value and lights LED;
C, LED luminance, voltage and current are sampled and is collected respectively, and calculate its virtual value, it is bright to obtain sampling LED
Virtual value, sampled voltage virtual value and current sample virtual value are spent, and then performance number is calculated;
D, compared according to LED luminance, to carry out capability correction.
As a kind of further improvement of lamp power automatic correcting method, the step A includes:
Be delayed waiting system the operation is stable;
Initialize installation predetermined luminance value SLMp, default input voltage value VinpWith electric current and PWM value corresponding data table;
Read PWM [n] value.
As a kind of further improvement of lamp power automatic correcting method, the step B includes:
According to sampled data, calling filters out sampling bad point algorithm, obtains bad point and noise spot position BDd[n] and quantity
BDdnumber;
It calls and calculates x effective average algorithm of n point, to GD(GD=n-BDdnumber) a effective environment optical sensor carries out
Data sampling simultaneously calculates the effective average value SEM of ambient brightness;
LED is lighted in output PWM [n] value control.
As a kind of further improvement of lamp power automatic correcting method, the step C includes:
It calls and calculates x effective average algorithm of n point, carrying out data sampling calculating to GD effective environment optical sensor has
Effect average value simultaneously exports the effective average value SELM of total brightness, and calculates LED intrinsic brilliance SLM=SELM-SEM in turn to get arriving
Sample LED luminance virtual value;
X voltage data VD of n points of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point x
Secondary effective average voltage VDs[iv], and judge whether to meet VDs[iv]=0 or VDs[iv] > Vinp, if so, judging that LED is
Short circuit or open circuit, and record position BDs[iv], quantity BDsnWith effective voltage value summation SVDs, and then calculate cumulative effective voltage
It is worth summation SVDs=SVDs+VDs[iv] to get arrive sampled voltage virtual value;
N point x primary current data ID of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point
X effective average current data IDs[ii] to get arrive current sample virtual value;
Circulation removal bad point, then accumulation calculating power SPs=SPs+VDs[ip]*IDs[ip], obtain performance number.
As a kind of further improvement of lamp power automatic correcting method, the step D includes:
According to the power SP of lamps and lanternssWith LED intrinsic brilliance SLM, every watt of luminous flux LM is calculatedw=SPs/SLM;
Calculate predetermined luminance SLMpWith the luminance difference of lamps and lanterns intrinsic brilliance SLM: DLMtemp=|SLM-SLMp|;
According to luminance difference DLMtempWith every watt of luminous flux LMw, calculate corrected power value SPCp=DLMtemp/LMw;
According to corrected power value SPCp, effective voltage value summation SVDs, effective voltage point quantity (n-BDsn) and original electric current
The newest each loop current value ID of correction is calculated in values[ii]=SPCp/SVDs/(n-BDsn)+IDs[ii];
Each loop current value ID is corrected according to newests[ii], inquiry electric current and PWM value corresponding data table export PWM
[n] adjusts LED current and automatically correct power, and and return to step C and carry out resampling detection correction, until working as
SLM=SLMp, then record automatically corrects performance number increase data point and regenerates power graph and storage power value, curve graph
With PWM [n] value.
It is described to filter out sampling bad point algorithm as a kind of further improvement of lamp power automatic correcting method,
It specifically includes:
PWM [n] value is exported, and lights LED predetermined luminance SVpAs sampled data reference value;
The data D that sampling is n point x timess[x] [n] >=0, wherein x > 2, n > 2, input the screening ratio PV of screening conditionsb%,
Then LED is closed in output PWM [n]=0;
The position data BD of initializing variable removing bad point and noise spotd[n]=0 and quantity BDdnumber=0;
It recycles and summation S is carried out to n point x times datatemp=Stemp+Ds[j] [i], and judge each point x times average value
StempThe screening ratio SV of/x and predetermined luminancep*PVb% is compared, if Stemp/ x < SVp*PVb%, then explanation is bad point and does
Disturb the position BD for a little recording the pointd[n]=1 and quantity BDdnumber=BDdnumber+1;Conversely, then recording the position BD of the pointd[n]
=0;Until all dot cycles finish;Wherein, i and j is integer, and 0≤i < n, 0≤j < x;
Export the position BD of bad point and noise spotd[n] and quantity BDdnumber。
As a kind of further improvement of lamp power automatic correcting method, the effective average algorithm of single-point,
It is specifically included:
Input sample x times data Ds[x], screening conditions HLV upper limit value and LLV upper limit value;
Initializing variable exports average value VsampleWith interim summing value Stemp, the interim point value D of meter recordstemp[x];
It recycles and the value that x data of sampling are more than Lower Limit Amplitude LLV and upper limit magnitude HLV is filtered out, take virtual value simultaneously
Record virtual value quantity k;
Circulation carries out summation to k virtual value and finds out maximum value D compared withsmaxWith minimum value Dsmin, remove maximin
Average Vsample=(Stemp-Dsmax-Dsmin)/(k-2) and export.
As a kind of further improvement of lamp power automatic correcting method, the n point x times effective average value is calculated
Method specifically includes:
Sample x data D of n points[x] [n], wherein x > 2, n > 2, input predetermined luminance SVpWith predetermined luminance value percentage
PVm%;
Initializing variable exports average value SVE, n available point array SDsm[n], bad point mark array Dd[n], bad point mark
Remember number NDd, invalid reference numerals group Dt[n] records maximum value SDsmmaxWith minimum value SDsmmin;
According to preset sampling screening conditions, the sampled data of bad point and invalid time is got rid of;
K data of record simultaneously carry out summation Stemp=Stemp+Ds[i] [j], will be unsatisfactory for | SVp-Stemp/ k| < SVp*PVm%
Data filtered out, and calculate the average value SD of m virtual value k data of pointsm[m]=Stemp/k;
Circulation is summed and is compared to the m effective average value of point and finds out maximum value and minimum value, removal maximum value and most
Average value SVE=(S is calculated after small valuetemp-SDsmmax-SDsmmin)/(m-2) and export.
The beneficial effects of the present invention are:
A kind of lamp power automatic correcting method of the present invention, which passes through, in real time detects lamp brightness, voltage and current, and automatic
Current correction power is adjusted to realize that brightness remains unchanged, is prolonged the service life.And present invention detection is often real-time except rejecting
Sampled data, calculating effective average value using algorithm ensures the validity of sampled data, passes through the calculating of environment light and total brightness
Compare the accuracy for ensuring data, and carries out automatically correcting power curve in conjunction with LED operation voltage and current and be maintained using brightness
It is constant, precision is high, it is flexible and convenient to use do not need manual operation, can effectively extend the service life of lamps and lanterns.
Detailed description of the invention
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
Fig. 1 is a kind of step flow chart of lamp power automatic correcting method of the present invention;
Fig. 2 is a kind of step flow chart of lamp power automatic correcting method step A of the present invention;
Fig. 3 is a kind of step flow chart of lamp power automatic correcting method step B of the present invention;
Fig. 4 is a kind of step flow chart of lamp power automatic correcting method step D of the present invention.
Specific embodiment
A kind of lamp power automatic correcting method, comprising the following steps:
A, system is initialized, and parameter is set;
B, the effective average value SEM of ambient brightness is calculated, and exports the control of PWM [n] value and lights LED;
C, LED luminance, voltage and current are sampled and is collected respectively, and calculate its virtual value, it is bright to obtain sampling LED
Virtual value, sampled voltage virtual value and current sample virtual value are spent, and then performance number is calculated;
D, compared according to LED luminance, to carry out capability correction.
With reference to Fig. 2, it is further used as preferred embodiment, the step A includes:
Be delayed waiting system the operation is stable;
Initialize installation predetermined luminance value SLMp, default input voltage value VinpWith electric current and PWM value corresponding data table;
Read PWM [n] value.
With reference to Fig. 3, it is further used as preferred embodiment, the step B includes:
According to sampled data, calling filters out sampling bad point algorithm, obtains bad point and noise spot position BDd[n] and quantity
BDdnumber;
It calls and calculates x effective average algorithm of n point, to GD(GD=n-BDdnumber) a effective environment optical sensor carries out
Data sampling simultaneously calculates the effective average value SEM of ambient brightness;
LED is lighted in output PWM [n] value control.
It is further used as preferred embodiment, the step C includes:
It calls and calculates x effective average algorithm of n point, carrying out data sampling calculating to GD effective environment optical sensor has
Effect average value simultaneously exports the effective average value SELM of total brightness, and calculates LED intrinsic brilliance SLM=SELM-SEM in turn to get arriving
Sample LED luminance virtual value;
X voltage data VD of n points of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point x
Secondary effective average voltage VDs[iv], and judge whether to meet VDs[iv]=0 or VDs[iv] > Vinp, if so, judging that LED is
Short circuit or open circuit, and record position BDs[iv], quantity BDsnWith effective voltage value summation SVDs, and then calculate cumulative effective voltage
It is worth summation SVDs=SVDs+VDs[iv] to get arrive sampled voltage virtual value;
N point x primary current data ID of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point
X effective average current data IDs[ii] to get arrive current sample virtual value;
Circulation removal bad point, then accumulation calculating power SPs=SPs+VDs[ip]*IDs[ip], obtain performance number.
With reference to Fig. 4, it is further used as preferred embodiment, the step D includes:
According to the power SP of lamps and lanternssWith LED intrinsic brilliance SLM, every watt of luminous flux LM is calculatedw=SPs/SLM;
Calculate predetermined luminance SLMpWith the luminance difference of lamps and lanterns intrinsic brilliance SLM: DLMtemp=|SLM-SLMp|;
According to luminance difference DLMtempWith every watt of luminous flux LMw, calculate corrected power value SPCp=DLMtemp/LMw;
According to corrected power value SPCp, effective voltage value summation SVDs, effective voltage point quantity (n-BDsn) and original electric current
The newest each loop current value ID of correction is calculated in values[ii]=SPCp/SVDs/(n-BDsn)+IDs[ii];
Each loop current value ID is corrected according to newests[ii], inquiry electric current and PWM value corresponding data table export PWM
[n] adjusts LED current and automatically correct power, and and return to step C and carry out resampling detection correction, until working as
SLM=SLMp, then record automatically corrects performance number increase data point and regenerates power graph and storage power value, curve graph
With PWM [n] value.
It is further used as preferred embodiment, it is described to filter out sampling bad point algorithm, it specifically includes:
PWM [n] value is exported, and lights LED predetermined luminance SVpAs sampled data reference value;
The data D that sampling is n point x timess[x] [n] >=0, wherein x > 2, n > 2, input the screening ratio PV of screening conditionsb%,
Then LED is closed in output PWM [n]=0;
The position data BD of initializing variable removing bad point and noise spotd[n]=0 and quantity BDdnumber=0;
It recycles and summation S is carried out to n point x times datatemp=Stemp+Ds[j] [i], and judge each point x times average value
StempThe screening ratio SV of/x and predetermined luminancep*PVb% is compared, if Stemp/ x < SVp*PVb%, then explanation is bad point and does
Disturb the position BD for a little recording the pointd[n]=1 and quantity BDdnumber=BDdnumber+1;Conversely, then recording the position BD of the pointd[n]
=0;Until all dot cycles finish;Wherein, i and j is integer, and 0≤i < n, 0≤j < x;
Export the position BD of bad point and noise spotd[n] and quantity BDdnumber。
It is further used as preferred embodiment, the effective average algorithm of single-point specifically includes:
Input sample x times data Ds[x], screening conditions HLV upper limit value and LLV upper limit value;
Initializing variable exports average value VsampleWith interim summing value Stemp, the interim point value D of meter recordstemp[x];
It recycles and the value that x data of sampling are more than Lower Limit Amplitude LLV and upper limit magnitude HLV is filtered out, take virtual value simultaneously
Record virtual value quantity k;
Circulation carries out summation to k virtual value and finds out maximum value D compared withsmaxWith minimum value Dsmin, remove maximin
Average Vsample=(Stemp-Dsmax-Dsmin)/(k-2) and export.
It is further used as preferred embodiment, described x effective average algorithm of n point specifically includes:
Sample x data D of n points[x] [n], wherein x > 2, n > 2, input predetermined luminance SVpWith predetermined luminance value percentage
PVm%;
Initializing variable exports average value SVE, n available point array SDsm[n], bad point mark array Dd[n], bad point mark
Remember number NDd, invalid reference numerals group Dt[n] records maximum value SDsmmaxWith minimum value SDsmmin;
According to preset sampling screening conditions, the sampled data of bad point and invalid time is got rid of;
K data of record simultaneously carry out summation Stemp=Stemp+Ds[i] [j], will be unsatisfactory for | SVp-Stemp/ k| < SVp*PVm%
Data filtered out, and calculate the average value SD of m virtual value k data of pointsm[m]=Stemp/k;
Circulation is summed and is compared to the m effective average value of point and finds out maximum value and minimum value, removal maximum value and most
Average value SVE=(S is calculated after small valuetemp-SDsmmax-SDsmmin)/(m-2) and export.
Specific embodiments of the present invention are as follows:
S01, beginning, be delayed waiting system the operation is stable;
S02, initialization system, register, I2C, ADC, variable, predetermined luminance value SLMp preset input voltage value Vinp,
The initialization definitions and assignment of the parameters such as electric current and PWM value corresponding data table;
S03, PWM [n] and performance number before the last time shutdown that EEPROM is saved are read, as error is re-read and exports PWM
[n] lights n paths of LEDs, and opening timing device interrupts and starts the accumulation calculating LED lamp working time, reads again when error is inconsistent
It takes, so that it is guaranteed that the accuracy of data;
S04, according to sampled data, calling filters out sampling bad point algorithm, obtains bad point and noise spot position BDd[n] sum number
Measure BDdnumber;
S05, calculating x effective average algorithm of n point is called, to GD(GD=n-BDdnumber) a effective environment optical sensor
It carries out data sampling and calculates the effective average value SEM of ambient brightness;
LED is lighted in S06, output PWM [n] value control;
S07, LED luminance, voltage and current are sampled and is collected respectively, and calculate its virtual value, obtain sampling LED
Brightness virtual value, sampled voltage virtual value and current sample virtual value, and then performance number is calculated;
It calls and calculates x effective average algorithm of n point, carrying out data sampling calculating to GD effective environment optical sensor has
Effect average value simultaneously exports the effective average value SELM of total brightness, and calculates LED intrinsic brilliance SLM=SELM-SEM in turn to get arriving
Sample LED luminance virtual value;
X voltage data VD of n points of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point x
Secondary effective average voltage VDs[iv], and judge whether to meet VDs[iv]=0 or VDs[iv] > Vinp, if so, judging that LED is
Short circuit or open circuit, and record position BDs[iv], quantity BDsnWith effective voltage value summation SVDs, and then calculate cumulative effective voltage
It is worth summation SVDs=SVDs+VDs[iv] to get arrive sampled voltage virtual value;
N point x primary current data ID of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point
X effective average current data IDs[ii] to get arrive current sample virtual value;
Circulation removal bad point, then accumulation calculating power SPs=SPs+VDs[ip]*IDs[ip], obtain performance number;
S08, the power SP according to lamps and lanternssWith LED intrinsic brilliance SLM, every watt of luminous flux LM is calculatedw=SPs/SLM;
S09, predetermined luminance SLM is calculatedpWith the luminance difference of lamps and lanterns intrinsic brilliance SLM: DLMtemp=|SLM-SLMp|;
S10, according to luminance difference DLMtempWith every watt of luminous flux LMw, calculate corrected power value SPCp=DLMtemp/LMw;
S11, according to corrected power value SPCp, effective voltage value summation SVDs, effective voltage point quantity (n-BDsn) and it is original
The newest each loop current value ID of correction is calculated in current values[ii]=SPCp/SVDs/(n-BDsn)+IDs[ii];
S12, each loop current value ID is corrected according to newests[ii], inquiry electric current and PWM value corresponding data table export
PWM [n] adjusts LED current and automatically correct power, and and return to step C and carry out resampling detection correction, until
As SLM=SLMp, then record automatically corrects performance number increase data point and regenerates power graph and storage power value, curve
Figure and PWM [n] value.
From the foregoing it can be that a kind of lamp power automatic correcting method of the present invention by real time to lamp brightness, voltage and
Current detecting, and current correction power is automatically adjusted to realize that brightness remains unchanged, prolong the service life.And the present invention examines
It surveys except the normal real-time sampling data that rejects, calculating effective average value using algorithm ensures the validity of sampled data, passes through environment light
The accuracy for ensuring data is compared in calculating with total brightness, and carries out automatically correcting power song in conjunction with LED operation voltage and current
Line remained unchanged using brightness, precision is high, it is flexible and convenient to use do not need manual operation, can effectively extend lamps and lanterns uses the longevity
Life.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.
Claims (7)
1. a kind of lamp power automatic correcting method, which comprises the following steps:
A, system is initialized, and parameter is set;
B, the effective average value SEM of ambient brightness is calculated, and exports the control of PWM [n] value and lights LED;
C, LED luminance, voltage and current are sampled and is collected respectively, and calculate its virtual value, obtaining sampling LED luminance has
Valid value, sampled voltage virtual value and current sample virtual value, and then performance number is calculated;
D, compared according to LED luminance, to carry out capability correction;
Wherein, n indicates the serial number of LED, and PWM [n] indicates the corresponding PWM value of n-th of LED;
The step D includes:
According to the power SP of lamps and lanternssWith LED intrinsic brilliance SLM, every watt of luminous flux LM is calculatedw=SPs/SLM;
Calculate predetermined luminance SLMpWith the luminance difference of lamps and lanterns intrinsic brilliance SLM: DLMtemp=| SLM-SLMp|;
According to luminance difference DLMtempWith every watt of luminous flux LMw, calculate corrected power value SPCp=DLMtemp/LMw;
According to corrected power value SPCp, effective voltage value summation SVDs, effective voltage point quantity (n-BDsn) and original current value, meter
Calculation obtains the newest each loop current value ID of corrections[ii]=SPCp/SVDs/(n-BDsn)+IDs[ii];
Each loop current value ID is corrected according to newests[ii], inquiry electric current and PWM value corresponding data table output PWM [n] are adjusted
Section LED current automatically correct power, and and return to step C and carry out resampling detection correction, until working as SLM=
SLMp, then record automatically corrects performance number increase data point and regenerates power graph and storage power value, curve graph and PWM
[n] value.
2. a kind of lamp power automatic correcting method according to claim 1, it is characterised in that: the step A includes:
Be delayed waiting system the operation is stable;
Initialize installation predetermined luminance value SLMp, default input voltage value VinpWith electric current and PWM value corresponding data table;
Read PWM [n] value.
3. a kind of lamp power automatic correcting method according to claim 1, it is characterised in that: the step B includes:
According to sampled data, calling filters out sampling bad point algorithm, obtains bad point and noise spot position BDd[n] and quantity BDdnumber;
It calls and calculates x effective average algorithm of n point, data sampling is carried out to GD effective environment optical sensor and calculate environment
The effective average value SEM of brightness, wherein GD=n-BDdnumber;
LED is lighted in output PWM [n] value control.
4. a kind of lamp power automatic correcting method according to claim 3, it is characterised in that: the step C includes:
It calls and calculates x effective average algorithm of n point, carrying out data sampling calculating brightness to GD effective environment optical sensor has
Effect average value simultaneously exports the effective average value SELM of total brightness, and calculates LED intrinsic brilliance SLM=SELM-SEM in turn to get arriving
Sample LED luminance virtual value;
X voltage data VD of n points of circulating samplings[x], calling to calculate the effective average algorithm of single-point and calculate each point x time has
Imitate average voltage VDs[iv], and judge whether to meet VDs[iv]=0 or VDs[iv] > Vinp, if so, judging that LED is short circuit
Or open circuit, and record position BDs[iv], quantity BDsnWith effective voltage value summation SVDs, and then it is total to calculate cumulative effective voltage value
And SVDs=SVDs+VDs[iv] to get arrive sampled voltage virtual value;
N point x primary current data ID of circulating samplings[x] calls the calculating effective average algorithm of single-point to calculate each point x times
Effective average current data IDs[ii] to get arrive current sample virtual value;
Circulation removal bad point, then accumulation calculating power SPs=SPs+VDs[ip]*IDs[ip], obtain performance number.
5. a kind of lamp power automatic correcting method according to claim 3, it is characterised in that: the sampling bad point that filters out is calculated
Method specifically includes:
PWM [n] value is exported, and lights LED predetermined luminance SVpAs sampled data reference value;
The data D that sampling is n point x timess[x] [n] >=0, wherein x > 2, n > 2, input the screening ratio PV of screening conditionsb%, then
It exports PWM [n]=0 and closes LED;
The position data BD of initializing variable removing bad point and noise spotd[n]=0 and quantity BDdnumber=0;
It recycles and summation S is carried out to n point x times datatemp=Stemp+Ds[j] [i], and judge each point x times average value Stemp/x
With the screening ratio SV of predetermined luminancep*PVb% is compared, if Stemp/ x < SVp*PVb%, then explanation is bad point and noise spot,
Record the position BD of the pointd[n]=1 and quantity BDdnumber=BDdnumber+1;Conversely, then recording the position BD of the pointd[n]=
0;Until all dot cycles finish;Wherein, i and j is integer, and 0≤i < n, 0≤j < x;
Export the position BD of bad point and noise spotd[n] and quantity BDdnumber。
6. a kind of lamp power automatic correcting method according to claim 4, it is characterised in that:
The effective average algorithm of single-point, specifically includes:
Input sample x times data Ds[x], screening conditions HLV upper limit value and LLV upper limit value;
Initializing variable exports average value VsampleWith interim summing value Stemp, the interim point value D of meter recordstemp[x];
It recycles and the value that x data of sampling are more than Lower Limit Amplitude LLV and upper limit magnitude HLV is filtered out, take virtual value and record
Virtual value quantity k;
Circulation carries out summation to k virtual value and finds out maximum value D compared withsmaxWith minimum value Dsmin, remove maximin and ask flat
Mean value Vsample=(Stemp-Dsmax-Dsmin)/(k-2) and export.
7. a kind of lamp power automatic correcting method according to claim 3, it is characterised in that: the n point x times effectively average
Value-based algorithm specifically includes:
Sample x data D of n points[x] [n], wherein x > 2, n > 2, input predetermined luminance SVpWith predetermined luminance value percentage
PVm%;
Initializing variable exports average value SVE, n available point array SDsm[n], bad point mark array Dd[n], bad point label
Number NDd, invalid reference numerals group Dt[n] records maximum value SDsmmaxWith minimum value SDsmmin;
According to preset sampling screening conditions, the sampled data of bad point and invalid time is got rid of;K data of record are simultaneously summed
Stemp=Stemp+Ds[i] [j], will be unsatisfactory for | SVp-Stemp/ k | < SVp*PVmThe data of % are filtered out, and calculate m effectively
It is worth the average value SD of k data of pointsm[m]=Stemp/k;
Circulation, which is summed and compared to the m effective average value of point, finds out maximum value and minimum value, removes maximum value and minimum value
Average value SVE=(S is calculated afterwardstemp-SDsmmax-SDsmmin)/(m-2) and export.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710142296.4A CN107027214B (en) | 2017-03-10 | 2017-03-10 | A kind of lamp power automatic correcting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710142296.4A CN107027214B (en) | 2017-03-10 | 2017-03-10 | A kind of lamp power automatic correcting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107027214A CN107027214A (en) | 2017-08-08 |
CN107027214B true CN107027214B (en) | 2019-09-27 |
Family
ID=59525664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710142296.4A Active CN107027214B (en) | 2017-03-10 | 2017-03-10 | A kind of lamp power automatic correcting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107027214B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112884681B (en) * | 2021-04-28 | 2021-09-17 | 卡莱特云科技股份有限公司 | Image shadow processing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102644891A (en) * | 2012-04-12 | 2012-08-22 | 华南理工大学 | High-power LED (light-emitting diode) street lamp and control method thereof |
CN104640307A (en) * | 2013-11-11 | 2015-05-20 | 三星电机株式会社 | LED controlling device |
CN104768280A (en) * | 2015-01-22 | 2015-07-08 | 浙江凯耀照明股份有限公司 | Color temperature compensation method for LED lamp |
CN106028531A (en) * | 2016-06-30 | 2016-10-12 | 广州市浩洋电子有限公司 | Adaptive control system and control method for temperature of LED stage lamp |
CN106332416A (en) * | 2016-08-26 | 2017-01-11 | 福建新大陆电脑股份有限公司 | Self-adaptive illumination control method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5537286B2 (en) * | 2010-06-28 | 2014-07-02 | パナソニック株式会社 | LED lighting device |
-
2017
- 2017-03-10 CN CN201710142296.4A patent/CN107027214B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102644891A (en) * | 2012-04-12 | 2012-08-22 | 华南理工大学 | High-power LED (light-emitting diode) street lamp and control method thereof |
CN104640307A (en) * | 2013-11-11 | 2015-05-20 | 三星电机株式会社 | LED controlling device |
CN104768280A (en) * | 2015-01-22 | 2015-07-08 | 浙江凯耀照明股份有限公司 | Color temperature compensation method for LED lamp |
CN106028531A (en) * | 2016-06-30 | 2016-10-12 | 广州市浩洋电子有限公司 | Adaptive control system and control method for temperature of LED stage lamp |
CN106332416A (en) * | 2016-08-26 | 2017-01-11 | 福建新大陆电脑股份有限公司 | Self-adaptive illumination control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107027214A (en) | 2017-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107027213B (en) | A kind of intelligence constant luminance output control method | |
CN106375645B (en) | A kind of adaptive control system based on infrared eye | |
CN102118608A (en) | System and method for adjusting video monitoring light | |
CN106793329B (en) | A kind of automatic light-supplementing method based on RGBW | |
CN101267505B (en) | An exposure time adjusting method, device and a camera | |
CN102362553A (en) | Power supply for light emitting diode roadway lighting fixture | |
CN107027214B (en) | A kind of lamp power automatic correcting method | |
CN109319639A (en) | Lift car parameter control method, device and system | |
WO2020000793A1 (en) | Crystalline silicon photovoltaic solar cell electric injection annealing test device and method | |
CN103051804A (en) | Intelligent photo taking method and system of mobile terminal | |
CN108600649A (en) | A kind of Intelligent House Light brightness acquisition and control method | |
CN109890113A (en) | Sensitive control device and without stroboscopic sensitive illuminance lamps and lanterns and photosensitive method | |
CN106094198A (en) | A kind of intelligence color selector optical system self-adapting correction method and device | |
CN105491763A (en) | Intelligent home lighting energy-saving information sharing method | |
CN203162644U (en) | LED intelligent lighting device | |
CN116723600A (en) | LED illumination output control method and system | |
CN208609242U (en) | Anti-interference adaptive street light modulating system | |
CN112188684B (en) | Constant-current LED driving circuit, device and driving method thereof | |
CN108650455A (en) | A kind of Intelligent House Light data collection station | |
CN207410557U (en) | LED drive power power control circuit | |
CN207440508U (en) | Optical projection system based on cloud teaching platform | |
CN205584864U (en) | Greenhouse artificial lighting automatic regulating apparatus | |
CN106550515A (en) | A kind of intelligent dimming ager and light modulation shading process | |
CN104955243A (en) | Threshold value comparison circuit for energy-saving control of lamp light | |
CN105472850A (en) | Distributed lamplight intelligent control equipment |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190822 Address after: 528222 No. 20 No. 2 Pioneering Road, Yundonghai Street, Sanshui District, Foshan City, Guangdong Province Applicant after: Guangdong Younik Intelligent Lighting Technology Co., Ltd. Address before: 510660 Guangdong Province, Guangzhou Tianhe Industrial Park Building Road No. 64-66 Jiadu business building 2 floor East Tower 204 two Applicant before: Guangdong Delos Lighting Industrial Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |