Position switching method, device, equipment and storage medium of a multi-way valve
Through the method of controlling the motor drive valve core in segmented multi-wheel control, the problem of inaccurate position of the multi-way valve under high or low temperature conditions is solved, and more accurate valve core position control and reduce heat leakage is achieved.
Patent Information
- Application Number
- CN202411570607.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2044-11-06
AI Technical Summary
Under high or low temperature conditions, the rotation resistance of the multi-way valve changes, causing the inertia after the motor is stopped to drive the valve core to the designed position, resulting in inaccurate position and heat squirting between the thermal management system subsystem.
The method of controlling the motor to drive the valve core by segmented multi-wheel control, by receiving position switching commands, obtaining the Hall quantity after the valve core rotates, calculating the Hall quantity difference and determining the target duty cycle, adjusting the duty cycle of the motor wheel by wheel to approximate the design position.
It realizes more accurately driving the valve core to the designed position under high or low temperature conditions, reducing heat squirting between the thermal management system subsystems.
Smart Images

Figure CN119396207B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicles, and in particular, to a method, device, equipment and storage medium for switching the position of a multi-way valve. Background Art
[0002] Currently, most of the multi-way valves commonly used in vehicle thermal management are 3-way valves or 4-way valves, and there are only a small number of designed positions. Therefore, the valve core rotates to the first designed position and the second designed position respectively to complete the position switching.
[0003] With the complexity and improvement of the thermal management system, the multi-way valve channels required by the thermal management system are increasing, and thus the number of designed positions is also increasing.
[0004] During the process of controlling the rotation of the valve core, the duty ratio of the motor driving the valve core to rotate is determined based on the difference between the Hall quantity at the current position and the Hall quantity at the target position. Then, according to this duty ratio, the motor is controlled to drive the valve core to rotate once, and the valve core is driven to reach the designed position relying on the inertia after the motor stops rotating.
[0005] However, in the case of non-ambient temperature (such as high temperature or low temperature), the rotational resistance of the multi-way valve will change, which will cause the inertia after the motor stops rotating to be unable to accurately drive the valve core to reach the designed position, resulting in inaccurate positions of the multi-way valve and heat leakage between subsystems of the thermal management system. Summary of the Invention
[0006] The present application provides a method, device, equipment and storage medium for switching the position of a multi-way valve, which can accurately drive the valve core to reach the designed position and reduce the heat leakage between subsystems of the thermal management system.
[0007] To achieve the above object, the present application adopts the following technical solutions:
[0008] In a first aspect, the present application provides a method for switching the position of a multi-way valve, including:
[0009] Receiving a first position switching instruction, where the first position switching instruction includes a first target Hall quantity corresponding to a first target position;
[0010] Obtaining the rotational Hall quantity of the t-th round after the valve core of the multi-way valve rotates;
[0011] Obtaining the Hall quantity difference of the t-th round according to the first target Hall quantity and the rotational Hall quantity of the t-th round;
[0012] If the absolute value of the Hall quantity difference of the t-th round is greater than or equal to a first preset difference, determining that the target duty ratio of the t-th round of the motor driving the valve core to rotate is greater than 0, and controlling the motor to drive the valve core to rotate according to the target duty ratio of the t-th round, to obtain the rotational Hall quantity of the (t + 1)-th round of the valve core;
[0013] If the absolute value of the Hall quantity difference in the t-th round is less than the first preset difference, determine that the target duty cycle of the motor driving the valve core to rotate in the t-th round is 0, and control the motor to stop according to the target duty cycle in the t-th round.
[0014] Optionally, before controlling the motor to stop, the method further includes:
[0015] If a second position switching instruction is received, the second position switching instruction includes a second target Hall quantity corresponding to a second target position, and obtain the Hall quantity difference in the t-th round according to the second target Hall quantity and the rotational Hall quantity in the t-th round;
[0016] The obtaining the Hall quantity difference in the t-th round according to the first target Hall quantity and the rotational Hall quantity in the t-th round includes:
[0017] If the second position switching instruction is not received, obtain the Hall quantity difference in the t-th round according to the first target Hall quantity and the rotational Hall quantity in the t-th round.
[0018] Optionally, the obtaining the Hall quantity difference in the t-th round according to the second target Hall quantity and the rotational Hall quantity in the t-th round includes:
[0019] If the second target Hall quantity is greater than the rotational Hall quantity in the t-th round, obtain the Hall quantity difference in the t-th round according to the second target Hall quantity and the rotational Hall quantity in the t-th round.
[0020] Optionally, the method further includes:
[0021] If the second target Hall quantity is less than or equal to the rotational Hall quantity in the t-th round, control the motor to stop, record the inertial Hall quantity in the (t + 1)-th round and the basic Hall quantity in the (t + 1)-th round of the valve core, and obtain the rotational Hall quantity in the (t + 1)-th round of the valve core according to the sum of the inertial Hall quantity in the (t + 1)-th round and the basic Hall quantity in the (t + 1)-th round.
[0022] Optionally, if the second target Hall quantity is less than or equal to the rotational Hall quantity in the t-th round, the method further includes:
[0023] Change the rotation direction of the motor.
[0024] Optionally, the method further includes:
[0025] Obtain the rotational Hall quantity at the h-th moment in the t-th round and the rotational Hall quantity at the (h - 1)-th moment in the t-th round of the valve core;
[0026] If the difference between the rotational Hall quantity at the h-th moment of the t-th round and the rotational Hall quantity at the (h - 1)-th moment of the t-th round is less than the second preset difference, it is determined that the valve core is blocked and cannot rotate.
[0027] Optionally, if the Hall quantity difference of the t-th round is greater than 0, the rotation direction of the motor is clockwise; if the Hall quantity difference of the t-th round is less than 0, the rotation direction of the motor is counterclockwise.
[0028] In a second aspect, the present application provides a position switching device for a multi-way valve, including:
[0029] a receiving module, configured to receive a first position switching instruction, where the first position switching instruction includes a first target Hall quantity corresponding to a first target position;
[0030] an obtaining module, configured to obtain the rotational Hall quantity of the t-th round after the valve core of the multi-way valve rotates, and obtain the Hall quantity difference of the t-th round according to the first target Hall quantity and the rotational Hall quantity of the t-th round;
[0031] a switching module, configured to: if the absolute value of the Hall quantity difference of the t-th round is greater than or equal to the first preset difference, determine that the target duty ratio of the t-th round of the motor driving the valve core to rotate is greater than 0, and control the motor to drive the valve core to rotate according to the target duty ratio of the t-th round to obtain the rotational Hall quantity of the (t + 1)-th round of the valve core; if the absolute value of the Hall quantity difference of the t-th round is less than the first preset difference, determine that the target duty ratio of the t-th round of the motor driving the valve core to rotate is 0, control the motor to stop according to the target duty ratio of the t-th round, record the inertial Hall quantity of the (t + 1)-th round and the basic Hall quantity of the (t + 1)-th round of the valve core, and obtain the rotational Hall quantity of the (t + 1)-th round of the valve core according to the sum of the inertial Hall quantity of the (t + 1)-th round and the basic Hall quantity of the (t + 1)-th round.
[0032] In a third aspect, the present application provides a computing device, including a memory and a processor;
[0033] wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device is enabled to execute the method according to any one of the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of the first aspect.
[0035] It can be seen from the above technical solutions that the present application has at least the following beneficial effects:
[0036] The present application provides a method for switching the position of a multi-way valve. This method gradually makes the valve core approach any designed position by means of segmented multi-round control of the motor to drive the valve core. Specifically: receiving a first position switching instruction, which includes a first target Hall quantity corresponding to a first target position, obtaining the rotational Hall quantity of the t-th round after the valve core of the multi-way valve rotates, and then obtaining the Hall quantity difference of the t-th round according to the first target Hall quantity and the rotational Hall quantity of the t-th round. If the absolute value of the Hall quantity difference of the t-th round is greater than or equal to a first preset difference, it is determined that the target duty ratio of the t-th round of the motor driving the valve core is greater than 0, and the motor is controlled to drive the valve core to rotate according to the target duty ratio of the t-th round, so as to obtain the rotational Hall quantity of the (t + 1)-th round of the valve core; if the absolute value of the Hall quantity difference of the t-th round is less than the first preset difference, it is determined that the target duty ratio of the t-th round of the motor driving the valve core is 0, the motor is controlled to stop according to the target duty ratio of the t-th round, and the inertial Hall quantity of the (t + 1)-th round and the basic Hall quantity of the (t + 1)-th round of the valve core are recorded, and the rotational Hall quantity of the (t + 1)-th round of the valve core is obtained according to the sum of the inertial Hall quantity of the (t + 1)-th round and the basic Hall quantity of the (t + 1)-th round. In this method, before the difference between the valve core and the designed position is reduced to a certain value (the first preset difference), the motor is controlled by the target duty ratios determined in multiple rounds until the difference between the valve core and the designed position is reduced to a certain value. At this time, the motor is controlled to stop. During the process of controlling the motor in multiple rounds, the target duty ratios adopted are getting smaller and smaller, which will make the inertia after the motor stops smaller, the stroke of the inertia-driven valve core rotation smaller, and since the difference between the valve core and the designed position is small, the influence of abnormal temperature on the valve core rotation is reduced. Therefore, this method can drive the valve core to the designed position more accurately and reduce the heat leakage between the subsystems of the thermal management system.
[0037] It should be understood that the description of technical features, technical solutions, beneficial effects or similar languages in the present application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that at least one embodiment includes specific technical features, technical solutions or beneficial effects. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment can be combined in any appropriate way. Those skilled in the art will understand that an embodiment can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. Description of the Drawings
[0038] Figure 1Flow chart of a method for switching positions of a multi-way valve provided by an embodiment of the present application;
[0039] Figure 2 Schematic diagram of a mapping relationship provided by an embodiment of the present application;
[0040] Figure 3 Flow chart of another method for switching positions of a multi-way valve provided by an embodiment of the present application;
[0041] Figure 4 Schematic diagram of a device for switching positions of a multi-way valve provided by an embodiment of the present application;
[0042] Figure 5 Schematic diagram of a computing device provided by an embodiment of the present application. Detailed implementation manners
[0043] Terms such as "first", "second", and "third" in the specification and drawings of the present application are used to distinguish different objects, rather than to limit a specific order.
[0044] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
[0045] Currently, in the thermal management process of vehicles, multi-way valves are usually used. Generally, a multi-way valve includes multiple designed positions, and the valve core can be switched between different designed positions. Usually, a motor is used to drive the valve core to rotate. Therefore, how to control the operation of the motor so that the valve core just stops at the designed position is crucial.
[0046] In the traditional solution, a two-stage control method is adopted. The first stage is to determine the duty ratio for controlling the motor based on the difference between the current position of the valve core and the designed position, and then control the motor once according to the duty ratio to make the valve core rotate near the designed position. The second stage is to use the inertia after the motor stops rotating to drive the valve core to rotate to the designed position.
[0047] In the above solution, at room temperature, the inertia of the motor can accurately drive the valve core to rotate to the designed position. However, at high or low temperatures, the resistance of the multi-way valve will change (for example, increase or decrease). Therefore, under the single control in the first stage, the valve core may not be able to rotate near the designed position, and then the inertia of the motor may not be able to drive the valve core to rotate to the designed position, resulting in the internal leakage of the multi-way valve not meeting the requirements, heat leakage between the thermal management systems, affecting the operation of each system or increasing the vehicle energy consumption and reducing the endurance.
[0048] In view of this, an embodiment of the present application provides a method for switching the position of a multi-way valve. This method can be executed by a controller, which is used to control the multi-way valve. In this method, before the difference between the valve core and the designed position is reduced to a certain value (the first preset difference), the motor is controlled by using the target duty ratio determined in multiple rounds until the difference between the valve core and the designed position is reduced to a certain value. At this time, the motor is controlled to stop. During the process of controlling the motor in multiple rounds, the target duty ratio adopted becomes smaller and smaller. As a result, the inertia of the motor after it stops rotating becomes smaller, and the stroke of the valve core driven by inertia becomes smaller. Moreover, since the difference between the valve core and the designed position is small, the influence of abnormal temperature on the rotation of the valve core is reduced. Therefore, this method can drive the valve core to the designed position more accurately and reduce the heat leakage between the subsystems of the thermal management system.
[0049] To make the technical solution of the present application clearer and easier to understand, the technical solution of the present application will be introduced below with reference to the accompanying drawings. As Figure 1 shown, this figure is a flowchart of a method for switching the position of a multi-way valve provided by an embodiment of the present application. This method includes:
[0050] S101. The controller receives a first position switching instruction.
[0051] The first position switching instruction includes the first target Hall quantity corresponding to the first target position. Among them, the first target position may refer to the designed position of the multi-way valve. The Hall quantity corresponding to the first target position may be in the form of an interval. For example, the range of the Hall quantity corresponding to the first target position is (54, 63]. When the Hall quantity of the valve core is within the range of the Hall quantity corresponding to the first target position, it can be considered that the valve core has rotated to the first target position, that is, the above-mentioned designed position. The first target Hall quantity corresponding to the first target position may be any value within the above-mentioned Hall quantity range, such as 55, 60, or the intermediate value within the Hall quantity range, such as 59. The first position switching instruction may be sent from the upper computer to the controller.
[0052] S102. The controller obtains the rotational Hall quantity of the t-th round after the valve core of the multi-way valve rotates.
[0053] In an embodiment of the present application, each process of controlling the motor by using the target duty ratio is one round. t is an integer greater than or equal to 1. When t = 1, the rotational Hall quantity of the first round after the valve core rotates may refer to the rotational Hall quantity of the first round during the process of controlling the valve core multiple times.
[0054] The rotational Hall quantity of the t-th round of the valve core can change in real time. During each round of control, the rotational Hall quantity of the valve core will change. For example, the t-th round can include multiple time points, and the rotational Hall quantity of the valve core at the first time point is different from that at the second time point.
[0055] When t = 1, the value at the start time of the rotational Hall quantity of the 1st round of the valve core can be obtained by summing the basic Hall quantity and the inertial Hall quantity of the valve core obtained after the execution of the previous position command is completed. When t > 1, the value at the start time of the rotational Hall quantity of the t-th round of the valve core can be detected by the Hall sensor after controlling the motor using the target duty ratio of the (t - 1)-th round.
[0056] S103. The controller obtains the Hall quantity difference of the t-th round according to the first target Hall quantity and the rotational Hall quantity of the t-th round.
[0057] After the controller obtains the first target Hall quantity and the rotational Hall quantity of the t-th round, it can calculate the difference between the rotational Hall quantity of the t-th round and the first target Hall quantity, that is, the Hall quantity difference of the t-th round.
[0058] S104. The controller determines the target duty ratio of the t-th round according to the absolute value of the Hall quantity difference of the t-th round.
[0059] In the embodiments of the present application, the controller controls the motor in multiple rounds to drive the valve core to rotate to the first target position. During each round of control, the controller needs to determine the target duty ratio for controlling the motor.
[0060] In some embodiments, if the absolute value of the Hall quantity difference of the t-th round is greater than or equal to the first preset difference, it is determined that the target duty ratio of the t-th round of the motor driving the valve core to rotate is greater than 0. If the absolute value of the Hall quantity difference of the t-th round is less than the first preset difference, it is determined that the target duty ratio of the t-th round of the motor driving the valve core to rotate is 0.
[0061] In some embodiments, the mapping relationship between the difference and the duty ratio can be preset or calibrated in advance. After calculating the Hall quantity difference, based on the above mapping relationship, the target duty ratio corresponding to the Hall quantity difference is determined.
[0062] As Figure 2 shown, this figure is a schematic diagram of a mapping relationship provided by the embodiments of the present application. The abscissa in the figure represents the Hall quantity difference, and the ordinate represents the target duty ratio. For example, the first preset difference can be d. When the Hall quantity difference of the t-th round belongs to (-d, d), the controller determines that the target duty ratio is 0. For another example, when the Hall quantity difference of the t-th round belongs to [b, a), the controller determines that the target duty ratio is y2.
[0063] S105. The controller determines whether the target duty cycle of the t-th round is 0.
[0064] The controller determines whether the target duty cycle of the t-th round is 0, and obtains a second determination result. If the second determination result indicates that the target duty cycle of the t-th round is 0, then S106 is executed; if the second determination result indicates that the target duty cycle of the t-th round is not 0, then S107 is executed.
[0065] After the controller obtains the target duty cycle of the t-th round, it can determine whether the target duty cycle of the t-th round is 0. If the target duty cycle of the t-th round is 0, it indicates that the valve core is very close to the first target position, and the inertia after the motor stops can be used to drive the valve core to rotate to the first target position; if the target duty cycle of the t-th round is not 0, it indicates that the next round of control of the motor is required.
[0066] S106. The controller controls the motor to stop according to the target duty cycle of the t-th round.
[0067] After the controller determines that the target duty cycle of the t-th round is 0, it controls the motor to stop. At this time, the inertia of the motor is used to determine that the valve core rotates to the first target position. Since the valve core is very close to the first target position after multiple rounds of controlling the motor, that is, the distance between the valve core and the first target position is very small, and the duty cycle for controlling the motor is also small, the inertia of the motor will also become smaller, and thus it is easier to use the inertia of the motor to determine that the valve core rotates to the first target position. During this process, even if the temperature affects the resistance of the valve core rotation, since the valve core is already very close to the first target position, the resistance impact caused by temperature change can be ignored.
[0068] In some embodiments, after the controller controls the motor to stop, it will also record the inertial Hall quantity of the (t + 1)-th round of the valve core and the basic Hall quantity of the (t + 1)-th round of the valve core, and obtain the rotational Hall quantity of the (t + 1)-th round of the valve core according to the sum of the inertial Hall quantity of the (t + 1)-th round of the valve core and the basic Hall quantity of the (t + 1)-th round of the valve core. Among them, the basic Hall quantity refers to the Hall quantity of the valve core at the moment when the motor is controlled to stop, and the inertial Hall quantity refers to the Hall quantity of the valve core driven by the inertia of the motor after the motor is controlled to stop.
[0069] In some embodiments, the controller can determine the rotation direction of the motor based on the Hall quantity difference of the t-th round. When the Hall quantity difference of the t-th round is greater than 0, the rotation direction of the motor is controlled to be the clockwise direction; when the Hall quantity difference of the t-th round is less than 0, the rotation direction of the motor is controlled to be the counterclockwise direction.
[0070] S107. The controller controls the motor to drive the valve core to rotate according to the target duty cycle of the t-th round, and obtains the rotational Hall quantity of the (t + 1)-th round of the valve core.
[0071] When the controller determines that the target duty cycle in the t-th round is not 0, it controls the motor according to the target duty cycle in the t-th round, controls the motor to drive the valve core to rotate, and then detects the rotation Hall quantity of the valve core in the (t + 1)-th round through the Hall sensor.
[0072] After the controller obtains the rotation Hall quantity of the valve core in the (t + 1)-th round, it uses the rotation Hall quantity in the (t + 1)-th round to return to step S103 for cycling until the absolute value of the Hall quantity difference is less than the first preset difference (i.e., the target duty cycle is 0) to end the cycle.
[0073] In some embodiments, when the controller controls the motor to rotate according to the target duty cycle, it can also determine whether the motor is blocked. Specifically, the controller determines whether the motor is blocked to obtain a first determination result. If the first determination result indicates that the motor is blocked, it controls the motor according to the blocking strategy; if the first determination result indicates that the motor is not blocked, it continues to detect whether it is blocked.
[0074] In some examples, the controller obtains the rotation Hall quantity of the valve core at the h-th moment in the t-th round and the rotation Hall quantity of the valve core at the (h - 1)-th moment in the t-th round; if the difference between the rotation Hall quantity of the valve core at the h-th moment in the t-th round and the rotation Hall quantity of the valve core at the (h - 1)-th moment in the t-th round is less than the second preset difference, it is determined that the valve core is blocked. For example, in a normal situation (without being blocked), the difference in the corresponding rotation Hall quantities between adjacent moments is large. Therefore, when the difference in the rotation Hall quantity is small, it is determined that the valve core is blocked. Among them, the h-th moment and the (h - 1)-th moment are adjacent moments.
[0075] In some embodiments, during the process of the controller controlling the motor to rotate, it may also receive a new position switching instruction, which will be introduced below in combination with the figure. As Figure 2 shown, this figure is a flowchart of another position switching method for a multi-way valve provided by an embodiment of the present application. The method includes:
[0076] S201. The controller receives a first position switching instruction.
[0077] S202. The controller obtains the rotation Hall quantity of the valve core of the multi-way valve in the t-th round after rotation.
[0078] S203. The controller obtains the Hall quantity difference in the t-th round according to the latest target Hall quantity and the rotation Hall quantity in the t-th round.
[0079] The latest target Hall quantity refers to the target Hall quantity corresponding to the target position in the latest received position switching instruction. In S203, the latest received position switching instruction is the first position switching instruction. Therefore, the latest target Hall quantity is the first target Hall quantity.
[0080] S204. The controller determines the target duty cycle of the t-th round according to the absolute value of the Hall quantity difference in the t-th round.
[0081] S205. The controller determines whether the target duty cycle of the t-th round is 0.
[0082] If the target duty cycle of the t-th round is 0, then execute S206; if the target duty cycle of the t-th round is not 0, then execute S207.
[0083] S206. The controller controls the motor to stop according to the target duty cycle of the t-th round.
[0084] S207. The controller controls the motor to drive the spool to rotate according to the target duty cycle of the t-th round, and obtains the rotation Hall quantity of the (t + 1)-th round of the spool.
[0085] It should be noted that some of the above steps are similar to Figure 1 the steps shown, and the same or similar parts will not be elaborated here.
[0086] S208. The controller determines whether it has received the second position switching instruction.
[0087] If the controller receives the second position switching instruction, then execute S209; if the controller does not receive the second position switching instruction, then return to S203.
[0088] Among them, relative to the first position switching instruction, the second position switching instruction is a new position switching instruction. The second target Hall quantity corresponding to the second target position carried by the second position switching instruction is the latest target Hall quantity. At this time, after returning to S203, the latest target Hall quantity in S203 will be replaced by the second target Hall quantity.
[0089] S209. The controller determines whether the second target Hall quantity is greater than the rotation Hall quantity of the t-th round.
[0090] If the second target Hall quantity is greater than the rotation Hall quantity of the t-th round, then return to S203. At this time, after returning to S203, the latest target Hall quantity in S203 will be replaced by the second target Hall quantity. If the second target Hall quantity is less than the rotation Hall quantity of the t-th round, then execute S210.
[0091] When the controller determines that the second target Hall quantity is greater than the rotation Hall quantity of the t-th round, it indicates that the motor does not need to reverse and needs to continue to control the motor to rotate in the original rotation direction; when the controller determines that the second target Hall quantity is less than the rotation Hall quantity of the t-th round, it indicates that the motor needs to reverse.
[0092] S210. The controller controls the motor to stop, records the inertial Hall quantity of the t+1-th round of the valve core and the basic Hall quantity of the t+1-th round of the valve core, and obtains the rotational Hall quantity of the t+1-th round of the valve core according to the sum of the inertial Hall quantity of the t+1-th round of the valve core and the basic Hall quantity of the t+1-th round of the valve core.
[0093] In the case where the motor needs to reverse, it is necessary to first control the motor to stop. Due to the inertia of the motor rotation, after the controller issues a stop command, the motor does not stop instantaneously. Therefore, the controller records the inertial Hall quantity of the t+1-th round of the valve core and the basic Hall quantity of the t+1-th round of the valve core. Among them, the basic Hall quantity refers to the Hall quantity of the valve core at the moment when the motor is controlled to stop, and the inertial Hall quantity refers to the Hall quantity of the valve core driven by the inertia of the motor to rotate after the motor is controlled to stop.
[0094] After the controller completes the recording of the above information, it can determine the rotational Hall quantity of the t+1-th round of the valve core based on the recorded information, and then return to S203 to enter the next round of loop.
[0095] It should be noted that when the controller determines that the second target Hall quantity is less than the rotational Hall quantity of the t-th round, the controller changes the rotation direction of the motor. For example, it can change the rotation direction of the motor after the motor completely stops rotating.
[0096] Based on the above description, the embodiment of the present application provides a position switching method for a multi-way valve. In this method, before the difference between the valve core and the designed position is reduced to a certain value (the first preset difference), the motor is controlled by using the target duty cycle determined in multiple rounds until the difference between the valve core and the designed position is reduced to a certain value. At this time, the motor is controlled to stop. During the process of controlling the motor in multiple rounds, the target duty cycle used is getting smaller and smaller, which will make the inertia of the motor smaller after it stops rotating, and the stroke of the valve core driven by the inertia is smaller. Moreover, since the difference between the valve core and the designed position is small, the influence of abnormal temperature on the rotation of the valve core is reduced. Therefore, this method can drive the valve core to reach the designed position more accurately and reduce the heat leakage between the subsystems of the thermal management system.
[0097] As described above in conjunction with Figures 1 to 3 The position switching method for a multi-way valve provided by the embodiment of the present application has been introduced in detail. Next, the device and equipment provided by the embodiment of the present application will be introduced in conjunction with the drawings.
[0098] As Figure 4 shown, this figure is a schematic diagram of a position switching device for a multi-way valve provided by the embodiment of the present application. The device includes:
[0099] A receiving module 401, configured to receive a first position switching instruction, where the first position switching instruction includes a first target Hall quantity corresponding to a first target position;
[0100] An acquisition module 402, configured to acquire the rotation Hall amount of the t-th round after the valve core of the multi-way valve rotates, and obtain the Hall amount difference of the t-th round according to the first target Hall amount and the rotation Hall amount of the t-th round;
[0101] A switching module 403, configured to: if the absolute value of the Hall amount difference of the t-th round is greater than or equal to a first preset difference, determine that the target duty ratio of the t-th round of the motor driving the valve core to rotate is greater than 0, and control the motor to drive the valve core to rotate according to the target duty ratio of the t-th round, so as to obtain the rotation Hall amount of the (t + 1)-th round of the valve core; if the absolute value of the Hall amount difference of the t-th round is less than the first preset difference, determine that the target duty ratio of the t-th round of the motor driving the valve core to rotate is 0, control the motor to stop according to the target duty ratio of the t-th round, record the inertial Hall amount of the (t + 1)-th round and the basic Hall amount of the (t + 1)-th round of the valve core, and obtain the rotation Hall amount of the (t + 1)-th round of the valve core according to the sum of the inertial Hall amount of the (t + 1)-th round and the basic Hall amount of the (t + 1)-th round.
[0102] Optionally, the acquisition module 402 is further configured to: if a second position switching instruction is received, obtain the Hall amount difference of the t-th round according to the second target Hall amount and the rotation Hall amount of the t-th round, where the second position switching instruction includes the second target Hall amount corresponding to the second target position;
[0103] Specifically, the acquisition module 402 is configured to: if the second position switching instruction is not received, obtain the Hall amount difference of the t-th round according to the first target Hall amount and the rotation Hall amount of the t-th round.
[0104] Optionally, specifically, the acquisition module 402 is configured to: if the second target Hall amount is greater than the rotation Hall amount of the t-th round, obtain the Hall amount difference of the t-th round according to the second target Hall amount and the rotation Hall amount of the t-th round.
[0105] Optionally, the switching module 403 is further configured to: if the second target Hall amount is less than or equal to the rotation Hall amount of the t-th round, control the motor to stop, record the inertial Hall amount of the (t + 1)-th round and the basic Hall amount of the (t + 1)-th round of the valve core, and obtain the rotation Hall amount of the (t + 1)-th round of the valve core according to the sum of the inertial Hall amount of the (t + 1)-th round and the basic Hall amount of the (t + 1)-th round.
[0106] Optionally, the switching module 403 is further configured to: if the second target Hall amount is less than or equal to the rotation Hall amount of the t-th round, change the rotation direction of the motor.
[0107] Optionally, the obtaining module 402 is further configured to obtain the rotation Hall amount of the valve core at the h-th moment of the t-th round and the rotation Hall amount of the valve core at the (h - 1)-th moment of the t-th round; if the difference between the rotation Hall amount of the valve core at the h-th moment of the t-th round and the rotation Hall amount of the valve core at the (h - 1)-th moment of the t-th round is less than a second preset difference, it is determined that the valve core is blocked.
[0108] The position switching device of the multi-way valve according to the embodiment of the present application can correspond to execute the method described in the embodiment of the present application, and the above other operations and / or functions of each module / unit of the position switching device of the multi-way valve are respectively for realizing Figure 2 、 Figure 4 the corresponding processes of the respective methods in the embodiments shown, and for the sake of brevity, they will not be described in detail here.
[0109] The embodiment of the present application further provides a computing device. The computing device can be a controller on a vehicle.
[0110] As Figure 5 shown, this figure is a schematic diagram of a computing device provided by the embodiment of the present application. The computing device 500 includes a bus 501, a processor 502, a communication interface 503, and a memory 504. The processor 502, the memory 504, and the communication interface 503 communicate with each other through the bus 501.
[0111] The bus 501 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 5 only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0112] The processor 502 can be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.
[0113] The communication interface 503 is used for external communication.
[0114] The memory 504 may include volatile memory, such as random access memory (RAM). The memory 504 may also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0115] Executable code is stored in the memory 504, and the processor 502 executes the executable code to perform the foregoing method for switching the position of the multi-way valve.
[0116] Specifically, in the case of implementing Figure 4 the illustrated embodiment, and Figure 4 when each module or unit of the position switching device of the multi-way valve described in the embodiment is implemented by software, the software or program code required to execute Figure 4 the functions of each module / unit in may be stored in part or in whole in the memory 504. The processor 502 executes the program code corresponding to each unit stored in the memory 504 to perform the foregoing method for switching the position of the multi-way valve.
[0117] An embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center including one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state drive), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the foregoing method for switching the position of the multi-way valve.
[0118] An embodiment of the present application also provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the processes or functions according to the embodiments of the present application are generated in whole or in part.
[0119] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.).
[0120] When the computer program product is executed by a computer, the computer executes any one of the methods for switching the positions of the aforementioned multi-way valve. The computer program product can be a software installation package. In the case where any one of the methods for switching the positions of the aforementioned multi-way valve is needed, the computer program product can be downloaded and executed on the computer.
[0121] The descriptions of the processes or structures corresponding to the above respective drawings have their own emphases. For parts not detailed in a certain process or structure, reference can be made to the relevant descriptions of other processes or structures.
[0122] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A method for switching the position of a multi-way valve, characterized in that: The method comprises: receiving a first position switching instruction, wherein the first position switching instruction includes a first target Hall value corresponding to a first target position; Obtain the rotation Hall value of the tth wheel after the valve core of the multi-way valve rotates; According to the first target Hall value and the rotation Hall value of the t-th wheel, the Hall value difference of the t-th wheel is obtained; If the absolute value of the Hall value difference of the tth round is greater than or equal to the first preset difference, it is determined that the target duty cycle of the tth round of the motor driving the valve core to rotate is greater than 0, and according to the target duty cycle of the tth round, the motor is controlled to drive the valve core to rotate, so as to obtain the rotation Hall value of the t+1th round of the valve core; If the absolute value of the Hall value difference of the tth wheel is less than the first preset difference, it is determined that the target duty cycle of the tth wheel of the motor driving the valve core to rotate is 0, and the motor is controlled to stop according to the target duty cycle of the tth wheel.
2. The method according to claim 1, characterized in that Before controlling the motor to stop, the method further includes: If a second position switching instruction is received, the second position switching instruction includes a second target Hall value corresponding to the second target position, and a Hall value difference of the t-th wheel is obtained according to the second target Hall value and the rotation Hall value of the t-th wheel; The method of obtaining the Hall value difference of the t-th wheel according to the first target Hall value and the rotation Hall value of the t-th wheel comprises: If the second position switching instruction is not received, the Hall value difference of the t-th wheel is obtained according to the first target Hall value and the rotation Hall value of the t-th wheel.
3. The method according to claim 2, characterized in that The step of obtaining a Hall value difference of the t-th wheel according to the second target Hall value and the rotation Hall value of the t-th wheel comprises: If the second target Hall value is greater than the rotational Hall value of the t-th wheel, the Hall value difference of the t-th wheel is obtained according to the second target Hall value and the rotational Hall value of the t-th wheel.
4. The method according to claim 3, characterized in that The method further comprises: If the second target Hall quantity is less than or equal to the rotation Hall quantity of the t-th wheel, the motor is controlled to stop, and the inertia Hall quantity of the t+1-th wheel and the basic Hall quantity of the t+1-th wheel of the valve core are recorded. According to the sum of the inertia Hall quantity of the t+1-th wheel and the basic Hall quantity of the t+1-th wheel, the rotation Hall quantity of the t+1-th wheel of the valve core is obtained.
5. The method according to claim 4, characterized in that If the second target Hall value is less than or equal to the rotation Hall value of the t-th wheel, the method further includes: Changes the direction of rotation of the motor.
6. The method according to claim 1, characterized in that The method further comprises: Obtaining the rotation Hall value of the valve core at the hth moment of the tth round and the h-1th moment of the tth round; If the difference between the rotation Hall value at the hth moment of the tth wheel and the rotation Hall value at the h-1st moment of the tth wheel is less than the second preset difference, it is determined that the valve core is blocked.
7. The method according to any one of claims 1 to 6, characterized in that: If the Hall value difference of the t-th wheel is greater than 0, the rotation direction of the motor is clockwise; if the Hall value difference of the t-th wheel is less than 0, the rotation direction of the motor is counterclockwise.
8. A position switching device for a multi-way valve, characterized in that: The device comprises: A receiving module, configured to receive a first position switching instruction, wherein the first position switching instruction includes a first target Hall value corresponding to a first target position; An acquisition module, used for acquiring the rotation Hall quantity of the t-th wheel after the valve core of the multi-way valve rotates, and obtaining the Hall quantity difference of the t-th wheel according to the first target Hall quantity and the rotation Hall quantity of the t-th wheel; A switching module is used to determine that the target duty cycle of the tth round of the motor driving the valve core to rotate is greater than 0 if the absolute value of the Hall quantity difference of the tth round is greater than or equal to the first preset difference, and control the motor to drive the valve core to rotate according to the target duty cycle of the tth round to obtain the rotation Hall quantity of the t+1th round of the valve core; if the absolute value of the Hall quantity difference of the tth round is less than the first preset difference, determine that the target duty cycle of the tth round of the motor driving the valve core to rotate is 0, control the motor to stop according to the target duty cycle of the tth round, record the inertia Hall quantity of the t+1th round of the valve core and the basic Hall quantity of the t+1th round, and obtain the rotation Hall quantity of the t+1th round of the valve core according to the sum of the inertia Hall quantity of the t+1th round and the basic Hall quantity of the t+1th round.
9. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Wire control gear shifter gear self-learning method and system and wire control gear shifter system
CN106763723A
Electric control multi-way valve, thermal management device of electric automobile and control method
CN115183041A