Coffee scale control method and device
By obtaining and calculating the output flow rate of coffee liquid extraction in the coffee scale and determining the timing start and stop time, the problem of inaccurate timing caused by mistaken touch or water vapor condensation in the existing coffee scale is solved, and the accuracy and anti-interference ability of coffee extraction time are improved.
Patent Information
- Application Number
- CN202210201670.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-03-03
AI Technical Summary
Existing coffee scales are prone to misjudging weight changes when they are touched by mistake or water vapor condenses, resulting in inaccurate timing of coffee extraction and affecting the quality of coffee production.
By obtaining the coffee liquid extraction weighing value at the same time interval, writing the flow rate calculation array, calculating the output flow rate vN, determining the timing start and stop time of the coffee liquid extraction, and reducing external interference.
It improves the accuracy of coffee extraction time, enhances anti-interference ability, and ensures the stability of coffee production quality.
Smart Images

Figure CN114611049B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household weighing instruments, and in particular to a coffee scale control method and device. Background Art
[0002] In the coffee industry, there is a type of coffee called espresso, which is made by a coffee machine. The barista needs to understand the time and weight used by the coffee machine to make the coffee to ensure the taste of the coffee.
[0003] To achieve timing and weighing at the same time, baristas need a coffee scale. Currently, only a few coffee scales on the market have an espresso mode, but their timing method is: once the coffee scale senses a weight change on the scale plate, it starts timing. This calculation method has disadvantages:
[0004] 1. If the coffee machine shakes or the barista accidentally touches the coffee scale and the weight changes, the timer will start, which will ruin the user experience.
[0005] 2. The coffee machine is cleaned at high temperature before making espresso, and the water vapor condenses into water droplets. If the water droplets fall before the coffee liquid is extracted, it will cause the timer to start, which will also destroy the user experience.
[0006] 3. When the coffee machine stops dispensing liquid, the traditional coffee scale cannot stop timing automatically and can only be stopped by manually pressing a button. Summary of the invention
[0007] In view of the defects in the prior art, the present invention provides a coffee scale control method and device to solve the problem that the coffee extraction timing is inaccurate due to the weight change of the coffee scale caused by accidental touch, thereby affecting the quality of the coffee product.
[0008] In a first aspect, the present invention provides a coffee scale control method, comprising:
[0009] Based on the same time interval t0, obtain the coffee liquid extraction weight value;
[0010] Write the weight values of the coffee liquid extraction into the flow rate calculation array, and obtain the output flow rate v of the coffee liquid extraction based on the data in the flow rate calculation array. N ;
[0011] Based on the output flow rate v of the coffee liquid extraction N , determine the start and stop time of coffee liquid extraction, and output the coffee liquid extraction timing value.
[0012] It can be seen from the above technical solution that a certain amount of coffee liquid extraction weighing value is used to obtain the output flow rate, thereby determining the timing start and stop time of coffee liquid extraction, eliminating some unnecessary external interference, and making the extraction time obtained by the coffee scale more anti-interference.
[0013] Optionally, the plurality of coffee liquid extraction weighing values are written into a flow rate calculation array, and the output flow rate v of the coffee liquid extraction is obtained based on the data in the flow rate calculation array. N ,include:
[0014] Get the coffee liquid extraction weight value every time interval t0 and write it into the flow rate calculation array;
[0015] When the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation array meets the preset condition, the output flow rate v of the coffee liquid extraction is calculated based on the data in the flow rate calculation array. N .
[0016] Optionally, the output flow rate v of coffee liquid extraction is obtained based on the data in the flow rate calculation array. N , also includes:
[0017] Recording the number of times the coffee liquid extraction weight value is written into the flow rate calculation array;
[0018] When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate v of the coffee liquid extraction. N .
[0019] Optionally, the preset weighing value acquisition quantity S=unit time t / time interval t0, wherein the time interval t0 is determined based on a timer of a main control chip of the coffee scale.
[0020] Optionally, when the number of times data is written into the flow rate calculation array is greater than the preset number of weighing values obtained, the method further includes:
[0021] When the next coffee liquid extraction weighing value is obtained at each time interval t0, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity.
[0022] Optionally, the output flow rate v of the coffee liquid extraction is N=mn, wherein m is the last data value written into the flow rate calculation array, and n is the data value that overflows before the last data value written into the flow rate calculation array is written.
[0023] Optionally, the output flow rate v based on the coffee liquid extraction N , determine the start time of coffee liquid extraction, including:
[0024] When the output flow rate v of the coffee liquid extraction is obtained continuously N When both are greater than the first preset threshold, the control starts timing.
[0025] Optionally, the output flow rate v based on the coffee liquid extraction N , determine the timing stop time of coffee liquid extraction, including:
[0026] When the output flow rate v of the coffee liquid extraction is obtained continuously, N When both are less than the second preset threshold, the control stops timing.
[0027] Optionally, the method further comprises:
[0028] When the output flow rate v of the coffee liquid extraction N When the output flow rate v of the coffee liquid extraction is greater than the preset flow rate threshold, N If the coffee extraction flow rate exceeds the upper limit, the preset upper limit will be output.
[0029] In a second aspect, the present invention provides a coffee scale control device, comprising:
[0030] A value acquisition module, used to obtain the coffee liquid extraction weight value based on the same time interval;
[0031] a calculation module, used for writing a plurality of the coffee liquid extraction weighing values into a flow rate calculation array, and obtaining an output flow rate of the coffee liquid extraction based on the data in the flow rate calculation array;
[0032] The timing module is used to determine the timing start and stop time of the coffee liquid extraction based on the output flow rate of the coffee liquid extraction, and output the coffee liquid extraction timing value.
[0033] Optionally, the calculation module is further configured to:
[0034] Get the coffee liquid extraction weight value every time interval t0 and write it into the flow rate calculation array;
[0035] When the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation array meets the preset condition, the output flow rate v of the coffee liquid extraction is calculated based on the data in the flow rate calculation array. N .
[0036] Optionally, the calculation module is further configured to:
[0037] Recording the number of times the coffee liquid extraction weight value is written into the flow rate calculation array;
[0038] When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate v of the coffee liquid extraction. N .
[0039] Optionally, in the calculation module, the preset weighing value acquisition quantity S=unit time t / time interval t0, wherein the time interval t0 is determined based on a timer of a main control chip of the coffee scale.
[0040] Optionally, when the number of times data is written into the flow rate calculation array is greater than the preset number of weighing values obtained, the timing module is further used to:
[0041] When the next coffee liquid extraction weighing value is obtained at each time interval t0, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity.
[0042] Optionally, in the calculation module, the output flow rate v of the coffee liquid extraction N =mn, wherein m is the last data value written into the flow rate calculation array, and n is the data value that overflows before the last data value written into the flow rate calculation array is written.
[0043] Optionally, the timing module is further used to:
[0044] When the output flow rate v of the coffee liquid extraction is obtained continuously N When both are greater than the first preset threshold, the control starts timing.
[0045] Optionally, the timing module is further used to:
[0046] When the output flow rate v of the coffee liquid extraction is obtained continuously, N When both are less than the second preset threshold, the control stops timing.
[0047] Optionally, the coffee scale control device further includes an upper limit output module, which is specifically used to:
[0048] When the output flow rate v of the coffee liquid extraction NWhen the output flow rate v of the coffee liquid extraction is greater than the preset flow rate threshold, N If the coffee extraction flow rate exceeds the upper limit, the preset upper limit will be output.
[0049] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.
[0050] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of any of the above methods when executed by a processor.
[0051] In a fifth aspect, an embodiment of the present invention provides a coffee scale, including a control terminal and a coffee scale body, wherein the control terminal executes the control method of the first aspect in the above-mentioned embodiment.
[0052] By adopting the above technical solution, the present application has the following beneficial effects:
[0053] 1) By adopting the technical solution of the present application, a certain amount of coffee liquid extraction weighing value is used to obtain the output flow rate, thereby determining the timing start and stop time of coffee liquid extraction, eliminating some unnecessary external interference, and making the extraction time obtained by the coffee scale have better anti-interference.
[0054] 2) With the technical solution of the present application, since the time intervals between the coffee liquid extraction weighing values are the same, the time variation between the coffee liquid extraction weighing values written into the flow rate calculation array is a certain value. Based on the coffee liquid extraction weighing values with the determined time variation, the output flow rate v can be more easily obtained. N , increasing the output flow rate v N The computational efficiency.
[0055] 3) By adopting the technical solution of the present application, the preset weighing value acquisition quantity is associated with the unit time, and the storable data amount of the flow velocity calculation array is associated with the preset weighing value acquisition time, so that the data written into the flow velocity calculation array is easier to obtain. The output flow velocity v can be obtained by directly obtaining the data in the flow velocity calculation array for difference calculation. N , increasing the output flow rate v N The computational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0057] Figure 1 A flow chart of a coffee scale control method provided by an embodiment of the present invention is shown;
[0058] Figure 2 A schematic diagram of a flow rate calculation array provided by an embodiment of the present invention is shown;
[0059] Figure 3 A structural block diagram of a coffee scale control device provided by an embodiment of the present invention is shown;
[0060] Figure 4 A structural block diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0061] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
[0062] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the invention belongs.
[0063] There are many varieties and categories of coffee, and the methods of making each kind of coffee are different, so that we can taste hundreds of different flavors of coffee. However, in the production of coffee, the extraction of coffee has a great influence on the taste of coffee. At present, the extraction of coffee liquid is based on the manual operation of the barista to start and stop the timing, which will cause the human factor to have a great influence on the obtained coffee extraction time. In order to improve the accuracy of obtaining the coffee liquid extraction time, so as to obtain a more matching coffee extraction flow rate, a more accurate coffee extraction timing and flow rate acquisition method is urgently needed.
[0064] To solve the above problems, Figure 1 FIG. 2 is a flow chart showing a coffee scale control method provided by an embodiment of the present invention. Figure 1 As shown, a coffee scale control method according to an embodiment of the present invention includes:
[0065] S101. Based on the same time interval t0, obtain the coffee liquid extraction weight value.
[0066] In this step, based on the coffee liquid extraction weighing values obtained at different time points in the same time interval t0 in step S101, when the output flow rate is obtained according to the obtained coffee liquid extraction weighing values, the control timing starts. In the coffee extraction process of the coffee machine, the high-temperature cleaning of the coffee machine and the process of making milk foam are likely to generate water vapor, which will affect the weighing process of the coffee scale, resulting in errors in the weighing value of the coffee scale. In addition, due to some misoperations of the barista in the process of operating the coffee machine, there will also be some numerical changes in the weighing value of the coffee scale. In the above process, it is generally an instantaneous change, but for the existing coffee scale, as long as the scale plate senses the change in weight, it will start timing, resulting in some disadvantages in the coffee scale's control of timing during the coffee extraction process. Therefore, this embodiment obtains the coffee liquid extraction weighing values at the same time interval, and the coffee liquid extraction weighing values are continuous, and then calculates the output flow rate based on the obtained coffee liquid extraction weighing values, and determines the start and stop time of the coffee liquid extraction timing, thereby eliminating some unnecessary external interference, so that the control method in this embodiment has better anti-interference.
[0067] S102, writing a number of coffee liquid extraction weighing values into the flow rate calculation array, and obtaining the output flow rate v of the coffee liquid extraction based on the data in the flow rate calculation array N .
[0068] Specifically, the coffee liquid extraction weighing value is written into the flow rate calculation array, and the output flow rate v of the coffee liquid extraction is N It is determined based on the coffee liquid extraction weighing value written into the flow rate calculation array. Since the time intervals between several coffee liquid extraction weighing values are the same, the time change between the coffee liquid extraction weighing values written into the flow rate calculation array is a certain value. Based on the coffee liquid extraction weighing value with the determined time change, the output flow rate v can be more easily obtained. N , increasing the output flow rate v N The computational efficiency.
[0069] S103, output flow rate v based on coffee liquid extraction N , determine the start and stop time of coffee liquid extraction, and output the coffee liquid extraction timing value.
[0070] Existing coffee scales generally use baristas to manually control the timing and stop timing to determine the coffee extraction time. The difference from existing coffee scales is that the timing stop time of the coffee liquid extraction in this step is based on the output flow rate v of the coffee liquid extraction. N Due to the extraction characteristics of the coffee machine corresponding to the coffee liquid, after the coffee liquid begins to be extracted, the coffee will flow out of the coffee machine slowly and continuously. The extraction flow rate of the coffee liquid changes linearly. When the coffee machine starts to discharge liquid, the output flow rate should be a stable value. After the discharge stops, the output flow rate vN is 0. Output flow rate v based on coffee liquid extraction process N , thereby determining the extraction timing of the coffee liquid, and obtaining a more accurate coffee extraction time. Under the same coffee machine parameters, the coffee bean quality issues such as the grinding accuracy of the coffee beans can be determined according to the obtained extraction time, or based on the same coffee bean quality, the coffee machine parameter adjustment can be determined, which can provide a basis for improving the quality of coffee products.
[0071] Optionally, step S102 specifically includes:
[0072] Get the coffee liquid extraction weight value every time interval t0 and write it into the flow rate calculation array;
[0073] When the amount of coffee liquid extraction weighing value written into the flow rate calculation array meets the preset conditions, the output flow rate v of coffee liquid extraction is calculated based on the data in the flow rate calculation array. N .
[0074] In specific implementation, for the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation value, if the amount of data meets the preset conditions, the output flow rate v of the coffee liquid extraction is calculated according to the data in the flow rate calculation array. N When the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset conditions, it may be that the amount of data reaches a preset threshold range. At this time, the influence of external false touch or water vapor on the sensor during cleaning before the coffee extraction process can be ignored. If the data written into the flow rate calculation array does not reach a preset threshold range, the amount of coffee liquid extraction weighing value data written into the flow rate calculation array may not be 0, but continuous writing cannot be maintained. At this time, the amount of data written into the flow rate calculation array cannot be confirmed as input during the coffee extraction process. Therefore, the preset conditions are used to confirm the output flow rate v that can be used to calculate the coffee liquid extraction. N The data written into the flow velocity calculation array further overcomes the influence of other interference factors on the flow velocity calculation and improves the stability of the method of this embodiment.
[0075] In a possible implementation, in the coffee scale control method provided in this embodiment, step S102 further includes:
[0076] Record the number of times the coffee liquid extraction weight value is written into the flow rate calculation array;
[0077] When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate v of the coffee liquid extraction. N .
[0078] In this step, a possible implementation method of the preset condition is proposed, specifically recording the number of times the coffee liquid extraction weighing value is written into the flow rate calculation array. When the coffee liquid extraction weighing value written into the flow rate calculation array is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing data written into the flow rate calculation array meets the preset condition. At this time, the number of coffee liquid extraction weighing written into the flow rate calculation array can be used to calculate the output flow rate. In specific implementation, the sensor used to obtain the weighing value in the coffee scale acquires the weighing value at the same time interval t0 under the control of the main control chip timer. When the number of times the flow rate calculation array is written is greater than or equal to the preset weighing value acquisition number, the output flow rate is calculated. The preset condition in this step is only about the number of times the flow rate calculation array is written. As long as the number of times the flow rate calculation array is written is greater than or equal to the preset weighing value acquisition number, it is determined that the preset condition is met. In this way, while ensuring that the data when obtaining the output flow rate is in the coffee liquid extraction process, the data amount is kept stable and does not cause a large amount of data calculation. At the same time, it can be based on the actual structure of the existing coffee scale, while ensuring the performance of the existing coffee scale without bringing additional costs.
[0079] In one possible implementation, when the number of times the coffee liquid extraction weighing value is written is greater than or equal to 0, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate v of the coffee liquid extraction. N .
[0080] In the above possible implementation, if the number of times the coffee liquid extraction weighing value is written is greater than or equal to 0, the flow rate is calculated. At this time, the sensor obtains a weighing value greater than 0 to ensure that an output flow rate v can always be output during the extraction process. N , making the data more stable.
[0081] In a possible implementation, the preset weighing value acquisition quantity S=unit time t / time interval t0, wherein the time interval t0 is determined based on the timer of the main control chip of the coffee scale.
[0082] The preset weighing value acquisition quantity S in this application is used to control the output flow rate v N The preset conditions in the flow rate calculation array are related to the timer of the main control chip. For example, the unit time is 1s and t0 is 100ms. At this time, the preset weighing value acquisition number S is 10. When the number of coffee liquid extraction weighing values written into the flow rate calculation array is greater than or equal to 10, the output flow rate v is calculated. N , S is 10, which is an example of the number of preset weighing values that can be obtained in this application and is not a specific limitation of this application.
[0083] Optionally, when the number of times data is written into the flow rate calculation array is greater than the preset number of weighing values obtained, the method further includes:
[0084] When the next coffee liquid extraction weighing value is obtained at each time interval, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity.
[0085] In the above steps, the data storage capacity of the flow rate calculation array is confirmed, which is equal to the preset weighing value acquisition quantity, wherein the preset weighing value acquisition quantity S = unit time t / time interval t0. As the coffee liquid is slowly extracted, the obtained coffee liquid extraction weighing value is continuously written into the flow rate calculation array. Due to the limitation of the data storage capacity of the flow rate calculation array, in specific implementation, each time the next coffee liquid extraction weighing value is obtained, the earliest written data in the flow rate calculation array will overflow. After the earliest written data overflows, the flow rate calculation array will write the next coffee liquid extraction weighing value obtained. In this way, the flow rate calculation array only stores the data that can be stored and is closest to the current moment under the storage capacity limitation. When the output flow rate is continuously calculated based on the flow rate calculation array, the data calculation amount is kept in a stable range. Whether the data amount is the smallest when the flow rate calculation starts or the data amount is the largest at the end of the timing, the data calculation is a fixed value. In this way, the data amount of the flow rate calculation can be effectively reduced, and the calculation efficiency of the output flow rate is guaranteed.
[0086] In one possible embodiment, the output flow rate v of the coffee liquid extraction is N =mn, where m is the last data value written into the flow rate calculation array, and n is the data value that overflows before the last data value written into the flow rate calculation array is written.
[0087] Since in this embodiment, the data storage capacity of the flow velocity calculation array is equal to the preset number of weighing values obtained, and the preset number of weighing values obtained = unit time t / time interval t0, then among the data written into the flow velocity calculation array, the writing time of the flow velocity calculation array that has just overflowed and the writing time of the data last written into the flow velocity calculation array should differ by one unit time.
[0088] See also Figure 2 , Figure 2 is a schematic diagram of the flow rate calculation array. The data stored in boxes 0 to x-1 represent the data values actually stored in the flow rate calculation array. The amount of data that can be stored in the flow rate calculation array is x. In this embodiment, x should be equal to the preset weighing value acquisition quantity S. k0 is the write data k. x The data of the velocity calculation array is written first. x When k0 overflows, kx Write, at this time, the output flow rate v N That is k x Subtract k0, k0~k x For a unit of time.
[0089] There is still a possible situation, that is, after the coffee extract weighing value starts to be written into the flow rate calculation array, the output flow rate v is obtained. N , there is no data value that will overflow, so the value is directly determined to be 0 to calculate the output flow rate v N .
[0090] Based on this, the output flow rate v of the coffee liquid extraction in this embodiment is N The confirmation can be made directly based on the difference between the last written data and the first written data. Through the above method, the output flow rate can be obtained by directly subtracting the data in the flow rate calculation array, which can effectively improve the calculation efficiency of the output flow rate and reduce the amount of data storage required for calculating the output flow rate.
[0091] In a possible embodiment, the output flow rate v based on the coffee liquid extraction N , determine the start time of coffee liquid extraction, including:
[0092] When the output flow rate v of the coffee liquid extraction is obtained continuously N When both are greater than the first preset threshold, the control starts timing.
[0093] Specifically, when the first data is written into the velocity calculation array, the output velocity v is calculated. N , at this time the output flow rate v N tends to be stable. When the obtained output flow rates are all guaranteed to be greater than a threshold, it can be determined that the output flow rate v N Ensure that coffee extraction is in a stable state and avoid external interference.
[0094] In a possible embodiment, the output flow rate v based on the coffee liquid extraction N , determine the timing stop time of coffee liquid extraction, including:
[0095] When the output flow rate v of the coffee liquid extraction is obtained continuously, N When both are less than the second preset threshold, the control stops timing.
[0096] As with the start of the timing, the coffee extraction is approaching the end, that is, the output flow rate v N Gradually tends to 0, when the output flow rate v N=0 maintains a certain state, it can be determined that the coffee extraction is finished, and the control stops timing at this time. The second preset threshold can also be set to a flow rate value when the coffee liquid extraction state is not good, which is manually confirmed. At this time, the extraction timing time only obtains the time when the coffee extraction liquid maintains a good state.
[0097] It should be noted that the values of a and b are not correlated, but a can be equal to the value of b. In a possible example, a and b are both 2, the second preset threshold is generally 0, and the first preset threshold needs to be set according to the performance of the coffee machine for extracting coffee or the situation of hand brewing by the barista. The above specific values are not limited to the limiting parameters.
[0098] By setting the above-mentioned specific conditions for starting and stopping timing, and setting the threshold value according to the specific situation of the coffee machine, the automation of the timing start and timing stop process is ensured, thereby improving efficiency.
[0099] Optionally, the coffee scale control method provided in this embodiment further includes:
[0100] When the output flow rate v of coffee liquid extraction N When the flow rate is greater than the preset threshold, the output flow rate v of the coffee liquid extraction N If the coffee extraction flow rate exceeds the upper limit, the preset upper limit will be output.
[0101] Whether it is espresso extracted by a coffee machine or hand-brewed coffee, the output flow rate of the coffee extraction process is maintained within a certain range. In order to reduce the misoperation of the coffee scale during preparation such as cleaning, a flow rate threshold is set to limit it. N When it is greater than the preset flow rate threshold, the output flow rate v of the coffee liquid extraction N If the coffee extraction flow rate exceeds the upper limit, the coffee scale is controlled to output the preset upper limit, which is used to report an error and prompt the user to confirm. N The calculation is limited to the process of coffee extraction, eliminating some influences such as water flow and improving the accuracy of the data.
[0102] In one embodiment, see Figure 3 , a coffee scale control device 20 is provided, comprising:
[0103] A value acquisition module 201 is used to obtain a coffee liquid extraction weight value based on the same time interval;
[0104] A calculation module 202, used for writing a number of the coffee liquid extraction weighing values into a flow rate calculation array, and obtaining an output flow rate of the coffee liquid extraction based on the data in the flow rate calculation array;
[0105] The timing module 203 is used to determine the timing start and stop time of the coffee liquid extraction based on the output flow rate of the coffee liquid extraction, and output the coffee liquid extraction timing value.
[0106] Optionally, the calculation module is further configured to:
[0107] Get the coffee liquid extraction weight value every time interval t0 and write it into the flow rate calculation array;
[0108] When the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation array meets the preset condition, the output flow rate v of the coffee liquid extraction is calculated based on the data in the flow rate calculation array. N .
[0109] Optionally, the calculation module is further configured to:
[0110] Recording the number of times the coffee liquid extraction weight value is written into the flow rate calculation array;
[0111] When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate v of the coffee liquid extraction. N .
[0112] Optionally, in the calculation module, the preset weighing value acquisition quantity S=unit time t / time interval t0, wherein the time interval t0 is determined based on a timer of a main control chip of the coffee scale.
[0113] Optionally, when the number of times data is written into the flow rate calculation array is greater than the preset number of weighing values obtained, the timing module is further used to:
[0114] When the next coffee liquid extraction weighing value is obtained at each time interval t0, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity.
[0115] Optionally, in the calculation module, the output flow rate v of the coffee liquid extraction N =mn, wherein m is the last data value written into the flow rate calculation array, and n is the data value that overflows before the last data value written into the flow rate calculation array is written.
[0116] Optionally, the timing module is further used to:
[0117] When the output flow rate v of the coffee liquid extraction is obtained continuouslyN When both are greater than the first preset threshold, the control starts timing.
[0118] Optionally, the timing module is further used to:
[0119] When the output flow rate v of the coffee liquid extraction is obtained continuously, N When both are less than the second preset threshold, the control stops timing.
[0120] Optionally, the coffee scale control device further includes an upper limit output module, which is specifically used to:
[0121] When the output flow rate v of the coffee liquid extraction N When the output flow rate v of the coffee liquid extraction is greater than the preset flow rate threshold, N If the coffee extraction flow rate exceeds the upper limit, the preset upper limit will be output.
[0122] The coffee scale control device 20 provided in the embodiment of the present application adopts the same inventive concept as the above-mentioned coffee scale control method and can achieve the same beneficial effects, which will not be described in detail here.
[0123] Based on the same inventive concept as the above coffee scale control method, the present application embodiment also provides an electronic device 30, such as Figure 4 As shown, the electronic device 30 may include a processor 301 and a memory 402 .
[0124] The processor 301 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and may implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0125] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The memory may include at least one type of storage medium, and the memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory 302 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0126] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; the above computer storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to: mobile storage devices, random access memory (RAM, Random Access Memory), magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)) and other media that can store program codes.
[0127] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a mobile storage device, a random access memory (RAM, Random Access Memory), a magnetic storage (such as a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.) and other various media that can store program codes.
[0128] In addition, in combination with the above method of this embodiment, the embodiment of the present application also provides a coffee scale, including a control terminal, and the control terminal executes the coffee scale control method provided in the above embodiment.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A coffee scale control method, characterized in that: include: Based on the same time interval , obtain the coffee liquid extraction weight value; Write the weight values of the coffee liquid extraction into the flow rate calculation array, and obtain the output flow rate of the coffee liquid extraction based on the data in the flow rate calculation array ; Based on the output flow rate of the coffee liquid extraction , determine the timing start and stop time of coffee liquid extraction, and output the coffee liquid extraction timing value; The method further comprises writing the plurality of coffee liquid extraction weighing values into a flow rate calculation array, and obtaining the output flow rate of the coffee liquid extraction based on the data in the flow rate calculation array. ,include: Every time interval Get the weight of a coffee liquid extraction and write it into the flow rate calculation array; When the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation array meets the preset condition, the output flow rate of the coffee liquid extraction is calculated based on the data in the flow rate calculation array. ; The output flow rate of coffee liquid extraction is obtained based on the data in the flow rate calculation array , also includes: Recording the number of times the coffee liquid extraction weight value is written into the flow rate calculation array; When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate of the coffee liquid extraction. ; The preset weighing value acquisition quantity S=unit time t / time interval , wherein the time interval It is determined based on the timer of the main control chip of the coffee scale; When the number of times data is written into the flow rate calculation array is greater than the preset number of weighing values obtained, the method further includes: When every time interval After the next coffee liquid extraction weighing value is obtained, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity; The output flow rate of the coffee liquid extraction =mn, wherein m is the last data value written in the flow rate calculation array, and n is the data value that overflows before the last data value written in the flow rate calculation array is written.
2. The control method according to claim 1, characterized in that: The output flow rate based on the coffee liquid extraction , determine the start time of coffee liquid extraction, including: When the output flow rate of the coffee liquid extraction is obtained continuously, When both are greater than the first preset threshold, the control starts timing.
3. The control method according to claim 1, characterized in that: The output flow rate based on the coffee liquid extraction , determine the timing stop time of coffee liquid extraction, including: When the output flow rates of b coffee liquid extractions are obtained continuously When both are less than the second preset threshold, the control stops timing.
4. The control method according to claim 1, characterized in that: The method further comprises: When the output flow rate of the coffee liquid extraction When the flow rate is greater than the preset flow rate threshold, the output flow rate of the coffee liquid extraction If the coffee extraction flow rate exceeds the upper limit, the preset upper limit will be output.
5. A coffee scale control device, characterized in that: include: The value module is used to obtain the value based on the same time interval , obtain the coffee liquid extraction weight value; A calculation module is used to write a number of the coffee liquid extraction weighing values into the flow rate calculation array, and obtain the output flow rate of the coffee liquid extraction based on the data in the flow rate calculation array. ; A timing module for extracting coffee based on the output flow rate of the coffee liquid , determine the timing start and stop time of coffee liquid extraction, and output the coffee liquid extraction timing value; The computing module is further specifically used for: Every time interval Get the weight of a coffee liquid extraction and write it into the flow rate calculation array; When the amount of data of the coffee liquid extraction weighing value written into the flow rate calculation array meets the preset condition, the output flow rate of the coffee liquid extraction is calculated based on the data in the flow rate calculation array. ; The computing module is further specifically used for: Recording the number of times the coffee liquid extraction weight value is written into the flow rate calculation array; When the number of times the coffee liquid extraction weighing value is written is greater than or equal to the preset weighing value acquisition number, it is determined that the amount of coffee liquid extraction weighing value data written into the flow rate calculation array meets the preset condition, and the data in the flow rate calculation array is used to calculate the output flow rate of the coffee liquid extraction. ; In the calculation module, the preset weighing value acquisition quantity S=unit time t / time interval , wherein the time interval It is determined based on the timer of the main control chip of the coffee scale; When the number of times data is written into the flow rate calculation array is greater than the number of preset weighing value acquisitions, the timing module is further used to: When every time interval After the next coffee liquid extraction weighing value is obtained, the data first written into the flow rate calculation array overflows, and the next coffee liquid extraction weighing value obtained is written into the flow rate calculation array; wherein the data storage capacity in the flow rate calculation array is equal to the preset weighing value acquisition quantity; In the calculation module, the output flow rate of the coffee liquid extraction =mn, wherein m is the last data value written in the flow rate calculation array, and n is the data value that overflows before the last data value written in the flow rate calculation array is written.
Citation Information
Patent Citations
Drink brewing method adopting intuitive dynamic display interface
CN106551626A