CN114867167A - Automatic brightness adjusting method for infrared light source - Google Patents
Automatic brightness adjusting method for infrared light source Download PDFInfo
- Publication number
- CN114867167A CN114867167A CN202210570480.XA CN202210570480A CN114867167A CN 114867167 A CN114867167 A CN 114867167A CN 202210570480 A CN202210570480 A CN 202210570480A CN 114867167 A CN114867167 A CN 114867167A
- Authority
- CN
- China
- Prior art keywords
- value
- brightness
- light source
- infrared light
- processing cycle
- 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
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000012545 processing Methods 0.000 claims abstract description 55
- 230000033228 biological regulation Effects 0.000 claims abstract description 8
- 230000001276 controlling effect Effects 0.000 claims abstract description 6
- 230000001105 regulatory effect Effects 0.000 claims abstract description 3
- 230000008859 change Effects 0.000 claims description 24
- 230000009467 reduction Effects 0.000 claims description 17
- 238000006243 chemical reaction Methods 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 12
- 230000003247 decreasing effect Effects 0.000 claims 1
- 230000000875 corresponding effect Effects 0.000 description 7
- 238000005259 measurement Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
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
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The invention discloses an automatic brightness adjusting method for an infrared light source, and belongs to the field of infrared sensors. Calculating a difference Value Set _ Delta _ Value between a Set Value required to be reached by the infrared light source brightness and a feedback Value corresponding to the current infrared light source brightness, an Initial light source brightness adjustment quantity Regulation _ Initial _ Value and a light source brightness Control quantity Control _ Value in a current processing cycle; processor startup state, Control _ Value ═ schedule _ Initial _ Value; when the infrared light source brightness needs to reach a set Value to be changed, controlling _ Value is Last _ controlling _ Value + regulating _ Initial _ Value; wherein Last _ Control _ Value is the light source brightness Control quantity in the Last processing cycle; the difference value between the brightness output value which is finally required to be reached by the infrared light source and the current feedback value determines the requirement of the brightness control state of the infrared light source after the current processing cycle: when the brightness output value is larger than the current feedback value, the brightness needs to be increased; when the brightness output value is smaller than the current feedback value, the brightness needs to be reduced; when the luminance output value is equal to the current feedback value, it indicates that the luminance does not need to be changed. The invention can shorten the adjustment time of the infrared light source from the current brightness to the set brightness.
Description
Technical Field
The invention relates to the technical field of infrared sensors, in particular to an automatic brightness adjusting method for an infrared light source.
Background
The infrared sensor generally comprises an optical system, a detection element and a conversion circuit, and is commonly used for multiple purposes such as non-contact measurement, temperature, gas composition, water quality composition analysis and the like. In the case where the optical system, the detection element, and the conversion circuit have been determined, it is required that the infrared emitting device in the optical system can quickly reach a stable output effect. As a deterministic light source, the light source reaches the detection element after passing through the measured substance, and the analog quantity is converted into measurement data after being processed by the corresponding conversion circuit. In the above, the measurement data obtained by the detection element and the conversion circuit has hysteresis, the measurement data is used as feedback of the output signal of the infrared light source device, and after continuous multiple adjustments, the infrared light source realizes stable signal output. And because the infrared light source is installed the angle difference in the structure, lead to luminance feedback signal complicacy changeable.
In summary, in the conventional method, for different infrared light source mounting structures, different detecting elements and converting circuits, a large amount of feedback data needs to be collated after tests, and the adjustment value of the infrared light source is changed in multiple adjustments to achieve a stable output signal state of the infrared light source; in order to achieve the best effect of adjusting the brightness of the infrared light source, the calibration needs to be performed before the product leaves the factory.
Disclosure of Invention
The invention aims to provide an automatic brightness adjusting method for an infrared light source, which aims to solve the problems in the background technology.
In order to solve the above technical problem, the present invention provides an automatic brightness adjustment method for an infrared light source, comprising:
calculating a difference Value Set _ Delta _ Value between a Set Value required to be reached by the infrared light source brightness and a feedback Value corresponding to the current infrared light source brightness, an Initial light source brightness adjustment quantity Regulation _ Initial _ Value and a light source brightness Control quantity Control _ Value in a current processing cycle;
processor boot state, Control _ Value equal to Regulation _ Initial _ Value; when the infrared light source brightness needs to reach a set Value to be changed, controlling _ Value is Last _ controlling _ Value + regulating _ Initial _ Value; wherein Last _ Control _ Value is the light source brightness Control quantity in the Last processing cycle;
the difference value between the brightness output value which is finally required to be reached by the infrared light source and the current feedback value determines the requirement of the brightness control state of the infrared light source after the current processing cycle: when the brightness output value is larger than the current feedback value, the brightness needs to be increased; when the brightness output value is smaller than the current feedback value, the brightness needs to be reduced; when the luminance output value is equal to the current feedback value, it indicates that the luminance does not need to be changed.
In one embodiment, the difference Set _ Delta _ Value between the Set Value to be reached by the brightness of the infrared light source and the feedback Value corresponding to the current brightness of the infrared light source is Set _ Value-Output _ Value; wherein Set _ Value is a brightness output Value which is finally required to be reached by the infrared light source, namely a Set Value which is required to be reached by the infrared light source brightness; output _ Value is an actual Output detection Value of the infrared light source brightness analog quantity in the current processing cycle, namely a current feedback Value corresponding to the infrared light source brightness;
initial light source luminance adjustment amount rule _ Initial _ Value ═ Set _ Delta _ Value ÷ (Convert _ Range ÷ Control _ Range); wherein, Convert _ Range is the maximum conversion value that the conversion circuit converts the infrared light source brightness analog quantity into the digital quantity; control _ Range sets the maximum value for the infrared light source brightness Control digital quantity.
In one embodiment, the end of the previous processing cycle is judged by comparing the light source brightness control amount in the current processing cycle with the light source brightness control amount in the previous processing cycle, and the infrared light source brightness control state is as follows:
if the light source brightness control quantity in the current processing cycle is larger than the light source brightness control quantity in the last processing cycle, the brightness is increased; if the light source brightness control quantity in the current processing cycle is smaller than the light source brightness control quantity in the last processing cycle, the brightness is reduced; if the light source brightness control quantity in the current processing cycle is equal to the light source brightness control quantity in the last processing cycle, the brightness is not changed.
In one embodiment, the brightness needs to be increased in the current processing cycle, which is divided into two cases:
(1) if the brightness is in the increasing state last time, comparing the increasing amount, and if the increasing amount is more than half of the feedback change value, doubling the adjustment amount; if the increment is less than one fourth of the feedback change value, the adjustment amount is doubled; if the increment is more than one fourth of the feedback change value and less than half of the feedback change value, the adjustment amount is unchanged;
(2) the last time the brightness was in the reduced state, which indicates that the last time the brightness reduction amount was too large, i.e., the adjustment amount was too large, the current processing cycle needs to increase the brightness and reduce the adjustment amount by one time.
In one embodiment, the brightness needs to be reduced in the current processing cycle, which is divided into two cases:
(1) comparing the reduction amount when the brightness is in the reduction state last time, and doubling the adjustment amount if the reduction amount is more than half of the feedback change value; if the reduction is less than one fourth of the feedback change value, the adjustment is doubled; if the reduction is more than one fourth of the feedback change value and less than one half of the feedback change value, the adjustment is unchanged;
(2) the last time the brightness was in the increasing state, which indicates that the last time the brightness increase was too large, i.e., the adjustment amount was too large, the current processing cycle needs to decrease the brightness and decrease the adjustment amount by one time.
The method for automatically adjusting the brightness of the infrared light source has the following beneficial effects:
(1) the invention can shorten the adjustment time of the infrared light source from the current brightness to the set brightness;
(2) the invention can fully utilize the infrared light source control and the effective precision of the feedback circuit;
(3) the infrared light source adjusting circuit can correspond to different infrared light source mounting structures, different control circuits and feedback circuits, does not need to set an adjusting threshold value in advance, does not need to be factory calibrated, and can automatically make quick and accurate adjustment.
Drawings
FIG. 1 is an overall hardware block diagram of an automatic brightness adjustment method for an infrared light source according to the present invention;
fig. 2 is a schematic flow chart of an automatic brightness adjustment method for an infrared light source according to the present invention.
Detailed Description
The following describes the method for automatically adjusting the brightness of an infrared light source according to the present invention in detail with reference to the accompanying drawings and specific embodiments. Advantages and features of the present invention will become apparent from the following description and from the claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
The invention provides an automatic brightness adjusting method of an infrared light source, which is based on an integral hardware block diagram shown in figure 1 and comprises a processor, an infrared light source control circuit, a conversion circuit, an infrared light source and a detection element, wherein the processor is connected with the infrared light source control circuit; the method is realized in a processor through a programming language, the infrared light source control circuit adjusts the brightness of the infrared light source, the detection element detects the brightness of the infrared light source and then passes through a conversion circuit, and finally the brightness of the infrared light source is processed in the processor through the automatic infrared light source brightness adjusting method.
In the case of a processor and infrared light source control circuit determination, known parameters can be derived: the precision of infrared light source brightness control digital quantity is expressed as Accuracy _ Value; the infrared light source brightness Control digital quantity may set a maximum value, denoted as Control _ Range. In the case of a detection element and a conversion circuit determination, known parameters can be obtained: the actual Output detection Value of the infrared light source brightness analog quantity in the current processing cycle, namely the current feedback Value corresponding to the infrared light source brightness, is represented as Output _ Value; the conversion circuit converts the infrared light source brightness analog quantity into the maximum conversion numerical value of the digital quantity, and the maximum conversion numerical value is represented as Convert _ Range. The final brightness output Value that the infrared light source needs to reach, that is, the Set Value that the infrared light source brightness needs to reach, is denoted as Set _ Value.
The invention provides an automatic brightness adjusting method for an infrared light source, and the flow of the method is shown in figure 2. The labels in fig. 2 are illustrated as: control _ Value is the light source brightness Control quantity in the current processing cycle; last _ Control _ Value is the light source brightness Control quantity in the Last processing cycle; control _ Delta _ Value is the difference between the light source brightness Control quantity in the current processing cycle and the light source brightness Control quantity in the Last processing cycle, and the Value is Control _ Value-Last _ Control _ Value; last _ Output _ Value is an actual Output detection Value of the infrared light source brightness analog quantity in the Last processing cycle, namely a Last feedback Value corresponding to the infrared light source brightness; output _ Delta _ Value is the difference between the current feedback Value and the Last feedback Value, and the Value is Output _ Value-Last _ Output _ Value; the Set _ Delta _ Value is a difference Value between a Set Value which is required to be reached by the infrared light source brightness and a feedback Value corresponding to the current infrared light source brightness, and the Value is Set _ Value-Output _ Value.
In order to make the brightness of the infrared light source reach the set brightness quickly, when the processor is started or the brightness of the infrared light source needs to reach the set Value to be changed, the Initial light source brightness adjustment quantity Regulation _ Initial _ Value needs to be calculated, and the control Value is adjusted to be close to the final light source brightness control quantity. The brightness control value of the infrared light source is positively correlated with the actual output detection value of the brightness analog quantity of the infrared light source, and according to known conditions, the following relations exist:
Regulate_Initial_Value=Set_Delta_Value÷(Convert_Range÷Control_Range)。
processor boot state, Control _ Value equal to Regulation _ Initial _ Value; when the set Value that the infrared light source brightness needs to reach is changed, Control _ Value is Last _ Control _ Value + regulation _ Initial _ Value.
There are three control states of the infrared light source brightness: the brightness is increased, the brightness is reduced and the brightness is unchanged. The difference value between the brightness output value (namely the infrared brightness set value) which is finally required to be reached by the infrared light source and the current feedback value determines the brightness control state requirement of the infrared light source after the current processing cycle, and when the set value is greater than the current feedback value, the brightness is required to be increased; when the set value is smaller than the current feedback value, the brightness needs to be reduced; when the set value is equal to the current feedback value, it indicates that the brightness does not need to be changed.
By comparing the brightness value of the infrared light source in the current cycle with the brightness value of the infrared light source in the last processing cycle, the brightness control state of the infrared light source after the last processing cycle is judged. The brightness value of the current circulating infrared light source is greater than that of the last processing circulating infrared light source, and brightness is increased; the brightness value of the current circulating infrared light source is smaller than the brightness value of the last processing circulating infrared light source, and the brightness is reduced; the brightness value of the current cycle infrared light source is equal to the brightness value of the last processing cycle infrared light source, and the brightness is not changed.
In the current processing cycle, the brightness needs to be increased, two cases are analyzed: 1. comparing the brightness increase amount when the brightness is in the increase state at the last time, wherein the brightness increase amount is larger than a half of the feedback change value, and the adjustment amount is doubled; if the brightness increment is less than one fourth of the feedback change value, the adjustment amount is doubled; and if the brightness increment is more than one fourth of the feedback change value and less than half of the feedback change value, the adjustment amount is unchanged. 2. The last time the brightness was in the reduced state, which indicates that the last time the brightness was reduced by too much, i.e., the adjustment amount was too large, the current processing cycle needs to increase the brightness and reduce the adjustment amount by one time.
In the current processing cycle, the brightness needs to be reduced, two cases are analyzed: 1. comparing the brightness reduction value when the brightness is in the reduction state last time, wherein the brightness reduction value is larger than a half of the feedback change value, and the adjustment value is doubled; if the brightness reduction is less than one fourth of the feedback change value, the adjustment is doubled; and if the brightness reduction is more than one fourth of the feedback change value and less than half of the feedback change value, the adjustment amount is unchanged. 2. The last time the brightness was in the increasing state, which indicates that the last time the brightness increase was too large, i.e., the adjustment amount was too large, the current processing cycle needs to decrease the brightness and decrease the adjustment amount by one time.
Through the continuous processing circulation of the method, when the brightness of the infrared light source is automatically adjusted to be the difference value between the set value and the feedback value to be 0 finally, the brightness adjustment processing of the infrared light source is finished. The minimum adjustment amount in the processing process is the Accuracy of the brightness control digital quantity of the infrared light source, Accuracy _ Value.
The above description is only for the purpose of describing the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention, and any variations and modifications made by those skilled in the art based on the above disclosure are within the scope of the appended claims.
Claims (5)
1. An automatic brightness adjustment method for an infrared light source is characterized by comprising the following steps:
calculating a difference Value Set _ Delta _ Value between a Set Value required to be reached by the infrared light source brightness and a feedback Value corresponding to the current infrared light source brightness, an Initial light source brightness adjustment quantity Regulation _ Initial _ Value and a light source brightness Control quantity Control _ Value in a current processing cycle;
processor boot state, Control _ Value equal to Regulation _ Initial _ Value; when the infrared light source brightness needs to reach a set Value to be changed, controlling _ Value is Last _ controlling _ Value + regulating _ Initial _ Value; wherein Last _ Control _ Value is the light source brightness Control quantity in the Last processing cycle;
the difference value between the brightness output value which is finally required to be reached by the infrared light source and the current feedback value determines the requirement of the brightness control state of the infrared light source after the current processing cycle: when the brightness output value is larger than the current feedback value, the brightness needs to be increased; when the brightness output value is smaller than the current feedback value, the brightness needs to be reduced; when the luminance output value is equal to the current feedback value, it indicates that the luminance does not need to be changed.
2. The method according to claim 1, wherein the difference Set _ Delta _ Value between the Set Value to be reached by the infrared source brightness and the feedback Value corresponding to the current infrared source brightness is Set _ Value-Output _ Value; wherein Set _ Value is a brightness output Value which is finally required to be reached by the infrared light source, namely a Set Value which is required to be reached by the infrared light source brightness; output _ Value is an actual Output detection Value of the infrared light source brightness analog quantity in the current processing cycle, namely a current feedback Value corresponding to the infrared light source brightness;
initial light source luminance adjustment amount rule _ Initial _ Value ═ Set _ Delta _ Value ÷ (Convert _ Range ÷ Control _ Range); wherein, Convert _ Range is the maximum conversion value that the conversion circuit converts the infrared light source brightness analog quantity into the digital quantity; control _ Range sets the maximum value for the infrared light source brightness Control digital quantity.
3. The method as claimed in claim 1, wherein the brightness control status of the infrared light source is determined by comparing the brightness control quantity of the light source in the current processing cycle with the brightness control quantity of the light source in the last processing cycle, and the brightness control status of the infrared light source is:
if the light source brightness control quantity in the current processing cycle is larger than the light source brightness control quantity in the last processing cycle, the brightness is increased; if the light source brightness control quantity in the current processing cycle is smaller than the light source brightness control quantity in the last processing cycle, the brightness is reduced; if the light source brightness control quantity in the current processing cycle is equal to the light source brightness control quantity in the last processing cycle, the brightness is not changed.
4. The method according to claim 3, wherein the brightness of the infrared light source needs to be increased in the current processing cycle, which is divided into two cases:
(1) comparing the increment if the brightness is in the increasing state last time, and doubling the adjustment if the increment is more than half of the feedback change value; if the increment is less than one fourth of the feedback change value, the adjustment amount is doubled; if the increment is more than one fourth of the feedback change value and less than half of the feedback change value, the adjustment amount is unchanged;
(2) the last time the brightness was in the reduced state, which indicates that the last time the brightness reduction amount was too large, i.e., the adjustment amount was too large, the current processing cycle needs to increase the brightness and reduce the adjustment amount by one time.
5. The method for automatically adjusting brightness of infrared light source according to claim 1, wherein the brightness needs to be decreased in the current processing cycle, which is divided into two cases:
(1) comparing the reduction amount when the brightness is in the reduction state last time, and doubling the adjustment amount if the reduction amount is more than half of the feedback change value; if the reduction is less than one fourth of the feedback change value, the adjustment is doubled; if the reduction is more than one fourth of the feedback change value and less than one half of the feedback change value, the adjustment is unchanged;
(2) the last time the brightness was in the increasing state, which indicates that the last time the brightness increase was too large, i.e., the adjustment amount was too large, the current processing cycle needs to decrease the brightness and decrease the adjustment amount by one time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210570480.XA CN114867167A (en) | 2022-05-24 | 2022-05-24 | Automatic brightness adjusting method for infrared light source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210570480.XA CN114867167A (en) | 2022-05-24 | 2022-05-24 | Automatic brightness adjusting method for infrared light source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114867167A true CN114867167A (en) | 2022-08-05 |
Family
ID=82639675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210570480.XA Pending CN114867167A (en) | 2022-05-24 | 2022-05-24 | Automatic brightness adjusting method for infrared light source |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114867167A (en) |
-
2022
- 2022-05-24 CN CN202210570480.XA patent/CN114867167A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8195312B2 (en) | Multi-mode control loop with improved performance for mass flow controller | |
CN100565413C (en) | A kind of thermoregulator method and apparatus | |
CN113311881B (en) | Mass flow controller and flow control method | |
CA2837786A1 (en) | Apparatus for precise pressure adjustment | |
CN111459212A (en) | Constant-temperature water bath control method based on feedforward feedback fuzzy self-tuning PID control algorithm | |
CN110779268B (en) | Refrigerator internal temperature control system algorithm | |
EP2725434A1 (en) | Feedback control method, feedback control apparatus, and feedback control program | |
US20210337702A1 (en) | Method and apparatus for controlling fan speed | |
US10615690B2 (en) | Feed-forward controlled DC-DC voltage converter and method for regulating a feed-forward controlled DC-DC voltage converter | |
CN115642644A (en) | MPPT control method | |
CN114867167A (en) | Automatic brightness adjusting method for infrared light source | |
CN101753139B (en) | Switching unit for generating an output voltage as a function of a digital data valve and method for calibrating the switching unit | |
CN109085201B (en) | Ultralow humidity dew point meter and temperature control method thereof | |
CA2838390A1 (en) | Pressure adjustment apparatus | |
CN110365243B (en) | Inverter voltage adjusting method and device, inverter and computer readable medium | |
US8056579B2 (en) | Mass flow controller | |
RU2211470C2 (en) | Adaptive digital combined control system of unsteady technological objects | |
CN110069031A (en) | A kind of high temperature sensitive type pressure sensing control system and method | |
CN209982742U (en) | Temperature control heating system based on three-wire system thermal resistor | |
CN114371335A (en) | High-precision digital source meter | |
KR0129135B1 (en) | Apparatus for transmit power stability and method thereof | |
US11960267B2 (en) | Control apparatus, control method, and storage medium | |
CN107544455B (en) | Asymmetric online convergence correction method applied to quality control soft instrument | |
CN117652102A (en) | Circuit arrangement | |
CN116256967A (en) | PID (proportion integration differentiation) adjusting system and method |
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 |