Automatic control method and system of kitchen salty and fresh seasoning device
By using solenoid valves and sensors in the kitchen salty and fresh seasoning device, and controlling the energization time of the solenoid valve based on a preset mapping relationship, the problem in the existing technology of being unable to accurately control the amount of salty and fresh seasoning added in the kitchen is solved, and the amount of salty and fresh seasoning in the kitchen is realized. Precise control avoids excessive intake.
Patent Information
- Application Number
- CN202411034734.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology cannot accurately control the amount of salty and fresh seasonings added in the kitchen, leading to the problem of excessive intake of salty and fresh seasonings.
An automatic control method for kitchen salty and fresh seasoning devices is designed. It uses storage containers, solenoid valves, infrared sensors and flow sensors to obtain input data and execute instructions. It calculates the energization time of the solenoid valve based on the preset mapping relationship and controls the solenoid valve. The valve is powered on and off to achieve precise control of the salty and fresh seasoning liquid.
It effectively controls the amount of salty and fresh seasoning liquid in the storage container, realizes the precise addition of salty and fresh seasonings in the kitchen, and avoids the problem of excessive intake of salty and fresh seasonings.
Smart Images

Figure CN118844831A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of seasoning control, and in particular to an automatic control method and system for a kitchen salty and fresh seasoning device. Background Art
[0002] Salty and fresh condiments are very common in the diet of community residents in my country. In addition to home-cooked foods and restaurant foods, packaged foods such as ham sausage and instant noodles are often added with salty and fresh condiments. Since salty and fresh condiments generally have high salt content and high sodium glutamate content, long-term and large-scale consumption of salty and fresh condiments can easily lead to various chronic diseases. Therefore, it is of great significance to the public health of my country to reasonably control the amount of salty and fresh condiments consumed. Reducing salt intake has become a long-term goal of global public health.
[0003] At present, the control of the amount of kitchen seasonings consumed is still at the extensive control stage, which is mainly controlled manually. The control of the amount of salty and fresh seasonings added to the kitchen is entirely subjective, and the amount of salty and fresh seasonings added to the kitchen cannot be accurately controlled. People are prone to excessive intake of salty and fresh seasonings.
[0004] Therefore, it is of great significance to study a method and system that can accurately control the intake of salty and fresh seasonings in the kitchen. Summary of the invention
[0005] The object of the present invention is to provide an automatic control method and system for a kitchen salty and fresh seasoning device, so as to solve the problem that the prior art cannot accurately control the amount of salty and fresh seasoning added to the kitchen.
[0006] In order to solve the above technical problems, the first technical solution of the present invention provides an automatic control method of a kitchen salty and fresh seasoning device, wherein the kitchen salty and fresh seasoning device comprises a material storage container and a solenoid valve connected to each other;
[0007] The following steps are involved:
[0008] Acquiring input data, wherein the input data includes salty and fresh seasoning liquid volume data and execution instruction data;
[0009] After obtaining the volume data of the salty and fresh seasoning liquid, based on the volume data of the salty and fresh seasoning liquid, a preset mapping relationship is used to calculate the power-on time of the solenoid valve;
[0010] After the execution instruction data is acquired, the solenoid valve is controlled to be powered on and off according to the power-on duration.
[0011] In some embodiments of the first technical solution, the preset mapping relationship is as follows: when the volume data of the salty and fresh seasoning liquid is 1ml, the power-on time is 348ms; when the volume data of the salty and fresh seasoning liquid is 2ml, the power-on time is 695ms; when the volume data of the salty and fresh seasoning liquid is 3ml, the power-on time is 1621ms; when the volume data of the salty and fresh seasoning liquid is 4ml, the power-on time is 2433ms; when the volume data of the salty and fresh seasoning liquid is 5ml, the power-on time is 3243ms; when the volume data of the salty and fresh seasoning liquid is 6ml, the power-on time is 3996ms; when the volume data of the salty and fresh seasoning liquid is 7ml, the power-on time is 4865ms; when the volume data of the salty and fresh seasoning liquid is 8ml, the power-on time is 5560ms; when the volume data of the salty and fresh seasoning liquid is 9ml, the power-on time is 6225ms.
[0012] In some embodiments of the first technical solution, after acquiring the execution instruction data, the solenoid valve is powered on and off according to the power-on duration. In this step, specifically: after acquiring the execution instruction data, a high level is output to the relay to power on the solenoid valve; the high level output to the relay is continuously maintained until the power-on duration has passed, and a low level is output to the relay to power off the solenoid valve.
[0013] In some embodiments of the first technical solution, the following steps are also included: using an infrared sensor to detect whether there is any liquid remaining in the material storage container; when the infrared sensor detects that the liquid remaining amount is less than a preset threshold liquid remaining amount, controlling the solenoid valve to cut off power.
[0014] In some embodiments of the first technical solution, the following steps are also included: using a flow sensor to detect liquid flow data flowing out of the solenoid valve, and keeping the solenoid valve powered on when the liquid flow data meets the preset operating conditions; when the liquid flow data does not meet the preset operating conditions, adjusting the power-on time of the solenoid valve according to the first rule or the second rule.
[0015] In some embodiments of the first technical solution, the following steps are also included: the first rule is to extend the power-on time of the solenoid valve when the liquid flow data is less than a preset threshold flow rate.
[0016] In some embodiments of the first technical solution, the following steps are also included: the second rule is to shorten the power-on time of the solenoid valve when the liquid flow data is greater than a preset threshold flow rate.
[0017] In some embodiments of the first technical solution, the input data also includes stop instruction data; after obtaining the stop instruction data, the solenoid valve is controlled to be de-energized.
[0018] In some embodiments of the first technical solution, before obtaining input data, the following steps are also included: initializing a display device, a relay, a keyboard, and a sound device.
[0019] The second technical solution of the present invention provides an automatic control system for a kitchen salty and fresh seasoning device, comprising:
[0020] An input module, used to obtain input data, wherein the input data includes salty and fresh seasoning liquid volume data and execution instruction data;
[0021] A calculation module, configured to obtain the volume data of the salty and fresh seasoning liquid and calculate the power-on time of the solenoid valve based on the volume data of the salty and fresh seasoning liquid by using a preset mapping table;
[0022] The execution module is used to control the power on and power off of the solenoid valve according to the power-on duration after obtaining the execution instruction data.
[0023] The beneficial effects of the present invention are as follows:
[0024] After obtaining the volume data of the salty and fresh seasoning liquid, the power-on time of the solenoid valve is calculated based on the volume data of the salty and fresh seasoning liquid using a preset mapping table, and then the power-on and power-off of the solenoid valve are controlled based on the power-on time. Whether the salty and fresh seasoning liquid in the storage container flows out is controlled by whether the solenoid valve is powered on or not, which can effectively control the output of the salty and fresh seasoning liquid in the storage container, thereby achieving precise control of the amount of salty and fresh seasoning added to the kitchen and avoiding the problem of excessive intake of salty and fresh seasoning by people. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a schematic diagram of steps provided by a preferred embodiment of the present invention;
[0027] Figure 2 It is a schematic diagram of the overall process provided by the preferred embodiment of the present invention;
[0028] Figure 3 It is a schematic diagram of initialization provided by a preferred embodiment of the present invention;
[0029] Figure 4 It is a schematic diagram of the overall device structure provided by a preferred embodiment of the present invention;
[0030] Figure 5 It is a schematic diagram of the controller structure provided by the preferred embodiment of the present invention. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0032] In order to solve the above problems, this solution proposes a kitchen salty and fresh seasoning device, an automatic control method for the kitchen salty and fresh seasoning device, and an automatic control system for the kitchen salty and fresh seasoning device to solve the problem that the existing technology cannot accurately control the amount of kitchen salty and fresh seasoning added.
[0033] like Figure 4 and Figure 5 As shown, the present scheme proposes a kitchen salty and fresh seasoning device, comprising a storage container 1 for storing kitchen salty and fresh seasoning liquid, a micro water pump 2 for sucking the kitchen salty and fresh seasoning liquid in the storage container, an electromagnetic valve 3 for controlling the kitchen salty and fresh seasoning liquid to flow out of the storage container, a conduit for supplying the kitchen salty and fresh seasoning liquid with flow, and a controller 4 for controlling the electromagnetic valve. The storage container is connected with the micro water pump, the micro water pump is connected with the electromagnetic valve, the storage container, the micro water pump and the electromagnetic valve are connected through the conduit, and the controller is connected with the electromagnetic valve signal. After adopting this setting method, the controller controls whether the electromagnetic valve is energized or not to control the outflow of the kitchen salty and fresh seasoning liquid in the storage container, and the amount of kitchen salty and fresh seasoning added is more accurately controlled.
[0034] As for the controller, the controller uses Arduino uno, and its overall performance can meet the system requirements. The corresponding IDE can be used to quickly control GPIO and I2C devices.
[0035] The kitchen salty and fresh seasoning device also includes an input device, a display device and a sound device, which are all connected to the controller signal. The control command of the controller can be input through the input device, and information feedback can be performed through the display device and the sound device.
[0036] As for the input device, the input device is preferably a keyboard, and the keyboard uses the I2C protocol to parse the user input value.
[0037] As for the display device, the display device is preferably a display screen, and the display screen uses the I2C protocol to display the user input value.
[0038] For the sound device, the sound device communicates through the serial port, the sound control module pre-stores the required sound files, and the Arduino controller sends instructions to play the specified sound file according to the user input.
[0039] The kitchen salty and fresh seasoning device also includes an infrared sensor for detecting the liquid residue in the storage container and a flow sensor for detecting the liquid flow out of the solenoid valve. The amount of salty and fresh seasoning added can be more accurately controlled by the infrared sensor and the flow sensor.
[0040] From the above, we can know the basic structure of the kitchen salty and fresh seasoning device of this scheme. The following will give a kitchen salty and fresh seasoning device automatic control method, please refer to Figure 1 and Figure 2 , including the following steps:
[0041] S1, kitchen salty and fresh seasoning device initialization, please refer to Figure 3 , that is, initialization includes initializing the display device, relay, keyboard and sound device.
[0042] Specifically, initialize the display screen, set the i2c address, and turn on the backlight; set the GPIO corresponding to the electromagnetic relay to output mode; initialize the keyboard and set the i2c address; initialize the sound player and set the serial port pin. After adopting this setting method, the kitchen salty and fresh seasoning device can be effectively initialized to better serve the subsequent steps.
[0043] S2, get input data, please refer to Figure 1 and Figure 2 The input data includes the volume data of salty and fresh seasoning liquid, execution instruction data and stop instruction data. After adopting this setting method, the system executes different subsequent instructions according to different input data.
[0044] Case 1, please refer to Figure 1 and Figure 2 After obtaining the volume data of the salty and fresh seasoning liquid, the power-on time of the solenoid valve is calculated based on the volume data of the salty and fresh seasoning liquid using a preset mapping relationship. After adopting this setting method, the solenoid valve can be powered on to make the liquid in the storage container flow out. When the solenoid valve maintains a certain power-on time, the corresponding volume of liquid can flow out.
[0045] The preset mapping relationship is calculated using the formula flow rate*time=liquid volume. The specific preset mapping relationship can be shown in the following preset mapping table:
[0046] Preset Mapping Table
[0047] Liquid volume (ml) 1 2 3 4 5 6 7 8 9 Power-on time (ms) 348 695 1621 2433 3243 3996 4865 5560 6225
[0048] It can be seen from the above preset mapping table that when the volume data of the salty and fresh seasoning liquid is 1ml, the power-on time is 348ms; when the volume data of the salty and fresh seasoning liquid is 2ml, the power-on time is 695ms; when the volume data of the salty and fresh seasoning liquid is 3ml, the power-on time is 1621ms; when the volume data of the salty and fresh seasoning liquid is 4ml, the power-on time is 2433ms; when the volume data of the salty and fresh seasoning liquid is 5ml, the power-on time is 3243ms; when the volume data of the salty and fresh seasoning liquid is 6ml, the power-on time is 3996ms; when the volume data of the salty and fresh seasoning liquid is 7ml, the power-on time is 4865ms; when the volume data of the salty and fresh seasoning liquid is 8ml, the power-on time is 5560ms; when the volume data of the salty and fresh seasoning liquid is 9ml, the power-on time is 6225ms.
[0049] For example, after the solenoid valve is energized for 348ms, the volume of the salty and fresh seasoning liquid flowing out of the storage container is 1ml; after the solenoid valve is energized for 695ms, the volume of the salty and fresh seasoning liquid flowing out of the storage container is 2ml, and so on.
[0050] Further, in order to give users clearer feedback, please refer to Figure 2 After the power-on time is calculated, a sound corresponding to the power-on time is played on the sound device, and the number of the power-on time is displayed on the display device.
[0051] In the setting method of situation 1, the user first presets the required volume of the salty and fresh seasoning liquid, then inputs the amount, and then calculates the power-on time of the solenoid valve through the preset mapping table, and controls the solenoid valve to maintain the power-on time. In this way, the volume of liquid flowing out of the storage container can be the volume of the salty and fresh seasoning liquid required by the user before, thereby accurately controlling the amount of salty and fresh seasoning added to the kitchen.
[0052] Case 2: After obtaining the execution instruction data, please refer to Figure 1 and Figure 2 The solenoid valve is energized and de-energized according to the power-on duration. After adopting this setting method, the user can control the outflow of liquid in the storage container, and the outflow amount meets the volume of salty and fresh seasoning liquid required by the user in advance.
[0053] The specific steps are as follows: after obtaining the execution instruction data, output a high level to the relay to energize the solenoid valve; continue to output a high level to the relay, that is, the system delays the "power-on time" value until the power-on time has passed, and then output a low level to the relay to de-energize the solenoid valve.
[0054] Further, in order to give users clearer feedback, please refer to Figure 2After obtaining the execution instruction data, the sound of starting control is played synchronously on the sound device.
[0055] Case 3: After obtaining the stop command data, please refer to Figure 1 and Figure 2 , control the solenoid valve to cut off the power. After adopting this setting method, when special circumstances occur, for example, the volume of the salty and fresh seasoning liquid flowing out is insufficient, the user can input the stop command data to control the solenoid valve to cut off the power, thereby preventing the liquid in the storage container from flowing out.
[0056] Furthermore, in order to avoid the situation where there is insufficient liquid in the storage container, an infrared sensor is also provided in the storage container, which detects whether there is any liquid remaining in the storage container; when the infrared sensor detects that the liquid remaining amount is less than a preset threshold liquid remaining amount, the solenoid valve is controlled to cut off the power. After adopting this setting, the infrared sensor can detect the liquid remaining amount in the storage container. When the detected liquid remaining amount is less than the preset threshold liquid remaining amount, the solenoid valve can be controlled to cut off the power. The user can add liquid to the storage container and then repeat the steps of situation 2.
[0057] Preferably, the preset threshold liquid residual amount is 1 ml.
[0058] Furthermore, in order to prevent uneven outflow, a flow sensor is provided on the flow outlet of the solenoid valve. The flow sensor is used to detect the liquid flow data of the liquid flowing out of the solenoid valve. When the liquid flow data meets the preset operating conditions, the solenoid valve is powered on. When the liquid flow data does not meet the preset operating conditions, the power-on time of the solenoid valve is adjusted according to the first rule or the second rule. After adopting this setting, when the outflow does not meet the preset operating conditions, the power-on time of the solenoid valve can be appropriately adjusted to flow out a corresponding amount of salty and fresh seasoning liquid volume.
[0059] Preferably, the preset operating condition is the average value of the flow rate monitored during actual operation, and those skilled in the art can set it according to actual conditions.
[0060] The first rule mentioned above is that when the liquid flow data is less than the preset threshold flow, the power-on time of the solenoid valve is extended. For example, when the liquid flow data is less than 0.001, the power-on time of the solenoid valve can be appropriately extended by 5ms.
[0061] The second rule mentioned above is that when the liquid flow data is greater than a preset threshold flow rate, the power-on time of the solenoid valve is shortened. For example, when the liquid flow data is greater than 0.001, the power-on time of the 5ms solenoid valve can be appropriately shortened.
[0062] From the above, we can know the structure and principle of the kitchen salty and fresh seasoning device and the automatic control method of the kitchen salty and fresh seasoning device of this scheme. The following will provide an automatic control system of the kitchen salty and fresh seasoning device, including:
[0063] An input module 40, used to obtain input data, the input data including salty and fresh seasoning liquid volume data and execution instruction data;
[0064] The calculation module 41 is used to obtain the volume data of the salty and fresh seasoning liquid and calculate the power-on time of the solenoid valve based on the volume data of the salty and fresh seasoning liquid by using a preset mapping table;
[0065] The execution module 42 is used to control the solenoid valve to be powered on and off according to the power-on duration after obtaining the execution instruction data.
[0066] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. An automatic control method for a kitchen salty and fresh seasoning device, the kitchen salty and fresh seasoning device comprising a material storage container and a solenoid valve connected to each other; It is characterized in that The following steps are involved: Acquiring input data, wherein the input data includes salty and fresh seasoning liquid volume data and execution instruction data; After obtaining the volume data of the salty and fresh seasoning liquid, based on the volume data of the salty and fresh seasoning liquid, a preset mapping relationship is used to calculate the power-on time of the solenoid valve; After the execution instruction data is acquired, the solenoid valve is controlled to be powered on and off according to the power-on duration.
2. The automatic control method according to claim 1, characterized in that: The preset mapping relationship is as follows: When the volume data of the salty and fresh seasoning liquid is 1 ml, the power-on time is 348 ms; When the volume of the salty and fresh seasoning liquid is 2 ml, the power-on time is 695 ms; When the volume of the salty and fresh seasoning liquid is 3 ml, the power-on time is 1621 ms; When the volume of the salty and fresh seasoning liquid is 4 ml, the power-on time is 2433 ms; When the volume of the salty and fresh seasoning liquid is 5 ml, the power-on time is 3243 ms; When the volume of the salty and fresh seasoning liquid is 6 ml, the power-on time is 3996 ms; When the volume of the salty and fresh seasoning liquid is 7 ml, the power-on time is 4865 ms; When the volume of the salty and fresh seasoning liquid is 8 ml, the power-on time is 5560 ms; When the volume data of the salty and fresh seasoning liquid is 9 ml, the power-on time is 6225 ms.
3. The automatic control method according to claim 1, characterized in that: After acquiring the execution instruction data, the solenoid valve is energized and deenergized according to the energization duration. In this step, specifically: After acquiring the execution instruction data, outputting a high level to the relay to energize the solenoid valve; The high level is continuously output to the relay until the power-on time has elapsed, and then a low level is output to the relay to cut off the power to the solenoid valve.
4. The automatic control method according to claim 1, characterized in that: The following steps are also included: Using an infrared sensor to detect whether there is any liquid remaining in the material storage container; When the infrared sensor detects that the liquid remaining amount is less than a preset threshold liquid remaining amount, the solenoid valve is controlled to be de-energized.
5. The automatic control method according to claim 1, characterized in that: The following steps are also included: Using a flow sensor to detect the flow data of the liquid flowing out of the solenoid valve, and when the liquid flow data meets a preset operating condition, keeping the solenoid valve energized; When the liquid flow data does not satisfy the preset operating conditions, the power-on time of the solenoid valve is adjusted according to the first rule or the second rule.
6. The automatic control method according to claim 5, characterized in that: The following steps are also included: The first rule is to extend the power-on time of the solenoid valve when the liquid flow data is less than a preset threshold flow rate.
7. The automatic control method according to claim 5, characterized in that: The following steps are also included: The second rule is that when the liquid flow data is greater than a preset threshold flow, the power-on time of the solenoid valve is shortened.
8. The automatic control method according to claim 1, characterized in that: The input data also includes stop instruction data; After acquiring the stop instruction data, the solenoid valve is controlled to be de-energized.
9. The automatic control method according to claim 1, characterized in that: Before obtaining input data, the following steps are also included: initializing the display device, relay, keyboard and sound device.
10. An automatic control system for a kitchen salty and fresh seasoning device, characterized in that: include: An input module, used to obtain input data, wherein the input data includes salty and fresh seasoning liquid volume data and execution instruction data; A calculation module, configured to obtain the volume data of the salty and fresh seasoning liquid and calculate the power-on time of the solenoid valve based on the volume data of the salty and fresh seasoning liquid by using a preset mapping table; The execution module is used to control the power on and power off of the solenoid valve according to the power-on duration after obtaining the execution instruction data.
