CN116147736B - Control method and system of Hall liquid level sensor - Google Patents

Control method and system of Hall liquid level sensor Download PDF

Info

Publication number
CN116147736B
CN116147736B CN202310251381.XA CN202310251381A CN116147736B CN 116147736 B CN116147736 B CN 116147736B CN 202310251381 A CN202310251381 A CN 202310251381A CN 116147736 B CN116147736 B CN 116147736B
Authority
CN
China
Prior art keywords
measuring
temperature
liquid level
measurement
output voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310251381.XA
Other languages
Chinese (zh)
Other versions
CN116147736A (en
Inventor
马卫
罗云
黄森
王军军
雷佳
孟志坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING ZHONGXU ELECTRONICS SCIENCE AND TECHNOLOGY CO LTD
Original Assignee
NANJING ZHONGXU ELECTRONICS SCIENCE AND TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NANJING ZHONGXU ELECTRONICS SCIENCE AND TECHNOLOGY CO LTD filed Critical NANJING ZHONGXU ELECTRONICS SCIENCE AND TECHNOLOGY CO LTD
Priority to CN202310251381.XA priority Critical patent/CN116147736B/en
Publication of CN116147736A publication Critical patent/CN116147736A/en
Application granted granted Critical
Publication of CN116147736B publication Critical patent/CN116147736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/80Arrangements for signal processing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/30Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by floats
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F25/00Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume
    • G01F25/20Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume of apparatus for measuring liquid level

Abstract

The invention provides a control method and a control system of a Hall liquid level sensor, which are used for measuring the liquid level height and the output voltage corresponding to each preset moment in an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature; generating a reference measuring table corresponding to each measured temperature according to the reference water inlet measuring table and the reference water outlet measuring table; acquiring the current application temperature in a liquid level measurement scene in real time, and if the current application temperature exists in the temperature measurement table, acquiring the measured liquid level height corresponding to the current output voltage according to the current application temperature; if the current application temperature does not exist in the temperature measuring table, acquiring the measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature, and obtaining the measured liquid level height corresponding to the current output voltage at the current application temperature according to the reference temperature.

Description

Control method and system of Hall liquid level sensor
Technical Field
The invention relates to a data processing technology, in particular to a control method and a control system of a Hall liquid level sensor.
Background
A hall level sensor is a sensor that uses the hall effect of semiconductor materials to make level measurements. The Hall liquid level sensor has a simple structure, is generally arranged outside a container, is supported on a floater by a permanent magnet, and changes the magnetic induction intensity of a magnetic field acting on the Hall device along with the change of the liquid level, so that the liquid level can be measured.
The Hall liquid level sensor has wide application range, and the temperature of the measured liquid can be different. The hall sensor can generate measurement errors due to different temperatures in actual working scenes, so that measurement is inaccurate.
Therefore, how to adaptively adjust the reference parameters during measurement by combining the temperature of the hall liquid level sensor in the actual working scene, and reducing the measurement error are the problems to be solved in the present day.
Disclosure of Invention
The embodiment of the invention provides a control method and a control system for a Hall liquid level sensor, which can be used for adaptively adjusting reference parameters in measurement by combining the temperature of the Hall liquid level sensor in an actual working scene, so as to reduce measurement errors.
In a first aspect of an embodiment of the present invention, a control method of a hall liquid level sensor is provided, including:
acquiring a plurality of measured temperatures in the temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, and measuring liquid level heights and output voltages corresponding to preset moments in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature;
Generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages;
acquiring a current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and a current output voltage of a Hall liquid level sensor, and acquiring a reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage;
if the current application temperature does not exist in the temperature measuring table, acquiring a measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature, and a reference measuring table corresponding to the reference temperature as a reference measuring table, acquiring a second current measuring table corresponding to the current application temperature according to the reference measuring table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measuring table as a second measured liquid level height based on the second current measuring table and the current output voltage.
Optionally, in one possible implementation manner of the first aspect, measuring, based on a circulation policy, a liquid level height and an output voltage corresponding to each preset time in an initial water inlet measurement table and an initial water outlet measurement table corresponding to each measured temperature, to obtain a reference water inlet measurement table and a reference water outlet measurement table corresponding to each measured temperature, including:
the method comprises the steps of ascending sequence sorting is conducted on a plurality of measured temperatures to obtain a measured temperature sequence, the measured temperature at the first one in the measured temperature sequence is obtained to serve as the current heating temperature, water is heated according to the heating temperature based on water inlet heating equipment, and after the current heating temperature is reached, heated water is added into a measuring barrel according to a preset flow rate based on a water inlet pump;
acquiring a first time sequence corresponding to the initial water inlet measuring table, sequentially measuring the water inlet liquid level height in the measuring barrel based on a preset flow rate and each first preset time in the first time sequence, and acquiring the water inlet output voltage of a Hall liquid level sensor in the measuring barrel at each first preset time in real time;
stopping water inflow when the water inflow liquid level height is equal to the preset measurement height, and generating a reference water inflow measurement table according to water inflow output voltages and water inflow liquid level heights corresponding to all first preset moments in the first moment sequence;
The water in the measurement flux is returned to the water inlet heating equipment according to a preset flow rate on the basis of a water outlet pump, a second time sequence corresponding to the initial water outlet measurement meter is obtained, the water outlet liquid level height corresponding to each second preset time in the second time sequence is obtained according to the reference water inlet measurement meter, and the water outlet output voltage of the Hall liquid level sensor in the measurement barrel at each second preset time is collected in real time;
stopping water outlet when all water in the measuring barrel flows back to the water inlet heating equipment, and generating a reference water outlet measuring table according to water outlet output voltage and water outlet liquid level height corresponding to all second preset moments in the second moment sequence;
and obtaining the next measured temperature in the measured temperature sequence as the current heating temperature, and repeating the steps until the reference water inlet measuring meter and the reference water outlet measuring meter corresponding to all the measured temperatures in the measured temperature sequence are obtained, and stopping measuring.
Optionally, in one possible implementation manner of the first aspect, obtaining, according to the reference water inlet measurement table, a water outlet level height corresponding to each second preset time in the second time sequence includes:
sequencing all the water inlet liquid level heights in a descending order to obtain a water outlet height sequence;
Sequentially filling the liquid level heights in the water outlet height sequence into second preset moments corresponding to the second moment sequence to obtain water outlet liquid level heights corresponding to the second preset moments;
the first preset time corresponds to the second preset time one by one.
Optionally, in one possible implementation manner of the first aspect, measuring the intake water level height in the measuring tank sequentially based on a preset flow rate and each first preset time in the first time sequence includes:
acquiring the bottom area of the measuring barrel, and calculating to obtain the water inlet liquid level height corresponding to the corresponding water inlet output voltage at the first preset moment according to the bottom area, the preset flow rate and the first preset moment;
the intake water level height is calculated by the following formula,
Figure SMS_1
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_2
for the intake water level height corresponding to the first preset moment,/for the first preset moment>
Figure SMS_3
For a preset flow rate->
Figure SMS_4
For the first preset moment of time,
Figure SMS_5
to measure the bottom area of the tub +.>
Figure SMS_6
Is the weight value of the water inlet liquid level height.
Optionally, in a possible implementation manner of the first aspect, generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table includes:
Acquiring water inlet output voltages corresponding to first preset moments in a reference water inlet measuring meter as first calibration voltages, and water outlet output voltages corresponding to second preset moments in the reference water outlet measuring meter as second calibration voltages;
ascending order sequencing is carried out on all the first calibration voltages according to a first preset time to obtain a first calibration sequence, descending order sequencing is carried out on all the second calibration voltages according to a second preset time to obtain a second calibration sequence;
obtaining a reference output voltage according to the average value of a first calibration voltage and a second calibration voltage with the same serial numbers in a first calibration sequence and a second calibration sequence, obtaining a water inlet liquid level height or a water outlet liquid level height corresponding to the reference output voltage as a reference liquid level height, and generating a reference measurement table based on all the reference output voltages and the reference liquid level heights corresponding to the reference output voltages;
the reference output voltage is calculated by the following formula,
Figure SMS_7
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_8
for reference output voltage, +.>
Figure SMS_9
For the first calibration voltage, +.>
Figure SMS_10
For the second calibration voltage +.>
Figure SMS_11
The voltage weight value is outputted as a reference.
Optionally, in a possible implementation manner of the first aspect, the obtaining the preset flow rate includes:
Acquiring a measurement precision level corresponding to the liquid level measurement scene, which is input by a user based on a control end, according to a measurement precision correspondence table, obtaining a measurement precision coefficient corresponding to the measurement precision level, and according to the measurement precision coefficient, obtaining a first adjustment coefficient, wherein the measurement precision correspondence table comprises a plurality of measurement precision levels and measurement precision coefficients corresponding to the measurement precision levels;
acquiring a height span interval corresponding to the liquid level measurement scene and the highest measurement height corresponding to the height span interval, and obtaining a second adjustment coefficient according to the highest measurement height;
adjusting the reference flow rate based on the first adjustment coefficient and the second adjustment coefficient to obtain a preset flow rate in a liquid level measurement scene;
the preset flow rate in the level measurement scenario is calculated by the following formula,
Figure SMS_12
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_13
for a preset flow rate in the level measurement scenario, +.>
Figure SMS_14
For reference measurement accuracy coefficient, +.>
Figure SMS_15
For measuring the precision coefficient, +.>
Figure SMS_16
For the highest measurement height, +.>
Figure SMS_17
For the reference maximum measurement height, +.>
Figure SMS_18
For the reference flow rate>
Figure SMS_19
Is a preset flow rate weight value.
Optionally, in one possible implementation manner of the first aspect, acquiring a measured temperature adjacent to the current application temperature in the temperature measurement table as a reference temperature, and a reference measurement table corresponding to the reference temperature as a reference measurement table, and obtaining, according to the reference measurement table, a second current measurement table corresponding to the current application temperature, where the method includes:
Obtaining a total temperature difference value according to the difference value of the reference temperatures, calculating to obtain a current application temperature difference value according to the smaller reference temperature in the current application temperature and the reference temperature, and obtaining a duty ratio coefficient based on the ratio of the current application temperature difference value to the total temperature difference value;
and acquiring a reference measuring table with a larger reference temperature as a first measuring table and a reference measuring table with a smaller reference temperature as a second measuring table, and obtaining a second current measuring table corresponding to the current application temperature according to the first measuring table, the second measuring table and the duty ratio coefficient.
Optionally, in one possible implementation manner of the first aspect, obtaining, according to the first measurement table, the second measurement table, and the duty ratio coefficient, a second current measurement table corresponding to the current application temperature includes:
acquiring a first reference output voltage corresponding to each preset time in the first measuring table and a second reference output voltage corresponding to each preset time in the second measuring table, and acquiring an output voltage difference value according to the first reference output voltage and the second reference output voltage corresponding to the same preset time in the first measuring table and the second measuring table;
Obtaining rising output voltage according to the duty ratio coefficient and the output voltage difference value, obtaining reference output voltage according to the second reference output voltage and the rising output voltage, and obtaining a first reference liquid level height or a second reference liquid level height corresponding to the reference output voltage in a first measuring table or a second measuring table as a reference liquid level height;
and generating a second current measuring table corresponding to the current application temperature according to the reference output voltage and the reference liquid level height corresponding to all preset moments.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
and acquiring the lowest measured temperature and the highest measured temperature in the temperature measuring table, if the current application temperature is smaller than the lowest measured temperature or larger than the highest measured temperature, generating reminding information, and sending the reminding information to a display end for display.
In a second aspect of the embodiment of the present invention, there is provided a control system of a hall level sensor, including:
the measuring module is used for acquiring a plurality of measured temperatures in the temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, measuring the liquid level height and the output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy, and obtaining a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature;
The fusion module is used for generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages;
the real-time module is used for acquiring the current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and the current output voltage of the Hall liquid level sensor, and acquiring the reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage;
the reference module is used for acquiring a measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature and a reference measuring table corresponding to the reference temperature as a reference measuring table if the current application temperature does not exist in the temperature measuring table, acquiring a second current measuring table corresponding to the current application temperature according to the reference measuring table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measuring table as a second measured liquid level height based on the second current measuring table and the current output voltage.
The beneficial effects of the invention are as follows:
1. according to the invention, a set of automatic circulation testing device is used for measuring a plurality of groups of reference data of the Hall liquid level sensor at different temperatures, so that the measuring table corresponding to the different temperatures is generated, and the corresponding reference data can be adjusted according to the different external temperatures in an actual application scene during actual measurement, so that the reference data during actual measurement can be attached to the application scene. When multiple groups of reference data at different temperatures are obtained, the invention firstly measures the corresponding output voltage and liquid level height at different moments in the water inlet process and the water outlet process to obtain the measuring tables corresponding to the water inlet process and the water outlet process, and then fuses the measuring tables corresponding to the water inlet process and the water outlet process to obtain the corresponding measuring tables at different temperatures. In actual measurement, the liquid level measuring device can measure the liquid level in different scenes according to the corresponding measuring meters at different temperatures, so that the reference data in measurement can be attached to the actual scenes. When the current temperature corresponding to the actual scene does not exist in the temperature measuring table, the invention also generates the measuring table corresponding to the current temperature in the actual scene according to the measuring table corresponding to the corresponding temperature in the temperature measuring table, so that the corresponding liquid level height in the current temperature is correspondingly measured, the invention can obtain the corresponding reference data in different temperatures according to the actual situation, and thus, staff can correspondingly measure the liquid levels in different scenes according to the reference data.
2. When the output voltage and the liquid level height at different temperatures are measured, the invention firstly carries out ascending order sequencing on a plurality of measured temperatures, then sequentially carries out measurement on the output voltage and the liquid level height at different temperatures, and after the data corresponding to the last temperature are measured, water in the measuring barrel is returned to the heating equipment to carry out measurement on the data corresponding to the next temperature, and the invention circulates in this way until the data of all temperatures are measured, and the measurement is stopped, thus the measurement on the corresponding data of all temperatures can be automatically completed. In the measuring process, the invention can respectively measure the output voltage and the liquid level height at different moments in the water inlet process and the water outlet process, so that the data obtained in the water inlet process and the water outlet process can be calibrated, the errors of the data obtained in the water inlet process and the water outlet process are reduced, and the obtained data can be more accurate.
3. In order to enable the parameters during measurement to be suitable for the precision requirements under different application scenes, the invention can also obtain the corresponding preset flow rates under different scenes, and the accuracy during measurement is improved through the preset flow rates. The slower the flow rate, the slower the time for the liquid level to rise, the closer the calculated liquid level and the actual liquid level may be at a time based on the flow rate, and the higher the accuracy of the measurement may be. Specifically, the method and the device can calculate the corresponding preset flow rate according to the precision level and the height span interval input by the user under different measurement scenes, so that the corresponding preset flow rate under different scenes can be obtained, the corresponding precision adjustment can be carried out on the data during measurement through the preset flow rate, the obtained measurement data can be more attached to different application scenes, the precision during measurement can be improved, and the data during measurement is more accurate.
Drawings
Fig. 1 is a schematic flow chart of a control method of a hall liquid level sensor according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a control system of a hall level sensor according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of 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, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a schematic diagram of a control method of a hall level sensor according to an embodiment of the present invention is shown, and an execution body of the method shown in fig. 1 may be a software and/or hardware device. The execution bodies of the present application may include, but are not limited to, at least one of: user equipment, network equipment, etc. The user equipment may include, but is not limited to, computers, smart phones, personal digital assistants (Personal Digital Assistant, abbreviated as PDA), and the above-mentioned electronic devices. The network device may include, but is not limited to, a single network server, a server group of multiple network servers, or a cloud of a large number of computers or network servers based on cloud computing, where cloud computing is one of distributed computing, and a super virtual computer consisting of a group of loosely coupled computers. This embodiment is not limited thereto. The method comprises the steps S1 to S4, and specifically comprises the following steps:
S1, acquiring a plurality of measured temperatures in a temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, and measuring liquid level height and output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature.
When the method is used for testing, the preset number of Hall liquid level sensors are randomly selected from the Hall liquid level sensors in the same batch, measurement is carried out according to the method, measurement data are obtained, and the measurement data are copied into other Hall liquid level sensors in the same batch.
It can be understood that, in order to adjust the parameters during measurement according to the change of the external temperature in the actual application scene, the invention firstly measures the related parameters at a plurality of measurement temperatures to obtain the corresponding related parameters at each measurement temperature, and then changes the related parameters according to the different actual application scenes, thereby enabling the parameters during measurement to be more in line with the scenes in actual application.
Specifically, the invention firstly obtains a plurality of initial measuring tables corresponding to the measured temperatures, and then records the obtained parameters in the measurement into the initial measuring tables, wherein the parameters for the measurement can be the liquid level height and the output voltage.
It can be further understood that the invention records the liquid level height and the output voltage of the water inlet process and the water outlet process respectively, so as to calibrate the data obtained in the water inlet process and the water outlet process and reduce the errors of the measured data in the water inlet process and the water outlet process.
The specific implementation manner of step S1 based on the above embodiment may be:
s11, ascending order is carried out on a plurality of measured temperatures to obtain a measured temperature sequence, the measured temperature at the first one in the measured temperature sequence is obtained to serve as the current heating temperature, water is heated according to the heating temperature based on the water inlet heating equipment, and after the current heating temperature is reached, the heated water is added into the measuring barrel according to the preset flow rate based on the water inlet pump.
In practical applications, the measured temperature may be preset according to practical situations, for example, a plurality of temperatures within a temperature range of 10 ℃ to 50 ℃ may be used.
In order to obtain corresponding measurement data at different temperatures, the method can firstly perform ascending order sequencing on a plurality of preset temperatures and then sequentially heat water according to the sequencing order, so that measurement on the corresponding data at all temperatures can be automatically completed.
In addition, due to different practical application scenarios, the accuracy requirements for measurement may also be different. For example, in some situations where security is a high requirement, the measurement accuracy may be higher than in other situations.
It can be understood that, because the solution is to pour water into the measuring barrel through the preset flow rate when measuring liquid level and output voltage based on the measuring barrel, the accuracy in measurement is associated with the preset flow rate, when the flow rate is slower, the time for the liquid level to rise is slower, the liquid level calculated according to the flow rate at a certain moment is likely to be closer to the actually obtained liquid level, and the accuracy in measurement is likely to be higher.
Therefore, in order to improve the accuracy in measurement, the present solution further obtains the preset flow rate through the following steps:
the method comprises the steps of obtaining a measurement precision level corresponding to the liquid level measurement scene, which is input by a user based on a control end, obtaining a measurement precision coefficient corresponding to the measurement precision level according to a measurement precision correspondence table, and obtaining a first adjustment coefficient according to the measurement precision coefficient, wherein the measurement precision correspondence table comprises a plurality of measurement precision levels and measurement precision coefficients corresponding to the measurement precision levels.
It can be appreciated that, because the accuracy requirement during measurement may be related to the actual application scenario, the corresponding preset flow rate in the scenario may be calculated according to the accuracy coefficients in different scenarios.
The measurement precision level can be selected by a user according to the actual requirements of an application scene, and the corresponding measurement precision coefficient can be further obtained according to the measurement precision corresponding table.
For example, the measurement accuracy mapping table may include five levels from i to v, where the larger the level is, the higher the corresponding measurement accuracy coefficient may be set, and the user may select one of the levels according to the requirement, and obtain the corresponding accuracy coefficient according to the level.
And acquiring a height span interval corresponding to the liquid level measurement scene and the highest measurement height corresponding to the height span interval, and obtaining a second adjustment coefficient according to the highest measurement height.
In general, the smaller the span interval, the higher its need for accuracy may be. For example, the accuracy requirements may be different for span ranges from 0 to 0.5m and for span ranges from 0 to 1m, and when span ranges from 0 to 0.5m, the accuracy requirements may be higher for measurement due to the small span range, so that the preset flow rate may be adjusted according to the height span range when calculating the preset flow rate.
And adjusting the reference flow rate based on the first adjustment coefficient and the second adjustment coefficient to obtain a preset flow rate in the liquid level measurement scene.
The preset flow rate in the level measurement scenario is calculated by the following formula,
Figure SMS_20
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_21
for a preset flow rate in the level measurement scenario, +.>
Figure SMS_22
For reference measurement accuracy coefficient, +.>
Figure SMS_23
For measuring the precision coefficient, +.>
Figure SMS_24
For the highest measurement height, +.>
Figure SMS_25
For the reference maximum measurement height, +.>
Figure SMS_26
For the reference flow rate>
Figure SMS_27
Is a preset flow rate weight value.
As can be seen from the above formula, when measuring the precision coefficient
Figure SMS_28
The larger the required accuracy requirement in the current application scenario, the higher the accuracy requirement may be, so the preset flow rate +.>
Figure SMS_29
The smaller the corresponding setting is, the slower the time for the liquid level to rise, and the closer the liquid level calculated according to the flow velocity at a certain moment is to the actually obtained liquid level, and the higher the accuracy in measurement is.
When the highest measuring height
Figure SMS_30
The lower the required accuracy requirement in the current application scenario, the higher the required accuracy requirement may be, so the preset flow rate +.>
Figure SMS_31
The smaller the corresponding setting is, the slower the time for the liquid level to rise, and the closer the liquid level calculated according to the flow rate at a certain moment is to the actually obtained liquid level, and the higher the accuracy in measurement is.
By the mode, the accuracy in measurement can be improved, and the data in measurement is more accurate.
S12, acquiring a first time sequence corresponding to the initial water inlet measuring table, sequentially measuring the water inlet liquid level height in the measuring barrel based on a preset flow rate and each first preset time in the first time sequence, and collecting the water inlet output voltage of a Hall liquid level sensor in the measuring barrel at each first preset time in real time.
The first time sequence may be a sequence consisting of a 1 st second, a 2 nd second, a 3 rd second, etc., and the first preset time may be a 1 st second, a 2 nd second, a 3 rd second, etc. time among them.
In some embodiments, the above-mentioned intake water level height may be obtained through step S121, specifically as follows:
s121, obtaining the bottom area of the measuring barrel, and calculating according to the bottom area, the preset flow rate and the first preset time to obtain the corresponding water inlet liquid level height of the corresponding water inlet output voltage at the first preset time.
It will be appreciated that since the flow rate is related to the volume of the measuring tank and the first preset moment, which in turn is related to the liquid level height and the floor area, the corresponding liquid level height can be calculated from the floor area, the preset flow rate and the first preset moment.
The intake water level height is calculated by the following formula,
Figure SMS_32
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_33
for the intake water level height corresponding to the first preset moment,/for the first preset moment>
Figure SMS_34
For a preset flow rate->
Figure SMS_35
For the first preset moment of time,
Figure SMS_36
to measure the bottom area of the tub +.>
Figure SMS_37
Is the weight value of the water inlet liquid level height.
In practical application, the weight value of the water inlet liquid level height
Figure SMS_38
Either 1 or other values set by the staff.
After the liquid level heights corresponding to different moments are obtained, in order to obtain the relation between the liquid level heights and the output voltages, so that the corresponding liquid level heights can be obtained according to the output voltages later.
And S13, stopping water inflow when the water inflow liquid level height is equal to the preset measurement height, and generating a reference water inflow measurement table according to the water inflow output voltage and the water inflow liquid level height corresponding to all the first preset moments in the first time sequence.
The preset measurement height can be set according to the highest height which can be measured by the Hall liquid level sensor, and can also be set correspondingly according to actual conditions.
Specifically, after the measured liquid level height reaches a preset value, the output voltage and the liquid level height obtained at different moments can be counted to generate a measuring table corresponding to the water inlet process.
S14, based on a water outlet pump, flowing back the water in the measurement through to the water inlet heating equipment according to a preset flow rate, acquiring a second time sequence corresponding to the initial water outlet measurement table, acquiring the water outlet liquid level height corresponding to each second preset time in the second time sequence according to the reference water inlet measurement table, and collecting the water outlet output voltage of the Hall liquid level sensor in the measurement barrel at each second preset time in real time.
The second time sequence and the first time sequence are corresponding to each other. For example, if the first time sequence is a sequence consisting of 1 st second, 2 nd second, 3 rd second, and the like, the second time sequence is also a sequence consisting of 1 st second, 2 nd second, 3 rd second, and the like.
It can be understood that, because the corresponding preset flow rate is not changed when water is discharged, the corresponding moment and the bottom area of the measuring barrel are not changed, and the liquid level height when water is discharged and the liquid level height when water is fed are reversely corresponding to each other, the liquid level heights corresponding to different moments in the water discharging process can be obtained through the reference water feeding measuring meter.
In some embodiments, the above-described effluent level height may be obtained by the steps of:
And sequencing all the water inlet liquid level heights in a descending order to obtain a water outlet height sequence, sequentially filling the liquid level heights in the water outlet height sequence into second preset moments corresponding to a second moment sequence to obtain the water outlet liquid level heights corresponding to the second preset moments, wherein the first preset moments and the second preset moments are in one-to-one correspondence.
It can be further understood that, since the liquid level in the water inlet process is gradually increased and the liquid level in the water outlet process is gradually decreased, the liquid level in the water inlet process and the liquid level in the water outlet process are reversely corresponding to each other, i.e. the liquid level corresponding to the first moment in the water inlet process corresponds to the liquid level at the last moment in the water outlet process, and the liquid level corresponding to the last moment in the water inlet process corresponds to the liquid level corresponding to the first moment in the water outlet process.
Therefore, when the liquid level heights corresponding to different water outlet moments are met, the liquid level heights during water inlet can be ordered in a descending order, and then corresponding moments are filled in sequence.
And S15, stopping water outlet when all water in the measuring barrel flows back to the water inlet heating equipment, and generating a reference water outlet measuring table according to the water outlet output voltage and the water outlet liquid level height corresponding to all second preset moments in the second time sequence.
Similarly, after the water in the measuring barrel flows back to the water inlet heating equipment, the water outlet process can be stopped, the output voltage and the liquid level height at different moments in the water outlet process are counted, and then a measuring table corresponding to the water outlet process is generated.
S16, acquiring the next measured temperature in the measured temperature sequence as the current heating temperature, and repeating the steps until the reference water inlet measuring meter and the reference water outlet measuring meter corresponding to all the measured temperatures in the measured temperature sequence are obtained.
Further, after the measurement of one of the temperatures in the measured temperature sequence is finished, the scheme selects the next temperature adjacent to the one to continue the corresponding measurement, and the measurement of all the measured temperatures is completed in a cyclic manner.
By the method, the measurement of corresponding data at all temperatures can be automatically completed, the corresponding measuring tables of the water inlet and outlet processes at different temperatures can be obtained, and the efficiency and accuracy in measurement can be improved.
S2, generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages.
Furthermore, the invention can fuse the measuring tables corresponding to the water inlet and outlet processes after obtaining the measuring tables.
Specifically, the specific implementation manner of step S2 may be:
s21, acquiring water inlet output voltages corresponding to first preset moments in a reference water inlet measuring table as first calibration voltages, and water outlet output voltages corresponding to second preset moments in the reference water outlet measuring table as second calibration voltages.
For example, the output voltages corresponding to the 1 st second, the 2 nd second, the 3 rd second, etc. in the water inlet process may be used as the first calibration voltage, and the output voltages corresponding to the 1 st second, the 2 nd second, the 3 rd second, etc. in the water outlet process may be used as the second calibration voltage.
S22, ascending order sequencing is carried out on all the first calibration voltages according to a first preset time to obtain a first calibration sequence, descending order sequencing is carried out on all the second calibration voltages according to a second preset time to obtain a second calibration sequence.
It can be understood that, since the liquid level heights of the water inlet process and the water outlet process are reversely corresponding, when the output voltages corresponding to the same liquid level height are matched, the corresponding output voltages can also be reversely corresponding, for example, the output voltages of the water inlet process can be sorted in ascending order, the output voltages of the water outlet process can be sorted in descending order, and then the output voltages of the water inlet process and the output voltages of the water outlet process can be matched, so that the output voltages corresponding to the water inlet process and the water outlet process under different liquid level heights can be obtained later.
S23, obtaining a reference output voltage according to the average value of a first calibration voltage and a second calibration voltage with the same serial numbers in the first calibration sequence and the second calibration sequence, obtaining the water inlet liquid level height or the water outlet liquid level height corresponding to the reference output voltage as the reference liquid level height, and generating a reference measurement table based on all the reference output voltages and the reference liquid level heights corresponding to the reference output voltages.
It can be further understood that, since the output voltages corresponding to the water inlet and outlet processes may change, in order to reduce the errors measured in the water inlet and outlet processes, the present invention fuses the output voltages corresponding to the water inlet and outlet processes after obtaining the output voltages corresponding to the water inlet and outlet processes at different liquid levels, so as to obtain the average value of the output voltages corresponding to the water inlet and outlet processes, thereby obtaining the corresponding relationship between the different liquid levels and the corresponding output voltages.
After the corresponding relation between different liquid level heights and corresponding output voltages is obtained, corresponding reference measuring tables at different temperatures can be generated according to the different liquid level heights and the output voltages corresponding to the liquid level heights.
Specifically, the reference output voltage can be calculated by the following formula,
Figure SMS_39
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_40
for reference output voltage, +.>
Figure SMS_41
For the first calibration voltage, +.>
Figure SMS_42
For the second calibration voltage +.>
Figure SMS_43
The voltage weight value is outputted as a reference.
By the mode, errors in measurement can be reduced, and accuracy in measurement is improved.
S3, acquiring the current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and the current output voltage of the Hall liquid level sensor, and acquiring the reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage.
When actually measuring, if the corresponding temperature is measured in the temperature measuring meter, the liquid level can be directly measured according to the corresponding measuring meter degree of the temperature.
Specifically, the output voltage acquired by the hall liquid level sensor can be acquired first, then the reference output voltage corresponding to the output voltage is found in the measuring meter, and the liquid level height corresponding to the reference output voltage is obtained according to the reference output voltage, so that the measured liquid level height is obtained.
S4, if the current application temperature does not exist in the temperature measuring table, acquiring a measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature, and acquiring a reference measuring table corresponding to the reference temperature as a reference measuring table, acquiring a second current measuring table corresponding to the current application temperature according to the reference measuring table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measuring table as a second measured liquid level height based on the second current measuring table and the current output voltage.
When actually measuring, if the temperature corresponding to the temperature is not measured in the temperature measuring meter, the invention also obtains the corresponding measuring meter under the temperature according to the measuring meter corresponding to the measured temperature adjacent to the temperature in the temperature measuring meter, thereby correspondingly measuring the liquid level corresponding to the temperature.
Specifically, in some embodiments, the second current measurement table may be obtained by:
s41, obtaining a total temperature difference value according to the difference value of the reference temperatures, calculating to obtain a current application temperature difference value according to the smaller reference temperature in the current application temperature and the reference temperature, and obtaining a duty ratio coefficient based on the ratio of the current application temperature difference value to the total temperature difference value.
When the reference data corresponding to the current application temperature is calculated, the reference data is calculated according to the duty ratio between the current application temperature and the reference temperature, and the scheme can be understood that the calculation is performed by utilizing the phase difference trend between the reference temperature and the current application temperature, and a group of measurement data can be predicted by the mode.
S42, acquiring a reference measuring table with a larger reference temperature as a first measuring table and a reference measuring table with a smaller reference temperature as a second measuring table, and obtaining a second current measuring table corresponding to the current application temperature according to the first measuring table, the second measuring table and the duty ratio coefficient.
Step S42 includes steps S421 to S423, and is specifically as follows:
s421, obtaining a first reference output voltage corresponding to each preset time in the first measuring table and a second reference output voltage corresponding to each preset time in the second measuring table, and obtaining an output voltage difference value according to the first reference output voltage and the second reference output voltage corresponding to the same preset time in the first measuring table and the second measuring table.
For example, the output voltage corresponding to the 1 st second in the first meter and the output voltage corresponding to the 1 st second in the second meter may be obtained respectively, and then the corresponding output voltage difference value at the 1 st second is obtained according to the difference value of the two output voltages. And by analogy, corresponding output voltage difference values at different moments can be obtained.
S422, obtaining rising output voltage according to the duty ratio coefficient and the output voltage difference value, obtaining reference output voltage according to the second reference output voltage and the rising output voltage, and obtaining a first reference liquid level height or a second reference liquid level height corresponding to the reference output voltage in the first measuring table or the second measuring table as a reference liquid level height.
Specifically, the voltage which may rise at the current application temperature can be obtained through the output voltage difference value and the duty ratio coefficient, so that the corresponding reference output voltage at the current application temperature can be further obtained.
In some embodiments, the reference output voltage may be obtained by the following steps,
Figure SMS_44
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_45
for reference output voltage>
Figure SMS_46
For the second reference output voltage,/>
Figure SMS_47
For the current application of the temperature difference value,
Figure SMS_48
is the total difference of temperature>
Figure SMS_49
Is a duty ratio of->
Figure SMS_50
For the first reference output voltage,/v>
Figure SMS_51
To increase the output voltage weight.
As can be seen from the above formula, the duty cycle coefficient
Figure SMS_52
The larger, the reference output voltage +.>
Figure SMS_53
At the first reference output voltage +.>
Figure SMS_54
And a second reference output voltage +>
Figure SMS_55
The larger the duty cycle between the reference voltages, the higher the reference output voltage
Figure SMS_56
The larger may be and vice versa.
Wherein, the output voltage weight value is increased
Figure SMS_57
Can be adjusted according to practical conditions, such as when referring to output voltage
Figure SMS_58
If the voltage is too large, the output voltage weight value can be increased>
Figure SMS_59
It is subjected to a step-down process when the reference output voltage +.>
Figure SMS_60
If the voltage is too small, the output voltage weight value can be increased>
Figure SMS_61
And performing augmentation treatment on the obtained product.
Further, after the output voltages corresponding to different preset moments are obtained, the liquid level height is irrelevant to the change of the temperature, so that the liquid level heights corresponding to the same moment in the first measuring meter and the second measuring meter are the same, and only the liquid level height corresponding to the reference output voltage in one measuring meter is required to be used as the reference liquid level height.
S423, generating a second current measuring table corresponding to the current application temperature according to the reference output voltage and the reference liquid level height corresponding to all preset moments.
When the reference output voltage and the reference liquid level height corresponding to all preset moments are obtained, statistics can be carried out on the reference output voltage and the reference liquid level height, and corresponding measuring tables at corresponding temperatures can be generated.
Through the mode, the corresponding measuring tables at different temperatures can be obtained, so that corresponding measurement can be carried out on the liquid level according to the data in the measuring tables, the reference data during measurement can be changed according to the change of the actual application scene, and the reference data can be attached to the actual application scene.
In addition, the invention also comprises the following schemes:
and acquiring the lowest measured temperature and the highest measured temperature in the temperature measuring table, if the current application temperature is smaller than the lowest measured temperature or larger than the highest measured temperature, generating reminding information, and sending the reminding information to a display end for display.
In the actual measurement, there may be a case where the temperature at the time of measurement is not in the temperature measurement meter, and the temperature is below the lowest measurement temperature, or above the highest measurement temperature, and when this occurs, reference data at the temperature may not be derived by the temperature measurement meter, so that corresponding reminding information may be generated in this case, and a worker may be reminded of the reminding information, so that the worker may take corresponding processing countermeasures.
Referring to fig. 2, a schematic structural diagram of a control system of a hall liquid level sensor according to an embodiment of the present invention includes:
the measuring module is used for acquiring a plurality of measured temperatures in the temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, measuring the liquid level height and the output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy, and obtaining a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature;
The fusion module is used for generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages;
the real-time module is used for acquiring the current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and the current output voltage of the Hall liquid level sensor, and acquiring the reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage;
the reference module is used for acquiring a measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature and a reference measuring table corresponding to the reference temperature as a reference measuring table if the current application temperature does not exist in the temperature measuring table, acquiring a second current measuring table corresponding to the current application temperature according to the reference measuring table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measuring table as a second measured liquid level height based on the second current measuring table and the current output voltage.
The apparatus of the embodiment shown in fig. 2 may be correspondingly used to perform the steps in the embodiment of the method shown in fig. 1, and the implementation principle and technical effects are similar, and are not repeated here.
Referring to fig. 3, a schematic hardware structure of an electronic device according to an embodiment of the present invention is shown, where the electronic device 30 includes: a processor 31, a memory 32 and a computer program; wherein the method comprises the steps of
A memory 32 for storing said computer program, which memory may also be a flash memory (flash). Such as application programs, functional modules, etc. implementing the methods described above.
A processor 31 for executing the computer program stored in the memory to implement the steps executed by the apparatus in the above method. Reference may be made in particular to the description of the embodiments of the method described above.
Alternatively, the memory 32 may be separate or integrated with the processor 31.
When the memory 32 is a device separate from the processor 31, the apparatus may further include:
a bus 33 for connecting the memory 32 and the processor 31.
The present invention also provides a readable storage medium having stored therein a computer program for implementing the methods provided by the various embodiments described above when executed by a processor.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the readable storage medium may reside as discrete components in a communication device. The readable storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, the execution instructions being executed by the at least one processor to cause the device to implement the methods provided by the various embodiments described above.
In the above embodiment of the apparatus, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (9)

1. A control method of a hall level sensor, comprising:
acquiring a plurality of measured temperatures in the temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, and measuring liquid level heights and output voltages corresponding to preset moments in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature;
generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages;
acquiring a current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and a current output voltage of a Hall liquid level sensor, and acquiring a reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage;
If the current application temperature does not exist in the temperature measuring table, acquiring a measured temperature adjacent to the current application temperature in the temperature measuring table as a reference temperature, and a reference measuring table corresponding to the reference temperature as a reference measuring table, acquiring a second current measuring table corresponding to the current application temperature according to the reference measuring table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measuring table as a second measured liquid level height based on the second current measuring table and the current output voltage;
measuring the liquid level height and the output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature, wherein the method comprises the following steps:
the method comprises the steps of ascending sequence sorting is conducted on a plurality of measured temperatures to obtain a measured temperature sequence, the measured temperature at the first one in the measured temperature sequence is obtained to serve as the current heating temperature, water is heated according to the heating temperature based on water inlet heating equipment, and after the current heating temperature is reached, heated water is added into a measuring barrel according to a preset flow rate based on a water inlet pump;
Acquiring a first time sequence corresponding to the initial water inlet measuring table, sequentially measuring the water inlet liquid level height in the measuring barrel based on a preset flow rate and each first preset time in the first time sequence, and acquiring the water inlet output voltage of a Hall liquid level sensor in the measuring barrel at each first preset time in real time;
stopping water inflow when the water inflow liquid level height is equal to the preset measurement height, and generating a reference water inflow measurement table according to water inflow output voltages and water inflow liquid level heights corresponding to all first preset moments in the first moment sequence;
the water in the measurement flux is returned to the water inlet heating equipment according to a preset flow rate on the basis of a water outlet pump, a second time sequence corresponding to the initial water outlet measurement meter is obtained, the water outlet liquid level height corresponding to each second preset time in the second time sequence is obtained according to the reference water inlet measurement meter, and the water outlet output voltage of the Hall liquid level sensor in the measurement barrel at each second preset time is collected in real time;
stopping water outlet when all water in the measuring barrel flows back to the water inlet heating equipment, and generating a reference water outlet measuring table according to water outlet output voltage and water outlet liquid level height corresponding to all second preset moments in the second moment sequence;
And obtaining the next measured temperature in the measured temperature sequence as the current heating temperature, and repeating the steps until the reference water inlet measuring meter and the reference water outlet measuring meter corresponding to all the measured temperatures in the measured temperature sequence are obtained, and stopping measuring.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
obtaining the water outlet liquid level height corresponding to each second preset time in the second time sequence according to the reference water inlet measuring table, wherein the water outlet liquid level height comprises:
sequencing all the water inlet liquid level heights in a descending order to obtain a water outlet height sequence;
sequentially filling the liquid level heights in the water outlet height sequence into second preset moments corresponding to the second moment sequence to obtain water outlet liquid level heights corresponding to the second preset moments;
the first preset time corresponds to the second preset time one by one.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
sequentially measuring the inlet water level height in the measuring barrel based on a preset flow rate and each first preset time in the first time sequence, including:
acquiring the bottom area of the measuring barrel, and calculating to obtain the water inlet liquid level height corresponding to the corresponding water inlet output voltage at the first preset moment according to the bottom area, the preset flow rate and the first preset moment;
The intake water level height is calculated by the following formula,
Figure QLYQS_1
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure QLYQS_2
for the intake water level height corresponding to the first preset moment,/for the first preset moment>
Figure QLYQS_3
For a preset flow rate->
Figure QLYQS_4
For a first preset moment,/o>
Figure QLYQS_5
To measure the bottom area of the tub +.>
Figure QLYQS_6
Is the weight value of the water inlet liquid level height.
4. The method of claim 3, wherein the step of,
generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises:
acquiring water inlet output voltages corresponding to first preset moments in a reference water inlet measuring meter as first calibration voltages, and water outlet output voltages corresponding to second preset moments in the reference water outlet measuring meter as second calibration voltages;
ascending order sequencing is carried out on all the first calibration voltages according to a first preset time to obtain a first calibration sequence, descending order sequencing is carried out on all the second calibration voltages according to a second preset time to obtain a second calibration sequence;
obtaining a reference output voltage according to the average value of a first calibration voltage and a second calibration voltage with the same serial numbers in a first calibration sequence and a second calibration sequence, obtaining a water inlet liquid level height or a water outlet liquid level height corresponding to the reference output voltage as a reference liquid level height, and generating a reference measurement table based on all the reference output voltages and the reference liquid level heights corresponding to the reference output voltages;
The reference output voltage is calculated by the following formula,
Figure QLYQS_7
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure QLYQS_8
for reference output voltage, +.>
Figure QLYQS_9
For the first calibration voltage, +.>
Figure QLYQS_10
For the second calibration voltage +.>
Figure QLYQS_11
The voltage weight value is outputted as a reference.
5. The method of claim 4, wherein the predetermined flow rate is obtained by:
acquiring a measurement precision level corresponding to the liquid level measurement scene, which is input by a user based on a control end, according to a measurement precision correspondence table, obtaining a measurement precision coefficient corresponding to the measurement precision level, and according to the measurement precision coefficient, obtaining a first adjustment coefficient, wherein the measurement precision correspondence table comprises a plurality of measurement precision levels and measurement precision coefficients corresponding to the measurement precision levels;
acquiring a height span interval corresponding to the liquid level measurement scene and the highest measurement height corresponding to the height span interval, and obtaining a second adjustment coefficient according to the highest measurement height;
adjusting the reference flow rate based on the first adjustment coefficient and the second adjustment coefficient to obtain a preset flow rate in a liquid level measurement scene;
the preset flow rate in the level measurement scenario is calculated by the following formula,
Figure QLYQS_12
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure QLYQS_13
for a preset flow rate in the level measurement scenario, +. >
Figure QLYQS_14
For reference measurement accuracy coefficient, +.>
Figure QLYQS_15
In order to measure the coefficient of precision of the measurement,
Figure QLYQS_16
for the highest measurement height, +.>
Figure QLYQS_17
For the reference maximum measurement height, +.>
Figure QLYQS_18
For the reference flow rate>
Figure QLYQS_19
Is a preset flow rate weight value.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
acquiring a measured temperature adjacent to the current application temperature in a temperature measuring table as a reference temperature, and a reference measuring table corresponding to the reference temperature as a reference measuring table, and obtaining a second current measuring table corresponding to the current application temperature according to the reference measuring table, wherein the method comprises the following steps:
obtaining a total temperature difference value according to the difference value of the reference temperatures, calculating to obtain a current application temperature difference value according to the smaller reference temperature in the current application temperature and the reference temperature, and obtaining a duty ratio coefficient based on the ratio of the current application temperature difference value to the total temperature difference value;
and acquiring a reference measuring table with a larger reference temperature as a first measuring table and a reference measuring table with a smaller reference temperature as a second measuring table, and obtaining a second current measuring table corresponding to the current application temperature according to the first measuring table, the second measuring table and the duty ratio coefficient.
7. The method of claim 6, wherein the step of providing the first layer comprises,
Obtaining a second current measuring table corresponding to the current application temperature according to the first measuring table, the second measuring table and the duty ratio coefficient, wherein the second current measuring table comprises:
acquiring a first reference output voltage corresponding to each preset time in the first measuring table and a second reference output voltage corresponding to each preset time in the second measuring table, and acquiring an output voltage difference value according to the first reference output voltage and the second reference output voltage corresponding to the same preset time in the first measuring table and the second measuring table;
obtaining rising output voltage according to the duty ratio coefficient and the output voltage difference value, obtaining reference output voltage according to the second reference output voltage and the rising output voltage, and obtaining a first reference liquid level height or a second reference liquid level height corresponding to the reference output voltage in a first measuring table or a second measuring table as a reference liquid level height;
and generating a second current measuring table corresponding to the current application temperature according to the reference output voltage and the reference liquid level height corresponding to all preset moments.
8. The method as recited in claim 7, further comprising:
and acquiring the lowest measured temperature and the highest measured temperature in the temperature measuring table, if the current application temperature is smaller than the lowest measured temperature or larger than the highest measured temperature, generating reminding information, and sending the reminding information to a display end for display.
9. A control system for a hall level sensor, comprising:
the measuring module is used for acquiring a plurality of measured temperatures in the temperature measuring meter, and an initial water inlet measuring meter and an initial water outlet measuring meter corresponding to each measured temperature, measuring the liquid level height and the output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy, and obtaining a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature;
the fusion module is used for generating a reference measurement table corresponding to each measured temperature according to the reference water inlet measurement table and the reference water outlet measurement table, wherein the reference measurement table comprises a plurality of reference output voltages and reference liquid level heights corresponding to the reference output voltages;
the real-time module is used for acquiring the current application temperature in a liquid level measurement scene in real time, if the current application temperature exists in the temperature measurement table, acquiring a reference measurement table corresponding to the current application temperature as a first current measurement table and the current output voltage of the Hall liquid level sensor, and acquiring the reference liquid level height corresponding to the current output voltage in the first current measurement table as a first measurement liquid level height according to the first current measurement table and the current output voltage;
The reference module is used for acquiring a measured temperature adjacent to the current application temperature in the temperature measurement table as a reference temperature and a reference measurement table corresponding to the reference temperature as a reference measurement table if the current application temperature does not exist in the temperature measurement table, acquiring a second current measurement table corresponding to the current application temperature according to the reference measurement table, and acquiring a reference liquid level height corresponding to the current output voltage in the second current measurement table as a second measured liquid level height based on the second current measurement table and the current output voltage;
measuring the liquid level height and the output voltage corresponding to each preset moment in the initial water inlet measuring meter and the initial water outlet measuring meter corresponding to each measured temperature based on a circulation strategy to obtain a reference water inlet measuring meter and a reference water outlet measuring meter corresponding to each measured temperature, wherein the method comprises the following steps:
the method comprises the steps of ascending sequence sorting is conducted on a plurality of measured temperatures to obtain a measured temperature sequence, the measured temperature at the first one in the measured temperature sequence is obtained to serve as the current heating temperature, water is heated according to the heating temperature based on water inlet heating equipment, and after the current heating temperature is reached, heated water is added into a measuring barrel according to a preset flow rate based on a water inlet pump;
Acquiring a first time sequence corresponding to the initial water inlet measuring table, sequentially measuring the water inlet liquid level height in the measuring barrel based on a preset flow rate and each first preset time in the first time sequence, and acquiring the water inlet output voltage of a Hall liquid level sensor in the measuring barrel at each first preset time in real time;
stopping water inflow when the water inflow liquid level height is equal to the preset measurement height, and generating a reference water inflow measurement table according to water inflow output voltages and water inflow liquid level heights corresponding to all first preset moments in the first moment sequence;
the water in the measurement flux is returned to the water inlet heating equipment according to a preset flow rate on the basis of a water outlet pump, a second time sequence corresponding to the initial water outlet measurement meter is obtained, the water outlet liquid level height corresponding to each second preset time in the second time sequence is obtained according to the reference water inlet measurement meter, and the water outlet output voltage of the Hall liquid level sensor in the measurement barrel at each second preset time is collected in real time;
stopping water outlet when all water in the measuring barrel flows back to the water inlet heating equipment, and generating a reference water outlet measuring table according to water outlet output voltage and water outlet liquid level height corresponding to all second preset moments in the second moment sequence;
And obtaining the next measured temperature in the measured temperature sequence as the current heating temperature, and repeating the steps until the reference water inlet measuring meter and the reference water outlet measuring meter corresponding to all the measured temperatures in the measured temperature sequence are obtained, and stopping measuring.
CN202310251381.XA 2023-03-16 2023-03-16 Control method and system of Hall liquid level sensor Active CN116147736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310251381.XA CN116147736B (en) 2023-03-16 2023-03-16 Control method and system of Hall liquid level sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310251381.XA CN116147736B (en) 2023-03-16 2023-03-16 Control method and system of Hall liquid level sensor

Publications (2)

Publication Number Publication Date
CN116147736A CN116147736A (en) 2023-05-23
CN116147736B true CN116147736B (en) 2023-07-04

Family

ID=86360126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310251381.XA Active CN116147736B (en) 2023-03-16 2023-03-16 Control method and system of Hall liquid level sensor

Country Status (1)

Country Link
CN (1) CN116147736B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5636548A (en) * 1994-05-16 1997-06-10 Tesoro Alaska Petroleum Company Analog hall-effect liquid level detector and method
US9389295B2 (en) * 2013-09-10 2016-07-12 Fisher Controls International Llc Hall effect sensor system with diagnostic capabilities
CN114371391B (en) * 2022-03-22 2022-06-21 南京中旭电子科技有限公司 High-low temperature test method and device for multi-parameter Hall integrated circuit and storage medium
CN114812758A (en) * 2022-04-12 2022-07-29 北京小米移动软件有限公司 Calibration method and device of liquid level sensor, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116147736A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN108333526A (en) Battery capacity check method and device
CN105258779B (en) Electronic scale automatic calibrating method
CN104849523A (en) Single-phase watt-hour meter temperature compensation method
CN102590782A (en) Method and device for automatically correcting voltage influence quantity of electric energy measurement chip
CN108429551A (en) The control method and electronic equipment of a kind of electronic equipment
CN105988086A (en) Battery remaining power predicting device and battery pack
CN116147736B (en) Control method and system of Hall liquid level sensor
CN101655545A (en) On-site verifying method of electric energy meter
CN103677078B (en) A kind of calibration method of clock frequency, system and chip
CN108196995A (en) A kind of determining processing task is averaged the method and apparatus of duration
CN108650768A (en) Heater current control method and device
CN114294824B (en) Water habit analysis method and device, terminal equipment and storage medium
CN104635193B (en) A kind of SOC real-time clock high-accuracy compensation method of ammeter
CN110133348A (en) A kind of compensation method, system and the storage medium of electric energy meter self-heating error
CN110243486A (en) Full temperature high-precision temperature sensor-based system, method and medium
EP3396392B1 (en) Apparatus and method for determining a power value of a target
CN111523654A (en) Processing apparatus and method
CN115452062A (en) Flow measuring method, flow measuring device, computer equipment and storage medium
CN1217169C (en) Calorimeter testing systems
CN113702896A (en) System and method for measuring error of direct current electric energy standard meter based on voltage reference
CN113883682A (en) Air conditioner charging method and device and computer readable storage medium
CN117054763A (en) Method, device and equipment for calculating charge of gas-liquid two-phase flow
CN117389128B (en) Automatic calibration method and system for digital clock
CN2606885Y (en) Detection system device for heat meter
CN114236455B (en) Error calculation device and method for electric energy meter verification for processing missing pulse

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