Reference voltage calibration method, device, equipment and storage medium
By adjusting the voltage amplitude in the optical particle counter to meet the preset error conditions, the reference voltage of the comparator is calibrated, solving the problem of inaccurate reference voltage calibration in the prior art and achieving more accurate particle size identification.
Patent Information
- Application Number
- CN202211557746.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-12-06
AI Technical Summary
In existing optical particle counters, the reference voltage calibration method is not precise enough, resulting in a large error between the particle counting result and the actual number of particles.
The comparator compares the real-time pulse voltage with the current reference voltage. Based on the error between the counting result and the actual particle counting result, the voltage amplitude is adjusted to meet the preset error condition, and finally the reference voltage of the comparator is calibrated.
This enables faster and more accurate calibration of the reference voltage in the comparator used to identify the preset particle size category, reducing errors in the counting results.
Smart Images

Figure CN115728212B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of particle counter technology, and in particular to a reference voltage calibration method, apparatus, device, and storage medium. Background Technology
[0002] The principle of an optical particle counter is to use a light beam to illuminate a particle and obtain the scattered light from the particle. This involves converting the particle's size information into scattered light. By collecting the scattered light and converting it into a voltage pulse signal, the amplitude of the voltage pulse signal obtained from the particle is identified to determine its size information. This identification of particle size information based on the voltage pulse signal amplitude is typically based on calibrated standard parameters. The particle's voltage pulse signal amplitude is compared with these standard parameters, and the particle size information is output based on the comparison result. Therefore, the accuracy of the standard parameters used for comparison is crucial for accurately identifying the particle's size information. Existing technologies typically calibrate the standard voltage using a constant step variation combined with empirical settings based on an initial reference voltage. To achieve accurate counting of each particle size category, making the reference voltage for the corresponding particle size category more accurate is an urgent problem to be solved. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a reference voltage calibration method, apparatus, device, and storage medium, which can more accurately calibrate the reference voltage in a comparator used to identify a preset particle size category. The specific solution is as follows:
[0004] In a first aspect, this application provides a reference voltage calibration method applied to a particle counter, comprising:
[0005] A comparator corresponding to a counting unit that counts particles of the target size is used to compare the currently acquired real-time pulse voltage with the current reference voltage, and the counting unit determines the current counting result of the particles of the target size based on the current voltage comparison result.
[0006] Based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size, determine whether the current counting result meets the preset error condition;
[0007] If so, determine the current voltage adjustment range corresponding to the preset error condition, and adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage;
[0008] The comparator's reference voltage is calibrated based on the adjusted voltage to obtain the calibrated reference voltage of the comparator.
[0009] Optionally, before determining whether the current counting result meets the preset error condition, the method further includes:
[0010] Based on the relationship between the current counting result and the actual particle counting result, and the relationship between the degree of counting error and the preset error range, the preset error condition is constructed.
[0011] Optionally, the step of constructing the preset error condition based on the magnitude relationship between the current counting result and the actual particle counting result, and the relationship between the counting error degree and the preset error range, includes:
[0012] A first preset error condition and a second preset error condition are constructed respectively, with the upper limit of the preset error range being the first preset error and the lower limit of the preset error range being the second preset error; the first preset error condition is that the current counting result is greater than the actual particle counting result and the counting error exceeds the first preset error, and the second preset error condition is that the current counting result is less than the actual particle counting result and the counting error exceeds the second preset error.
[0013] Optionally, determining whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size includes:
[0014] Based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size, it is determined that the current counting result meets the first preset error condition.
[0015] Optionally, determining the current voltage adjustment range corresponding to the preset error condition, and adjusting the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage, includes:
[0016] Determine the current voltage adjustment range corresponding to the first preset error condition, and perform a voltage increase operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage;
[0017] The current counting result corresponding to the current reference voltage is redefined, and based on the degree of counting error between the current counting result and the actual particle counting result, it is determined whether the current counting result meets the second preset error condition.
[0018] If not, then jump back to the step of increasing the voltage of the current reference voltage by the corresponding voltage adjustment based on the current voltage adjustment magnitude;
[0019] If so, a fraction of the current voltage adjustment range is used as the updated current voltage adjustment range, and a voltage reduction operation is performed on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage. Then, the process jumps back to the step of re-determining the current counting result corresponding to the current reference voltage until the counting error level corresponding to the current counting result is within the preset error range.
[0020] Optionally, the step of using a fraction of the current voltage adjustment range as the updated current voltage adjustment range includes:
[0021] Use half of the current voltage adjustment range as the updated current voltage adjustment range.
[0022] Optionally, calibrating the comparator's reference voltage based on the adjusted voltage to obtain the calibrated reference voltage of the comparator includes:
[0023] The adjusted current reference voltage, corresponding to the counting error level of the current counting result being within the preset error range, is calibrated to obtain the calibrated reference voltage of the comparator.
[0024] Optionally, calibrating the comparator's reference voltage based on the adjusted voltage to obtain the calibrated reference voltage of the comparator includes:
[0025] Each adjusted current reference voltage whose counting error is within the preset error range is determined as a first target reference voltage, and each adjusted current reference voltage whose counting error is within the preset error range is determined as a second target reference voltage.
[0026] The current reference voltage with the smallest absolute value of the counting error is selected from the first target reference voltage and the second target reference voltage as the calibrated reference voltage of the comparator.
[0027] Secondly, this application provides a reference voltage calibration device for use in a particle counter, comprising:
[0028] The result determination module is used to compare the currently acquired real-time pulse voltage with the current reference voltage using a comparator corresponding to the counting unit that counts particles of the target particle size, and to determine the current counting result of the particles of the target particle size based on the current voltage comparison result by the counting unit.
[0029] The condition determination module is used to determine whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size;
[0030] The voltage adjustment module is used to determine the current voltage adjustment range corresponding to the preset error condition if the condition is met, and to adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage.
[0031] A voltage calibration module is used to calibrate the reference voltage of the comparator based on the adjusted voltage to obtain the calibrated reference voltage of the comparator.
[0032] Thirdly, this application provides an electronic device, which includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned reference voltage calibration method.
[0033] Fourthly, this application provides a computer-readable storage medium, wherein the computer program, when executed by a processor, implements the aforementioned reference voltage calibration method.
[0034] In this application, when calibrating the reference voltage, a comparator corresponding to the counting unit that counts particles of the target particle size is first used to compare the currently acquired real-time pulse voltage with the current reference voltage. The counting unit then determines the current counting result for the particles of the target particle size based on the current voltage comparison result. Based on the degree of counting error between the current counting result and the actual particle count of the target particle size, it is determined whether the current counting result meets a preset error condition. If so, the current voltage adjustment range corresponding to the preset error condition is determined, and the current reference voltage is adjusted accordingly based on the current voltage adjustment range to obtain the adjusted voltage. Finally, the reference voltage of the comparator is calibrated based on the adjusted voltage to obtain the calibrated reference voltage of the comparator. Therefore, this application gradually adjusts the degree of counting error between the voltage-corresponding counting result and the actual particle count of the target particle size by adjusting the voltage by different ranges under different conditions. Finally, the voltage with the smallest absolute value of the counting error that meets the preset error condition is selected as the reference voltage, thereby enabling rapid and more accurate calibration of the reference voltage in the comparator used to identify the preset particle size category. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0036] Figure 1 A flowchart of a reference voltage calibration method provided in this application;
[0037] Figure 2 The timing diagram of the working principle of the particle counter provided in this application;
[0038] Figure 3 A schematic diagram of a reference voltage calibration method provided in this application;
[0039] Figure 4 A schematic diagram of a reference voltage calibration method provided in this application;
[0040] Figure 5 A flowchart of a specific reference voltage calibration method provided in this application;
[0041] Figure 6 A schematic diagram of a reference voltage calibration device provided in this application;
[0042] Figure 7 This application provides a structural diagram of an electronic device. Detailed Implementation
[0043] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0044] In existing technologies, to improve the accuracy of the reference voltage used for comparison, calibration is typically performed using a method of equal-step variation combined with empirical settings based on an initial reference voltage. However, the reference voltage obtained in this way is still not accurate enough, and the error between the obtained counting result and the actual number of particles is too large. To solve this technical problem, this application provides a reference voltage calibration method that can more accurately calibrate the reference voltage in the comparator used to identify a preset particle size category.
[0045] See also Figure 1 As shown, this embodiment of the invention discloses a reference voltage calibration method applied to a particle counter, comprising:
[0046] Step S11: Using a comparator corresponding to the counting unit that counts particles of the target particle size, the currently acquired real-time pulse voltage is compared with the current reference voltage, and the current counting result of the target particle size is determined by the counting unit based on the current voltage comparison result.
[0047] In this embodiment, as Figure 2 As shown, when using a particle counter, the fluid containing the particles to be measured is input into the particle counter. A light beam illuminates the particles, forming scattered light. This scattered light is converted into a photocurrent signal by a photodetector. The photocurrent signal is then amplified and converted into a voltage pulse signal, i.e., a pulse voltage. The amplitude of the voltage pulse signal is positively correlated with the cube of the particle size; larger particles generate more scattered light, resulting in a larger voltage pulse signal. This voltage pulse signal is then input to a comparator used to identify particle size categories (each comparator is preset to identify a specific particle size category, i.e., the target particle size, such as 0.3μm, 0.5μm, 1μm, etc.). μm, etc. Assuming a particle size category is 0.3μm, this means the particle size is ≥0.3μm. There can be multiple comparators, each typically preset to identify a specific particle size category. Each comparator has two inputs: one sets a reference voltage, and the other receives the particle's voltage pulse signal. (Based on the comparison between the reference voltage and the particle's voltage pulse signal, the comparator outputs different signals; for example, a high level is output when the voltage pulse signal is greater than the reference voltage, and a low level is output otherwise.) The corresponding counting unit of the comparator counts the comparator's output signal when the voltage pulse signal is greater than the reference voltage. It should be noted that the initial reference voltage of each comparator is usually set relatively low. For example, a comparator used to identify particles with a diameter of 1 μm might have an initial reference voltage set to a relatively low value of 800 mV. In this case, the voltage pulse signal generated by the photocurrent signal of a 0.8 μm particle after amplification and conversion by the particle counter circuitry might also be greater than 800 mV. This means that the number of particles with a diameter of 1 μm counted by the counting unit corresponding to the comparator is greater than the actual number of particles with a diameter of 1 μm. Therefore, a comparator corresponding to the counting unit that counts particles of the target diameter is needed to compare the currently acquired real-time pulse voltage with the current reference voltage. The counting unit then determines the current count result for the target diameter particles based on the current voltage comparison result, allowing for further comparison with the actual particle count result to determine whether the current voltage can be used as a reference voltage. Here, the currently acquired real-time pulse voltage is the voltage pulse signal generated by the photocurrent formed by the scattered light from the particles in the particle counter after amplification and conversion by the particle counter circuitry.
[0048] Step S12: Determine whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size.
[0049] In this embodiment, the counting result obtained by the counting unit corresponding to the comparator is used as the current counting result of particles of the target particle size under the current reference voltage. This result is compared with the actual counting result of particles of the target particle size to determine the degree of counting error between the two, and then it is determined whether the current counting result meets the preset error condition. As an implementable method, the degree of counting error here refers to the relative error between the current counting result (count value) of particles of the target particle size from the particle counter and the actual counting result (true value) of particles of the target particle size, i.e., = (count value - true value) / true value. The preset relative error range can be ±x. Furthermore, the true value is known, generally obtained through a standard particle counter, and no specific limitation is made here.
[0050] Step S13: If yes, determine the current voltage adjustment range corresponding to the preset error condition, and adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage.
[0051] In this embodiment, if the current counting result meets the preset error condition, the current voltage adjustment range corresponding to the preset error condition needs to be determined according to the met preset error condition, and the current reference voltage is adjusted accordingly based on the current voltage adjustment range to obtain the adjusted voltage. It should be noted that the preset error condition here includes three cases: the first is that the current counting result of particles of the target size is greater than the actual particle counting result of particles of the target size and the counting error exceeds the first preset error; the second is that the current counting result of particles of the target size is less than the actual particle counting result of particles of the target size and the counting error exceeds the second preset error; the third is that the counting error corresponding to the current counting result is within the preset error range. The voltage adjustment ranges corresponding to these three cases are different, and adjustments are made according to the conditions met by the current voltage. Here, exceeding the first preset error means that the counting error is greater than the first preset error, and exceeding the second preset error means that the counting error is less than the second preset error. Figure 3 , 4As shown, to ensure the current counting result meets the preset error condition, multiple adjustments of different magnitudes are made to obtain the adjusted voltage within the preset error range. However, existing voltage adjustment schemes typically determine the reference voltage by varying the voltage adjustment step size, using experience to set the reference voltage and its adjustment magnitude, or a combination of both. This method can easily lead to situations where an inappropriate voltage adjustment magnitude setting results in a counting result corresponding to that step size that fails to obtain a reference voltage with a counting error within the preset error range. A comparison with existing technologies clearly demonstrates that the method of this application can adjust and obtain the reference voltage more quickly and accurately.
[0052] Step S14: Calibrate the reference voltage of the comparator based on the adjusted voltage to obtain the calibrated reference voltage of the comparator.
[0053] In this embodiment, the reference voltage of the comparator is calibrated based on the adjusted voltage. At this time, the counting error corresponding to the counting result of the adjusted voltage is within the preset error range. Therefore, the adjusted voltage that is within the preset error range can be directly selected as the calibrated reference voltage of the comparator. Alternatively, the calibrated reference voltage of the comparator can be finally determined by a preset preferred adjusted voltage method.
[0054] As can be seen from the above, when calibrating the reference voltage, this application first uses a comparator corresponding to the counting unit that counts particles of the target particle size to compare the currently acquired real-time pulse voltage with the current reference voltage. The counting unit then determines the current counting result for the particles of the target particle size based on the current voltage comparison result. Based on the degree of counting error between the current counting result and the actual particle count result of the target particle size, it is determined whether the current counting result meets a preset error condition. If so, the current voltage adjustment range corresponding to the preset error condition is determined, and the current reference voltage is adjusted accordingly based on the current voltage adjustment range to obtain the adjusted voltage. Finally, the reference voltage of the comparator is calibrated based on the adjusted voltage to obtain the calibrated reference voltage of the comparator. It is evident that this application gradually adjusts the degree of counting error between the voltage-corresponding counting result and the actual particle count result of the target particle size by adjusting the voltage by different ranges under different conditions. Finally, the voltage with the smallest absolute value of the counting error that meets the preset error condition is selected as the reference voltage, thereby enabling rapid and more accurate calibration of the reference voltage in the comparator used to identify the preset particle size category.
[0055] See also Figure 5 As shown, this embodiment of the invention discloses a specific reference voltage calibration method applied to a particle counter, including:
[0056] Step S21: Using a comparator corresponding to the counting unit that counts particles of the target particle size, the currently acquired real-time pulse voltage is compared with the current reference voltage, and the current counting result of the target particle size is determined by the counting unit based on the current voltage comparison result.
[0057] Step S22: Based on the relationship between the current counting result and the actual particle counting result, and the relationship between the counting error degree and the preset error range, construct a first preset error condition and a second preset error condition, with the upper limit of the preset error range as the first preset error and the lower limit of the preset error range as the second preset error; the first preset error condition is that the current counting result is greater than the actual particle counting result and the counting error degree exceeds the first preset error, and the second preset error condition is that the current counting result is less than the actual particle counting result and the counting error degree exceeds the second preset error.
[0058] Step S23: Based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size, determine that the current counting result meets the first preset error condition.
[0059] Step S24: Determine the current voltage adjustment range corresponding to the first preset error condition, and perform a voltage increase operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage.
[0060] In this embodiment, if the current counting result is greater than the actual particle counting result and the counting error exceeds the first preset error, a new reference voltage is formed by adding a preset value to the current reference voltage value to create a new reference voltage. This new reference voltage is then used to recount the target particle size particles in the particle-containing fluid. It should be noted that, typically, the initial reference voltage of each comparator is set relatively low during the initial voltage setting process. For example, the initial reference voltage can be adjusted by input, or it can be set infinitely close to 0 within the settable range. Without specific restrictions, the number of target particle size particles counted by the counting unit corresponding to the comparator is greater than the actual number of target particle size particles. Therefore, the current counting result must satisfy the first preset error condition. Cases where the condition is not satisfied will not be described here.
[0061] Step S25: Re-determine the current counting result corresponding to the current reference voltage, and determine whether the current counting result meets the second preset error condition based on the degree of counting error between the current counting result and the actual particle counting result.
[0062] Step S26: If not, then jump back to the step of increasing the voltage of the current reference voltage by the corresponding voltage amplitude based on the current voltage adjustment amplitude.
[0063] In this embodiment, the adjusted current reference voltage obtained after increasing the current reference voltage is used as the current reference voltage for the comparator in the next round of particle counting. The current counting result corresponding to the current reference voltage is re-determined. If the current counting result cannot be less than the actual particle counting result and the counting error cannot exceed the second preset error, the process jumps back to step S24, where the current reference voltage is increased based on the current voltage adjustment range, until the current counting result is less than the actual particle counting result and the counting error exceeds the second preset error, at which point the current reference voltage is obtained. It can be understood that each time a new reference voltage is obtained as the current reference voltage and the current counting result corresponding to the current reference voltage is re-determined, the counting error between the current counting result and the actual particle counting result is calculated based on the counting error between the current counting result and the actual particle counting result corresponding to the current counting result.
[0064] Step S27: If yes, then take a fraction of the current voltage adjustment range as the updated current voltage adjustment range, and perform a voltage reduction operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage, and then jump back to the step of re-determining the current counting result corresponding to the current reference voltage, until the counting error level corresponding to the current counting result is within the preset error range.
[0065] In this embodiment, when the current counting result is less than the actual particle counting result and the counting error exceeds the second preset error, half of the current voltage adjustment amplitude is used as the updated current voltage adjustment amplitude. Based on this current voltage adjustment amplitude, a voltage reduction operation is performed on the current reference voltage to obtain the adjusted current reference voltage. For example, when the counting result meets the first preset error condition, the initial current reference voltage is 800mV, and the corresponding current voltage adjustment amplitude is 200mV. When the first preset error condition is met, the step of cyclically increasing by 200mV is started to form the adjusted current reference voltage, and the corresponding current counting result and the corresponding counting error are obtained until the second preset error condition is met. At this point, half of the current voltage adjustment amplitude of 200mV, i.e., 100mV, is subtracted from the current reference voltage. Each subsequent voltage reduction operation reduces the voltage by half the amount of the previous reduction, until the counting error corresponding to the current counting result is within the preset error range.
[0066] It is understood that in this application, when the counting result meets the first preset error condition, the voltage of the current reference voltage is increased based on the current voltage adjustment range corresponding to the first preset error condition to form an adjusted current reference voltage. When the current counting result and the degree of counting error are re-determined based on the adjusted current reference voltage and do not meet the second preset error condition, the voltage is increased again based on the current voltage adjustment range corresponding to the first preset error condition and the current counting result and the degree of counting error are re-determined until the second preset condition is met, and then the above-mentioned voltage reduction operation is performed.
[0067] Step S28: Calibrate the reference voltage of the comparator based on the adjusted voltage to obtain the calibrated reference voltage of the comparator.
[0068] In this embodiment, as a first feasible approach, the adjusted current reference voltage corresponding to the current counting result whose counting error level is within the preset error range is calibrated to obtain the calibrated reference voltage of the comparator. For example, a voltage reduction operation is performed on the current reference voltage based on the current voltage adjustment magnitude to obtain an adjusted current reference voltage, and the process jumps back to the step of re-determining the current counting result corresponding to the current reference voltage, until the adjusted current reference voltage corresponding to the current counting result whose counting error level is within the preset error range is used as the calibrated reference voltage. As a second feasible approach, each adjusted current reference voltage whose counting error level is within the preset error range among the current counting results corresponding to all adjusted current reference voltages obtained after each voltage increase operation is determined as a first target reference voltage, and a second target reference voltage whose counting error level is within the preset error range among the current counting results corresponding to all adjusted current reference voltages obtained after each voltage decrease operation is determined; the current reference voltage with the smallest absolute value of the counting error level is selected from the first target reference voltage and the second target reference voltage as the calibrated reference voltage of the comparator. It is understandable that the reference voltage after calibration in the first implementation method is within the preset error range and meets the calibration requirements. The reference voltage selected in the second implementation method is the most preferred reference voltage after calibration, and its corresponding counting result is closest to the actual particle counting result in the entire reference voltage calibration process. In this way, the reference voltage used in the comparator to identify the preset particle size category is accurately calibrated. However, both of these methods of calibrating the reference voltage are optional and can be used as a scheme when calibrating the reference voltage, and can be selected as needed.
[0069] The specific processes of steps S21 to S23 can be found in the relevant content disclosed in the foregoing embodiments, and will not be repeated here.
[0070] In summary, this application systematically and gradually adjusts the counting error between the counting results corresponding to each adjusted voltage and the actual particle counting results of the target particle size by adjusting the voltage by different amplitudes under different conditions. The adjusted voltage with the smallest absolute value of the counting error within the error range is selected as the calibrated reference voltage. This enables faster and more accurate calibration of the reference voltage in the comparator used to identify the preset particle size category. Furthermore, even if the preset error range is adjusted due to different application scenarios of the product, the calibration process of the voltage increase operation corresponding to the current voltage adjustment amplitude and the voltage decrease operation corresponding to the current voltage adjustment amplitude can still achieve the calibration of the reference voltage by adopting the calibration method of this application.
[0071] It is understood that the above description of the embodiments is only for the purpose of helping to understand the method and core idea of this application. For example, by adopting the opposite calibration process of the same concept, a third preset error condition and a fourth preset error condition are constructed respectively, with the lower limit of the preset error range as the third preset error and the upper limit of the preset error range as the fourth preset error. The third preset error condition is that the current counting result is less than the actual particle counting result and the counting error exceeds the third preset error. The fourth preset error condition is that the current counting result is greater than the actual particle counting result and the counting error exceeds the fourth preset error. When the third preset error condition is met, the voltage reduction operation is performed cyclically based on the preset current voltage adjustment amplitude until the fourth preset error condition is met. Then, a fraction of the current voltage adjustment amplitude is used as the updated current voltage adjustment amplitude to increase the current reference voltage until the counting result is within the preset error range.
[0072] See also Figure 6 As shown, this application discloses a reference voltage calibration method applied to a particle counter, comprising:
[0073] The result determination module 11 is used to compare the currently acquired real-time pulse voltage with the current reference voltage using a comparator corresponding to the counting unit that counts particles of the target particle size, and to determine the current counting result of the particles of the target particle size based on the current voltage comparison result by the counting unit.
[0074] The condition determination module 12 is used to determine whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size;
[0075] The voltage adjustment module 13 is used to determine the current voltage adjustment range corresponding to the preset error condition if the condition is met, and to adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage.
[0076] The voltage calibration module 14 is used to calibrate the reference voltage of the comparator based on the adjusted voltage to obtain the calibrated reference voltage of the comparator.
[0077] As can be seen from the above, when calibrating the reference voltage, this application first uses a comparator corresponding to the counting unit that counts particles of the target particle size to compare the currently acquired real-time pulse voltage with the current reference voltage. The counting unit then determines the current counting result for the particles of the target particle size based on the current voltage comparison result. Based on the degree of counting error between the current counting result and the actual particle count result of the target particle size, it is determined whether the current counting result meets a preset error condition. If so, the current voltage adjustment range corresponding to the preset error condition is determined, and the current reference voltage is adjusted accordingly based on the current voltage adjustment range to obtain the adjusted voltage. Finally, the reference voltage of the comparator is calibrated based on the adjusted voltage to obtain the calibrated reference voltage of the comparator. It is evident that this application gradually adjusts the degree of counting error between the voltage-corresponding counting result and the actual particle count result of the target particle size by adjusting the voltage by different ranges under different conditions. Finally, the voltage with the smallest absolute value of the counting error that meets the preset error condition is selected as the reference voltage, thereby enabling rapid and more accurate calibration of the reference voltage in the comparator used to identify the preset particle size category.
[0078] In some specific embodiments, the condition determination module 12 may specifically include:
[0079] An error condition construction unit is used to construct the preset error condition based on the magnitude relationship between the current counting result and the actual particle counting result, as well as the relationship between the degree of counting error and the preset error range.
[0080] In some specific embodiments, the condition determination module 12 may specifically include:
[0081] The condition construction unit is used to construct a first preset error condition and a second preset error condition respectively, with the upper limit of the preset error range as the first preset error and the lower limit of the preset error range as the second preset error; the first preset error condition is that the current counting result is greater than the actual particle counting result and the counting error degree exceeds the first preset error, and the second preset error condition is that the current counting result is less than the actual particle counting result and the counting error degree exceeds the second preset error.
[0082] In some specific embodiments, the condition determination module 12 may specifically include:
[0083] The counting result determination unit is used to determine whether the current counting result meets the first preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size.
[0084] In some specific embodiments, the voltage adjustment module 13 may specifically include:
[0085] The amplitude determination unit is used to determine the current voltage adjustment amplitude corresponding to the first preset error condition, and to perform a voltage increase operation on the current reference voltage based on the current voltage adjustment amplitude to obtain the adjusted current reference voltage.
[0086] The result determination unit is used to redetermine the current counting result corresponding to the current reference voltage, and determine whether the current counting result meets the second preset error condition based on the degree of counting error between the current counting result and the actual particle counting result.
[0087] The first jump unit is used to, if not, jump back to the step of increasing the voltage of the current reference voltage by the corresponding voltage magnitude based on the current voltage adjustment magnitude;
[0088] The second jump unit is used to, if so, take a fraction of the current voltage adjustment range as the updated current voltage adjustment range, and perform a voltage reduction operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage, and then jump back to the step of re-determining the current counting result corresponding to the current reference voltage until the counting error level corresponding to the current counting result is within the preset error range.
[0089] In some specific embodiments, the voltage adjustment module 13 may specifically include:
[0090] An amplitude update unit is used to use a fraction of the current voltage adjustment amplitude as the updated current voltage adjustment amplitude. For example, half of the current voltage adjustment amplitude is used as the updated current voltage adjustment amplitude. In some specific embodiments, the voltage calibration module 14 may specifically include:
[0091] The first voltage calibration unit is used to calibrate the adjusted current reference voltage corresponding to the current counting result where the counting error level is within the preset error range, so as to obtain the calibrated reference voltage of the comparator.
[0092] A voltage determination unit is used to determine, after each voltage increase operation, each adjusted current reference voltage whose counting error is within the preset error range in the current counting results corresponding to all adjusted current reference voltages obtained after each voltage increase operation, as a first target reference voltage; and to determine, after each voltage decrease operation, each adjusted current reference voltage whose counting error is within the preset error range in the current counting results corresponding to all adjusted current reference voltages obtained after each voltage decrease operation, as a second target reference voltage.
[0093] The second voltage calibration unit is used to select the current reference voltage with the smallest absolute value of the counting error from the first target reference voltage and the second target reference voltage as the calibrated reference voltage of the comparator.
[0094] Furthermore, embodiments of this application also disclose an electronic device, Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0095] Figure 7 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the reference voltage calibration method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0096] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0097] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0098] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the reference voltage calibration method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0099] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed reference voltage calibration method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0100] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0101] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0102] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0103] Finally, it should be noted that in this document, relational terms such as "second" and "first" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0104] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A reference voltage calibration method, characterized in that, Applications to particle counters include: A comparator corresponding to a counting unit that counts particles of the target size is used to compare the currently acquired real-time pulse voltage with the current reference voltage, and the counting unit determines the current counting result of the particles of the target size based on the current voltage comparison result. Based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size, determine whether the current counting result meets the preset error condition; If so, determine the current voltage adjustment range corresponding to the preset error condition, and adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage; The comparator's reference voltage is calibrated based on the adjusted voltage to obtain the calibrated reference voltage of the comparator; Before determining whether the current counting result meets the preset error condition, the method further includes: Based on the relationship between the current counting result and the actual particle counting result, and the relationship between the degree of counting error and the preset error range, the preset error condition is constructed. The preset error condition is constructed based on the relationship between the current counting result and the actual particle counting result, and the relationship between the degree of counting error and the preset error range, including: A first preset error condition and a second preset error condition are constructed respectively, with the upper limit of the preset error range as the first preset error and the lower limit of the preset error range as the second preset error; the first preset error condition is that the current counting result is greater than the actual particle counting result and the degree of counting error exceeds the first preset error, and the second preset error condition is that the current counting result is less than the actual particle counting result and the degree of counting error exceeds the second preset error. The step of determining the current voltage adjustment range corresponding to the preset error condition, and adjusting the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage, includes: Determine the current voltage adjustment range corresponding to the first preset error condition, and perform a voltage increase operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage; The current counting result corresponding to the current reference voltage is redefined, and based on the degree of counting error between the current counting result and the actual particle counting result, it is determined whether the current counting result meets the second preset error condition. If not, then jump back to the step of increasing the voltage of the current reference voltage by the corresponding voltage adjustment based on the current voltage adjustment magnitude; If so, a fraction of the current voltage adjustment range is used as the updated current voltage adjustment range, and a voltage reduction operation is performed on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage. Then, the process jumps back to the step of re-determining the current counting result corresponding to the current reference voltage until the counting error level corresponding to the current counting result is within the preset error range.
2. The reference voltage calibration method according to claim 1, characterized in that, The step of determining whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size includes: Based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size, it is determined that the current counting result meets the first preset error condition.
3. The reference voltage calibration method according to claim 1, characterized in that, The step of using a fraction of the current voltage adjustment range as the updated current voltage adjustment range includes: Use half of the current voltage adjustment range as the updated current voltage adjustment range.
4. The reference voltage calibration method according to claim 1, characterized in that, The step of calibrating the comparator's reference voltage based on the adjusted voltage to obtain the calibrated reference voltage of the comparator includes: The adjusted current reference voltage, corresponding to the counting error level of the current counting result being within the preset error range, is calibrated to obtain the calibrated reference voltage of the comparator.
5. The reference voltage calibration method according to claim 4, characterized in that, The step of calibrating the comparator's reference voltage based on the adjusted voltage to obtain the calibrated reference voltage of the comparator includes: Each adjusted current reference voltage whose counting error is within the preset error range is determined as a first target reference voltage, and each adjusted current reference voltage whose counting error is within the preset error range is determined as a second target reference voltage. The current reference voltage with the smallest absolute value of the counting error is selected from the first target reference voltage and the second target reference voltage as the calibrated reference voltage of the comparator.
6. A reference voltage calibration device, characterized in that, Applications to particle counters include: The result determination module is used to compare the currently acquired real-time pulse voltage with the current reference voltage using a comparator corresponding to the counting unit that counts particles of the target particle size, and to determine the current counting result of the particles of the target particle size based on the current voltage comparison result by the counting unit. The condition determination module is used to determine whether the current counting result meets the preset error condition based on the degree of counting error between the current counting result and the actual particle counting result of the target particle size; The voltage adjustment module is used to determine the current voltage adjustment range corresponding to the preset error condition if the condition is met, and to adjust the current reference voltage accordingly based on the current voltage adjustment range to obtain the adjusted voltage. A voltage calibration module is used to calibrate the reference voltage of the comparator based on the adjusted voltage to obtain the calibrated reference voltage of the comparator. The condition determination module includes: An error condition construction unit is used to construct the preset error condition based on the magnitude relationship between the current counting result and the actual particle counting result, as well as the relationship between the degree of counting error and the preset error range. The condition determination module includes: The condition construction unit is used to construct a first preset error condition and a second preset error condition respectively, with the upper limit of the preset error range as the first preset error and the lower limit of the preset error range as the second preset error; the first preset error condition is that the current counting result is greater than the actual particle counting result and the counting error degree exceeds the first preset error, and the second preset error condition is that the current counting result is less than the actual particle counting result and the counting error degree exceeds the second preset error. The voltage adjustment module includes: An amplitude determination unit is used to determine the current voltage adjustment amplitude corresponding to the first preset error condition, and to perform a voltage increase operation on the current reference voltage based on the current voltage adjustment amplitude to obtain the adjusted current reference voltage; The result determination unit is used to redetermine the current counting result corresponding to the current reference voltage, and determine whether the current counting result meets the second preset error condition based on the degree of counting error between the current counting result and the actual particle counting result. The first jump unit is used to, if not, jump back to the step of increasing the voltage of the current reference voltage by the corresponding voltage magnitude based on the current voltage adjustment magnitude; The second jump unit is used to, if so, take a fraction of the current voltage adjustment range as the updated current voltage adjustment range, and perform a voltage reduction operation on the current reference voltage based on the current voltage adjustment range to obtain the adjusted current reference voltage, and then jump back to the step of re-determining the current counting result corresponding to the current reference voltage until the counting error level corresponding to the current counting result is within the preset error range.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the reference voltage calibration method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, Used to store a computer program, wherein the computer program, when executed by a processor, implements the reference voltage calibration method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Particle counting method
CN113552048A
Particle counting sensor, method and device for controlling sensor and medium
CN114324125A