CN-116499640-B - Air pressure sensor calibration method and device and air pressure sensor
Abstract
The invention discloses a method, a device and an air pressure sensor, which comprise the steps of determining the number of air pressure calibration points and the air pressure of each air pressure calibration point, wherein each air pressure calibration point corresponds to a standard frequency, obtaining the actual measurement frequency output by the air pressure sensor during measurement of the air pressure calibration point, obtaining the first frequency deviation of the air pressure calibration point according to the actual measurement frequency and the standard frequency corresponding to the air pressure calibration point, performing polynomial curve fitting on each first frequency deviation and each air pressure calibration point to obtain the corresponding relation between the frequency deviation and the air pressure, obtaining the second frequency deviation corresponding to the air pressure of each measuring point of the air pressure sensor according to the corresponding relation, and calibrating the frequency output by the air pressure sensor during measurement of the measuring point according to the standard frequency and the second frequency deviation corresponding to the measuring point. According to the invention, the air pressure sensor is not required to be calibrated manually, the degree of automation and the efficiency of calibration are improved, the calibration process is more perfect, and the calibration precision is improved to a certain extent.
Inventors
- LU YUFAN
- ZOU YONGKANG
Assignees
- 广东万和热能科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230310
Claims (10)
- 1. A method of calibrating a barometric sensor, comprising: Determining the number of air pressure calibration points and the air pressure of each air pressure calibration point, wherein each air pressure calibration point corresponds to a standard frequency; Acquiring the actual measurement frequency output by the air pressure sensor when the air pressure calibration point is measured; obtaining a first frequency deviation of the air pressure calibration point according to the actual measurement frequency and the standard frequency corresponding to the air pressure calibration point, wherein the first frequency deviation is a difference value between the actual measurement frequency and the standard frequency; performing polynomial curve fitting on each first frequency deviation and each air pressure calibration point to obtain a corresponding relation between the frequency deviation and air pressure, wherein the corresponding relation is a fitting function of a higher-order polynomial; substituting the air pressure of each measuring point in the measuring range of the air pressure sensor into the fitting function to obtain a second frequency deviation corresponding to the air pressure of each measuring point of the air pressure sensor, wherein each measuring point corresponds to a standard frequency; And calibrating the frequency output by the air pressure sensor when the measuring point is measured according to the standard frequency and the second frequency deviation corresponding to the measuring point.
- 2. The method for calibrating a barometric sensor according to claim 1, wherein, before calibrating a frequency output by the barometric sensor when the measurement point is measured according to a standard frequency and a second frequency deviation corresponding to the measurement point, the method further comprises: acquiring a preset expected value and a measurement range of the air pressure sensor; obtaining average frequency deviation in the measuring range according to each second frequency deviation in the measuring range; and if the average frequency deviation does not reach the expected value, returning to the step of determining the number of the air pressure calibration points.
- 3. The method of calibrating a barometric sensor of claim 2, further comprising: And if the average frequency deviation reaches the expected value, calibrating the frequency output by the air pressure sensor when the measuring point is measured according to the standard frequency corresponding to the measuring point and the second frequency deviation.
- 4. The air pressure sensor calibration method of claim 1, wherein determining the number of air pressure calibration points and the air pressure magnitude of each air pressure calibration point comprises: Determining the number of air pressure calibration points; Acquiring a measuring range of the air pressure sensor; and dividing the measuring range into a plurality of sections according to the number of the air pressure calibration points, and determining the air pressure of the air pressure calibration points according to the value of the end point air pressure of each section.
- 5. The method of calibrating a barometric sensor according to claim 2, wherein said correspondence is a fitting function of a higher order polynomial, and the average frequency deviation in said measurement range is obtained according to the following formula: In the above formula For average frequency deviation, P min is the minimum air pressure which can be measured by the air pressure sensor, P max is the maximum air pressure which can be measured by the air pressure sensor, A i is the coefficient of a fitting function, and k is the number of air pressure calibration points.
- 6. The method for calibrating a barometric sensor according to any one of claims 1-5, wherein calibrating a frequency output by the barometric sensor when the barometric sensor is measured at the measurement point according to a standard frequency corresponding to the measurement point and a second frequency deviation, comprises: and taking the sum of the standard frequency and the second frequency deviation as the frequency output when the measuring point is measured.
- 7. The barometric pressure sensor calibration method of any one of claims 1-5, wherein the standard frequency for each barometric pressure is determined by: Acquiring output frequencies of a plurality of air pressure sensors in a preset temperature environment when measuring a plurality of air pressures; calculating the average frequency of the output frequency of each air pressure as the standard frequency corresponding to each air pressure, and fitting an air pressure-standard frequency curve through each standard frequency and each air pressure to obtain the standard frequency corresponding to each air pressure.
- 8. A barometric sensor calibration device, comprising: The air pressure calibration point determining module is used for determining the number of the air pressure calibration points and the air pressure of each air pressure calibration point, and each air pressure calibration point corresponds to a standard frequency; The measured frequency acquisition module is used for acquiring the measured frequency output by the air pressure sensor when the air pressure calibration point is measured; the first frequency deviation determining module is used for obtaining the first frequency deviation of the air pressure calibration point according to the actual measurement frequency and the standard frequency corresponding to the air pressure calibration point, wherein the first frequency deviation is the difference value between the actual measurement frequency and the standard frequency; The frequency deviation curve fitting module is used for performing polynomial curve fitting on each first frequency deviation and each air pressure calibration point to obtain a corresponding relation between the frequency deviation and the air pressure, wherein the corresponding relation is a fitting function of a higher-order polynomial; the second frequency deviation determining module is used for substituting the air pressure of each measuring point in the measuring range of the air pressure sensor into the fitting function to obtain a second frequency deviation corresponding to the air pressure of each measuring point of the air pressure sensor, wherein each measuring point corresponds to a standard frequency; And the calibration module is used for calibrating the frequency output by the air pressure sensor when the measuring point is measured according to the standard frequency and the second frequency deviation corresponding to the measuring point.
- 9. The barometric sensor calibration device of claim 8, further comprising: The expected value and measurement range acquisition module is used for acquiring a preset expected value and a measurement range of the air pressure sensor; The average frequency deviation determining module is used for obtaining the average frequency deviation in the measuring range according to each second frequency deviation in the measuring range; And the average frequency deviation judging module is used for returning to the air pressure calibration point determining module if the average frequency deviation does not reach the expected value.
- 10. A barometric sensor is characterized in that, the air pressure sensor includes: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the barometric pressure sensor calibration method of any one of claims 1-7.
Description
Air pressure sensor calibration method and device and air pressure sensor Technical Field The invention relates to the technical field of sensor detection, in particular to a method and a device for calibrating an air pressure sensor and the air pressure sensor. Background The air pressure sensor is provided with a magnetic conductive film, a spring and a resonant circuit, so that the air pressure sensor can interact with the resonant circuit after driving the spring and the magnetic conductive film through air pressure, thereby changing the output frequency of the resonant circuit, and mapping the frequency into air pressure. At present, because of uncertainty of physical properties of components such as springs, magnetic conductive films and the like in the production process, the measurement error problem of the composed air pressure sensor also exists, and therefore the air pressure sensor needs to be calibrated before delivery. The traditional calibration mode is to manually and mechanically adjust screws, potentiometers and the like on the air pressure sensor after the air pressure sensor is connected with a standard air source, so that the automatic degree of the mode is low and the efficiency is low. Even if the air pressure sensor is calibrated in a software automation mode in the prior art, the calibration process is not perfect enough, so that the problem of low calibration precision to a certain extent is caused. Disclosure of Invention The invention provides a method and a device for calibrating an air pressure sensor and the air pressure sensor, which are used for solving the problem that the calibration accuracy is not high to a certain extent due to the fact that the existing method for calibrating the air pressure sensor is imperfect in the calibration process. In a first aspect, the present invention provides a method for calibrating a barometric sensor, comprising: Determining the number of air pressure calibration points and the air pressure of each air pressure calibration point, wherein each air pressure calibration point corresponds to a standard frequency; Acquiring the actual measurement frequency output by the air pressure sensor when the air pressure calibration point is measured; obtaining a first frequency deviation of the air pressure calibration point according to the measured frequency and the standard frequency corresponding to the air pressure calibration point; Polynomial curve fitting is carried out on each first frequency deviation and each air pressure calibration point, so that a corresponding relation between the frequency deviation and air pressure is obtained; obtaining a second frequency deviation corresponding to the air pressure of each measuring point of the air pressure sensor according to the corresponding relation, wherein each measuring point corresponds to a standard frequency; And calibrating the frequency output by the air pressure sensor when the measuring point is measured according to the standard frequency and the second frequency deviation corresponding to the measuring point. In a second aspect, the present invention provides a barometric sensor calibration apparatus comprising: The air pressure calibration point determining module is used for determining the number of the air pressure calibration points and the air pressure of each air pressure calibration point, and each air pressure calibration point corresponds to a standard frequency; The measured frequency acquisition module is used for acquiring the measured frequency output by the air pressure sensor when the air pressure calibration point is measured; the first frequency deviation determining module is used for obtaining the first frequency deviation of the air pressure calibration point according to the measured frequency and the standard frequency corresponding to the air pressure calibration point; The frequency deviation curve fitting module is used for performing polynomial curve fitting on each first frequency deviation and each air pressure calibration point to obtain a corresponding relation between the frequency deviation and the air pressure; the second frequency deviation determining module is used for obtaining second frequency deviations corresponding to the air pressure of each measuring point of the air pressure sensor according to the corresponding relation, and each measuring point corresponds to a standard frequency; And the calibration module is used for calibrating the frequency output by the air pressure sensor when the measuring point is measured according to the standard frequency and the second frequency deviation corresponding to the measuring point. In a third aspect, the present invention provides a barometric sensor comprising: at least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method o