CN112925363B - Online temperature compensation method and system, controller and online temperature compensation device thereof - Google Patents

Online temperature compensation method and system, controller and online temperature compensation device thereof Download PDF

Info

Publication number
CN112925363B
CN112925363B CN201911234766.5A CN201911234766A CN112925363B CN 112925363 B CN112925363 B CN 112925363B CN 201911234766 A CN201911234766 A CN 201911234766A CN 112925363 B CN112925363 B CN 112925363B
Authority
CN
China
Prior art keywords
temperature
light source
photoelectric detector
control unit
light
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
Application number
CN201911234766.5A
Other languages
Chinese (zh)
Other versions
CN112925363A (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.)
Shanghai Baif Technology Co ltd
Original Assignee
Shanghai Baif Technology 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 Shanghai Baif Technology Co ltd filed Critical Shanghai Baif Technology Co ltd
Priority to CN201911234766.5A priority Critical patent/CN112925363B/en
Publication of CN112925363A publication Critical patent/CN112925363A/en
Application granted granted Critical
Publication of CN112925363B publication Critical patent/CN112925363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/20Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature
    • G05D23/24Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature the sensing element having a resistance varying with temperature, e.g. a thermistor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K11/00Measuring temperature based upon physical or chemical changes not covered by groups G01K3/00, G01K5/00, G01K7/00 or G01K9/00
    • G01K11/32Measuring temperature based upon physical or chemical changes not covered by groups G01K3/00, G01K5/00, G01K7/00 or G01K9/00 using changes in transmittance, scattering or luminescence in optical fibres
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/1917Control of temperature characterised by the use of electric means using digital means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

According to the online temperature compensation method, the system, the controller and the online temperature compensation device, the light path switching unit is controlled to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient. The method and the device can perform regular online temperature compensation on the precise photoelectric sensing system, and can achieve the optimal temperature compensation effect.

Description

Online temperature compensation method and system, controller and online temperature compensation device thereof
Technical Field
The present application relates to the field of photoelectric sensing technologies, and in particular, to an online temperature compensation method, a system thereof, a controller, and an online temperature compensation device.
Background
The performance of both light sources and photodetectors used in the field of photodetection varies with temperature. There are two conventional solutions:
1) temperature compensation: the method has the advantages that the cost is low, but the error is gradually increased along with the time;
2) temperature control: the method has the advantages of wide application range, high cost and limited system precision by temperature control precision.
In view of the above, the present application proposes an optimized on-line temperature compensation scheme.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, it is an object of the present application to provide an online temperature compensation method and system, a controller and an online temperature compensation device thereof, so as to solve the problems in the prior art.
To achieve the above and other related objects, the present application provides an online temperature compensation method applied to an online temperature compensation device, the device including: the device comprises a light source, a photoelectric detector and an optical path switching unit; the method comprises the following steps: controlling the light path switching unit to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
In an embodiment of the present application, the online temperature compensation apparatus further includes: the first temperature control unit is connected with the light source, the second temperature control unit is connected with the photoelectric detector, and the analog-to-digital conversion unit is connected with the photoelectric detector; the temperature of the light source and the temperature of the photoelectric detector are respectively controlled to fit a first relation coefficient of the light source temperature and the detection measurement, and the method comprises the following steps: the second temperature control unit controls the photoelectric detector to be constant in temperature; the temperature of the light source is controlled by the first temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit; adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer; and fitting the light source temperature and the detection quantity by adopting a least square method to fit a first relation coefficient of the light source temperature and the detection quantity.
In an embodiment of the present application, the optoelectronic sensing apparatus further includes: the first temperature control unit is connected with the light source, the second temperature control unit is connected with the photoelectric detector, and the analog-to-digital conversion unit is connected with the photoelectric detector; the fitting of a second relation coefficient between the photoelectric detector temperature and the detection measurement by respectively controlling the temperature of the light source and the photoelectric detector comprises: controlling the light source to be constant in temperature through the first temperature control unit; the temperature of the photoelectric detector is controlled by the second temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit; adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer; and fitting the photoelectric detector and the detected quantity by adopting a least square method to fit a second relation coefficient of the light source temperature and the detected quantity.
To achieve the above and other related objects, the present application provides an online temperature compensation system, comprising: the compensation mode module is used for controlling the light path switching unit to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; the working mode module is used for controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
To achieve the above and other related objects, the present application provides a controller including: a memory, and a processor; the memory is to store computer instructions; the processor executes computer instructions to implement the method as described above.
To achieve the above and other related objects, the present application provides an in-line temperature compensation apparatus, comprising: the device comprises a light source, a light path switching unit, a photoelectric detector, a signal amplifying circuit, an analog-to-digital conversion unit, a first temperature control unit, a second temperature control unit and the controller; the light source is used for emitting measuring light which is transmitted to the photoelectric detector through the light path switching unit; the photoelectric detector is used for converting an optical signal of the received measuring light into an electric signal; the electric signal is amplified by the signal amplifying circuit and converted by the analog-to-digital conversion unit to obtain a digital signal; the first temperature control unit and the second temperature control unit are used for realizing temperature control according to the target temperature sent by the controller, acquiring real temperature and transmitting the real temperature to the controller; the controller is used for controlling the light path switching of the light path switching unit through a digital IO signal, and is connected with the first temperature control unit and the second temperature control unit through a digital signal so as to respectively send the target temperature of the light source to the first temperature control unit and obtain the current temperature.
In an embodiment of the present application, the optical path switching unit includes: a spectroscopic unit and a light shielding unit; the light splitting part divides the measuring light into two paths according to a certain proportion; wherein one path of light directly irradiates the photoelectric detector; the other path of the light beam passes through a preset measured object and then irradiates the photoelectric detector; the shading part consists of a baffle made of black light absorption material and an electromagnet; the electromagnet is controlled by a digital IO control signal of the controller to determine whether light currently irradiated on the photoelectric detector passes through the object to be measured.
In an embodiment of the present application, the first temperature control unit includes: the TEC device comprises a TEC device, a driving circuit, a thermistor, a radiating fin and a heat conducting structure; one surface of the TEC device is connected with the radiating fin, and the other surface of the TEC device is used as a working surface and is tightly connected with the light source through the heat conducting structure; after receiving the target temperature sent by the controller through a digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface of the TEC device; the thermistor is tightly attached to the heat conduction structure, and the real temperature of the light source represented by the detected temperature is transmitted to the controller through digital quantity.
In an embodiment of the present application, the second temperature control unit includes: the TEC device comprises a TEC device, a driving circuit, a thermistor, a radiating fin and a heat conducting structure; one surface of the TEC device is connected with the radiating fin, and the other surface of the TEC device is used as a working surface and is tightly connected with the photoelectric detector through the heat conducting structure; after receiving the target temperature sent by the controller through a digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface of the TEC device; the thermistor is tightly attached to the heat conduction structure, and the detected temperature characterizes the real temperature of the photoelectric detector and is transmitted to the controller through digital quantity.
In an embodiment of the present application, the controller includes: any one of a single chip microcomputer, an ARM, a PLC and an FPGA.
In summary, the present application provides an online temperature compensation method and system, a controller, and an online temperature compensation device, wherein the optical path switching unit is controlled to allow the measuring light emitted by the light source to reach the photodetector without passing through a preset object to be measured; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
Has the following beneficial effects:
the temperature compensation device can perform regular online temperature compensation on a precise photoelectric sensing system, and can achieve the optimal temperature compensation effect.
Drawings
Fig. 1 is a schematic structural diagram of an on-line temperature compensation device according to an embodiment of the present disclosure.
Fig. 2 is a circuit diagram of a photodetector and a signal amplifying circuit according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a temperature control unit according to an embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating an on-line temperature compensation method according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating a fitting of compensation coefficients and temperature values according to an embodiment of the present invention.
FIG. 6 is a block diagram of an on-line temperature compensation system according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a controller according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application is provided by way of specific examples, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure herein. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings so that those skilled in the art to which the present application pertains can easily carry out the present application. The present application may be embodied in many different forms and is not limited to the embodiments described herein.
In order to clearly explain the present application, components that are not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.
Throughout the specification, when a component is referred to as being "connected" to another component, this includes not only the case of being "directly connected" but also the case of being "indirectly connected" with another element interposed therebetween. In addition, when a component is referred to as "including" a certain constituent element, unless otherwise stated, it means that the component may include other constituent elements, without excluding other constituent elements.
When an element is referred to as being "on" another element, it can be directly on the other element, or intervening elements may also be present. When a component is referred to as being "directly on" another component, there are no intervening components present.
Although the terms first, second, etc. may be used herein to describe various elements in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first interface and the second interface, etc. are described. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" include plural forms as long as the words do not expressly indicate a contrary meaning. The term "comprises/comprising" when used in this specification is taken to specify the presence of stated features, regions, integers, steps, operations, elements, and/or components, but does not exclude the presence or addition of other features, regions, integers, steps, operations, elements, and/or components.
Terms indicating "lower", "upper", and the like relative to space may be used to more easily describe a relationship of one component with respect to another component illustrated in the drawings. Such terms are intended to include not only the meanings indicated in the drawings, but also other meanings or operations of the device in use. For example, if the device in the figures is turned over, elements described as "below" other elements would then be oriented "above" the other elements. Thus, the exemplary terms "under" and "beneath" all include above and below. The device may be rotated 90 or other angles and the terminology representing relative space is also to be interpreted accordingly.
In view of the above, in order to solve the problems in the prior art, the present application provides an online temperature compensation method and system, a controller, and an online temperature compensation device, which can be used as a part of a precise photoelectric sensing system to perform periodic online temperature compensation.
For ease of understanding, the present application will first describe the in-line temperature compensation device described in the present application.
Fig. 1 is a schematic structural diagram of an on-line temperature compensation device according to an embodiment of the present invention. As shown, the apparatus 100 includes: the optical system comprises a light source 101, an optical path switching unit 102, a photoelectric detector 103, a signal amplifying circuit 104, an analog-to-digital conversion unit 105, a first temperature control unit 106, a second temperature control unit 107 and a controller 108.
Wherein, the light source 101 is used for emitting measurement light, and the measurement light is transmitted to the photodetector 103 through the optical path switching unit 102;
the photodetector 103 is used for converting an optical signal of the received measuring light into an electrical signal;
the electric signal is amplified by the signal amplifying circuit 104 and converted by the analog-to-digital conversion unit 105 to obtain a digital signal;
the first temperature control unit 106 and the second temperature control unit 107 are configured to implement temperature control according to the target temperature sent by the controller 108, acquire a real temperature, and transmit the real temperature to the controller 108;
the controller 108 is configured to control optical path switching of the optical path switching unit 102 through a digital IO signal, and connect the first temperature control unit 106 and the second temperature control unit 107 through a digital signal, so as to respectively send a target temperature of the light source 101 to the first temperature control unit and obtain a current temperature.
In this embodiment, the light source 101 includes: any one of a laser diode, a laser, an SLD, and a bulb. The measurement light emitted from the light source 101 is transmitted to the optical path switching unit 102 by spatial coupling or fiber coupling.
In an embodiment of the present application, the optical path switching unit 102 includes: a spectroscopic unit and a light shielding unit;
the light splitting part divides the measuring light into two paths according to a certain proportion; wherein one path directly irradiates the photodetector 103; and the other path of light passes through a preset measured object and then irradiates the photoelectric detector 103.
In this embodiment, the light splitting part includes but is not limited to: a beam splitter prism, an optical switch and the like. The light splitting part divides the measuring light into two paths according to a certain proportion, preferably, the measuring light is divided into two paths according to a certain ratio of 1: 1 is divided into two paths. One path of light directly irradiates the photoelectric detector 103, and the other path of light irradiates the photoelectric detector 103 after passing through a measured object.
The shading part consists of a baffle made of black light absorption material and an electromagnet; the electromagnet is controlled by the digital IO control signal of the controller 108 to determine whether the light currently irradiated on the photodetector 103 passes through the object to be measured.
In this embodiment, the photo detector 103 includes but is not limited to: PD, APD, photomultiplier, etc. The PD is a photodiode and the APD is an avalanche photodiode. The photodetector 103 is used for converting the received optical signal into an electrical signal.
In this embodiment, the signal amplifying circuit 104 includes: signal amplification circuitry 104 and signal conditioning circuitry. The signal amplifying circuit 104 is configured to amplify the weak electrical signal obtained by the photodetector 103 and filter noise.
Referring to fig. 2, it is shown as a circuit schematic diagram of the photodetector 103 and the signal amplifying circuit 104.
In this embodiment, the analog-to-digital conversion unit 105 is used for converting an analog signal into a digital signal.
In an embodiment of the present invention, the first temperature control unit 106 and the second temperature control unit 107 both include: the TEC device, the driving circuit, the thermistor, the heat sink, and the heat conducting structure may be specifically shown in the schematic structural diagram of fig. 3. In contrast, the first temperature control unit 106 is connected to the light source 101, and the second temperature control unit 107 is connected to the photodetector 103.
In the first temperature control unit 106, one surface of the TEC device is connected to the heat sink, and the other surface is used as a working surface and is tightly connected to the light source 101 through the heat conducting structure; after receiving the target temperature sent by the controller 108 through the digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface thereof; the thermistor is closely attached to the thermally conductive structure and the temperature detected by the thermistor is representative of the true temperature of the light source 101 and is transmitted to the controller 108 by a digital quantity.
In the second temperature control unit 107, one surface of the TEC device is connected to the heat sink, and the other surface is used as a working surface and is tightly connected to the photodetector 103 through the heat conducting structure; after receiving the target temperature sent by the controller 108 through the digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface thereof; the thermistor is in close proximity to the thermally conductive structure and the temperature it detects is characteristic of the actual temperature of the photodetector 103 is transmitted to the controller 108 by a digital quantity.
In this embodiment, the TEC device is preferably a peltier device.
In one embodiment of the present application, the controller 108 includes: any one of a single chip microcomputer, an ARM, a PLC and an FPGA.
In this embodiment, the controller 108 controls the optical path switching unit 102 through a digital IO signal; the first temperature control unit 106 is connected through a digital signal, transmits the target temperature of the light source 101 to the first temperature control unit, obtains the current real temperature, and realizes temperature control through a temperature control algorithm; the second temperature control unit 107 is connected through a digital signal, the target temperature of the photoelectric detector 103 is sent to the second temperature control unit, the current real temperature is obtained, and temperature control is achieved through a temperature control algorithm; and the analog-to-digital conversion unit 105 acquires the signal quantity after photoelectric conversion through digital signal connection.
Fig. 4 is a schematic flow chart of an online temperature compensation method according to an embodiment of the present invention.
It should be noted that the method described in the present application is applied to an online temperature compensation device as shown in fig. 1. As shown in fig. 4, the method includes:
step S401: and controlling the light path switching unit to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object.
In this embodiment, the step S101 corresponds to entering the online temperature compensation mode. Specifically, referring to fig. 1, the controller may control the photoelectric switching unit through a digital IO signal to switch the measuring light to a channel that does not pass through the object to be measured.
Step S402: the temperature of the light source and the temperature of the photoelectric detector are respectively controlled to respectively fit a first relation coefficient of the light source temperature and the detection measurement and a second relation coefficient of the photoelectric detector temperature and the detection measurement.
In an embodiment of the present application, the online temperature compensation apparatus as shown in fig. 1 further includes: the photoelectric detector comprises a first temperature control unit connected with the light source, a second temperature control unit connected with the photoelectric detector and an analog-digital conversion unit.
On one hand, the fitting of the first relation coefficient of the light source temperature and the detection measurement by respectively controlling the temperature of the light source and the temperature of the photoelectric detector comprises the following steps:
A. the second temperature control unit controls the photoelectric detector to be constant in temperature;
B. the temperature of the light source is controlled by the first temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit;
C. adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer;
D. and fitting the light source temperature and the detection quantity by adopting a least square method to fit a first relation coefficient of the light source temperature and the detection quantity.
In this embodiment, referring to fig. 1, the constant temperature of the photodetector may be realized by the controller through the second temperature control unit, then the controller controls the temperature of the light source through the first temperature control unit to perform triangular wave scanning, the controller acquires the values of the analog-to-digital conversion unit, the data processing employs multi-cycle triangular wave mathematical averaging, the highest temperature and the lowest temperature are linearly fitted and only the section with the best middle linearity is used, and the relationship between the light source temperature and the detected amount is fitted by the least square method fitting between the temperature and the detected amount.
In another aspect, the fitting a second relation coefficient between the temperature of the photodetector and the temperature of the probing value by controlling the temperatures of the light source and the photodetector respectively includes:
A. controlling the light source to be constant in temperature through the first temperature control unit;
B. the temperature of the photoelectric detector is controlled by the second temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit;
C. adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer;
D. and fitting the photoelectric detector and the detected quantity by adopting a least square method to fit a second relation coefficient of the light source temperature and the detected quantity.
In this embodiment, referring to fig. 1, the controller may implement constant temperature of the light source through the first temperature control unit, and then the controller controls the temperature of the photodetector through the second temperature control unit to perform triangular wave scanning, the controller collects the values of the analog-to-digital conversion module, the data processing employs multi-cycle triangular wave mathematical averaging, the highest temperature and the lowest temperature are linearly fitted and only one section with the best middle linearity is used, and the relationship between the temperature and the detected amount is fitted by using least square fitting.
In this embodiment, the principle of step B, C, D in the above two embodiments is actually the same, and the following is exemplified by a unified calculation relationship:
the start time and the end time of each period of the triangular wave temperature scanning are respectively as follows: ti0 and ti1, i being the number of triangle waves.
The acquired data of the photoelectric detector is F (T), in consideration of the hysteresis of temperature transfer, the method takes a section of data with the best linearity in each period, namely each period only takes data between (ti0+ Δ T1) and (ti1- Δ T2), according to the sampling rate of a digital-to-analog conversion unit, an array F [ j ] can be obtained in each period, a matrix Mi, j can be obtained by the i-number array, an array MA is obtained by averaging all columns of data, the element number of the array MA is j, the temperature corresponding to each element data MA [ j ] of the array MA is T [ j ], for example, an MA element value MA (25 ℃) corresponding to 25 ℃ is selected as a reference value, other elements of the MA are divided by the reference value to obtain a compensation coefficient array MC, the relation between the temperature T and the MC is fitted by using a least square method, and the relation can be a binomial formula or an exponential fit, And carrying out logarithmic fitting to obtain a fitting coefficient.
Step S403: and controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object.
In this embodiment, the step S101 corresponds to entering the normal measurement operation mode. Specifically, referring to fig. 1, the controller may control the photoelectric switching unit through a digital IO signal to switch the measuring light to a channel passing through the object to be measured.
Step S404: and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
In this embodiment, the controller shown in fig. 1 may obtain the real-time light source temperature through the first temperature control unit, and obtain the real-time photodetector temperature through the second temperature control unit; and correcting the measured quantity in real time by using the first relation coefficient of the light source temperature and the detection measurement, and the second relation coefficient of the photoelectric detector temperature and the detection measurement.
For example, using a second order fit with fitting coefficients of (a0, a1, a2), the compensation coefficient F1(t) ═ a0+ a1 × t + a2 ^ 2.
Wherein the obtained temperature compensation coefficient of the detector is F1(t), t represents a temperature value, and the obtained temperature compensation coefficient of the laser is F2 (t).
The method for using the compensation coefficient in normal measurement work comprises the following steps: the current obtained detector temperature T1, laser temperature T2, and digital-to-analog conversion value of the measured value at the reference temperature are X. The compensated value Y ═ X × F1(T1) × F2 (T2). Referring to fig. 5, the ordinate of the graph is the compensation factor F and the abscissa is the temperature value T.
Fig. 6 is a block diagram of an on-line temperature compensation system according to an embodiment of the present invention. As shown, the system 600 includes:
a compensation mode module 601, configured to control the optical path switching unit to enable the measuring light emitted by the light source to reach the photodetector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector;
a working mode module 602, configured to control the optical path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules/units of the apparatus are based on the same concept as the method embodiments described in the present application, the technical effect brought by the contents is the same as the method embodiments of the present application, and specific contents can be referred to the descriptions in the method embodiments described in the foregoing description of the present application.
It should be further noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these units can be implemented entirely in software, invoked by a processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware.
For example, the operation mode module 602 may be a separate processing element, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the operation mode module 602. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic structural diagram of a controller according to an embodiment of the present application. As shown, the controller 700 includes: a memory 701, and a processor 702; the memory 701 is used for storing computer instructions; the processor 702 executes computer instructions to implement the method described in fig. 4.
In some embodiments, the number of the memories 701 in the controller 700 may be one or more, the number of the processors 702 may be one or more, and fig. 7 illustrates one example.
In an embodiment of the present application, the processor 702 in the controller 700 loads one or more instructions corresponding to the processes of the application program into the memory 701 according to the steps described in fig. 1, and the processor 702 runs the application program stored in the memory 702, thereby implementing the method described in fig. 4.
The Memory 701 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 701 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an expanded set thereof, wherein the operating instructions may include various operating instructions for performing various operations. The operating system may include various system programs for implementing various basic services and for handling hardware-based tasks.
The Processor 702 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, a discrete hardware component, etc.
In some specific applications, the various components of the controller 700 are coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. But for the sake of clarity the various buses are referred to as a bus system in figure 7.
It should also be noted that the controller in the in-line temperature compensation device shown in fig. 1 may be a controller as shown in fig. 7.
In summary, according to the online temperature compensation method, the system, the controller and the online temperature compensation device provided by the present application, the light path switching unit is controlled to enable the measuring light emitted by the light source to reach the photodetector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
The application effectively overcomes various defects in the prior art and has high industrial utilization value.
The above embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.

Claims (10)

1. An online temperature compensation method is applied to an online temperature compensation device, and the device comprises: the device comprises a light source, a photoelectric detector and an optical path switching unit; the method comprises the following steps:
controlling the light path switching unit to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object;
respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; the photoelectric detector is controlled to be at a constant temperature, the temperature of the light source is controlled to perform triangular wave scanning, the numerical value of the detected quantity is collected, and least square fitting is adopted between the temperature of the light source and the detected quantity so as to fit a first relation coefficient of the temperature of the light source and the detected quantity; and/or controlling the light source to be constant in temperature, controlling the temperature of the photoelectric detector to perform triangular wave scanning and collecting detection quantity values, and fitting the temperature of the photoelectric detector and the detection quantity by adopting a least square method to fit a second relation coefficient of the temperature of the photoelectric detector and the detection quantity;
controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object;
and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
2. The method of claim 1, wherein the in-line temperature compensation device further comprises: the first temperature control unit is connected with the light source, the second temperature control unit is connected with the photoelectric detector, and the analog-to-digital conversion unit is connected with the photoelectric detector;
the temperature of the light source and the temperature of the photoelectric detector are respectively controlled to fit a first relation coefficient of the light source temperature and the detection measurement, and the method comprises the following steps:
the second temperature control unit controls the photoelectric detector to be constant in temperature;
the temperature of the light source is controlled by the first temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit;
adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer;
and fitting the light source temperature and the detection quantity by adopting a least square method to fit a first relation coefficient of the light source temperature and the detection quantity.
3. The method of claim 1, wherein the optoelectronic sensing device further comprises: the first temperature control unit is connected with the light source, the second temperature control unit is connected with the photoelectric detector, and the analog-to-digital conversion unit is connected with the photoelectric detector;
the fitting of a second relation coefficient between the photoelectric detector temperature and the detection measurement by respectively controlling the temperature of the light source and the photoelectric detector comprises:
controlling the light source to be constant in temperature through the first temperature control unit;
the temperature of the photoelectric detector is controlled by the second temperature control unit to perform triangular wave scanning, and a detection quantity value is acquired according to the analog-to-digital conversion unit;
adopting multi-period triangular wave mathematical average, linearly fitting the highest temperature and the lowest temperature, and only using a section with the best middle linearity in consideration of the hysteresis of temperature transfer;
and fitting the photoelectric detector and the detected quantity by adopting a least square method to fit a second relation coefficient of the light source temperature and the detected quantity.
4. An in-line temperature compensation system, the system comprising:
the compensation mode module is used for controlling the light path switching unit to enable the measuring light emitted by the light source to reach the photoelectric detector without passing through a preset measured object; respectively fitting a first relation coefficient of light source temperature and detection measurement and a second relation coefficient of photoelectric detector temperature and detection measurement by respectively controlling the temperatures of the light source and the photoelectric detector; the photoelectric detector is controlled to be at a constant temperature, the temperature of the light source is controlled to perform triangular wave scanning, the numerical value of the detected quantity is collected, and least square fitting is adopted between the temperature of the light source and the detected quantity so as to fit a first relation coefficient of the temperature of the light source and the detected quantity; and/or controlling the light source to be constant in temperature, controlling the temperature of the photoelectric detector to perform triangular wave scanning and collecting detection quantity values, and fitting the temperature of the photoelectric detector and the detection quantity by adopting a least square method to fit a second relation coefficient of the temperature of the photoelectric detector and the detection quantity;
the working mode module is used for controlling the light path switching unit to enable the measuring light emitted by the light source to pass through a preset measured object; and acquiring the real-time light source temperature and the real-time photoelectric detector temperature, and correcting the measured quantity in real time according to the first relation coefficient and the second relation coefficient.
5. A controller, characterized in that the controller comprises: a memory, and a processor; the memory is to store computer instructions; the processor executes computer instructions to implement the method of any one of claims 1 to 3.
6. An in-line temperature compensation apparatus, the apparatus comprising: the optical system comprises a light source, an optical path switching unit, a photoelectric detector, a signal amplifying circuit, an analog-to-digital conversion unit, a first temperature control unit, a second temperature control unit and the controller according to claim 5;
the light source is used for emitting measuring light which is transmitted to the photoelectric detector through the light path switching unit; the photoelectric detector is used for converting an optical signal of the received measuring light into an electric signal; the electric signal is amplified by the signal amplifying circuit and converted by the analog-to-digital conversion unit to obtain a digital signal;
the first temperature control unit and the second temperature control unit are used for realizing temperature control according to the target temperature sent by the controller, acquiring real temperature and transmitting the real temperature to the controller;
the controller is used for controlling the light path switching of the light path switching unit through a digital IO signal, and is connected with the first temperature control unit and the second temperature control unit through a digital signal so as to respectively send the target temperature of the light source to the first temperature control unit and obtain the current temperature.
7. The apparatus according to claim 6, wherein the optical path switching unit comprises: a spectroscopic unit and a light shielding unit;
the light splitting part divides the measuring light into two paths according to a certain proportion; wherein one path of light directly irradiates the photoelectric detector; the other path of the light beam passes through a preset measured object and then irradiates the photoelectric detector;
the shading part consists of a baffle made of black light absorption material and an electromagnet; the electromagnet is controlled by a digital IO control signal of the controller to determine whether light currently irradiated on the photoelectric detector passes through the object to be measured.
8. The apparatus of claim 6, wherein the first temperature control unit comprises: the TEC device comprises a TEC device, a driving circuit, a thermistor, a radiating fin and a heat conducting structure; wherein the content of the first and second substances,
one surface of the TEC device is connected with the radiating fin, and the other surface of the TEC device is used as a working surface and is tightly connected with the light source through the heat conducting structure;
after receiving the target temperature sent by the controller through a digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface of the TEC device;
the thermistor is tightly attached to the heat conduction structure, and the real temperature of the light source represented by the detected temperature is transmitted to the controller through digital quantity.
9. The apparatus of claim 6, wherein the second temperature control unit comprises: the TEC device comprises a TEC device, a driving circuit, a thermistor, a radiating fin and a heat conducting structure; wherein the content of the first and second substances,
one surface of the TEC device is connected with the radiating fin, and the other surface of the TEC device is used as a working surface and is tightly connected with the photoelectric detector through the heat conducting structure;
after receiving the target temperature sent by the controller through a digital signal, the driving circuit controls the TEC device to reach the target temperature on the working surface of the TEC device;
the thermistor is tightly attached to the heat conduction structure, and the detected temperature characterizes the real temperature of the photoelectric detector and is transmitted to the controller through digital quantity.
10. The apparatus of claim 6, wherein the controller comprises: any one of a single chip microcomputer, an ARM, a PLC and an FPGA.
CN201911234766.5A 2019-12-05 2019-12-05 Online temperature compensation method and system, controller and online temperature compensation device thereof Active CN112925363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911234766.5A CN112925363B (en) 2019-12-05 2019-12-05 Online temperature compensation method and system, controller and online temperature compensation device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911234766.5A CN112925363B (en) 2019-12-05 2019-12-05 Online temperature compensation method and system, controller and online temperature compensation device thereof

Publications (2)

Publication Number Publication Date
CN112925363A CN112925363A (en) 2021-06-08
CN112925363B true CN112925363B (en) 2022-05-17

Family

ID=76161266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911234766.5A Active CN112925363B (en) 2019-12-05 2019-12-05 Online temperature compensation method and system, controller and online temperature compensation device thereof

Country Status (1)

Country Link
CN (1) CN112925363B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116434857B (en) * 2023-03-24 2024-03-15 青岛思普润水处理股份有限公司 Intelligent dosing setting method of sewage treatment system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964080A (en) * 2006-11-30 2007-05-16 武汉电信器件有限公司 A SCM-based bias voltage temperature compensation device of APD detector and its control flow
CN101216502A (en) * 2008-01-18 2008-07-09 北京航空航天大学 Wave plate temperature compensation system suitable for optical fibre current mutual inductor
CN102680582A (en) * 2012-06-07 2012-09-19 北京航空航天大学 Matching fiber grating acoustic emission sensing system with temperature compensation function
CN205246735U (en) * 2015-12-17 2016-05-18 常州市旭飞天成光电科技有限公司 Fiber current sensor SLED light source control system
CN205722026U (en) * 2016-02-22 2016-11-23 上海融军科技有限公司 A kind of APD Laser Detecting Set being used in guest flow statistics

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1074832C (en) * 1998-11-20 2001-11-14 清华大学 On-line near infrared multicomponent measuring method and apparatus
CN100554902C (en) * 2007-12-14 2009-10-28 北京航空航天大学 Be applicable to the temperature simple calibrating method of reflection-type polarization-preserving fiber temperature sensor
JP5397817B2 (en) * 2010-02-05 2014-01-22 国立大学法人名古屋大学 Interference measuring apparatus and measuring method
CN102072980A (en) * 2010-11-29 2011-05-25 浙江工业大学 Optical fiber temperature compensator of electronic current transformer
CN103868536B (en) * 2014-03-27 2016-03-30 北京航天时代光电科技有限公司 A kind of embedded optical fiber grating demodulated equipment
CN104359491B (en) * 2014-11-02 2017-05-10 中国航天科工集团第二研究院七〇六所 Light source screening and testing device
CN106595862B (en) * 2016-12-28 2018-02-27 华中科技大学 A kind of spectral analysis device using grating to adjustable FP temperature and nonlinear compensation
CN110398302A (en) * 2019-06-12 2019-11-01 浙江华云清洁能源有限公司 A kind of unicast two-way compensating optical fiber fluorescence temperature measurement system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964080A (en) * 2006-11-30 2007-05-16 武汉电信器件有限公司 A SCM-based bias voltage temperature compensation device of APD detector and its control flow
CN101216502A (en) * 2008-01-18 2008-07-09 北京航空航天大学 Wave plate temperature compensation system suitable for optical fibre current mutual inductor
CN102680582A (en) * 2012-06-07 2012-09-19 北京航空航天大学 Matching fiber grating acoustic emission sensing system with temperature compensation function
CN205246735U (en) * 2015-12-17 2016-05-18 常州市旭飞天成光电科技有限公司 Fiber current sensor SLED light source control system
CN205722026U (en) * 2016-02-22 2016-11-23 上海融军科技有限公司 A kind of APD Laser Detecting Set being used in guest flow statistics

Also Published As

Publication number Publication date
CN112925363A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN112925363B (en) Online temperature compensation method and system, controller and online temperature compensation device thereof
CN104596990A (en) Two-channel optical fiber method and sensor for measuring turbidity
CN101566551B (en) Backscattering smoke analyzer
CN102778455A (en) Detection system for colloidal gold immunochromatographic assay (GICA) test paper
CN102749306A (en) Bidirectional reflection distribution function (BRDF) absolute measure device
JPWO2016170681A1 (en) Optical measuring device
CN103940341A (en) Displacement and inclination angle integrated test instrument
US6781697B1 (en) Portable system and method for determining one or more reflectance properties of a surface
CN111579062A (en) Integrating sphere type laser power meter and using method thereof
CN109342368B (en) Dual-path contrast measurement spectrometer based on reference light signals and measurement method
KR20130042574A (en) Portable reflectometer and method for characterising the mirrors of solar thermal power plants
CN201788150U (en) Near infrared detector based on fixed grating and CCD technology
CN112925362A (en) Temperature characteristic detection method and system, controller and temperature characteristic detection device
CN104937397B (en) Bearing calibration and device and the body fluid composition measuring apparatus corrected using this method
CN205049184U (en) Humiture monitoring system based on TDLAS
CN105324659A (en) Optical unit and optical analysis device
JP4797233B2 (en) Compact sample concentration measuring device
CN111007037A (en) Liquid concentration measuring device based on optical device, computer equipment and computer readable storage medium
CN111309086A (en) APD bias voltage compensation circuit, compensation method and system, storage medium and control terminal
Postolache et al. Sensor network for environment monitoring: Water quality case study
CN204314211U (en) A kind of spectral reflectivity measuring system
Aleksandrov et al. Threshold sensitivity of the mid-IR sensors
CN212111141U (en) Portable optical detector
CN209387134U (en) A kind of wide spectrum photodetector
Cox Point-source location using hexagonal detector arrays

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