CN111982230B - Commercial vending machine liquid volume detection system and detection method - Google Patents

Commercial vending machine liquid volume detection system and detection method Download PDF

Info

Publication number
CN111982230B
CN111982230B CN202010805245.7A CN202010805245A CN111982230B CN 111982230 B CN111982230 B CN 111982230B CN 202010805245 A CN202010805245 A CN 202010805245A CN 111982230 B CN111982230 B CN 111982230B
Authority
CN
China
Prior art keywords
pressure
liquid
pressure container
container
volume
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
CN202010805245.7A
Other languages
Chinese (zh)
Other versions
CN111982230A (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.)
Guangzhou Jinnuo Intelligent Equipment Co ltd
Guangzhou Jetinno Intelligent Equipment Co ltd
Original Assignee
Guangzhou Jinnuo Intelligent Equipment Co ltd
Guangzhou Jetinno Intelligent Equipment 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 Guangzhou Jinnuo Intelligent Equipment Co ltd, Guangzhou Jetinno Intelligent Equipment Co ltd filed Critical Guangzhou Jinnuo Intelligent Equipment Co ltd
Priority to CN202010805245.7A priority Critical patent/CN111982230B/en
Publication of CN111982230A publication Critical patent/CN111982230A/en
Application granted granted Critical
Publication of CN111982230B publication Critical patent/CN111982230B/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
    • G01F22/00Methods or apparatus for measuring volume of fluids or fluent solid material, not otherwise provided for
    • G01F22/02Methods or apparatus for measuring volume of fluids or fluent solid material, not otherwise provided for involving measurement of pressure

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Beverage Vending Machines With Cups, And Gas Or Electricity Vending Machines (AREA)

Abstract

The invention discloses a commercial vending machine liquid volume detection system and a detection method, wherein the commercial vending machine liquid volume detection system comprises a pressure container, a liquid container and a liquid level sensor, wherein the pressure container is arranged in a commercial vending machine and is used for containing sold liquid; the pressure sensor is connected with the pressure container and used for detecting the pressure in the pressure container and sending the data to the control panel in real time; the air pump is connected with the pressure container and is used for pressurizing the pressure container under the driving of the control panel; the exhaust valve is connected with the pressure container and used for relieving the pressure of the pressure container under the control of the control panel; the control board is respectively connected with the pressure sensor, the air pump and the exhaust valve and used for receiving signals fed back by the pressure sensor and respectively pressurizing and decompressing the pressure container by controlling the air pump and the exhaust valve; calculating the initial volume of the liquid in the pressure container according to the time for pressing; according to the time for pressure relief, the residual volume of the liquid in the pressure container is calibrated, and the accuracy and reliability of liquid volume detection are improved.

Description

Commercial vending machine liquid volume detection system and detection method
Technical Field
The invention relates to a liquid volume detection system and a detection method for a commercial vending machine, which are mainly used for detecting and calibrating the residual volume of liquid in real time and are particularly suitable for commercial vending machines or equipment with similar purposes.
Background
The development of commercial vending machine or equipment with similar purposes provides convenience for the life of people, and along with the market expansion, drinks such as coffee, milk tea, white spirit, red wine and the like are gradually added into the ranks of vending machines, so that the vending machines are more suitable for the life consumption habits of modern people. However, the commercial vending machine on the world has technical defects in the method for detecting the volume of the liquid contained in the commercial vending machine, and the specific explanation is as follows:
1. the liquid volume is detected by using the liquid level probe, and the mode can only detect the fixed volume, has low precision and is only suitable for alarming;
2. the liquid volume is detected by using the weight sensor, and the mode is easily interfered by the outside world, so that the detection result is inaccurate;
3. the liquid volume is detected by a pure counting mode, namely the initial liquid volume is input, and the used liquid volume is reduced when a product is manufactured every time, so that the detection precision is very low, and the result is inaccurate.
Therefore, how to realize accurate and reliable measurement of the liquid volume in the commercial vending machine is a technical problem to be solved urgently.
Disclosure of Invention
In view of the existing technical problems, the invention provides a commercial vending machine liquid volume detection system and a detection method, so as to improve the accuracy and reliability of liquid volume detection.
To achieve the above object, the present invention provides a system for detecting a liquid volume of a commercial vending machine, comprising:
a pressurized container disposed within the commercial vending machine for holding a vending liquid;
the pressure sensor is connected with the pressure container and used for detecting the pressure in the pressure container and sending the data to the control panel in real time;
the air pump is connected with the pressure container and is used for pressurizing the pressure container under the driving of the control panel;
the exhaust valve is connected with the pressure container and used for relieving the pressure of the pressure container under the control of the control panel;
the control panel is respectively connected with the pressure sensor, the air pump and the exhaust valve, the air pump is controlled to pressurize the pressure container, and the initial volume of the liquid in the pressure container is calculated according to the time taken from 0bar to a set pressure P; and (3) the pressure container is decompressed by controlling the exhaust valve, and the residual volume of the liquid in the pressure container is calibrated according to the time for decompressing the set pressure P to the decompression pressure P1.
Furthermore, a safety valve is connected with an outlet at the top of the pressure container. The safety valve is in a normally closed state and is used for preventing the pressure in the pressure container or the pipeline from exceeding a specified value through emergency exhaust when the pressure in the pressure container or the pipeline rises to exceed the specified value.
Furthermore, the controller comprises a main control chip module, and a power supply module, a key indicator lamp module, a clock module, a reset module, a communication module, a pressure detection module, an air pump driving module and a valve driving module which are respectively connected with the main control chip module, wherein the pressure detection module is connected with a pressure sensor, the air pump driving module is connected with an air pump, and the valve driving module is connected with an exhaust valve.
The invention also provides a detection method utilizing the liquid volume detection system of the commercial vending machine, which calculates the initial volume of the liquid in the pressure container and comprises the following specific steps:
A. inputting to the controller: the volume of liquid dispensed by a bag of commercial vending machines; setting a pressure P; when empty bag liquid is contained in the pressure container, the time TF for the pressure to reach the set pressure P from 0bar; the time TE for the pressure to reach the set pressure P from 0bar when empty bag liquid is contained in the pressure container;
B. after liquid with random volume is put into the pressure container each time, the controller controls the exhaust valve to open to ensure that the pressure of the pressure container is relieved to 0bar; then the controller controls the exhaust valve to be closed, the air pump runs, the pressure container starts to be pressurized, the pressurizing time starts to be calculated, and the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time; when the pressure in the pressure container reaches a set pressure P from 0bar, the controller controls the air pump to stop pressurizing, and the pressurizing time T1 is counted;
C. the controller calculates the liquid volume ratio M according to the formula M = (T1-TF)/(TE-TF), and obtains the liquid volume according to the following comparison method:
if the pressing time T1 is less than TF, the initial volume of the liquid in the pressure container is one bag of liquid volume;
if M is less than or equal to 0.8, the initial volume of the liquid in the pressure container is four fifths of the volume of one bag of liquid;
if M is less than or equal to 0.6, the initial volume of the liquid in the pressure container is three fifths of the volume of one bag of liquid;
if M is less than or equal to 0.4, the initial volume of the liquid in the pressure container is two fifths of the volume of one bag of liquid;
if M is less than or equal to 0.2, the initial volume of the liquid in the pressure container is one fifth of the volume of one bag of liquid at the moment;
if M is less than or equal to 0, the initial volume of the liquid in the pressure container is 0.
Further, the method for factory setting of the time TF is as follows:
when the pressure container is filled with a bag of liquid, firstly, the controller controls the exhaust valve to open to ensure that the pressure of the pressure container is relieved to 0bar; then the controller drives the exhaust valve to close, the air pump runs, the pressure container is pressurized, and timing is started at the same time; and then the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the set pressure P from 0bar, the controller controls the air pump to stop pressurizing and calculates the used time TF.
Further, the time TE factory setting method is as follows:
when empty bag liquid is contained in the pressure container, firstly, the controller controls the exhaust valve to be opened to ensure that the pressure of the pressure container is relieved to 0bar; then the controller drives the exhaust valve to close, the air pump runs, the pressure container is pressurized, and timing is started at the same time; and then the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the set pressure P from 0bar, the controller controls the air pump to stop pressurizing and calculates the used time TE.
The invention further provides a detection method using the liquid volume detection system of the commercial vending machine, which is used for calibrating the volume of the liquid in the pressure container 1, and comprises the following specific steps:
a. inputting to the controller: the volume of liquid distributed by a bag of commercial vending machine, the set pressure P and the pressure relief pressure P1; when the pressure container is filled with a bag of liquid, the time tF for the pressure to reach the pressure relief pressure P1 from the set pressure P; when empty bag liquid is contained in the pressure container and the pressure reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tE;
b. after the commercial vending machine manufactures products every N times, the controller drives the air pump to stop, the exhaust valve is opened, the pressure container is decompressed, and meanwhile the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time t1;
c. the controller calculates the liquid volume ratio m according to the formula m = (t 1-tF)/(tE-tF), and obtains the liquid volume according to the following comparison method:
if the pressing time t1 is less than tF, the residual amount of the liquid in the pressure container is one bag of liquid volume;
if m is less than or equal to 0.8, the residual amount of the liquid in the pressure container is four fifths of the volume of one bag of liquid;
if m is less than or equal to 0.6, the residual amount of the liquid in the pressure container is three fifths of the volume of one bag of liquid;
if m is less than or equal to 0.4, the residual amount of the liquid in the pressure container is two fifths of the volume of the liquid in one bag;
if m is less than or equal to 0.2, the residual amount of the liquid in the pressure container is one fifth of the volume of the liquid in one bag;
if m is less than or equal to 0, the residual amount of the liquid in the pressure container is 0.
Further, the time tF factory setting method is as follows:
when the pressure container is filled with a full bag of liquid, the controller drives the air pump to stop, the exhaust valve is opened, the pressure of the pressure container is relieved, and meanwhile, the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tF.
Further, the time tE factory setting method is as follows:
when empty bags of liquid are contained in the pressure container, the controller drives the air pump to stop, the exhaust valve is opened, the pressure of the pressure container is relieved, and meanwhile the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tE.
In summary, the present invention utilizes the compressibility difference between liquid and air, and uses an air pump to pressurize a pressure container containing liquid, and determines the initial volume in the pressure container according to the time t1 taken to pressurize to the set pressure P. After the commercial vending machine produces the product, the residual volume of the liquid in the pressure container can be obtained by subtracting the used liquid volume from the initial volume, meanwhile, the pressure in the pressure container is periodically reduced from the set pressure P to the pressure relief pressure P1 (P1 < P), and the volume of the residual liquid in the pressure container is calibrated according to the time t2 used for reducing the pressure.
Compared with the prior art, the system and the method have the following technical advantages:
1. the accurate residual quantity of liquid in a container in a commercial vending machine or equipment for similar purposes can be detected in real time;
2. the calculation is accurate, the use is convenient, and the reliability and the precision of the measurement are greatly improved;
3. the system is little interfered by the external environment, has low cost and can be widely applied to the field of high-precision liquid selling.
Drawings
FIG. 1 is a schematic structural view of the present invention;
FIG. 2 is a schematic diagram of the electrical control connections in the controller of the present invention;
FIG. 3 is a circuit diagram of a main control chip of the controller according to the present invention;
FIG. 4 is a circuit diagram of the power supply circuit of the controller of the present invention;
FIG. 5 is a circuit diagram of the keys and indicator lights of the controller of the present invention;
FIG. 6 is a clock circuit diagram of the controller of the present invention;
FIG. 7 is a circuit diagram of a reset circuit in the controller of the present invention;
FIG. 8 is a circuit diagram of the communication circuit in the controller according to the present invention;
FIG. 9 is a circuit diagram of the pressure sensing in the controller of the present invention;
FIG. 10 is a circuit diagram of an air pump driving circuit in the controller of the present invention;
FIG. 11 is a circuit diagram of a valve actuator in the controller of the present invention;
FIG. 12 is a flow chart of the method of the present invention for calculating the remaining liquid volume by the time of the squeezing;
FIG. 13 is a flow chart of the method of the present invention for calculating the volume of remaining liquid by the time of pressure release;
in the figure: 1. pressure container, 2, pressure sensor, 3, exhaust valve, 4, air pump, 5, relief valve.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples.
As shown in figure 1, the device mainly comprises a pressure container 1 for containing liquid, a pressure sensor 2, an exhaust valve 3, an air pump 4, a safety valve 5 and other parts, wherein the top outlet of the pressure container 1 is sequentially connected with the safety valve 5, the pressure sensor 2, the exhaust valve 3 and the air pump 4 through pipelines.
As shown in fig. 2, the control board is provided with a communication interface, a power supply interface, a pressure sensor interface, an exhaust valve interface, an air pump interface, a key and an indicator lamp panel, the 24VDC power supply is connected with the control board through the power supply interface, and the pressure sensor 2, the exhaust valve 3 and the air pump 4 are respectively electrically connected with the control board through corresponding interfaces. Wherein: the pressure sensor 2 is used for detecting the pressure in the pressure container 1 in real time and sending data to the control board; the air pump 4 is driven by the control board and is used for pressurizing the inside of the pressure container 1; the exhaust valve 3 is driven by the control plate and is used for relieving the pressure in the pressure container 1; the control board receives the pressure detected by the pressure sensor 2, drives the exhaust valve 3 and the air pump 4 to start and stop, calculates the time for pressurizing and decompressing, and calculates the liquid volume in the pressure container 1 through a specific data model.
As shown in fig. 3-11, the control board adopts the existing circuit design, and includes a main control module, and a power supply module, a key indicator module, a clock module, a reset module, a communication module, a pressure detection module, an air pump driving module, and a valve driving module respectively connected thereto, wherein the pressure sensor 2 is connected to the pressure detection module through a pressure sensor interface, the air pump 4 is connected to the air pump driving module through an air pump interface, and the exhaust valve 3 is connected to the valve driving module through an exhaust valve interface.
As shown in fig. 3, the main control module adopts an LPC1114FBD48 chip, and the following parameters need to be set therein: the volume of liquid dispensed by a bag of commercial vending machines; setting a pressure P; when empty bag liquid is contained in the pressure container 1, the time TF for the pressure to reach the set pressure P from 0bar; when an empty bag of liquid is contained in the pressure vessel 1, the time TE it takes for the pressure to reach the set pressure P from 0 bar. And the master control module performs level conversion by using the SN74HC125PWR chip.
As shown in fig. 4, the power supply module includes a power supply interface and a YPS54331D chip, and reduces the 24VDC direct current to 5V direct current; the AMS1117-3.3V chip is also included, and the 5V direct current is reduced to 3.3V direct current. 3.3V direct current is used for supplying power to the main control module chip, and 5V direct current is used for supplying power to other chips.
As shown in FIG. 5, the key and indicator light panel comprises keys S1-S8 and indicator lights DS1-DS8 correspondingly connected with the keys. And the key is used for function setting and machine operation, and the pilot lamp is used for operating condition to instruct.
As shown in fig. 6, the clock module includes a crystal oscillator Y1, and the pins 2 and 4 are grounded; the pin 3 is grounded through a capacitor C70 and is connected with the main control module; pin 1 is grounded via capacitor C71 and connected to the main control module.
As shown in fig. 7, the reset module includes a key RST and an ADM809SART chip for resetting the main control module chip.
As shown in fig. 8, the communication module includes a communication interface and a MAX13487EE chip, and is mainly used for communication, and the communication interface may be connected to another MCU, or may be connected to an external communication for computer data acquisition.
As shown in fig. 9, the pressure detection module includes a TLC2274 chip and a pressure sensor interface connected to the pressure sensor 2 for monitoring the operation of the pressure sensor.
As shown in fig. 10, the air pump driving module includes an air pump interface, and is connected to the air pump 4 for controlling the on/off of the air pump 4.
As shown in fig. 11, the valve driving module includes an exhaust valve interface and is connected to the exhaust valve 3 for controlling the opening and closing of the exhaust valve 3.
Moreover, this commercial vending machine has following two major functions with the system that detects liquid volume:
1. calculate the initial volume of liquid in the pressure vessel 1:
at the beginning of the use of the commercial vending machine, the device can calculate the initial volume of the liquid in the pressure container 1 of the commercial vending machine, and the specific method is as follows: after putting into commercial pressure vessel 1 who sells the machine with liquid, at first host system's chip passes through valve drive module control discharge valve 3 and opens, as shown in fig. 11, host system's chip opens opto-coupler op3, and a low level of its 3 foot isolation output, the G utmost point level of driving tube T1A is by low uprising and switch on, and connector J10's exhaust valve switch-on power valve is opened to make pressure vessel 1 interior pressure of having let out. Then, the chip of the main control module controls the exhaust valve 3 to close, as shown in fig. 11, the chip of the main control module closes the optical coupler op3, so that the 3 pins of the optical coupler op3 are isolated to output a high level, the G-pole level of the driving tube T1A is turned off when the high level is changed from high to low, and the exhaust valve stops working when power is lost.
Then, the chip of the main control module controls the air pump 4 to be turned on, as shown in fig. 10, the chip of the main control module turns on the op1 optical coupler, so that the level of the 4 pins of the chip is changed from high to low, the field effect tube T2 is conducted, and the air pump connected to the connector J24 is powered on to work. The air pump 4 pressurizes the inside of the pressure container 1, and the pressure sensor 2 sends a pressure signal to the main control chip, as shown in fig. 9, the pressure sensor 2 connected to the connector J9 sends the pressure signal to the pins 10 and 12 of the pressure chip TLC2274, and the pressure chip TLC2274 processes a minute voltage signal to convert it into a voltage signal and passes through the pin 7. And simultaneously, the timer circuit of the main control chip starts timing.
When the main control chip judges that the pressure in the pressure container 1 reaches the preset pressure P from 0bar, the air pump 4 is controlled to be turned off, as shown in fig. 10, the chip of the main control module turns off the op1 optocoupler, so that the level of a pin 4 of the chip is changed from low to high, the field effect tube T2 is turned off, and the air pump stops working when power is lost. And then, the main control chip calculates the used pressing time T1, namely, the pressing process is completed. Where P can be any set value, such as 2.7bar in the example. Finally, the time t1 is converted into the volume number of the liquid in the pressure container 1 through software calculation.
For example, as shown in fig. 12, at the beginning of the use of the commercial vending machine, cream is put in the pressure container 1, and the process and the logical algorithm for calculating the remaining cream quantity using the squeezing time are as follows.
When the commercial vending machine is used for dispensing cream, the volume of a full bag of cream is set to be 5L, and the volume of the pressure container 1 is more than 5L; the set pressure P was set to 2.7bar;
and, under the condition that the pressure container 1 is filled with full bags of cream, the time from 0bar to 2.7bar is TF;
the time for pressing from 0bar to 2.7bar is TE under the condition that empty bags of cream are contained in the pressure container 1;
the time from 0bar to 2.7bar is T1 when the pressure container 1 is filled with random volumes of cream;
if the ratio of the remaining amount of the cream contained in the pressure container 1 is M, the calculation formula of the ratio of the remaining amount of the cream is as follows: m = (T1-TF)/(TE-TF). Wherein, TF and TE are data which are preset through the pre-detection of a main control chip circuit, a clock circuit and the like when the TF and the TE are set for the first time when leaving a factory, and T1 is data obtained through the real-time detection of a controller.
Specifically, when the pressure container 1 is delivered from a factory and full bags of liquid are contained in the pressure container, firstly, the controller controls the exhaust valve 3 to be opened to enable the pressure of the pressure container 1 to be relieved to 0bar, then the controller drives the exhaust valve 3 to be closed, the air pump 4 operates to pressurize the pressure container 1, and timing is started at the same time; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time; when the pressure in the pressure vessel 1 reaches the set pressure P from 0bar, the controller can calculate the elapsed time TF.
Similarly, when leaving a factory and empty bag liquid is contained in the pressure container 1, firstly the controller controls the exhaust valve 3 to be opened to enable the pressure container 1 to release the pressure to 0bar, then the controller drives the exhaust valve 3 to be closed, the air pump 4 operates to pressurize the pressure container 1, and meanwhile, timing is started; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time; when the pressure in the pressure vessel 1 reaches the set pressure P from 0bar, the controller can calculate the elapsed time TE.
When the pressure container is used, after liquid with random volume is contained in the pressure container 1 every time, the pressure container 1 is placed at a specified position, the sensor in the commercial vending machine detects that the pressure container 1 returns, information is sent to the controller, and the controller starts to execute calculation logic. After liquid with random volume is filled in the pressure container 1 each time, firstly, the controller controls the exhaust valve 3 to be opened to enable the pressure container 1 to release pressure to 0bar, then the controller controls the exhaust valve 3 to be closed, the air pump 4 operates to start to pressurize the pressure container 1, and simultaneously, the pressurizing time is started to be calculated; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time; when the pressure in the pressure container 1 reaches the set pressure P from 0bar, the controller controls the air pump 4 to stop pressurizing, and counts the pressurizing time T1.
Then, each data is substituted into the calculation formula, the allowance ratio of the cream can be obtained through the calculation of the main control chip, and the main control chip compares the obtained M value as follows, so that the accurate liquid volume can be obtained:
if the pressing time T1 is less than TF, the initial volume of cream in the pressure container 1 is 5L at the moment, and DS1-DS5 lamps in the figure 5 are on;
if M is less than or equal to 0.8, the initial volume of cream in the pressure container 1 is 4L, green lamps DS2-DS5 in the figure 5 are on, and other lamps are off;
if M is less than or equal to 0.6, the initial volume of cream in the pressure container 1 is 3L, in the figure 5, DS3-DS5 green lamps are on, and other lamps are off;
if M is less than or equal to 0.4, the initial volume of cream in the pressure container 1 is 2L, in the figure 5, DS4-DS5 green lamps are on, and other lamps are off;
if M is less than or equal to 0.2, the initial volume of cream in the pressure container 1 is 1L, and a DS5 green lamp in the graph 5 is on;
if M is less than or equal to 0.1, the initial volume of cream in the pressure container 1 is 0.5L, and a DS5 red light in the graph 5 is on;
if M is less than or equal to 0, the initial volume of cream in the pressure container 1 is 0L, and a DS5 red light is on in figure 5.
Finally, the capacity is marked by 5 LED lamps on the commercial vending machine, so that the user can see the residual amount of the liquid in the pressure container 1.
2. Calibration volume of liquid in pressure vessel 1 in use of product:
generally, in the process of manufacturing a product by a commercial vending machine, the residual amount of the liquid in the pressure container 1 can be obtained by calculating the initial volume of the liquid in the pressure container 1 according to the scheme and then subtracting the volume of the liquid used for manufacturing the product each time. However, the volumes of the products manufactured by commercial vending machines are biased, and the above-described method of calculating the remaining amount of liquid is not accurate due to the accumulation of more liquid, and the remaining amount of liquid in the pressure vessel 1 needs to be calibrated.
The device can calibrate the volume of liquid in the pressure container 1, and the specific method comprises the following steps: firstly, the main control chip controls the air pump 4 to be closed, the exhaust valve 3 to be opened, the pressure sensor 2 monitors the pressure in the pressure container 1 and feeds data back to the main control chip in real time, and meanwhile, the controller starts to calculate the pressure relief time; when the main control chip judges that the pressure in the pressure container 1 reaches the preset pressure relief pressure P1, the exhaust valve 3 is controlled to be closed, and the time t1 for reducing the pressure in the pressure container 1 from the set pressure P to the pressure relief pressure P1 is calculated, namely the pressure relief process is completed. Where P1 < P, P1 may be any set value, such as 1bar in the example. And finally, the main control chip converts the time t1 into the volume number of the liquid in the pressure container 1 through software calculation.
For example, as shown in fig. 13, after the commercial vending machine makes products N times, the system automatically calibrates the cream remaining amount in the pressure container 1, and the process and logic algorithm for calculating the amount of cream remaining in the pressure container 1 by the pressure relief time are as follows.
When the commercial vending machine is used for dispensing cream, the volume of a full bag of cream is set to be 5L, and the volume of the pressure container 1 is more than 5L; setting the pressure P to be 2.7bar and the pressure relief pressure P1 to be 1bar;
under the condition that a bag of cream is filled in the pressure container 1, the time tF for releasing the pressure from 2.7bar to 1bar is;
when empty bags of cream are placed in the pressure container 1, the time taken for pressure relief from 2.7bar to 1bar is tE;
the time for releasing the pressure from 2.7bar to 1bar is t1 under the condition that random volumes of cream are contained in the pressure container 1;
and if the margin proportion of the cream is m, the calculation formula of the margin proportion of the cream is as follows: m = (t 1-tF)/(tE-tF). And tF and tE are data which are preset through the pre-detection of a main control chip circuit, a clock circuit and the like when the controller is set for the first time in factory leaving, and t1 is data obtained through the real-time detection of the controller.
Specifically, when the pressure container is shipped, and a bag of liquid is filled in the pressure container 1, the controller drives the air pump 4 to stop, the exhaust valve 3 is opened, the pressure container 1 is decompressed, and meanwhile the controller starts timing; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time; when the pressure in the pressure vessel 1 reaches the relief pressure P1 from the set pressure P, the controller calculates the elapsed time tF.
Similarly, when leaving the factory, when empty bag liquid is contained in the pressure container 1, the controller drives the air pump 4 to stop, the exhaust valve 3 is opened, the pressure of the pressure container 1 is relieved, and meanwhile, the controller starts to time; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time, and when the pressure in the pressure container 1 reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tE.
When the pressure container is used, after the commercial vending machine manufactures products every N times, the controller drives the air pump 4 to stop, the exhaust valve 3 is opened, the pressure container 1 is decompressed, and meanwhile, the controller starts timing; the pressure sensor 2 monitors the pressure in the pressure container 1 and sends data to the controller in real time, and when the pressure in the pressure container 1 reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time t1.
Then, each data is substituted into the calculation formula, the allowance ratio of the cream can be obtained through the calculation of the main control chip, and the main control chip compares the obtained M value as follows, so that the accurate liquid volume can be obtained:
if the pressing time t1 is less than tF, the residual amount of cream in the pressure container 1 is 5L;
if m is less than or equal to 0.8, the balance of cream in the pressure container 1 is 4L;
if m is less than or equal to 0.6, the balance of cream in the pressure container 1 is 3L;
if m is less than or equal to 0.4, the balance of cream in the pressure container 1 is 2L;
if m is less than or equal to 0.2, the balance of cream in the pressure container 1 is 1L;
if m is less than or equal to 0.1, the balance of cream in the pressure container 1 is 0.5L;
if m is less than or equal to 0, the residual amount of the cream in the pressure container 1 is 0L.
Finally, the main control module identifies the volume by the LED lamps DS1-DS5 of the control key and the indicator module in fig. 5, so that the user can see the remaining amount of the liquid in the pressure vessel 1 through the straight tube, and the volume of the remaining amount calculated by calibration is used as the standard.
In conclusion, the system disclosed by the invention realizes the flow measurement of liquid by utilizing the pressure sensor 2, the air pump 4, the exhaust valve 3 and the controller, has a simpler structure and more accurate measurement compared with the traditional weighing and measuring mode, is less influenced by external factors, can be widely applied to the high-precision liquid selling field, and has good practicability and application prospect.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A commercial vending machine liquid volume detection method is characterized in that a commercial vending machine liquid volume detection system is used for detection, and the system comprises:
a pressure vessel disposed within the commercial vending machine for containing a vended liquid;
the pressure sensor is connected with the pressure container and used for detecting the pressure in the pressure container and sending the data to the control panel in real time;
the air pump is connected with the pressure container and is used for pressurizing the pressure container under the driving of the control panel;
the exhaust valve is connected with the pressure container and used for relieving the pressure of the pressure container under the control of the control panel;
the control panel is respectively connected with the pressure sensor, the air pump and the exhaust valve, the air pump is controlled to pressurize the pressure container, and the initial volume of the liquid in the pressure container is calculated according to the time taken from 0bar to a set pressure P; the pressure container is decompressed by controlling the exhaust valve, and the residual volume of the liquid in the pressure container is calibrated according to the time for decompressing the set pressure P to the decompression pressure P1;
the detection method for calculating the initial volume of the liquid in the pressure container comprises the following specific steps:
A. inputting to the controller: the volume of liquid dispensed by a bag of commercial vending machines; setting a pressure P; when empty bag liquid is contained in the pressure container, the time TF for the pressure to reach the set pressure P from 0bar; the time TE for the pressure to reach the set pressure P from 0bar when the pressure container contains empty bag liquid;
B. after liquid with random volume is put into the pressure container each time, the controller controls the exhaust valve to open to ensure that the pressure of the pressure container is relieved to 0bar; then the controller controls the exhaust valve to be closed, the air pump runs, the pressure container starts to be pressurized, the pressurizing time starts to be calculated, and the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time; when the pressure in the pressure container reaches a set pressure P from 0bar, the controller controls the air pump to stop pressurizing, and the pressurizing time T1 is counted;
C. the controller calculates the liquid volume ratio M according to the formula M = (T1-TF)/(TE-TF), and obtains the liquid volume according to the following comparison method:
if the pressing time T1 is less than TF, the initial volume of the liquid in the pressure container is one bag of liquid volume;
if M is less than or equal to 0.8, the initial volume of the liquid in the pressure container is four fifths of the volume of one bag of liquid;
if M is less than or equal to 0.6, the initial volume of the liquid in the pressure container is three fifths of the volume of one bag of liquid;
if M is less than or equal to 0.4, the initial volume of the liquid in the pressure container is two fifths of the volume of one bag of liquid;
if M is less than or equal to 0.2, the initial volume of the liquid in the pressure container is one fifth of the volume of one bag of liquid at the moment;
if M is less than or equal to 0, the initial volume of the liquid in the pressure container is 0.
2. A method as recited in claim 1 wherein a safety valve is further connected to the top outlet of the pressure vessel.
3. A method as claimed in claim 1, wherein said time TF is factory set by the following steps:
when the pressure container is filled with a bag of liquid, firstly, the controller controls the exhaust valve to open to ensure that the pressure of the pressure container is relieved to 0bar; then the controller drives the exhaust valve to close, the air pump runs, the pressure container is pressurized, and timing is started at the same time; and then the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the set pressure P from 0bar, the controller controls the air pump to stop pressurizing and calculates the used time TF.
4. A method as claimed in claim 1, wherein said time TE factory setting is as follows:
when empty bag liquid is contained in the pressure container, firstly, the controller controls the exhaust valve to be opened to ensure that the pressure of the pressure container is relieved to 0bar; then the controller drives the exhaust valve to close, the air pump runs, the pressure container is pressurized, and timing is started at the same time; and then the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the set pressure P from 0bar, the controller controls the air pump to stop pressurizing and calculates the used time TE.
5. A method of detecting the volume of liquid in a commercial vending machine according to claim 1, wherein the method of calibrating the volume of liquid in the pressurized container during use of the commercial vending machine comprises the steps of:
a. inputting to the controller: the volume of liquid distributed by a bag of commercial vending machine, the set pressure P and the pressure relief pressure P1; when the pressure container is filled with a bag of liquid, the time tF for the pressure to reach the pressure relief pressure P1 from the set pressure P; when empty bag liquid is contained in the pressure container and the pressure reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tE;
b. after the commercial vending machine manufactures products every N times, the controller drives the air pump to stop, the exhaust valve is opened, the pressure container is decompressed, and meanwhile the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the time t1;
c. the controller calculates the liquid volume ratio m according to the formula m = (t 1-tF)/(tE-tF), and obtains the liquid volume according to the following comparison method:
if the pressing time t1 is less than tF, the residual amount of the liquid in the pressure container is the volume of one bag of liquid;
if m is less than or equal to 0.8, the residual amount of the liquid in the pressure container is four fifths of the volume of one bag of liquid;
if m is less than or equal to 0.6, the residual amount of the liquid in the pressure container is three fifths of the volume of one bag of liquid;
if m is less than or equal to 0.4, the residual amount of the liquid in the pressure container is two fifths of the volume of one bag of liquid;
if m is less than or equal to 0.2, the residual amount of the liquid in the pressure container is one fifth of the volume of one bag of liquid;
if m is less than or equal to 0, the residual amount of the liquid in the pressure container is 0.
6. A method as claimed in claim 5, wherein said time tF is factory set by:
when the pressure container is filled with a full bag of liquid, the controller drives the air pump to stop, the exhaust valve is opened, the pressure of the pressure container is relieved, and meanwhile, the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tF.
7. A method as claimed in claim 5, wherein said time tE is factory set by:
when empty bags of liquid are contained in the pressure container, the controller drives the air pump to stop, the exhaust valve is opened, the pressure container is decompressed, and meanwhile the controller starts timing; the pressure sensor monitors the pressure in the pressure container and sends data to the controller in real time, and when the pressure in the pressure container reaches the pressure relief pressure P1 from the set pressure P, the controller calculates the used time tE.
CN202010805245.7A 2020-08-12 2020-08-12 Commercial vending machine liquid volume detection system and detection method Active CN111982230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010805245.7A CN111982230B (en) 2020-08-12 2020-08-12 Commercial vending machine liquid volume detection system and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010805245.7A CN111982230B (en) 2020-08-12 2020-08-12 Commercial vending machine liquid volume detection system and detection method

Publications (2)

Publication Number Publication Date
CN111982230A CN111982230A (en) 2020-11-24
CN111982230B true CN111982230B (en) 2023-02-28

Family

ID=73433865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010805245.7A Active CN111982230B (en) 2020-08-12 2020-08-12 Commercial vending machine liquid volume detection system and detection method

Country Status (1)

Country Link
CN (1) CN111982230B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113600439A (en) * 2021-07-29 2021-11-05 深圳市世宗自动化设备有限公司 Liquid level measuring method and device of dispensing system, computer equipment and storage medium thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103604738B (en) * 2013-10-09 2016-03-09 东北石油大学 CO 2gas input well pressure release affects method of testing to packer rubber part performance
JP6526393B2 (en) * 2014-07-15 2019-06-05 花王株式会社 Electric dispenser
CN105626018A (en) * 2014-10-29 2016-06-01 中国石油天然气股份有限公司 Determining method for starting time of well killing and well killing method
CN109724667B (en) * 2017-10-30 2022-08-05 诺信公司 Method and system for detecting volume percentage of liquid in container and dispenser with system
KR20200058969A (en) * 2018-11-20 2020-05-28 엘지전자 주식회사 Beverage maker and method for controlling thereof

Also Published As

Publication number Publication date
CN111982230A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN111982230B (en) Commercial vending machine liquid volume detection system and detection method
US8616250B2 (en) Blender with feature for dispensing product by weight
US4821921A (en) Liquid dispensing apparatus
TWI702932B (en) Method for the instantaneous selfcalibration of the dose for a coffee grinder-doser apparatus
AU2006235979A1 (en) Measured fill water dispenser for refrigerator
CN209097407U (en) The dress of a kind of powdery, graininess or flaky substance is deposited and taking device
CN201344950Y (en) High-precision residual voltage measuring device
JP3828786B2 (en) Cup mixing vending machine
CN110720840A (en) Full-automatic liquid filling method and device for liquid drinking machine and liquid drinking machine
CN207543609U (en) Grass-mowing machine
CN206906182U (en) Meet water gassing experiment instrument
CA3134014C (en) System for detecting and indicating container volume variations
CN109589475A (en) The accuracy automatic checkout system and method for infusion equipment
US20230201398A1 (en) Smart oil spray adapter
US20220178729A1 (en) Fluid Monitoring System and Methods of Use
CN219827179U (en) Flow testing device special for centrifugal pump of in-vitro diagnostic device
CN214279069U (en) Intelligent temperature control type prepayment heat meter
CN207281518U (en) A kind of contactless hand sanitizer machine
NO831572L (en) DOSING CONTROL DEVICE.
JPH0515890Y2 (en)
JP2000276649A (en) Beverage dispenser
RU31573U1 (en) Fuel dispenser
JP3206233B2 (en) Ice discharge control device
CN203102423U (en) Coin denomination recognition device
SU1530920A1 (en) Registering and metering arrangement

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