Position switching method, device and equipment of multi-way valve and storage medium
Through the method of controlling the motor drive valve core in segmented multi-wheel control, the problem of inaccurate position of multi-way valves under high or low temperature conditions is solved, and more accurate position switching and reduce heat dissipation effect is achieved.
Patent Information
- Application Number
- CN202411570607.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-07
- 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, the target duty cycle is adjusted wheel by wheel-by-wheel, so that the valve core is approaching the design position until the difference is reduced to the preset value, and then the motor is controlled to stop.
It realizes more accurately driving the valve core to the designed position under high or low temperature conditions, reducing the heat squirting between the thermal management system subsystems.
Smart Images

Figure CN119396207A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a position switching method, device, equipment and storage medium for a multi-way valve. Background Art
[0002] At present, the multi-way valves commonly used in vehicle thermal management are mostly 3-way valves or 4-way valves, which have only a small number of design positions. Therefore, the valve core rotates to the first design position and the second design position respectively to complete the position switching.
[0003] As thermal management systems become more complex and sophisticated, they require more and more multi-way valve channels, and thus more and more design positions.
[0004] In the process of controlling the rotation of the valve core, the duty cycle of the motor that drives the valve core to rotate is determined based on the difference between the Hall value at the current position and the Hall value at the target position. Then, according to the duty cycle, the motor is controlled once to drive the valve core to rotate, and the valve core is driven to the designed position by the inertia after the motor stops.
[0005] However, under abnormal temperature conditions (such as high or low temperature), the rotational resistance of the multi-way valve will change, resulting in the inertia after the motor stops rotating and being unable to accurately drive the valve core to the designed position, which will cause the multi-way valve position to be inaccurate, resulting in heat transfer between the subsystems of the thermal management system. Summary of the invention
[0006] The present application provides a position switching method, device, equipment and storage medium for a multi-way valve, which can accurately drive the valve core to the designed position and reduce heat transfer between subsystems of a thermal management system.
[0007] In order to achieve the above objectives, this application adopts the following technical solutions: In a first aspect, the present application provides a position switching method of a multi-way valve, comprising: 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.
[0008] Optionally, 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.
[0009] Optionally, obtaining the 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 includes: 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.
[0010] Optionally, the method further includes: 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.
[0011] Optionally, if the second target Hall value is less than or equal to the rotation Hall value of the tth wheel, the method further includes: Changes the direction of rotation of the motor.
[0012] Optionally, the method further includes: 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.
[0013] Optionally, 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.
[0014] In a second aspect, the present application provides a position switching device for a multi-way valve, comprising: 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 tth wheel after the valve core of the multi-way valve rotates, and obtaining the Hall quantity difference of the tth wheel according to the first target Hall quantity and the rotation Hall quantity of the tth 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.
[0015] In a third aspect, the present application provides a computing device, including a memory and a 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 described in any one of the first aspects.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the first aspects.
[0017] It can be seen from the above technical solution that the present application has at least the following beneficial effects: The present application provides a position switching method for a multi-way valve. The method gradually makes the valve core approach any designed position by driving the valve core with a segmented multi-wheel control motor. Specifically: a first position switching instruction is received, and the first position switching instruction includes a first target Hall quantity corresponding to a first target position, and the rotation Hall quantity of the tth wheel after the valve core of the multi-way valve rotates is obtained, and then the Hall quantity difference of the tth wheel is obtained according to the first target Hall quantity and the rotation Hall quantity of the tth wheel. If the absolute value of the Hall quantity 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 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, and the rotation Hall quantity of the t+1th round of the valve core is obtained; if the absolute value of the Hall quantity difference of the tth round is less than the first preset difference, it is determined that the target duty cycle of the tth round of the motor driving the valve core is 0, and according to the target duty cycle of the tth round, the motor is controlled to stop, and the inertia Hall quantity of the t+1th round of the valve core and the basic Hall quantity of the t+1th round are recorded, and the rotation Hall quantity of the t+1th round of the valve core is obtained according to the sum of the inertia Hall quantity of the t+1th round and the basic Hall quantity of the t+1th round. In this method, before the difference between the valve core and the design position is reduced to a certain value (the first preset difference), the motor is controlled by using the target duty cycle determined by multiple rounds until the difference between the valve core and the design position is reduced to a certain value, at which time, the motor is controlled to stop. In the process of controlling the motor in multiple rounds, the target duty cycle used is getting smaller and smaller, which will reduce the inertia of the motor after it stops, and the stroke of the valve core driven by inertia becomes smaller. In addition, since the difference between the valve core and the design position is small, the impact of temperature abnormality on the valve core rotation is reduced. Therefore, this method can drive the valve core to the design position more accurately and reduce the heat transfer between the subsystems of the thermal management system.
[0018] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. 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 the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized 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 a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A flow chart of a method for switching the position of a multi-way valve provided in an embodiment of the present application; Figure 2 A schematic diagram of a mapping relationship provided in an embodiment of the present application; Figure 3 A flow chart of another method for switching the position of a multi-way valve provided in an embodiment of the present application; Figure 4 A schematic diagram of a position switching device for a multi-way valve provided in an embodiment of the present application; Figure 5 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The terms "first", "second", "third", etc. in the specification of this application and the accompanying drawings are used to distinguish different objects rather than to limit a specific order.
[0021] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0022] At present, multi-way valves are usually used in the thermal management process of vehicles. Generally, multi-way valves include multiple design positions. The valve core can be switched between different design positions. The valve core is usually driven by a motor to rotate. Therefore, it is crucial to control the operation of the motor so that the valve core stops at the design position.
[0023] In the traditional solution, a two-stage control method is adopted. The first stage is to determine the duty cycle of controlling the motor based on the difference between the current position of the valve core and the design position, and then control the motor once according to the duty cycle to rotate the valve core to near the design position; the second stage is to use the inertia after the motor stops to drive the valve core to rotate to the design position.
[0024] In the above scheme, the inertia of the motor can accurately drive the valve core to rotate to the designed position at room temperature. However, under high or low temperature conditions, the resistance of the multi-way valve will change (for example, increase or decrease). Therefore, under the single control of the first section, the valve core may not be able to rotate to near the designed position, and then the inertia of the motor may not be able to drive the valve core to the designed position, resulting in the multi-way valve internal leakage not meeting the requirements, heat transfer between the thermal management systems, affecting the operation of each system or increasing the energy consumption of the vehicle and reducing the endurance.
[0025] In view of this, an embodiment of the present application provides a position switching method for a multi-way valve, which can be executed by a controller for controlling the multi-way valve. In this method, before the difference between the valve core and the design position is reduced to a certain value (a first preset difference), the motor is controlled using a target duty cycle determined by multiple rounds until the difference between the valve core and the design position is reduced to a certain value, at which time the motor is controlled to stop. In the process of multiple rounds of controlling the motor, the target duty cycle used becomes smaller and smaller, which will reduce the inertia of the motor after it stops, and the stroke of the inertia-driven valve core rotation becomes smaller. In addition, since the difference between the valve core and the design position is small, the impact of abnormal temperature on the rotation of the valve core is reduced. Therefore, this method can more accurately drive the valve core to the design position and reduce the heat transfer between the subsystems of the thermal management system.
[0026] In order to make the technical solution of the present application clearer and easier to understand, the technical solution of the present application is introduced below in conjunction with the accompanying drawings. Figure 1 As shown, the figure is a flow chart of a position switching method of a multi-way valve provided in an embodiment of the present application, the method comprising: S101. A controller receives a first position switching instruction.
[0027] The first position switching instruction includes a first target Hall value corresponding to the first target position, wherein the first target position may refer to the design position of the multi-way valve, and the Hall value corresponding to the first target position may be in the form of an interval. For example, the Hall value range corresponding to the first target position is (54, 63]. When the Hall value of the valve core is within the Hall value range 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 design position. The first target Hall value corresponding to the first target position may be any value within the above-mentioned Hall value range, such as 55, 60, or an intermediate value within the Hall value range, such as 59. The first position switching instruction may be sent by the host computer to the controller.
[0028] S102: The controller obtains the rotation Hall value of the tth wheel after the valve core of the multi-way valve rotates.
[0029] In the embodiment of the present application, the process of controlling the motor once through the target duty cycle is one round. t is an integer greater than or equal to 1. When t=1, the first round of rotation Hall value after the valve core rotates can refer to the first round of rotation Hall value during multiple control of the valve core.
[0030] The rotation Hall value of the valve core in the tth round can be changed in real time, and the rotation Hall value of the valve core will change in each round of control. For example, the tth round may include multiple time points, and the rotation Hall value of the valve core at the first time point is different from the rotation Hall value of the valve core at the second time point.
[0031] At t=1, the value of the first rotation Hall quantity of the valve core at the start time can be obtained by summing the basic Hall quantity and inertia Hall quantity of the valve core obtained after the previous position command is executed. When t is greater than 1, the value of the tth rotation Hall quantity of the valve core at the start time can be obtained by controlling the motor using the target duty cycle of the t-1th round and detecting it through the Hall sensor.
[0032] S103: The controller obtains a Hall value difference of the tth wheel according to the first target Hall value and the rotation Hall value of the tth wheel.
[0033] After obtaining the first target Hall value and the rotation Hall value of the t-th wheel, the controller can calculate the difference between the rotation Hall value of the t-th wheel and the first target Hall value, that is, the Hall value difference of the t-th wheel.
[0034] S104: The controller determines a target duty cycle of the tth round according to the absolute value of the Hall value difference of the tth round.
[0035] In the embodiment of the present application, the controller controls the motor in multiple rounds, thereby driving the valve core to rotate to the first target position. In each round of control process, the controller needs to determine the target duty cycle for controlling the motor.
[0036] In some embodiments, if the absolute value of the Hall quantity difference of the tth wheel is greater than or equal to the first preset difference, the target duty cycle of the tth wheel of the motor driving the valve core to rotate is determined to be greater than 0; if the absolute value of the Hall quantity difference of the tth wheel is less than the first preset difference, the target duty cycle of the tth wheel of the motor driving the valve core to rotate is determined to be 0.
[0037] In some embodiments, the mapping relationship between the difference and the duty cycle can be preset or calibrated, and after the Hall value difference is calculated, the target duty cycle corresponding to the Hall value difference is determined based on the above mapping relationship.
[0038] like Figure 2 As shown, this figure is a schematic diagram of a mapping relationship provided by an embodiment of the present application. In the figure, the horizontal axis represents the Hall value difference, and the vertical axis represents the target duty cycle. For example, the first preset difference may be d. When the Hall value difference of the tth round belongs to (-d, d), the controller determines that the target duty cycle is 0; for another example, when the Hall value difference of the tth round belongs to [b, a), the controller determines that the target duty cycle is y2.
[0039] S105. The controller determines whether the target duty cycle of the tth round is 0.
[0040] The controller determines whether the target duty cycle of the tth round is 0, and obtains a second determination result. If the second determination result indicates that the target duty cycle of the tth round is 0, S106 is executed; if the second determination result indicates that the target duty cycle of the tth round is not 0, S107 is executed.
[0041] After the controller obtains the target duty cycle of the tth round, it can determine whether the target duty cycle of the tth round is 0. If the target duty cycle of the tth 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 tth round is not 0, it indicates that the motor needs to be controlled for the next round.
[0042] S106 , the controller controls the motor to stop according to the target duty cycle of the tth round.
[0043] After the controller determines that the target duty cycle of the tth 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 motor control, that is, the distance between the valve core and the first target position is very small, the duty cycle of controlling the motor is also small, so the inertia of the motor will also become smaller, and it is easier to use the inertia of the motor to determine that the valve core rotates to the first target position. In 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 caused by the temperature change can be ignored.
[0044] In some embodiments, after the controller controls the motor to stop, it also records the inertial Hall quantity of the valve core at the t+1th round and the basic Hall quantity of the t+1th round, and obtains the rotation Hall quantity of the valve core at the t+1th round according to the sum of the inertial Hall quantity of the t+1th round and the basic Hall quantity of the t+1th round. Among them, the basic Hall quantity refers to the Hall quantity of the valve core at the moment when the control motor stops, and the inertial Hall quantity refers to the Hall quantity of the valve core driven to rotate due to the inertia of the motor after the control motor stops.
[0045] In some embodiments, the controller can determine the rotation direction of the control motor based on the t-th round Hall quantity difference. When the t-th round Hall quantity difference is greater than 0, the rotation direction of the control motor is clockwise. When the t-th round Hall quantity difference is less than 0, the rotation direction of the control motor is counterclockwise.
[0046] S107 , the controller controls the motor to drive the valve core to rotate according to the target duty cycle of the tth round, and obtains the rotation Hall value of the valve core of the t+1th round.
[0047] When the controller determines that the target duty cycle of the tth round is not 0, it controls the motor according to the target duty cycle of the tth round, controls the motor to drive the valve core to rotate, and then detects the rotation Hall quantity of the valve core of the t+1th round through the Hall sensor.
[0048] After the controller obtains the t+1th rotation Hall quantity of the valve core, it returns to step S103 with the t+1th rotation Hall quantity to cycle until the absolute value of the Hall quantity difference is less than the first preset difference (ie, the target duty cycle is 0) and the cycle ends.
[0049] In some embodiments, the controller can also determine whether the motor is stalled during the process of controlling the motor rotation according to the target duty cycle. Specifically, the controller determines whether the motor is stalled and obtains a first determination result. If the first determination result indicates that the motor is stalled, the motor is controlled according to the stall strategy; if the first determination result indicates that the motor is not stalled, the detection continues to determine whether the motor is stalled.
[0050] In some examples, the controller obtains the rotation Hall quantity of the valve core at the hth moment of the tth round and the rotation Hall quantity at the h-1th moment of the tth round; if the difference between the rotation Hall quantity at the hth moment of the tth round and the rotation Hall quantity at the h-1th moment of the tth round is less than a second preset difference, it is determined that the valve core is blocked. For example, under normal circumstances (no blocking occurs), the difference in the corresponding rotation Hall quantities between adjacent moments is large. Therefore, when the difference in the rotation Hall quantities is small, it is determined that the valve core is blocked. Among them, the hth moment and the h-1th moment are adjacent moments.
[0051] In some embodiments, the controller may receive a new position switching instruction during the process of controlling the motor to rotate, which is described below in conjunction with the following. Figure 2 As shown, this figure is a flow chart of another method for switching the position of a multi-way valve provided in an embodiment of the present application. The method includes: S201. The controller receives a first position switching instruction.
[0052] S202: The controller obtains the rotation Hall value of the tth wheel after the valve core of the multi-way valve rotates.
[0053] S203: The controller obtains the Hall value difference of the tth wheel according to the latest target Hall value and the rotation Hall value of the tth wheel.
[0054] The latest target Hall value refers to the target Hall value 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, so the latest target Hall value is the first target Hall value.
[0055] S204: The controller determines a target duty cycle of the tth round according to the absolute value of the Hall value difference of the tth round.
[0056] S205: The controller determines whether the target duty cycle of the tth round is 0.
[0057] If the target duty cycle of the tth round is 0, S206 is executed; if the target duty cycle of the tth round is not 0, S207 is executed.
[0058] S206 , the controller controls the motor to stop according to the target duty cycle of the tth round.
[0059] S207 , the controller controls the motor to drive the valve core to rotate according to the target duty cycle of the tth round, and obtains the rotation Hall value of the valve core of the t+1th round.
[0060] It should be noted that some of the above steps are Figure 1 The steps shown are similar, identical or similar and will not be described in detail here.
[0061] S208: The controller determines whether a second position switching instruction is received.
[0062] If the controller receives the second position switching instruction, S209 is executed; if the controller does not receive the second position switching instruction, the process returns to S203.
[0063] Among them, the second position switching instruction is a new position switching instruction relative to the first position switching instruction, and 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.
[0064] S209: The controller determines whether the second target Hall value is greater than the rotation Hall value of the tth wheel.
[0065] If the second target Hall value is greater than the rotation Hall value of the tth wheel, then return to S203. At this time, after returning to S203, the latest target Hall value in S203 will be replaced by the second target Hall value. If the second target Hall value is less than the rotation Hall value of the tth wheel, execute S210.
[0066] When the controller determines that the second target Hall value is greater than the rotation Hall value of the tth wheel, it indicates that the motor does not need to be reversed and needs to continue to be controlled to rotate in the original direction of rotation; when the controller determines that the second target Hall value is less than the rotation Hall value of the tth wheel, it indicates that the motor needs to be reversed.
[0067] S210, the controller controls the motor to stop, records the inertia Hall quantity of the valve core at the t+1th round and the basic Hall quantity of the t+1th round, and obtains the rotation Hall quantity of the valve core at the t+1th round according to the sum of the inertia Hall quantity of the t+1th round and the basic Hall quantity of the t+1th round.
[0068] When the motor needs to reverse, it needs to be controlled to stop first. Due to the inertia of the motor's rotation, the motor does not stop instantly after the controller issues a stop command. Therefore, the controller records the inertia Hall quantity of the valve core at the t+1th round and the basic Hall quantity at the t+1th round. Among them, the basic Hall quantity refers to the Hall quantity of the valve core at the moment the motor is stopped, and the inertia Hall quantity refers to the Hall quantity of the valve core driven to rotate due to the inertia of the motor after the motor is stopped.
[0069] After completing the recording of the above information, the controller can determine the rotation Hall value of the valve core in the t+1th round based on the recorded information, and then return to S203 to enter the next cycle.
[0070] It should be noted that when the controller determines that the second target Hall value is less than the rotation Hall value of the tth wheel, the controller changes the rotation direction of the motor, for example, the rotation direction of the motor may be changed after the motor completely stops rotating.
[0071] Based on the above description, an embodiment of the present application provides a position switching method for a multi-way valve, in which the motor is controlled by using a target duty cycle determined by multiple rounds before the difference between the valve core and the design position is reduced to a certain value (a first preset difference), until the difference between the valve core and the design position is reduced to a certain value, at which time the motor is controlled to stop. In the process of multiple rounds of controlling the motor, the target duty cycle used becomes smaller and smaller, which in turn reduces the inertia of the motor after it stops, and the stroke of the inertia-driven valve core rotation becomes smaller. In addition, since the difference between the valve core and the design position is small, the impact of abnormal temperature on the rotation of the valve core is reduced. Therefore, this method can more accurately drive the valve core to the design position and reduce heat conduction between subsystems of the thermal management system.
[0072] Combination of the above Figures 1 to 3 The position switching method of the multi-way valve provided in the embodiment of the present application is introduced in detail. The device and equipment provided in the embodiment of the present application will be introduced in conjunction with the accompanying drawings.
[0073] like Figure 4 As shown, this figure is a schematic diagram of a position switching device of a multi-way valve provided in an embodiment of the present application, and the device includes: A receiving module 401 is used to receive a first position switching instruction, where the first position switching instruction includes a first target Hall value corresponding to a first target position; The acquisition module 402 is used to acquire the rotation Hall quantity of the t-th wheel after the valve core of the multi-way valve rotates, and obtain 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; The switching module 403 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, and 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.
[0074] Optionally, the acquisition module 402 is further configured to obtain 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 if a second position switching instruction is received, wherein the second position switching instruction includes a second target Hall value corresponding to the second target position; The acquisition module 402 is specifically configured to obtain the Hall value difference of the tth wheel according to the first target Hall value and the rotation Hall value of the tth wheel if the second position switching instruction is not received.
[0075] Optionally, the acquisition module 402 is specifically configured to obtain a Hall quantity difference of the tth wheel according to the second target Hall quantity and the rotational Hall quantity of the tth wheel if the second target Hall quantity is greater than the rotational Hall quantity of the tth wheel.
[0076] Optionally, the switching module 403 is also used to control the motor to stop if the second target Hall quantity is less than or equal to the rotation Hall quantity of the t-th wheel, record 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, and obtain the rotation Hall quantity of the t+1-th wheel of the valve core 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.
[0077] Optionally, the switching module 403 is further configured to change the rotation direction of the motor if the second target Hall value is less than or equal to the rotation Hall value of the tth wheel.
[0078] Optionally, the acquisition module 402 is also used to obtain the rotation Hall value of the valve core at the hth moment of the tth round and the rotation Hall value at the h-1th moment of the tth round; if the difference between the rotation Hall value at the hth moment of the tth round and the rotation Hall value at the h-1th moment of the tth round is less than a second preset difference, it is determined that the valve core is blocked.
[0079] The position switching device of the multi-way valve according to the embodiment of the present application may correspond to the method described in the embodiment of the present application, and the above-mentioned other operations and / or functions of each module / unit of the position switching device of the multi-way valve are respectively to realize Figure 2 , Figure 4 For the sake of brevity, the corresponding processes of each method in the illustrated embodiment are not described in detail here.
[0080] The embodiment of the present application also provides a computing device, which may be a controller on a vehicle.
[0081] like Figure 5 As shown, the figure is a schematic diagram of a computing device provided in an embodiment of the present application, and 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.
[0082] The bus 501 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0083] The processor 502 may 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).
[0084] The communication interface 503 is used for communicating with the outside.
[0085] The memory 504 may include a volatile memory, such as a random access memory (RAM). The memory 504 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0086] The memory 504 stores executable codes, and the processor 502 executes the executable codes to perform the aforementioned position switching method of the multi-way valve.
[0087] Specifically, in implementing Figure 4 In the case of the embodiment shown, 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 execution Figure 4 The software or program code required for the functions of each module / unit in the multi-way valve may be partially or completely stored in the memory 504. The processor 502 executes the program code corresponding to each unit stored in the memory 504 to execute the position switching method of the multi-way valve.
[0088] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the position switching method of the multi-way valve.
[0089] The embodiment of the present application further 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 process or function described in the embodiment of the present application is generated in whole or in part.
[0090] 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 via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0091] When the computer program product is executed by a computer, the computer executes any of the aforementioned methods for switching the position of a multi-way valve. The computer program product may be a software installation package, and when any of the aforementioned methods for switching the position of a multi-way valve is required, the computer program product may be downloaded and executed on a computer.
[0092] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0093] The above description is only a specific implementation 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 included in 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
Sound valve control method, device and equipment and storage medium
CN115717559A
Method for controlling a hall motor system and related device
CN116111912A
Gear shifter self-learning method, device and equipment based on Hall sensor and storage medium
CN117329293A