CN115542229B - Constant current source calibration system under complex temperature environment - Google Patents
Constant current source calibration system under complex temperature environment Download PDFInfo
- Publication number
- CN115542229B CN115542229B CN202211487126.7A CN202211487126A CN115542229B CN 115542229 B CN115542229 B CN 115542229B CN 202211487126 A CN202211487126 A CN 202211487126A CN 115542229 B CN115542229 B CN 115542229B
- Authority
- CN
- China
- Prior art keywords
- value
- theoretical
- code
- target
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/005—Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Control Of Voltage And Current In General (AREA)
Abstract
The invention discloses a constant current source calibration system in a complex temperature environment, which receives data of a temperature sensor through a processor and compensates the current output, thereby improving the reliability of current output of a constant current source and the capability of resisting severe environment. The circuit can adopt the design of nationwide devices, and realizes complete autonomous control. The temperature sensor is combined with the constant current source circuit, and the constant current source circuit is dynamically adjusted in a complex temperature environment by software adjustment, so that higher output precision, higher current adjustment precision and as wide a current output range as possible are kept, and the use requirements of special industries and severe environments are met.
Description
Technical Field
The invention relates to the technical field of constant current sources, in particular to a constant current source calibration system capable of dynamically ensuring the precision of an output current value in a complex temperature environment.
Background
The constant current source is a power source capable of supplying a constant current to a load. The constant current source has the advantages of high response speed, high constant current precision, capability of working stably for a long time, suitability for various loads (resistive, inductive and capacitive) and the like. The device is mainly used for detecting thermal relays, molded case circuit breakers, miniature circuit breakers and production occasions needing setting of rated current, action current, short-circuit protection current and the like.
When the constant current source is used in a scene with a high requirement on current stability, the influence of internal factors and external factors on the stability of the output current of the constant current source needs to be additionally considered. Among many external factors, the environmental temperature variation has a certain influence on the stability of the output current of the constant current source. Especially when the constant current source is used in a complicated environment with large variation amplitude, the technical personnel in the field are troubled by how to ensure the stability of the output current of the constant current source when the temperature changes.
The existing calibration method of the constant current source in a complex temperature environment is to adjust the performance of each part of devices in a hardware circuit, ensure that the overall temperature drift is reduced and maintain certain precision in a set temperature interval range. Or a fixed preset algorithm is adopted in certain temperature ranges according to the preset algorithm, and the calibration method has the limitations of small adaptive temperature range, small dynamic current adjustment range and low reliability. Meanwhile, most constant current source devices in the prior art cannot dynamically ensure the precision of the output current value in a complex temperature environment. In addition, most constant current source devices have small current output range and poor adjustment precision.
Therefore, how to provide a method for realizing high-precision calibration of a constant current source under a complex temperature environment is a technical problem which needs to be solved by a person skilled in the art urgently.
Disclosure of Invention
In view of the above, the present invention provides a constant current source calibration system in a complex temperature environment that overcomes or at least partially solves the above-mentioned problems. The system adopts hardware circuits such as a processor, a temperature sensor, a DA chip, a constant current source output current and constant current source output detection circuit and the like, and combines an algorithm to realize the function of dynamically adjusting the constant current source output.
The invention provides the following scheme:
a constant current source calibration system in a complex temperature environment comprises:
the system comprises a temperature sensor, a processor, a DA chip and a constant current source output circuit; the processor is respectively in communication connection with the temperature sensor and the DA chip, and the DA chip is in communication connection with the constant current source output circuit; the constant current source output circuit is used for being connected with a load;
the processor is configured to perform the following operations:
receiving a current environment temperature value sent by the temperature sensor and acquiring a theoretical current value of a theoretical current required to be output;
determining a corresponding theoretical D code value according to the theoretical current value; the theoretical current value and the theoretical D code value have a preset corresponding relationship;
calling a prestored target adjusting function according to the current environment temperature value and the theoretical D code value; the target adjusting function comprises a corresponding relation between the theoretical D code value and the actual D code value;
calculating to obtain a target D code value through the target adjusting function and the theoretical D code value;
sending the target D code value to the DA chip so that the DA chip can output a target analog voltage to the constant current source output circuit according to the target D code value; the constant current source output circuit is used for outputting a target current with a target current value according to the target analog voltage; the difference value of the target current value and the theoretical current value is within an allowable error range.
Preferably: the device also comprises an output detection circuit; the output detection circuit is in communication connection with the constant current source output circuit and the processor, and the load is connected with the output detection circuit;
the processor is further configured to receive the target current value detected by the output detection circuit;
judging whether the difference value of the target current value and the theoretical current value is within an allowable error range;
and determining whether the target D code value needs to be adjusted according to the judgment result.
Preferably: determining that the difference value between the target current value and the theoretical current value exceeds an allowable error range;
calculating to obtain a first difference value between the target current value and the theoretical current value;
and adding or subtracting the target D code value according to the positive and negative attributes of the first difference value and a first preset step size, so that the difference value between the target current value output by the constant current source output circuit and the theoretical current value is within an allowable error range.
Preferably: the method for establishing the target adjusting function in the simulation environment comprises the following steps:
determining the theoretical D code value according to the theoretical current value; the theoretical D code value is a D code value which is required to be sent to the DA chip by the constant current source output circuit under the current environment temperature value;
determining the actual D code value according to the actual current value; a second difference value between the actual current value and the theoretical current value is within an allowable error range;
determining the target adjustment function by a second difference of the theoretical D code value and the actual D code value.
Preferably: the determining the actual D code value according to the actual current value includes:
sending a first D code value to the DA chip under the current environment temperature value, so that the DA chip generates a first analog voltage according to the first D code value and sends the first analog voltage to the constant current source output circuit;
acquiring a first current value of a first current output by the constant current source output circuit according to the first analog voltage;
calculating a third difference value between the first current value and the theoretical current value;
adjusting the size of the first D code value according to the third difference value to obtain a second D code value;
sending the second D code value to the DA chip so that the DA chip can generate a second analog voltage according to the second D code value and send the second analog voltage to the constant current source output circuit;
acquiring a second current value of a second current output by the constant current source output circuit according to the second analog voltage;
and determining that the second D code value is the actual D code value after the fourth difference value between the second current value and the theoretical current value is within an allowable error range.
Preferably: the adjusting the size of the first D code value according to the third difference value to obtain a second D code value includes:
and adding or subtracting the first D code value according to the positive and negative attributes of the third difference value and a second preset stepping size to obtain a second D code value.
Preferably: determining a temperature interval in which the current environment temperature value is located and a D code value interval in which the theoretical D code value is located;
and calling the prestored target adjusting function according to the temperature interval and the D code value interval.
Preferably: the method for establishing the target adjusting function in the simulation environment comprises the following steps:
determining a plurality of theoretical D code values in one-to-one correspondence according to the plurality of theoretical current values; the plurality of theoretical D code values are corresponding D code values which are required to be sent to the DA chip by the constant current source output circuit in the temperature range;
determining a plurality of actual D code values which correspond one to one according to a plurality of actual current values; the one-to-one corresponding difference values of the actual current values and the theoretical current values are within an allowable error range;
determining the target adjustment function by a plurality of fifth differences of a plurality of theoretical D code values and a plurality of actual D code values.
Preferably: determining the target adjustment function by a plurality of fifth difference values of the plurality of theoretical D code values and the plurality of actual D code values, including:
fitting a number of the fifth difference values to form the target adjustment function so that the target adjustment function satisfies the corresponding relations of all the theoretical D code values and all the actual D code values in the temperature interval and the D code value interval.
Preferably: and acquiring the theoretical current value of the theoretical current required to be output by an upper computer.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the constant current source calibration system under the complex temperature environment, the data of the temperature sensor are received by the processor, the current output is compensated, and the reliability of constant current source current output and the adverse environment resistance are improved. The circuit can adopt the design of nationwide devices, and realizes complete autonomous control. The temperature sensor is combined with the constant current source circuit, and the constant current source circuit is dynamically adjusted in a complex temperature environment by software adjustment, so that higher output precision, higher current adjustment precision and as wide a current output range as possible are kept, and the use requirements of special industries and severe environments are met.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a connection block diagram of a constant current source calibration system in a complex temperature environment according to an embodiment of the present invention.
In the figure: the temperature sensor 1, the processor 2, the DA chip 3, the constant current source output circuit 4, the output detection circuit 5 and the load 6.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
Referring to fig. 1, a system for calibrating a constant current source in a complex temperature environment is provided according to an embodiment of the present invention, as shown in fig. 1, the system may include:
the device comprises a temperature sensor 1, a processor 2, a DA chip 3 and a constant current source output circuit 4; the processor 2 is respectively connected with the temperature sensor 1 and the DA chip 3 in a communication way, and the DA chip 3 is connected with the constant current source output circuit 4 in a communication way; the constant current source output circuit 4 is used for being connected with a load 6;
the processor 2 is configured to perform the following operations:
receiving a current environment temperature value sent by the temperature sensor 1 and acquiring a theoretical current value of a theoretical current required to be output; specifically, the theoretical current value of the theoretical current required to be output is obtained by an upper computer.
Determining a corresponding theoretical D code value according to the theoretical current value; the theoretical current value and the theoretical D code value have a preset corresponding relation;
calling a prestored target adjusting function according to the current environment temperature value and the theoretical D code value; the target adjusting function comprises a corresponding relation between the theoretical D code value and the actual D code value;
calculating to obtain a target D code value through the target adjusting function and the theoretical D code value;
sending the target D code value to the DA chip 3, so that the DA chip 3 outputs a target analog voltage to the constant current source output circuit 4 according to the target D code value; the constant current source output circuit 4 is configured to output a target current having a target current value according to the target analog voltage; the difference value of the target current value and the theoretical current value is within an allowable error range.
The constant current source calibration system under complex temperature environment that this application embodiment provided, hardware circuits such as treater, temperature sensor, DA chip, constant current source output circuit through the configuration, the treater combines corresponding algorithm can realize under different temperatures, carries out dynamic adjustment to the current of constant current source output, guarantees that the constant current source can all output the current that satisfies the error accuracy requirement under different ambient temperature. Therefore, the influence of the environment temperature on the precision of the output current of the constant current source is eliminated.
In the system, the D code value is a parameter value which is required to be sent by a processor for outputting corresponding analog voltage by a DA chip, different analog voltages can be generated when the DA chip receives different D code values, and different output currents with different current values can be generated when the constant current source output circuit receives different analog voltages; therefore, the adjustment of the current value of the current output by the constant current source output circuit can be realized by adjusting the D code value transmitted to the DA chip by the processor.
The system adopts the temperature sensor to acquire the ambient temperature in real time, and can dynamically adjust the D code value required by the DA chip according to the acquired current ambient temperature value of the ambient temperature after the ambient temperature changes or when the system is started for the first time, so that the constant current source output circuit can output the target current with the current value meeting the error precision requirement.
It can be understood that, since the target adjustment function provided in the embodiment of the present application is obtained in a simulation environment, in actual use, a situation that an actual difference between an obtained target current value and a theoretical current value cannot satisfy an allowable error range may occur, so that the target current value may be detected, and the target D code value is adjusted according to a detection result. The embodiment of the present application may provide an output detection circuit 5; the output detection circuit 5 is communicatively connected with the constant current source output circuit 4 and the processor 2, and the load 6 is connected with the output detection circuit 5;
the processor 2 is further configured to receive the target current value detected by the output detection circuit 5;
judging whether the difference value of the target current value and the theoretical current value is within an allowable error range;
and determining whether the target D code value needs to be adjusted according to the judgment result.
The output detection circuit can detect the output target current in real time, and the processor does not operate after the target current value and the theoretical current value are detected to be within an allowable error range, and the integrated current is output outwards. When the target current value and the theoretical current value are not detected to be within the allowable error range, the target D code value needs to be adjusted, so that the adjusted D code value can ensure that the generated target current value and the theoretical current value are within the allowable error range, and then the integrated current is output outwards.
The target D code value can be adjusted by determining that the difference value between the target current value and the theoretical current value exceeds an allowable error range;
calculating to obtain a first difference value between the target current value and the theoretical current value;
and adding or subtracting the target D code value according to the positive and negative attributes of the first difference value and a first preset step size, so that the difference value between the target current value output by the constant current source output circuit and the theoretical current value is within an allowable error range.
After the positive and negative values of the first difference value are determined, the addition and subtraction adjustment mode of the target D code value can be determined, because the D code value needs to be reduced when the first difference value is positive, and the D code value needs to be increased when the first difference value is negative. Based on the theory, the D code value can be adjusted through a first preset step size until the difference value between the target current value output by the constant current source output circuit and the theoretical current value is within an allowable error range.
It can be understood that the system can determine, in a simulated environment, respective adjustment functions corresponding to respective theoretical D code values and respective actual D code values in a one-to-one manner under an ambient temperature value before use; each adjustment function represents the corresponding relation between each theoretical D code value and each actual D code value under the environment temperature value. The specific method for establishing the target adjusting function in the simulation environment comprises the following steps:
determining the theoretical D code value according to the theoretical current value; the theoretical D code value is a D code value which is required to be sent to the DA chip by the constant current source output circuit under the current environment temperature value;
determining the actual D code value according to an actual current value, wherein a second difference value of the actual current value and the theoretical current value is within an allowable error range;
determining the target adjustment function by a second difference of the theoretical D code value and the actual D code value.
Specifically, the determining the actual D code value according to the actual current value includes:
sending the first D code value to the DA chip under the current environment temperature value, so that the DA chip generates a first analog voltage according to the first D code value and sends the first analog voltage to the constant current source output circuit;
acquiring a first current value of a first current output by the constant current source output circuit according to the first analog voltage;
calculating a third difference value between the first current value and the theoretical current value;
adjusting the size of the first D code value according to the third difference value to obtain a second D code value;
sending the second D code value to the DA chip so that the DA chip can generate a second analog voltage according to the second D code value and send the second analog voltage to the constant current source output circuit;
acquiring a second current value of a second current output by the constant current source output circuit according to the second analog voltage;
and determining that the second D code value is the actual D code value after the fourth difference value between the second current value and the theoretical current value is within an allowable error range.
The adjusting the size of the first D code value according to the third difference value to obtain a second D code value includes:
and adding or subtracting the first D code value according to the positive and negative attributes of the third difference value and a second preset stepping size to obtain a second D code value.
When the establishment method of the target adjustment function in the simulation environment provided by the embodiment of the application is in actual operation, for example, it is determined that the current environment temperature value is-25 ℃, the theoretical current value is 5mA, the precision requirement allowable error range is 0.1mA, and the theoretical D code value is 90.
When the target adjustment function is established, a testing D code value is input to the DA chip through the processor, the testing D code value can be random or theoretical D code value, and the input of the theoretical D code value is beneficial to reducing initial errors and is beneficial to subsequent adjustment to obtain an actual current value. For example, the input test D code value is 90, the test current value output by the output circuit is detected to be 5.2mA, the test current value is determined to be out of the allowable error range, and the test current value is increased relative to the theoretical current value, so that the value of the test D code value needs to be reduced. And reducing the test D code value by the step size of 1 until the test D code value is reduced to 84, determining that the obtained test current value is 5.016, determining that the test current value is 5.016 as an actual current value when the test current value is in an allowable error range, and determining 84 as the actual D code value. Differencing theoretical D code value 90 from actual D code value 84 determines a second difference value of 6, which may determine that the target adjustment function is y = x-6, where y is the theoretical D code value and y is the actual D code value. After the target adjusting function is determined, the storage can be used for being called by the processor.
When the temperature sensor is used, after the temperature sensor detects that the current environment temperature is-25 ℃, and when the theoretical current value is 5, the processor can call the target adjusting function y = x-6, the theoretical D code value x is 90 and is brought into the target adjusting function, the actual D code value y is 84, namely the target D code value is 84, and the DA chip transmits the target analog voltage generated according to the target D code value 84 to the constant current source output circuit, so that the target current with the target current value of 5.016 can be output.
The target D code value is determined by adopting the current temperature value and the corresponding target adjusting function of the corresponding theoretical D code value. Because the temperature change interval and the width interval of the theoretical D code value are generally larger in the complex temperature environment, if each temperature value and/or one theoretical D code value corresponds to one adjusting function, the number of the adjusting functions is too large, which is not beneficial to calling in practical application, and is also not beneficial to determining the adjusting functions in the simulation environment.
In order to solve the problem, the embodiment of the present application may provide a temperature interval in which the current ambient temperature value is located and a D code value interval in which the theoretical D code value is located;
and calling the prestored target adjusting function according to the temperature interval and the D code value interval.
Specifically, the method for establishing the target adjustment function in the simulation environment includes:
determining a plurality of theoretical D code values which correspond one to one according to the plurality of theoretical current values; the plurality of theoretical D code values are corresponding D code values which are required to be sent to the DA chip by the constant current source output circuit in the temperature range;
determining a plurality of actual D code values which correspond one to one according to a plurality of actual current values; the one-to-one corresponding difference values of the actual current values and the theoretical current values are within an allowable error range;
determining the target adjustment function by a plurality of fifth differences of a plurality of theoretical D code values and a plurality of actual D code values.
Determining the target adjustment function by a plurality of fifth differences between the plurality of theoretical D code values and the plurality of actual D code values, including:
fitting a number of the fifth difference values to form the target adjustment function so that the target adjustment function satisfies the corresponding relations of all the theoretical D code values and all the actual D code values in the temperature interval and the D code value interval.
According to the embodiment of the application, the number of the adjusting functions can be reduced by adopting a mode of dividing the temperature interval and the D code value interval. It can be understood that the same target adjustment function is adopted for calculating all target D code values in the next D code value interval in one temperature interval. In the process of determining, the target adjustment function is fitted with a plurality of fifth difference values, so that the target adjustment function can be used for representing the corresponding relations between all theoretical D code values and all actual D code values in the same D code value interval. The specific determination method will be described in detail later.
The method for establishing the adjustment function of the theoretical D code value and the actual D code value is described in detail below by taking the working environment of a constant current source of-25-55 ℃, the output current of 0-100 mA, the stepping of 5mA and the current output precision of plus or minus 0.1mA as an example.
The system provided by the embodiment of the application comprises hardware circuits such as a processor, a temperature sensor, a DA chip, a constant current source output circuit and a constant current source output detection circuit, and the dynamic adjustable constant current source output function is realized by combining an algorithm.
The magnitude of the output current of the constant current source provided by the embodiment of the application is indirectly controlled by the analog voltage generated by the DA chip, and the magnitude of the analog voltage is controlled by the D code value received and sent by the processor. The DA chip can generate different analog voltages after receiving different D code values. Therefore, the processor and the DA chip provided by the application can control the output current of the constant current source output circuit.
It can be understood that, at the beginning of setting the system, theoretical current values corresponding to different D code values need to be determined in a theoretical state, where a correspondence between the theoretical D code values and the theoretical current values may be determined according to characteristics of the DA chip, or a correspondence may be determined in a user-defined manner. For example, in the theoretical state, when the value of the D code output by the processor to the DA chip is 90, the constant current source output circuit may be controlled to output the theoretical current with the theoretical current value of 5 mA. For another example, when the value of the D code output to the DA chip by the processor is 180, the constant current source output circuit may be controlled to output the theoretical current with the theoretical current value of 10 mA. By analogy, the corresponding relation between a plurality of theoretical D code values and a plurality of theoretical current values in the current range can be determined according to the current output range of the constant current source output control circuit.
However, the correspondence between the theoretical D code value and the theoretical current value only exists in a theoretical environment, and in practical applications, after the DA chip receives a certain theoretical D code value and forms an analog voltage to output to the constant current source output circuit, the actual current value output by the constant current source output circuit is usually not exactly the same as the theoretical current value. Especially, under the condition that the external temperature is larger than the normal temperature and the external environment temperature difference, the drift of the output actual current value relative to the theoretical current value is more obvious. For example, when the value of the D code output by the processor to the DA chip is 90 at a certain ambient temperature, the constant current source output circuit outputs an actual current with an actual current value which may be 5.2mA, and it is found through calculation that there is an error of 0.2mA between the theoretical current value and the actual current value. In some situations where the accuracy of the output current is not high, the error may be sufficient for the application. However, in some cases where the requirement for the accuracy of the output current is high, the error exceeds the accuracy of the current error, and the requirement cannot be met.
Because the error that the actual current value appears can adjust the actual D sign indicating number value that acquires through the size of adjusting D sign indicating number value, this actual D sign indicating number value can make the actual current value of constant current source output circuit output more closely the theoretical current value and satisfy the error requirement. Therefore, the adjustment function of the theoretical D code value and the actual D code value can be obtained in the simulation environment, the theoretical D code value corresponding to the theoretical current value can be determined after the theoretical current value is determined, the theoretical D code value is input into the adjustment function, the actual D code value can be obtained through calculation, the DA chip generates the actual simulation voltage according to the actual D code value, and the constant current source output circuit can output the actual current with the actual current value meeting the error requirement according to the actual simulation voltage.
It can be understood that, because the theoretical D code values and the actual D code values have different relative relationships in different temperature intervals and different D code value intervals under the same temperature interval, a plurality of adjustment functions need to be established to meet the adjustment requirements of different temperature intervals and different D code value intervals on the theoretical D code values.
First, the correspondence between the theoretical D code value and the theoretical current value is determined, and the detailed correspondence is shown in table 1.
TABLE 1 corresponding relationship between theoretical D code value and theoretical current value
The temperature range is divided into a plurality of temperature intervals, and the specific division mode is-25 ℃ to-5 ℃, 4 ℃ to +24 ℃, 25 ℃ to +45 ℃ and 46 ℃ to +55 ℃.
Each theoretical D code value in Table 1 is divided into a plurality of D code value intervals. The specific division modes are 90-450, 540-900, 990-1350 and 1440-800.
And determining the actual D code value which corresponds to each actual current value meeting the output precision requirement in a one-to-one manner in a test mode in each temperature interval. And establishing a conversion adjusting function between each theoretical D code value and each actual D code value through the corresponding relation between each actual D code value and each theoretical D code value. The test results for the four temperature intervals and the established respective adjustment functions are shown in tables 2, 3, 4 and 5.
TABLE 2-25-5 ℃ temperature range test results and adjustment function
TABLE 3 temperature range of-4 deg.C- +24 deg.C test results and adjustment function
TABLE 4 test results and adjustment function for temperature range from +25 deg.C to +45 deg.C
TABLE 5 test results and adjustment function for temperature range from +46 deg.C to +55 deg.C
After the multiple adjusting functions are established and obtained in the above way, the system can be deployed and used. In practical use, if the system is started for the first time, the temperature sensor measures a temperature value in an external environment, the temperature value is transmitted to the processor through the data bus, for example, the processor obtains a current environment temperature value of 44 ℃, determines that the current environment temperature value is in a temperature range of +25 ℃ to +45 ℃, determines that a theoretical current value is 20mA through the upper computer, determines that a theoretical D code value is 360 according to the theoretical current value, determines that a target adjustment function is y = 1.0044x-4.4, brings x =360 into the target adjustment function y = 1.0044x-4.4, calculates to obtain a target D code value y =357.18, and inputs a DA chip to generate a corresponding target analog voltage after being approximately equal to 358. And integrating current output after detecting that the difference value between the target current value and the theoretical current value is within an allowable error range through the output detection circuit. And if the detected difference value is beyond the allowable error range, adjusting the target D code value in a mode of increasing or decreasing one value in a step. For example, if the target current value is detected to be 20.115mA, it is determined that the value of the target D code value needs to be reduced, the target D code value is reduced to 354, the target D code value is input to the DA chip to generate a corresponding target analog voltage, and the current output is integrated after the difference value between the target current value and the theoretical current value is detected to be within an allowable error range by the output detection circuit.
When the current environment temperature is detected to be changed to 47 ℃, the current environment temperature is determined to be in a temperature range of +46 ℃ to +55 ℃, so that a target adjusting function is determined to be y = 1.0056x-6.9, x =360 is substituted into the target adjusting function y = 1.0056x-6.9, a target D code value y =355.116 is obtained through calculation, and the target D code value y = 355.A corresponding target analog voltage is input into a DA chip after the target D code value is approximately equal to 355.
In a word, the constant current source calibration system under the complex temperature environment provided by the embodiment of the application receives the data of the temperature sensor through the processor, compensates the current output, and improves the reliability of the current output of the constant current source and the capability of resisting the adverse environment. The circuit can adopt the design of nationwide devices, and realizes complete autonomous control. The temperature sensor is combined with the constant current source circuit, and the constant current source circuit is dynamically adjusted in a complex temperature environment by software adjustment, so that higher output precision, higher current adjustment precision and as wide a current output range as possible are kept, and the use requirements of special industries and severe environments are met.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A constant current source calibration system under a complex temperature environment is characterized by comprising a temperature sensor, a processor, a DA chip and a constant current source output circuit; the processor is respectively in communication connection with the temperature sensor and the DA chip, and the DA chip is in communication connection with the constant current source output circuit; the constant current source output circuit is used for being connected with a load;
the processor is configured to perform the following operations:
receiving a current environment temperature value sent by the temperature sensor and acquiring a theoretical current value of a theoretical current required to be output;
determining a corresponding theoretical D code value according to the theoretical current value; the theoretical current value and the theoretical D code value have a preset corresponding relation;
calling a prestored target adjusting function according to the current environment temperature value and the theoretical D code value; the target adjusting function comprises a corresponding relation between the theoretical D code value and the actual D code value;
calculating to obtain a target D code value through the target adjusting function and the theoretical D code value;
sending the target D code value to the DA chip so that the DA chip can output a target analog voltage to the constant current source output circuit according to the target D code value; the constant current source output circuit is used for outputting a target current with a target current value according to the target analog voltage; the difference value of the target current value and the theoretical current value is within an allowable error range.
2. The calibration system for the constant current source under the complex temperature environment according to claim 1, further comprising an output detection circuit; the output detection circuit is in communication connection with the constant current source output circuit and the processor, and the load is connected with the output detection circuit;
the processor is further configured to receive the target current value detected by the output detection circuit;
judging whether the difference value of the target current value and the theoretical current value is within an allowable error range;
and determining whether the target D code value needs to be adjusted according to the judgment result.
3. The calibration system for the constant current source under the complex temperature environment according to claim 2, wherein after the difference value between the target current value and the theoretical current value is determined to be beyond an allowable error range;
calculating to obtain a first difference value between the target current value and the theoretical current value;
and adding or subtracting the target D code value according to the positive and negative attributes of the first difference value and a first preset step size, so that the difference value between the target current value output by the constant current source output circuit and the theoretical current value is within an allowable error range.
4. The system for calibrating a constant current source under a complex temperature environment according to claim 1, wherein the method for establishing the target adjusting function under a simulation environment comprises:
determining the theoretical D code value according to the theoretical current value; the theoretical D code value is a D code value which is required to be sent to the DA chip by the constant current source output circuit under the current environment temperature value;
determining the actual D code value according to the actual current value; a second difference value between the actual current value and the theoretical current value is within an allowable error range;
determining the target adjustment function by a second difference of the theoretical D code value and the actual D code value.
5. The calibration system for a constant current source under a complex temperature environment according to claim 4, wherein said determining the actual D code value according to the actual current value comprises:
sending a first D code value to the DA chip under the current environment temperature value, so that the DA chip generates a first analog voltage according to the first D code value and sends the first analog voltage to the constant current source output circuit;
acquiring a first current value of a first current output by the constant current source output circuit according to the first analog voltage;
calculating a third difference value between the first current value and the theoretical current value;
adjusting the size of the first D code value according to the third difference value to obtain a second D code value;
sending the second D code value to the DA chip so that the DA chip can generate a second analog voltage according to the second D code value and send the second analog voltage to the constant current source output circuit;
acquiring a second current value of a second current output by the constant current source output circuit according to the second analog voltage;
and determining that the second D code value is the actual D code value after the fourth difference value between the second current value and the theoretical current value is within an allowable error range.
6. The calibration system for a constant current source under a complex temperature environment according to claim 5, wherein said adjusting the magnitude of the first D code value according to the third difference value to obtain a second D code value comprises:
and adding or subtracting the first D code value according to the positive and negative attributes of the third difference value and a second preset stepping size to obtain a second D code value.
7. The calibration system for the constant current source under the complex temperature environment according to claim 1, wherein a temperature interval where the current environment temperature value is located and a D code value interval where the theoretical D code value is located are determined;
and calling the prestored target adjusting function according to the temperature interval and the D code value interval.
8. The system for calibrating a constant current source under a complex temperature environment according to claim 7, wherein the method for establishing the target adjusting function under a simulation environment comprises:
determining a plurality of theoretical D code values in one-to-one correspondence according to the plurality of theoretical current values; the plurality of theoretical D code values are corresponding D code values which are required to be sent to the DA chip by the constant current source output circuit in the temperature range;
determining a plurality of actual D code values which correspond one to one according to a plurality of actual current values; the one-to-one corresponding difference values of the actual current values and the theoretical current values are within an allowable error range;
determining the target adjustment function by a plurality of fifth differences of a plurality of theoretical D code values and a plurality of actual D code values.
9. The calibration system for a constant current source under complex temperature environment according to claim 8, wherein said determining said target adjusting function by several fifth differences of several said theoretical D code values and several said actual D code values comprises:
fitting a plurality of fifth difference values to form the target adjustment function so that the target adjustment function meets the temperature interval and the corresponding relation between all theoretical D code values and all actual D code values in the D code value interval.
10. The system for calibrating a constant current source under the complex temperature environment according to any one of claims 1 to 9, wherein the theoretical current value of the theoretical current required to be output is obtained by an upper computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211487126.7A CN115542229B (en) | 2022-11-25 | 2022-11-25 | Constant current source calibration system under complex temperature environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211487126.7A CN115542229B (en) | 2022-11-25 | 2022-11-25 | Constant current source calibration system under complex temperature environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115542229A CN115542229A (en) | 2022-12-30 |
CN115542229B true CN115542229B (en) | 2023-03-24 |
Family
ID=84720205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211487126.7A Active CN115542229B (en) | 2022-11-25 | 2022-11-25 | Constant current source calibration system under complex temperature environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115542229B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0504974A1 (en) * | 1991-03-18 | 1992-09-23 | Koninklijke KPN N.V. | Electrical supply circuit, in particular for APDs |
CN103438902A (en) * | 2013-08-14 | 2013-12-11 | 北京空间飞行器总体设计部 | Method for calibration of satellite gyro constant current source |
CN103729011A (en) * | 2012-10-10 | 2014-04-16 | 美国亚德诺半导体公司 | Method and circuit for low power voltage reference and bias current generator |
CN106125813A (en) * | 2016-08-01 | 2016-11-16 | 河北大学 | A kind of high stability constant-current source of portable wide amount limit |
JP2019192164A (en) * | 2018-04-27 | 2019-10-31 | 株式会社東海理化電機製作所 | Constant current source controller |
CN111736651A (en) * | 2020-05-26 | 2020-10-02 | 中国电子科技集团公司第四十三研究所 | Temperature compensation constant current source circuit and temperature compensation method |
CN213462414U (en) * | 2020-10-27 | 2021-06-15 | 西安钛铂锶电子科技有限公司 | Constant current source generating circuit, display driving chip, LED lamp panel and LED display screen |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107728094B (en) * | 2017-10-23 | 2020-09-29 | 宁德时代新能源科技股份有限公司 | Current calibration coefficient measuring device and method, and current detecting device and method |
US11477868B2 (en) * | 2020-01-10 | 2022-10-18 | Cirrus Logic, Inc. | Current control circuitry |
-
2022
- 2022-11-25 CN CN202211487126.7A patent/CN115542229B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0504974A1 (en) * | 1991-03-18 | 1992-09-23 | Koninklijke KPN N.V. | Electrical supply circuit, in particular for APDs |
CN103729011A (en) * | 2012-10-10 | 2014-04-16 | 美国亚德诺半导体公司 | Method and circuit for low power voltage reference and bias current generator |
CN103438902A (en) * | 2013-08-14 | 2013-12-11 | 北京空间飞行器总体设计部 | Method for calibration of satellite gyro constant current source |
CN106125813A (en) * | 2016-08-01 | 2016-11-16 | 河北大学 | A kind of high stability constant-current source of portable wide amount limit |
JP2019192164A (en) * | 2018-04-27 | 2019-10-31 | 株式会社東海理化電機製作所 | Constant current source controller |
CN111736651A (en) * | 2020-05-26 | 2020-10-02 | 中国电子科技集团公司第四十三研究所 | Temperature compensation constant current source circuit and temperature compensation method |
CN213462414U (en) * | 2020-10-27 | 2021-06-15 | 西安钛铂锶电子科技有限公司 | Constant current source generating circuit, display driving chip, LED lamp panel and LED display screen |
Non-Patent Citations (3)
Title |
---|
A Precision Constant Current Source Design with Ttrimming and Compensation;Xin xiaoning 等;《2012 International Conference on Control Engineering and Communication Technology》;20121231;第169-173页 * |
一种高精度数控双极性恒流源电路的设计;庄小利 等;《电子产品世界》;20100430;第44-45页 * |
利用DAC 芯片和运算放大器构建可编程电流源;肖伟杰;《机电产品开发与创新》;20210131;第34卷(第1期);第32-34页 * |
Also Published As
Publication number | Publication date |
---|---|
CN115542229A (en) | 2022-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3346350B1 (en) | Voltage regulation method, controller, and chip | |
CN113865757B (en) | Detection circuit, detection method and electronic equipment of piezoresistive pressure sensor | |
US2919401A (en) | Automatic calibration circuit | |
CN115542229B (en) | Constant current source calibration system under complex temperature environment | |
JP2019523616A (en) | Clock compensation circuit, clock circuit and microcontroller | |
US10634565B2 (en) | Temperature sensing apparatus and temperature sensing method thereof | |
US4147971A (en) | Impedance trim network for use in integrated circuit applications | |
US6957278B1 (en) | Reference -switch hysteresis for comparator applications | |
WO2013025357A1 (en) | Two-wire process control loop current diagnostics | |
US20160181797A1 (en) | Solar array simulation using common power supplies | |
CN110290447B (en) | Direct current bias unit, microphone working circuit and microphone control chip | |
CN218004002U (en) | Over-temperature protection circuit, integrated circuit chip and signal processing device | |
WO2023116869A1 (en) | Drift voltage correction circuit, integrated circuit, measurement apparatus, and electronic device | |
CN114740941B (en) | Bandgap reference circuit, integrated circuit, and electronic device | |
US20200326244A1 (en) | Temperature sensor evaluation method | |
US11955196B2 (en) | Memory device, voltage generating device and voltage generating method thereof | |
CN115480611A (en) | Power supply circuit, power supply system and electronic equipment | |
KR20180129477A (en) | Envelope-tracking current bias circuit with offset cancellation function | |
CN112147532A (en) | Passive electronic load circuit | |
KR20120111620A (en) | Analog input module of plc and method for detecting disconnection in the same | |
CN107612309B (en) | Series voltage-sharing control method and device | |
CN219322368U (en) | Analog-to-digital conversion calibration circuit and electronic equipment | |
CN113267990B (en) | Negative pressure tracking device and negative pressure tracking method | |
US20240213976A1 (en) | High Side Current Detection Circuit, Overcurrent Protection Circuit, Calibration Method and Electronic Devices | |
US7212064B1 (en) | Methods and systems for measuring temperature using digital signals |
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 |