CN110608785A - Internet of things pressure liquid level meter and liquid level measurement method - Google Patents

Internet of things pressure liquid level meter and liquid level measurement method Download PDF

Info

Publication number
CN110608785A
CN110608785A CN201910779375.5A CN201910779375A CN110608785A CN 110608785 A CN110608785 A CN 110608785A CN 201910779375 A CN201910779375 A CN 201910779375A CN 110608785 A CN110608785 A CN 110608785A
Authority
CN
China
Prior art keywords
value
pressure
pressure value
sensor
time
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.)
Granted
Application number
CN201910779375.5A
Other languages
Chinese (zh)
Other versions
CN110608785B (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.)
Anhui Family Union Technology Co Ltd
Original Assignee
Anhui Family Union 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 Anhui Family Union Technology Co Ltd filed Critical Anhui Family Union Technology Co Ltd
Priority to CN201910779375.5A priority Critical patent/CN110608785B/en
Publication of CN110608785A publication Critical patent/CN110608785A/en
Application granted granted Critical
Publication of CN110608785B publication Critical patent/CN110608785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/14Indicating 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 measurement of pressure
    • G01F23/18Indicating, recording or alarm devices actuated electrically

Abstract

The invention discloses an Internet of things pressure liquid level meter and a liquid level measuring method, which comprises a first calculating module, a second calculating module, a third calculating module, a first uploading module and a second uploading module; the first calculation module is used for acquiring a first voltage value output by the sensor at a first time and calculating to obtain a first pressure value according to the first voltage value; the second calculation module is used for acquiring a second voltage value output by the sensor at a second time and calculating a second pressure value according to the second voltage value; the third calculation module is used for calculating a time difference value between the second time and the first time and a pressure difference value between the first pressure value and the second pressure value; the first uploading module is used for uploading the first pressure value; the second uploading module is used for uploading a second pressure value to replace the first pressure value when the time difference value is larger than a set interval value or the pressure difference value is larger than a preset pressure threshold value; the residual quantity of the materials is effectively monitored.

Description

Internet of things pressure liquid level meter and liquid level measurement method
Technical Field
The invention relates to the technical field of pressure liquid level testing, in particular to an Internet of things pressure liquid level meter and a liquid level measuring method.
Background
Things in life are organically connected through a network through the Internet of things, intelligent management and remote monitoring are important components of the Internet of things, the Internet of things is applied to a liquid distribution link, liquid distribution efficiency can be improved, and in addition, shortage of goods can be timely supplied. In the liquid distribution link, the pressure state of liquid in distribution is mainly inquired in real time through a pressure liquid level meter, and the pressure liquid level meter is mainly used for measuring the volume flow of conductive liquid and slurry in a closed pipeline. Including strongly corrosive liquids such as acids, bases, salts, and the like. The product is widely applied to the industries of petroleum, chemical industry, metallurgy, textile, food, pharmacy, paper making and the like, and the fields of environmental protection, municipal administration, water conservancy construction and the like.
At present, in the delivery link of liquid, traditional flowmeter leads to unable timely replenishment to the not enough material of surplus owing to can't effectively monitor the surplus of material, leads to causing certain loss to the user.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides an internet of things pressure liquid level meter and a liquid level measuring method, which can effectively monitor the residual amount of materials and achieve the purpose of acquiring the pressure liquid level of the materials to be measured in real time.
The invention provides an Internet of things pressure liquid level meter, which comprises a first calculation module, a second calculation module, a third calculation module, a first uploading module and a second uploading module;
the first calculation module is used for acquiring a first voltage value output by the sensor at a first time and calculating to obtain a first pressure value according to the first voltage value;
the second calculation module is used for acquiring a second voltage value output by the sensor at a second time and calculating a second pressure value according to the second voltage value;
the third calculation module is used for calculating a time difference value between the second time and the first time and a pressure difference value between the first pressure value and the second pressure value;
the first uploading module is used for uploading the first pressure value;
and the second uploading module is used for uploading a second pressure value to replace the first pressure value when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, so that the pressure test is realized.
Further, the second calculation module comprises an analog-to-digital conversion unit, a first pressure unit, a second pressure unit, a judgment unit, a first output unit and a second output unit;
the analog-to-digital conversion unit is used for performing analog-to-digital conversion on the analog output signal of the sensor through the ADC chip to obtain a second voltage value;
the first pressure unit is used for calculating a sensor pressure value according to the second voltage value;
the second pressure unit is used for calculating a second pressure value according to the pressure value of the sensor;
the judgment unit is used for judging whether the sensor voltage value corresponding to the second pressure value is smaller than the lower limit cutting value, if so, the first output unit is entered, and if not, the second output unit is entered;
the first output unit is used for outputting a second pressure value to be zero;
the second output unit is used for directly outputting the calculated second pressure value.
An Internet of things pressure liquid level measurement method comprises the following steps:
acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
and when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, and realizing the pressure test.
Further, in acquiring a second voltage value output by the sensor at a second time and calculating a second pressure value according to the second voltage value, the method includes:
performing analog-to-digital conversion on the analog output signal of the sensor through an ADC chip to obtain a second voltage value;
calculating to obtain a sensor pressure value according to the second voltage value;
calculating to obtain a second pressure value according to the pressure value of the sensor;
judging whether the sensor voltage value corresponding to the second pressure value is smaller than the lower limit cutting value or not;
if yes, outputting a second pressure value as zero;
and if not, directly outputting the calculated second pressure value.
Further, before calculating the second pressure value according to the sensor pressure value, the method includes:
judging whether the calculated sensor pressure value is smaller than a zero point cut-off value or not;
if yes, outputting a sensor pressure value as zero;
if not, directly outputting the calculated sensor pressure value;
judging whether the sensor measures the set times or not;
if so, taking the median value of the pressure values of the sensors respectively output under the set times as the final output pressure value of the sensor;
if not, performing analog-to-digital conversion on the analog output signal of the sensor through the ADC chip again to obtain a second voltage value;
further, in the calculating the second pressure value according to the sensor pressure value, the method includes:
carrying out zero point adjustment on the calculated sensor pressure value to obtain an adjusted sensor pressure value;
calculating to obtain a third pressure value according to the adjusted sensor pressure value;
carrying out pressure correction on the third pressure value to obtain a second pressure value;
further, in the calculating of the sensor pressure value according to the second voltage value, the sensor pressure value V of a single output is calculated by the following formula:
the amplifier comprises an ADC chip, an amp-gain, a conversion result of the ADC chip, a resolution of the ADC chip, and a vSPAN, wherein the amp-gain is the amplification factor of the ADC chip, M is the conversion result of the ADC chip, n is the resolution of the ADC chip, and the vSPAN is the highest voltage value of the ADC chip;
the second pressure value P2 is obtained by the following equation:
P2=P1×k+b
wherein P1 is the third pressure value, k and b are pressure correction coefficients, SrIs the sensor range, SsThe value of the full-scale voltage of the sensor is V1, and the value of the pressure of the sensor after zero point adjustment is V1.
Further, before acquiring the first voltage value output by the sensor at the first time, the method includes:
initializing a microcontroller, starting a real-time clock timer, and enabling the microcontroller to enter a sleep state;
judging whether the preset activation time is reached;
if yes, the microcontroller is activated to acquire a first voltage value output by the sensor at a first time;
if not, the microcontroller continues to enter the sleep state.
Further, in uploading the second pressure value to replace the first pressure value to realize the pressure test, the method includes:
closing the real-time clock timer and opening an instruction by the wireless communication board;
when the SIM card is normal, sending a second pressure value to the server;
and triggering a communication module to close the instruction, and opening the real-time clock timer.
A computer readable storage medium having stored thereon a number of get classification programs for being invoked by a processor and performing the steps of:
acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
and when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, and realizing the pressure test.
The pressure liquid level meter and the liquid level measuring method of the Internet of things have the advantages that: according to the pressure liquid level meter and the liquid level measuring method of the Internet of things, provided by the structure, pressure data of a tank body for storing materials can be transmitted to the cloud server end through a network, the surplus of the materials can be effectively monitored, and the purpose of acquiring the pressure liquid level of the materials to be measured in real time is achieved, so that the materials with insufficient surplus can be timely supplemented, and the use loss of a user is avoided; through the analog-to-digital conversion of the ADC chip, the condition judgment of the sensor pressure value and the condition judgment of the second pressure value, the screening process of the second pressure value before output according to the set condition is realized, and the accuracy of the microcontroller in acquiring the second pressure value is further realized.
Drawings
FIG. 1 is a schematic view of the overall structure of an Internet of things pressure liquid level meter according to the present invention;
FIG. 2 is a schematic diagram of an implementation device of an Internet of things pressure liquid level meter;
FIG. 3 is a schematic structural diagram of a signal acquisition board;
FIG. 4 is a schematic diagram of the overall structure of the Internet of things pressure liquid level measurement method;
FIG. 5 is a flowchart illustrating task processing of FIG. 4;
FIG. 6 is a flowchart of the steps of the task process of FIG. 4;
fig. 7 is a detailed step flowchart of step S200;
fig. 8 is a flowchart illustrating detailed steps of uploading data in step S400;
FIG. 9 is a flow chart of initialization of the microprocessor;
FIG. 10 is a corresponding diagram of microprocessor sleep;
the system comprises a first calculation module, a second calculation module, a 21-analog-to-digital conversion unit, a 22-first pressure unit, a 23-second pressure unit, a 24-judgment unit, a 25-first output unit, a 26-second output unit, a 30-third calculation module, a 40-first uploading module and a 50-second uploading module.
Detailed Description
The present invention is described in detail below with reference to specific embodiments, and in the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Referring to fig. 1 to 3, an internet of things pressure liquid level meter includes a first calculation module 10, a second calculation module 20, a third calculation module 30, a first upload module 40, and a second upload module 50;
the first calculation module 10 is configured to obtain a first voltage value output by the sensor at a first time, and calculate a first pressure value according to the first voltage value;
the second calculating module 20 is configured to obtain a second voltage value output by the sensor at a second time, and calculate a second pressure value according to the second voltage value;
the third calculating module 30 is configured to calculate a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
the first uploading module 40 is used for uploading a first pressure value;
the second uploading module 50 is configured to upload a second pressure value to replace the first pressure value when the time difference value is greater than the set interval value or the pressure difference value is greater than a preset pressure threshold value, so as to implement a pressure test.
The first pressure value of replacement is covered with the second pressure value satisfying under the set condition, effectively monitors the surplus of material, realizes the purpose of obtaining the pressure liquid level of the material to be measured in real time, consequently can in time supply the material that the surplus is not enough to avoid causing use loss to the user.
As shown in fig. 1 to 3, the second calculation module 20 includes an analog-to-digital conversion unit 21, a first pressure unit 22, a second pressure unit 23, a judgment unit 24, a first output unit 25, and a second output unit 26;
the analog-to-digital conversion unit 21 is configured to perform analog-to-digital conversion on the analog output signal of the sensor through the ADC chip to obtain a second voltage value;
the first pressure unit 22 is used for calculating a sensor pressure value according to the second voltage value;
the second pressure unit 23 is used for calculating a second pressure value according to the sensor pressure value;
the judging unit 24 is configured to judge whether a sensor voltage value corresponding to the second pressure value is smaller than the lower limit cut-off value, if so, enter the first output unit 25, and if not, enter the second output unit 26;
the first output unit 25 is configured to output the second pressure value as zero;
the second output unit 26 is configured to directly output the calculated second pressure value.
As shown in fig. 2 and 3, the internet of things pressure liquid level meter mainly comprises four hardware parts, namely a diffused silicon sensor, a signal acquisition board, a wireless communication board and a battery, wherein the signal acquisition board corresponds to the first calculation module 10, the second calculation module 20 and the third calculation module 30 respectively, the wireless communication board corresponds to the first uploading module 40 and the second uploading module 50 respectively, and the battery is used for supplying power to the signal acquisition board and the wireless communication board. The diffused silicon sensor respectively outputs a first voltage value at a first time and a second voltage value at a second time, and the first voltage value and the second voltage value are uploaded to the signal acquisition board to calculate related voltage values.
The diffused silicon sensor is interactively connected with the signal acquisition board, the output end of the signal acquisition board is connected with the input end of the wireless communication board, and the output end of the battery is respectively connected with the input ends of the signal acquisition board and the wireless communication board so as to realize power supply of the signal acquisition board and the wireless communication board.
The welding has MSP430FR21xx series's microcontroller and AD779 x's ADC chip on the signal acquisition board, analog-to-digital conversion unit 21 corresponds with the ADC chip, first pressure cell 22, second pressure cell 23, judge unit 24, first output unit 25, second output unit 26 all corresponds with microcontroller, the output of ADC chip passes through SPI serial interface with microcontroller's input, the input of ADC chip is connected with diffused silicon sensor's output, microcontroller's output is connected with wireless communication board's input through UART communication interface. The ADC chip is internally provided with a constant current source, an operational amplifier and an ADC circuit.
The signal acquisition board generates a constant current output between 1mA and 1.5mA as an excitation signal of the diffused silicon sensor, the diffused silicon sensor outputs different feedback voltages due to different external pressures under the input constant current excitation condition, the ADC chip detects the output feedback voltage of the diffused silicon sensor and uploads the output feedback voltage to the microcontroller, and the microcontroller calculates the corresponding pressure or liquid level according to the magnitude of the feedback voltage. And sending the calculated pressure or liquid level data to a wireless communication board through a UART communication interface in a TTL level mode to update the database.
As shown in fig. 4 to 6, the internet of things pressure liquid level measurement method provided by the invention comprises steps S100 to S400:
s100: acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
s200: acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
s300: calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
the set interval value is a preset time difference value of two times of acquisition of the output time of the sensor.
S400: and when the time difference value is larger than a set interval value or the pressure difference value is larger than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, so that a pressure test is realized, and further, the cloud server is updated.
Taking the set interval value as T1 and the pressure threshold value as T2, data uploading is carried out when one of the following two conditions is met:
(1) the time difference is greater than the interval value of T1;
(2) the pressure difference value is greater than the pressure threshold value and is T2;
after the data uploading process is completed, the microcontroller returns to the dormant state again to wait for the next interrupt wakeup of the real-time clock timer. When the second pressure value received in the cloud server is abnormal, the cloud server sends alarm information, and the user can process the second pressure value at the first time.
It should be understood that the manner of acquiring the first voltage value and the second pressure value and the manner of calculating the first pressure value and the second pressure value in steps S100 and S200 are consistent. The details of the calculation of the second voltage value and the second pressure value are described herein.
As shown in fig. 7, in step S200: in acquiring a second voltage value output by the sensor at a second time and calculating a second pressure value according to the second voltage value, the steps from S201 to S211 are:
s201: performing analog-to-digital conversion on the analog output signal of the sensor through an ADC chip to obtain a second voltage value;
the ADC chip acquires a feedback signal transmitted by the sensor, the analog feedback signal is converted into a second voltage value through analog-to-digital conversion, and the microcontroller acquires the second voltage value output by the ADC chip.
S202: calculating a sensor pressure value V according to the second voltage value, and calculating V by the following formula:
the amplifier comprises an ADC chip, an amp-gain, a conversion result of the ADC chip, a resolution of the ADC chip, and a vSPAN.
S203: judging whether the calculated sensor pressure value is smaller than a zero point removal value, wherein the zero point removal value is a preset pressure parameter value and has a unit of Pa;
if yes, go to step S204;
if not, go to step S205;
s204: outputting the sensor pressure value as zero, and entering step S206;
s205: directly outputting the calculated sensor pressure value, and entering step S206;
s206: judging whether the sensor measures the set times or not;
if yes, go to step S207;
if not, the step S201 is re-entered;
s207: taking the median value of the pressure values of the sensors respectively output under the set times as the final output pressure value of the sensor; the median is a value corresponding to the middle times of the set times, when the set times are even numbers, the average of the median is taken, and when the set times are basic numbers, the median is directly taken;
s208: calculating to obtain a second pressure value according to the finally output sensor pressure value;
s209: judging whether the sensor voltage value corresponding to the second pressure value is smaller than the lower limit cutting value or not; the lower limit cut-off value is a preset voltage value with the unit of V or mV;
if yes, go to step S210;
if not, go to step S211;
s210: outputting a second pressure value as zero;
s211: and directly outputting the calculated second pressure value.
Through steps S201 to S211, a screening process of the second pressure value according to the set condition before output is realized through analog-to-digital conversion of the ADC chip, condition judgment of the sensor pressure value, and condition judgment of the second pressure value, and accuracy of acquiring the second voltage value by the microcontroller is further realized.
In step S209: calculating a second pressure value according to the finally output sensor pressure value, wherein the steps from S219 to S239:
s219: performing zero point adjustment on the calculated sensor pressure value to obtain an adjusted sensor pressure value V1, and obtaining V1 through the following formula:
V1=V-Z
wherein V is the pressure value of the sensor, and Z is the zero value of the sensor.
S229: calculating a third pressure value P1 according to the adjusted sensor pressure value, and obtaining P1 by the following formula:
wherein S isrIs the sensor range, SsIs the full scale voltage value of the sensor.
S239: and performing pressure correction on the third pressure value to obtain a second pressure value P2, and obtaining P2 by the following formula:
P2=P1×k+b
wherein k and b are pressure correction coefficients, and the value of k is generally between 0.9 and 1.1, and the value of b is between-500 and + 500.
According to steps S219 to S239, before the predetermined condition screening is performed on the second pressure value, the second pressure value is numerically corrected to further improve the output accuracy of the second pressure value P2.
Further, at step S100: before acquiring the first voltage value output by the sensor at the first time, or in step S200: before acquiring the second voltage value output by the sensor at the second time, the method comprises S001 to S004:
s001: initializing a microcontroller, starting a real-time clock timer, and enabling the microcontroller to enter a sleep state;
as shown in fig. 9, when the power is turned on, the microcontroller initializes peripheral modules such as a clock, a timer, a UART, an RTC, and an IO port, and then acquires system operation necessary parameters such as sensor parameters from the built-in FRAM memory of the microcontroller. The initialization process sequentially comprises the following steps: closing a watchdog timer, initializing system clock setting, initializing a timer, initializing a real-time clock timer, initializing an IO port, initializing UART setting, initializing system parameters and variables, starting the real-time clock timer for interruption, and entering a low-power sleep mode. By completing the initialization setting, the real-time clock timer is started, then the LMP3 low power consumption mode is switched, and the microcontroller enters the sleep state.
S002: judging whether the preset activation time is reached;
as shown in fig. 10, only the rtc timer is turned on after the microcontroller sleeps, and other peripherals are all turned off. The RTC timing time can be 1 second, the real-time clock timer is timed to interrupt every 1 second, then the microcontroller is awakened and the real-time clock timer interrupt service is entered, and the real-time clock timer interrupt service judges whether the set activation time (1 minute-1 hour, default to 1 hour) is reached currently. And if the set activation time is reached, the process proceeds to the task processing flow of step S003, otherwise, the process returns to the sleep state of step S004.
If yes, go to step S003;
if not, go to step S004;
s003: the microcontroller is activated to acquire a first voltage value output by the sensor at a first time;
s004: the microcontroller continues to enter the sleep state.
Through S001 to S004, the initialization and activation setting of the microprocessor are completed, on one hand, the microprocessor is prevented from being in an operating state in real time, and the defect of fatigue damage of the operation of the microprocessor is caused, on the other hand, the microprocessor can be activated at regular time to receive and transmit information, and the defect that the information cannot be uploaded and the caused user cannot acquire material information in time is avoided.
It should be understood that, as shown in fig. 8, whether the first pressure value is uploaded in step S100 or the second pressure value is uploaded to replace the first pressure value in S400, the pressure test is implemented with: the data uploading steps all include S401 to S405:
s401: when the pressure difference value is larger than a preset pressure threshold value, closing the real-time clock timer and opening the instruction of the wireless communication board; a wireless communication board, i.e., a communication module;
when the pressure difference value is smaller than the preset pressure threshold value, the pressure value to be uploaded is not uploaded, and the microprocessor directly ends the uploading operation.
S402: judging whether the SIM card is normal or not;
if yes, go to step S403;
if not, go to step S405;
s403: judging whether the signal of the wireless communication board is normal or not;
if yes, go to step S404;
if not, go to step S405;
s404: sending a second pressure value to the server;
s405: triggering a closing instruction of the wireless communication board, and then opening a real-time clock timer;
and uploading is not carried out when the signal of the wireless communication board is abnormal. The background server judges that a sensor has no data to upload within 24 hours, marks the sensor as an off-line state and gives an alarm.
Through steps S401 to S405, uploading of the stable pressure value is realized.
A computer readable storage medium having stored thereon a number of get classification programs for being invoked by a processor and performing the steps of:
acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
and when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, and realizing the pressure test.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (10)

1. The internet of things pressure liquid level meter is characterized by comprising a first computing module (10), a second computing module (20), a third computing module (30), a first uploading module (40) and a second uploading module (50);
the first calculation module (10) is used for acquiring a first voltage value output by the sensor at a first time, and calculating to obtain a first pressure value according to the first voltage value;
the second calculation module (20) is used for acquiring a second voltage value output by the sensor at a second time, and calculating a second pressure value according to the second voltage value;
the third calculating module (30) is used for calculating a time difference value between the second time and the first time, and a pressure difference value between the first pressure value and the second pressure value;
the first uploading module (40) is used for uploading the first pressure value;
and the second uploading module (50) is used for uploading a second pressure value to replace the first pressure value when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, so as to realize the pressure test.
2. The internet of things pressure liquid level meter according to claim 1, wherein the second calculation module (20) comprises an analog-to-digital conversion unit (21), a first pressure unit (22), a second pressure unit (23), a judgment unit (24), a first output unit (25) and a second output unit (26);
the analog-to-digital conversion unit (21) is used for performing analog-to-digital conversion on the analog output signal of the sensor through the ADC chip to obtain a second voltage value;
the first pressure unit (22) is used for calculating a sensor pressure value according to the second voltage value;
the second pressure unit (23) is used for calculating a second pressure value according to the sensor pressure value;
the judging unit (24) is used for judging whether the sensor voltage value corresponding to the second pressure value is smaller than the lower limit cutting value, if so, the first output unit (25) is entered, and if not, the second output unit (26) is entered;
the first output unit (25) is used for outputting the second pressure value to be zero;
the second output unit (26) is used for directly outputting the calculated second pressure value.
3. An Internet of things pressure liquid level measurement method is characterized by comprising the following steps:
acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
and when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, and realizing the pressure test.
4. The internet of things pressure liquid level measurement method according to claim 3, wherein the step of obtaining a second voltage value output by the sensor at a second time and calculating a second pressure value according to the second voltage value comprises the following steps:
performing analog-to-digital conversion on the analog output signal of the sensor through an ADC chip to obtain a second voltage value;
calculating to obtain a sensor pressure value according to the second voltage value;
calculating to obtain a second pressure value according to the pressure value of the sensor;
judging whether the sensor voltage value corresponding to the second pressure value is smaller than the lower limit cutting value or not;
if yes, outputting a second pressure value as zero;
and if not, directly outputting the calculated second pressure value.
5. The internet of things pressure liquid level measurement method according to claim 4, wherein before calculating the second pressure value according to the sensor pressure value, the method comprises:
judging whether the calculated sensor pressure value is smaller than a zero point cut-off value or not;
if yes, outputting a sensor pressure value as zero;
if not, directly outputting the calculated sensor pressure value;
judging whether the sensor measures the set times or not;
if so, taking the median value of the pressure values of the sensors respectively output under the set times as the final output pressure value of the sensor;
if not, the analog output signal of the sensor is subjected to analog-to-digital conversion again through the ADC chip to obtain a second voltage value.
6. The internet of things pressure liquid level meter and liquid level measurement method according to claim 5, wherein the step of calculating the second pressure value according to the sensor pressure value comprises the following steps:
carrying out zero point adjustment on the calculated sensor pressure value to obtain an adjusted sensor pressure value;
calculating to obtain a third pressure value according to the adjusted sensor pressure value;
and carrying out pressure correction on the third pressure value to obtain a second pressure value.
7. The internet of things pressure liquid level measurement method according to claim 6, wherein in the step of calculating the sensor pressure value according to the second voltage value, the single-output sensor pressure value V is calculated by the following formula:
the amplifier comprises an ADC chip, an amp-gain, a conversion result of the ADC chip, a resolution of the ADC chip, and a vSPAN, wherein the amp-gain is the amplification factor of the ADC chip, M is the conversion result of the ADC chip, n is the resolution of the ADC chip, and the vSPAN is the highest voltage value of the ADC chip;
in the pressure correction of the third pressure value to obtain the second pressure value, the second pressure value P2 is obtained by the following formula:
P2=P1×k+b
wherein P1 is the third pressure value, k and b are pressure correction coefficients, SrIs the sensor range, SsThe value of the full-scale voltage of the sensor is V1, and the value of the pressure of the sensor after zero point adjustment is V1.
8. The internet of things pressure liquid level measurement method according to claim 3, wherein before acquiring the first voltage value output by the sensor at the first time, the method comprises:
initializing a microcontroller, starting a real-time clock timer, and enabling the microcontroller to enter a sleep state;
judging whether the preset activation time is reached;
if yes, the microcontroller is activated to acquire a first voltage value output by the sensor at a first time;
if not, the microcontroller continues to enter the sleep state.
9. The Internet of things pressure liquid level measurement method according to claim 8,
in said uploading the second pressure value to replace the first pressure value, implementing a pressure test comprising:
closing the real-time clock timer and opening an instruction by the wireless communication board;
when the SIM card is normal, sending a second pressure value to the server;
and triggering a communication module to close the instruction, and opening the real-time clock timer.
10. A computer readable storage medium having stored thereon a number of get classification programs for being invoked by a processor and performing the steps of:
acquiring a first voltage value output by a sensor at a first time, calculating according to the first voltage value to obtain a first pressure value, and uploading the first pressure value;
acquiring a second voltage value output by the sensor at a second time, and calculating to obtain a second pressure value according to the second voltage value;
calculating a time difference between the second time and the first time, and a pressure difference between the first pressure value and the second pressure value;
and when the time difference value is greater than a set interval value or the pressure difference value is greater than a preset pressure threshold value, uploading a second pressure value to replace the first pressure value, and realizing the pressure test.
CN201910779375.5A 2019-08-22 2019-08-22 Internet of things pressure liquid level meter and liquid level measurement method Active CN110608785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910779375.5A CN110608785B (en) 2019-08-22 2019-08-22 Internet of things pressure liquid level meter and liquid level measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910779375.5A CN110608785B (en) 2019-08-22 2019-08-22 Internet of things pressure liquid level meter and liquid level measurement method

Publications (2)

Publication Number Publication Date
CN110608785A true CN110608785A (en) 2019-12-24
CN110608785B CN110608785B (en) 2022-07-05

Family

ID=68889944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910779375.5A Active CN110608785B (en) 2019-08-22 2019-08-22 Internet of things pressure liquid level meter and liquid level measurement method

Country Status (1)

Country Link
CN (1) CN110608785B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112197833A (en) * 2020-09-02 2021-01-08 北京无线电计量测试研究所 Double-absolute-pressure type Internet of things liquid level measuring device, system and method

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519653A (en) * 2011-12-15 2012-06-27 武汉理工大学 Spring tube and foil gauge combined type digital pressure gauge
CN102587080A (en) * 2012-03-12 2012-07-18 松下家电研究开发(杭州)有限公司 Control method of preventing water from overflowing from detergent box in washing machine
CN202853690U (en) * 2012-11-13 2013-04-03 河北钢铁集团矿业有限公司 Automatic well water level and water temperature detector
WO2013086345A1 (en) * 2011-12-07 2013-06-13 Agility Fuel Systems, Inc. Systems and methods for monitoring and controlling fuel systems
CN103454006A (en) * 2012-06-05 2013-12-18 北大方正集团有限公司 Temperature monitoring circuit for light-emitting diode
CN104949728A (en) * 2015-06-12 2015-09-30 安徽沃特水务科技有限公司 Special hydrological remote measurement terminal prevented from running away in long period
CN105867442A (en) * 2016-04-19 2016-08-17 上海卓易科技股份有限公司 Water volume injection control method and device
CN106323409A (en) * 2016-08-05 2017-01-11 武汉理工大学 Material level meter based on pressure recognition
CN106595158A (en) * 2016-12-22 2017-04-26 重庆美的通用制冷设备有限公司 Low-pressure control method, system and air conditioner for unit refrigeration system
CN107144405A (en) * 2017-04-18 2017-09-08 广东小天才科技有限公司 Water inlet detection method, device and the user terminal of a kind of user terminal
CN107167195A (en) * 2017-05-24 2017-09-15 西北工业大学 A kind of Coriolis mass flowmeter vibration-starting method based on digital type of drive
CN108152738A (en) * 2017-12-25 2018-06-12 深圳怡化电脑股份有限公司 Motor work condition inspection method and its device
CN108931283A (en) * 2017-05-22 2018-12-04 九阳股份有限公司 A kind of level testing methods and device of sink

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013086345A1 (en) * 2011-12-07 2013-06-13 Agility Fuel Systems, Inc. Systems and methods for monitoring and controlling fuel systems
CN102519653A (en) * 2011-12-15 2012-06-27 武汉理工大学 Spring tube and foil gauge combined type digital pressure gauge
CN102587080A (en) * 2012-03-12 2012-07-18 松下家电研究开发(杭州)有限公司 Control method of preventing water from overflowing from detergent box in washing machine
CN103454006A (en) * 2012-06-05 2013-12-18 北大方正集团有限公司 Temperature monitoring circuit for light-emitting diode
CN202853690U (en) * 2012-11-13 2013-04-03 河北钢铁集团矿业有限公司 Automatic well water level and water temperature detector
CN104949728A (en) * 2015-06-12 2015-09-30 安徽沃特水务科技有限公司 Special hydrological remote measurement terminal prevented from running away in long period
CN105867442A (en) * 2016-04-19 2016-08-17 上海卓易科技股份有限公司 Water volume injection control method and device
CN106323409A (en) * 2016-08-05 2017-01-11 武汉理工大学 Material level meter based on pressure recognition
CN106595158A (en) * 2016-12-22 2017-04-26 重庆美的通用制冷设备有限公司 Low-pressure control method, system and air conditioner for unit refrigeration system
CN107144405A (en) * 2017-04-18 2017-09-08 广东小天才科技有限公司 Water inlet detection method, device and the user terminal of a kind of user terminal
CN108931283A (en) * 2017-05-22 2018-12-04 九阳股份有限公司 A kind of level testing methods and device of sink
CN107167195A (en) * 2017-05-24 2017-09-15 西北工业大学 A kind of Coriolis mass flowmeter vibration-starting method based on digital type of drive
CN108152738A (en) * 2017-12-25 2018-06-12 深圳怡化电脑股份有限公司 Motor work condition inspection method and its device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112197833A (en) * 2020-09-02 2021-01-08 北京无线电计量测试研究所 Double-absolute-pressure type Internet of things liquid level measuring device, system and method

Also Published As

Publication number Publication date
CN110608785B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
JP3070933U (en) New intelligent computer power management device
CN101533031A (en) Dissolved oxygen intelligent transducer
AU2002243632B2 (en) Low power regulator system and method
CN100465976C (en) Universal sensor adapter
US9453611B2 (en) Propane tank continuous monitoring system
CN104122376B (en) A kind of multiparameter water quality analyzer
US8766643B2 (en) Method for monitoring remaining service life of a battery
AU2002243632A1 (en) Low power regulator system and method
CN110608785B (en) Internet of things pressure liquid level meter and liquid level measurement method
CN104280157A (en) Low-power-consumption transmitter
US9632052B2 (en) Modular measuring device with distributed data and algorithms
US10283790B2 (en) Fuel source, fuel cell system and associated method
CN101498767A (en) Wireless communication terminal and its battery power measuring method
CN110174179B (en) Water quality monitoring system based on NB-IoT
Dadhe et al. IOT Based Smart Energy Meter
CN106338311A (en) Water quality detection method, apparatus, system and water quality detection pen
CN115752627A (en) Method and device for detecting effective volume of urea tank, electronic equipment and medium
CN113917103A (en) Multi-water-quality parameter detection device capable of automatically adjusting depth
CN108107781A (en) A kind of ballast water level monitoring system
WO2017212245A1 (en) Methods and apparatus for monitoring electricity storage systems
CN203672408U (en) Water quality detecting system
CN102323316A (en) High-temperature high-pressure calibration device and calibration method of pH electrode
Misal et al. Designing a pH data acquisition and logging device using an inexpensive microcontroller
CN217818858U (en) Portable high accuracy humiture display device
Salim et al. Power consumption measurements of WSN based on Arduino

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