Control method, control device and electronic equipment
Through the pre-determined pressure value and duty cycle mapping table, the operation of the coffee machine motor is automatically controlled, solving the problems of high labor costs and low accuracy, and achieving precise adjustment of the coffee powder pressing force and uniform extraction.
Patent Information
- Application Number
- CN202310137543.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2043-02-20
AI Technical Summary
In the prior art, determining the required duty cycle of the motor requires high labor costs and low accuracy, resulting in uneven pressing force on the coffee powder and affecting the extraction effect of the coffee powder.
By pre-determining the mapping relationship table between pressure value and duty cycle, the target duty cycle corresponding to the current pressure value is automatically determined to control the operation of the motor, reduce human intervention, and improve the accuracy of the duty cycle.
High-precision duty cycle control without human intervention is achieved, ensuring uniform spacing between coffee powder particles and avoiding uneven extraction and waste of coffee powder.
Smart Images

Figure CN116439574B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of coffee machine control, and in particular to a control method, a control device, and an electronic device. Background Art
[0002] Currently, the process of making espresso requires the use of tools such as a powder distributor and a tamping hammer to compact the coffee grounds into a uniform cake within the espresso machine's hopper. The tamping force must be maintained at a certain level to ensure uniform spacing between the coffee powder particles. Otherwise, hot water will flow through the cake during brewing, creating a channeling effect that leads to uneven extraction and waste. Therefore, constant tamping force is a crucial factor in making espresso.
[0003] In the current adjustable compacting force scheme, a motor drives the compacting piston up and down, a pressure sensor senses and feeds back the compacting force, and a processor determines and generates the control logic, theoretically achieving adjustable compacting force. However, in actual operation, the motor moves too quickly, preventing the control program from reacting in time, and the actual compacting force often exceeds the set pressure value. By changing the duty cycle of the control signal and the average voltage across the motor, the motor's speed can be regulated, further enabling precise adjustability of the coffee powder compacting force. However, since the duty cycle and motor speed are not directly proportional, and the correspondence between the compacting force and the duty cycle cannot be directly determined, manual intervention is required to determine the required duty cycle for the motor, resulting in high labor costs. In addition, the motor parameters of different motors and the same motor used for a certain period of time vary, resulting in a low accuracy of the duty cycle determined manually. Summary of the Invention
[0004] In view of this, the purpose of the present application is to provide a control method, a control device and an electronic device that can solve the problem of high labor cost and low accuracy when determining the required duty cycle of the motor in the prior art.
[0005] In a first aspect, the present application provides a control method, which includes:
[0006] Get the current pressure value;
[0007] Determining a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before shipment;
[0008] The motor is controlled to operate according to the target duty cycle.
[0009] Preferably, the control method further comprises the step of determining the correspondence table, comprising:
[0010] determining a first position of the motor;
[0011] When the first position satisfies a preset condition, obtaining a preset pressure value;
[0012] Determining a preset duty cycle corresponding to the preset pressure value;
[0013] The correspondence table is generated based on the preset pressure value and the preset duty cycle.
[0014] Preferably, the control method further includes the step of determining the correspondence table, and further includes:
[0015] determining a first position of the motor;
[0016] When the first position does not satisfy a preset condition, controlling the motor to move to a second position, wherein the second position satisfies the preset condition;
[0017] Get the preset pressure value;
[0018] Determining a preset duty cycle corresponding to the preset pressure value;
[0019] The correspondence table is generated based on the preset pressure value and the preset duty cycle.
[0020] Preferably, determining the preset duty cycle corresponding to the preset pressure value includes:
[0021] Collect actual pressure value;
[0022] Comparing the actual pressure value with the preset pressure value to obtain a comparison result;
[0023] The initial duty cycle is adjusted based on the comparison result to determine the preset duty cycle.
[0024] Preferably, adjusting the initial duty cycle based on the comparison result to determine the preset duty cycle includes:
[0025] If the comparison result shows that the actual pressure value is greater than the first pressure value, adjusting the initial duty cycle according to a first adjustment rule to obtain an adjusted duty cycle, wherein the first pressure value is a maximum pressure value within the range to which the preset pressure value belongs;
[0026] controlling the motor to operate according to the adjusted duty cycle;
[0027] Collect the actual pressure value again;
[0028] In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0029] Preferably, adjusting the initial duty cycle based on the comparison result to determine the preset duty cycle includes:
[0030] If the comparison result shows that the actual pressure value is less than the second pressure value, adjusting the initial duty cycle according to a second adjustment rule to obtain an adjusted duty cycle, wherein the second pressure value is a minimum pressure value within the range to which the preset pressure value belongs;
[0031] controlling the motor to operate according to the adjusted duty cycle;
[0032] Collect the actual pressure value again;
[0033] In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0034] Preferably, the control method further includes:
[0035] Based on the preset interval, determining a next preset pressure value;
[0036] The preset duty cycle corresponding to the next preset pressure value is determined until the next preset pressure value is equal to the set pressure value.
[0037] Preferably, the control method further includes:
[0038] The correspondence table is updated based on the current pressure value and the target duty cycle.
[0039] On the other hand, the present application also provides a control device, comprising:
[0040] An acquisition module configured to obtain the current pressure value;
[0041] a first determining module configured to determine a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before leaving the factory;
[0042] A control module is configured to control the operation of the motor according to the target duty cycle.
[0043] On the other hand, the present application also provides an electronic device comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via a bus, and when the machine-readable instructions are executed by the processor, the steps of any one of the control methods described above are performed.
[0044] The embodiment of the present application determines the target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table to control the motor to operate according to the target duty cycle. No human intervention is required, which reduces labor costs. At the same time, it also improves the accuracy of the target duty cycle, ensures that the gaps between coffee powder particles are uniform, and avoids uneven extraction and waste of coffee powder. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in this application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A flow chart of a control method provided by the present application is shown;
[0047] Figure 2 It shows a schematic structural diagram of a powder pressing device provided by the present application;
[0048] Figure 3 A schematic diagram of the assembly of a housing, a buckle, and a pressure sensor provided by the present application is shown;
[0049] Figure 4 An exploded schematic diagram of a housing, a buckle, and a pressure sensor provided by the present application is shown;
[0050] Figure 5 A flowchart of determining a corresponding table in a control method provided by the present application is shown;
[0051] Figure 6 A flowchart of determining a corresponding table in another control method provided by the present application is shown;
[0052] Figure 7 A flow chart showing a method for determining a preset duty cycle corresponding to a preset pressure value in a control method provided by the present application is shown;
[0053] Figure 8 A schematic structural diagram of a control device provided by the present application is shown;
[0054] Figure 9 A schematic structural diagram of an electronic device provided in this application is shown.
[0055] Figure Number:
[0056] 1-housing; 2-pressing plate; 3-bareplate; 4-powder receiving opening; 5-screw; 6-pressure sensor. DETAILED DESCRIPTION
[0057] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0058] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0059] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0060] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0061] It should also be understood that although the present application has been described with reference to certain specific examples, those skilled in the art will be able to implement many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.
[0062] The above and other aspects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
[0063] Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments described are merely examples of the present application and may be implemented in a variety of ways. Familiar and / or repetitive functions and structures are not described in detail to avoid obscuring the present application with unnecessary or redundant details. Therefore, the specific structural and functional details described herein are not intended to be limiting, but rather serve merely as a basis and representative basis for the claims to teach those skilled in the art to variously utilize the present application with substantially any suitable detailed structure.
[0064] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may all refer to one or more of the same or different embodiments according to the present application.
[0065] First, in order to facilitate understanding of the present application, a control method provided by the present application is first introduced in detail.
[0066] like Figure 1 As shown, the control method provided by the embodiment of the present application is as follows Figure 1The method steps shown can solve the problem of high labor cost and low accuracy in the prior art when determining the required duty cycle of the motor. Specific steps include S101-S103.
[0067] S101, obtaining the current pressure value.
[0068] The control method of the embodiment of the present application is applied to a coffee machine, and more specifically to a powder pressing device of the coffee machine. Figure 2 The powder pressing device shown is used as an example for explanation. The powder pressing device includes a housing 1, a pressing plate 2, a bayonet 3, a powder receiving opening 4, a screw 5 and a pressure sensor 6, etc., wherein, Figure 2 The pressure sensor is not shown. Figure 3 shows the assembly diagram of the housing, buckle and pressure sensor, Figure 4 Shows an exploded schematic diagram of the housing, buckle and pressure sensor.
[0069] During the process of the coffee machine's processor receiving and responding to a tamping command, the only connection between the closure 3 and the housing 1, aside from the fasteners, is a pressure sensor 6. When the housing 1 is relatively fixed, the closure 3 is suspended. When a vertical downward force is applied to the closure 3, the force is fed back to the pressure sensor 6. This embodiment of the present application uses two pressure sensors 6 as an example, but is not intended to be limiting.
[0070] When the pressing plate 2 moves toward the latch 3, it transmits the force to the coffee powder while contacting the coffee powder, and then transmits the force to the latch 3 and the pressure sensor 6, so that the pressure sensor 6 collects the current pressure value.
[0071] The pressure sensor 6 transmits the collected pressure value to the processor so that the processor obtains the current pressure value.
[0072] S102 , determining a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before leaving the factory.
[0073] After obtaining the current pressure value, the target duty cycle corresponding to the current pressure value is searched from the corresponding table, wherein the corresponding table includes a mapping relationship between pressure values and duty cycles, and each pressure value corresponds to only one duty cycle.
[0074] In order to facilitate users to directly use the coffee machine, the correspondence table is pre-determined before the coffee machine leaves the factory. The user does not need to control the coffee machine to perform the operation of determining the correspondence table after receiving the coffee machine, which improves the user experience to a certain extent.
[0075] S103: Control the motor operation according to the target duty cycle.
[0076] After determining the target duty cycle corresponding to the current pressure value, the motor is controlled to operate according to the target duty cycle without human intervention, reducing labor costs. At the same time, it also improves the accuracy of the target duty cycle, ensures that the gaps between coffee powder particles are uniform, and avoids uneven extraction and waste of coffee powder.
[0077] Figure 5 A flow chart for determining a correspondence table is shown, wherein the specific steps include S501-S504.
[0078] S501: Determine a first position of the motor.
[0079] S502: When the first position meets a preset condition, obtain a preset pressure value.
[0080] S503: Determine a preset duty cycle corresponding to the preset pressure value.
[0081] S504: Generate a corresponding table based on the preset pressure value and the preset duty cycle.
[0082] The first position of the motor, that is, the current position of the motor, is determined by using the positioning device. Optionally, the current position of the pressing plate 2 is determined as the current position of the motor.
[0083] After determining the first position of the motor, it is determined whether the first position satisfies a preset condition, wherein the preset condition is that the first position is the highest position that the motor or the pressure plate 2 can reach. Furthermore, if the first position satisfies the preset condition, a preset pressure value is obtained. The preset pressure value is set by the manufacturer or an engineer, and there can be one or more preset pressure values.
[0084] Afterwards, for each preset pressure value, its corresponding preset duty cycle is determined, and a mapping relationship between the preset pressure value and the preset duty cycle is established, and a corresponding table is generated using the mapping relationship between the preset pressure value and the preset duty cycle.
[0085] Figure 6 Another flow chart for determining a correspondence table is shown, wherein the specific steps include S601-S605.
[0086] S601: Determine a first position of the motor.
[0087] S602 : When the first position does not satisfy a preset condition, control the motor to move to a second position, wherein the second position satisfies the preset condition.
[0088] S603: Obtain a preset pressure value.
[0089] S604: Determine a preset duty cycle corresponding to the preset pressure value.
[0090] S605 , generating a correspondence table based on the preset pressure value and the preset duty cycle.
[0091] Similarly, the first position of the motor is determined by the positioning device, that is, the current position of the pressing plate 2 is determined as the current position of the motor. After determining the first position of the motor, it is determined whether the first position meets a preset condition, which is that the first position is the highest position that the motor or the pressing plate 2 can reach.
[0092] Furthermore, when the first position does not meet the preset condition, the motor is controlled to move to the second position, wherein the second position meets the preset condition, that is, the second position is the highest position that the motor or the pressure plate 2 can reach.
[0093] After the motor moves to the second position, i.e., the position of the motor satisfies the preset conditions, a preset pressure value is obtained. The preset pressure value is set by the manufacturer or an engineer, and there may be one or more preset pressure values. Then, for each preset pressure value, a corresponding preset duty cycle is determined, and a mapping relationship between the preset pressure values and the preset duty cycles is established. A mapping table is generated using the mapping relationship between the preset pressure values and the preset duty cycles.
[0094] As one example, Figure 7 A flow chart of a method for determining a preset duty cycle corresponding to a preset pressure value is shown, wherein the specific steps include S701-S703.
[0095] S701, collecting actual pressure value.
[0096] S702: Compare the actual pressure value with the preset pressure value to obtain a comparison result.
[0097] S703 : Adjust the initial duty cycle based on the comparison result to determine a preset duty cycle.
[0098] In a specific implementation, the pressure sensor 6 collects an actual pressure value, i.e., the pressure value it experiences. The actual pressure value is then compared with a preset pressure value to obtain a comparison result. Based on this comparison result, the initial duty cycle can be adjusted to determine the preset duty cycle. The comparison result includes the actual pressure value being greater than the first pressure value, the actual pressure value being less than the second pressure value, and the actual pressure value being less than the first pressure value and greater than the second pressure value.
[0099] If the comparison result shows that the actual pressure value is greater than the first pressure value, the initial duty cycle is adjusted according to a first adjustment rule to obtain an adjusted duty cycle, wherein the first pressure value is the maximum pressure value within the preset pressure value range, and the first adjustment rule is to increase the initial duty cycle according to a first interval. After obtaining the adjusted duty cycle, the motor is controlled according to the adjusted duty cycle, and the actual pressure value is collected again, repeating steps S701-S703 until the collected actual pressure value falls within the preset pressure value range. At this point, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0100] If the comparison result shows that the actual pressure value is less than the second pressure value, the initial duty cycle is adjusted according to the second adjustment rule to obtain an adjusted duty cycle, wherein the second pressure value is the minimum pressure value within the range of the preset pressure values, and the second adjustment rule is to reduce the initial duty cycle according to a second interval, and the first interval and the second interval can be the same or different. Similarly, after obtaining the adjusted duty cycle, the motor is controlled according to the adjusted duty cycle, and the actual pressure value is collected again. The above steps S701-S703 are repeated until the collected actual pressure value falls within the range of the preset pressure values, and the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0101] When the comparison result shows that the actual pressure value is less than the first pressure value and greater than the second pressure value, the initial duty cycle may be directly determined as the preset duty cycle.
[0102] For example, the preset pressure value is set to F=a, the initial duty cycle is D=m%, the actual pressure value collected is F', the first pressure value is F+0.2, and the second pressure value is F-0.2. If the comparison result is F'>F+0.2, the initial duty cycle is adjusted, that is, D=(m+n)%, and the motor operation is controlled according to D=(m+n)% until F'∈[F-0.2, F+0.2]. If the comparison result is F'<F-0.2, the initial duty cycle is adjusted, that is, D=(mn / 2)%, and the motor operation is controlled according to D=(mn / 2)% until F'∈[F-0.2, F+0.2]. If the comparison result is F'∈[F-0.2, F+0.2], the initial duty cycle D=m% is directly determined as the preset duty cycle corresponding to the preset pressure value F=a.
[0103] After determining the preset duty cycle corresponding to the preset pressure value, the next preset pressure value is determined based on the preset interval. For example, if the preset pressure value is 1 kg and the preset interval is 1, the next preset pressure value is 1 + 1 = 2 kg. Furthermore, the preset duty cycle corresponding to the next preset pressure value is determined in the same manner until the next preset pressure value equals the set pressure value. The predetermined pressure value is the maximum pressure value that the powder compacting device can reach.
[0104] Taking into account that the parameters of the coffee machine's motor will change during use, in order to ensure the accuracy of the target duty cycle, the correspondence table is updated based on the current pressure value and the target duty cycle to improve the accuracy of the correspondence table, that is, to improve the accuracy of the determined target duty cycle, ensuring that the gaps between the coffee powder particles are uniform and consistent, thus avoiding uneven extraction and waste of coffee powder.
[0105] Based on the same inventive concept, the second aspect of this application also provides a control device corresponding to a control method. Since the principle of solving the problem by the control device in this application is similar to the above-mentioned control method of this application, the implementation of the control device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0106] Figure 8 A schematic diagram of a control device provided in an embodiment of the present application is shown, wherein the control device includes:
[0107] An acquisition module 801 is configured to acquire a current pressure value;
[0108] A first determining module 802 is configured to determine a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before delivery;
[0109] The control module 803 is configured to control the operation of the motor according to the target duty cycle.
[0110] In yet another embodiment, the control device further includes a second determining module 804 configured to:
[0111] determining a first position of the motor;
[0112] When the first position satisfies a preset condition, obtaining a preset pressure value;
[0113] Determining a preset duty cycle corresponding to the preset pressure value;
[0114] The correspondence table is generated based on the preset pressure value and the preset duty cycle.
[0115] In yet another embodiment, the second determining module 804 is further configured to:
[0116] determining a first position of the motor;
[0117] When the first position does not satisfy a preset condition, controlling the motor to move to a second position, wherein the second position satisfies the preset condition;
[0118] Get the preset pressure value;
[0119] Determining a preset duty cycle corresponding to the preset pressure value;
[0120] The correspondence table is generated based on the preset pressure value and the preset duty cycle.
[0121] In yet another embodiment, the second determining module 804 is further configured to:
[0122] Collect actual pressure value;
[0123] Comparing the actual pressure value with the preset pressure value to obtain a comparison result;
[0124] The initial duty cycle is adjusted based on the comparison result to determine the preset duty cycle.
[0125] In yet another embodiment, the second determining module 804 is further configured to:
[0126] If the comparison result shows that the actual pressure value is greater than the first pressure value, adjusting the initial duty cycle according to a first adjustment rule to obtain an adjusted duty cycle, wherein the first pressure value is a maximum pressure value within the range to which the preset pressure value belongs;
[0127] controlling the motor to operate according to the adjusted duty cycle;
[0128] Collect the actual pressure value again;
[0129] In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0130] In yet another embodiment, the second determining module 804 is further configured to:
[0131] If the comparison result shows that the actual pressure value is less than the second pressure value, adjusting the initial duty cycle according to a second adjustment rule to obtain an adjusted duty cycle, wherein the second pressure value is a minimum pressure value within the range to which the preset pressure value belongs;
[0132] controlling the motor to operate according to the adjusted duty cycle;
[0133] Collect the actual pressure value again;
[0134] In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
[0135] In yet another embodiment, the second determining module 804 is further configured to:
[0136] Based on the preset interval, determining a next preset pressure value;
[0137] The preset duty cycle corresponding to the next preset pressure value is determined until the next preset pressure value is equal to the set pressure value.
[0138] In yet another embodiment, the control device further includes an updating module 805 configured to:
[0139] The correspondence table is updated based on the current pressure value and the target duty cycle.
[0140] The embodiment of the present application determines the target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, so as to control the motor to operate according to the target duty cycle, without the need for human intervention, thus reducing labor costs. At the same time, it also improves the accuracy of the target duty cycle, ensures that the gaps between coffee powder particles are uniform, and avoids uneven extraction and waste of coffee powder.
[0141] An embodiment of the present application provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented, including the following steps S11 to S13:
[0142] S11, obtain the current pressure value;
[0143] S12, determining a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before leaving the factory;
[0144] S13, controlling the motor to operate according to the target duty cycle.
[0145] The embodiment of the present application also provides an electronic device. The structural diagram of the electronic device can be as follows: Figure 9 As shown, the electronic device comprises at least a memory 901 and a processor 902. The memory 901 stores a computer program. The processor 902 implements the method provided by any embodiment of the present application when executing the computer program on the memory 901. For example, the steps of the electronic device computer program are as follows S21 to S23:
[0146] S21, obtain the current pressure value;
[0147] S22, determining a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and the correspondence table is determined before shipment;
[0148] S23, controlling the motor to operate according to the target duty cycle.
[0149] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment will not be repeated here. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented with a general-purpose computing device, which can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0150] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., solutions that intersect various embodiments), adaptations, or changes. The elements in the claims are to be interpreted broadly based on the language employed in the claims and are not limited to the examples described in this specification or during the prosecution of this application, which examples are to be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, with the true scope and spirit being indicated by the following claims and the full scope of their equivalents.
[0151] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of their solutions) can be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that is not required to be protected is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of this application should be determined with reference to the appended claims and the full scope of equivalents to which these claims are entitled.
[0152] The above describes in detail several embodiments of the present application, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection claimed by the present application.
Claims
1. A control method, characterized in that: It is used to control the output pressure of the motor by controlling the duty cycle of the motor. The control method includes: Get the current pressure value; Determining a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, and each pressure value corresponds to only one duty cycle. The correspondence table is determined before shipment; controlling the motor to operate according to the target duty cycle; The step of determining the correspondence table includes: determining the position of the motor; When the position of the motor meets a preset condition, obtaining a preset pressure value; determining a preset duty cycle corresponding to the preset pressure value to generate the correspondence table; Determining the preset duty cycle corresponding to the preset pressure value includes: Collect actual pressure value; Comparing the actual pressure value with the preset pressure value to obtain a comparison result; The initial duty cycle is adjusted based on the comparison result to determine the preset duty cycle.
2. The control method according to claim 1, characterized in that: The method further includes the step of determining the correspondence table, including: determining a first position of the motor; When the first position satisfies a preset condition, obtaining a preset pressure value; Determining a preset duty cycle corresponding to the preset pressure value; The correspondence table is generated based on the preset pressure value and the preset duty cycle.
3. The control method according to claim 1, wherein: The step of determining the correspondence table also includes: determining a first position of the motor; When the first position does not satisfy a preset condition, controlling the motor to move to a second position, wherein the second position satisfies the preset condition; Get the preset pressure value; Determining a preset duty cycle corresponding to the preset pressure value; The correspondence table is generated based on the preset pressure value and the preset duty cycle.
4. The control method according to claim 1, wherein: The adjusting the initial duty cycle based on the comparison result to determine the preset duty cycle includes: If the comparison result shows that the actual pressure value is greater than the first pressure value, adjusting the initial duty cycle according to a first adjustment rule to obtain an adjusted duty cycle, wherein the first pressure value is a maximum pressure value within the range to which the preset pressure value belongs; controlling the motor to operate according to the adjusted duty cycle; Collect the actual pressure value again; In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
5. The control method according to claim 1, characterized in that: The adjusting the initial duty cycle based on the comparison result to determine the preset duty cycle includes: If the comparison result shows that the actual pressure value is less than the second pressure value, adjusting the initial duty cycle according to a second adjustment rule to obtain an adjusted duty cycle, wherein the second pressure value is a minimum pressure value within the range to which the preset pressure value belongs; controlling the motor to operate according to the adjusted duty cycle; Collect the actual pressure value again; In a case where the collected actual pressure value falls within the range to which the preset pressure value belongs, the duty cycle corresponding to the actual pressure value is determined as the preset duty cycle.
6. The control method according to claim 1, characterized in that: Also includes: Based on the preset interval, determining a next preset pressure value; The preset duty cycle corresponding to the next preset pressure value is determined until the next preset pressure value is equal to the set pressure value.
7. The control method according to claim 1, characterized in that: Also includes: The correspondence table is updated based on the current pressure value and the target duty cycle.
8. A control device, characterized in that: Used to control the output pressure of the motor by controlling the duty cycle of the motor, including: An acquisition module configured to obtain a current pressure value; a first determining module configured to determine a target duty cycle corresponding to the current pressure value based on a pre-determined correspondence table, wherein the correspondence table includes a mapping relationship between pressure values and duty cycles, each pressure value corresponds to only one duty cycle, and the correspondence table is determined before delivery; a control module configured to control the operation of the motor according to the target duty cycle; a second determining module configured to determine a position of the motor; When the position of the motor meets a preset condition, obtaining a preset pressure value; determining a preset duty cycle corresponding to the preset pressure value to generate the correspondence table; The second determining module is further configured to: Collect actual pressure value; Comparing the actual pressure value with the preset pressure value to obtain a comparison result; The initial duty cycle is adjusted based on the comparison result to determine the preset duty cycle.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via a bus, and when the machine-readable instructions are executed by the processor, the steps of the control method according to any one of claims 1 to 7 are performed.
Citation Information
Patent Citations
Pumping pressure control method and system
CN107255071A
Full-automatic coffee powder pressing device
CN215898779U