Method and related device for controlling Hall motor system

Through the initialization of the Hall motor system and subsequent joint control of current and Hall signals, the problems of control accuracy and functional stability of the Hall motor system are solved, precise position control and motor anti-pinch functions are realized, and the use of the motor is extended. life.

CN116111912BActive Publication Date: 2024-09-13SHANGHAI NAEN AUTOMOTIVE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310237791.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

The Hall motor system is relatively complex in terms of control, and it is easy to cause functional degradation or failure due to poor control methods, and the Hall stroke is not accurately calibrated during initialization, resulting in the inability to accurately determine the motor position and affecting control accuracy.

Method used

Through the initialization process, the Hall value provided by the Hall sensor is used to set the reference value, so that the motor moves from the non-working position to the working position, and the Hall stroke is calibrated upon arrival to ensure that the motor moves within and outside the preset protection range, preventing the motor from moving. The function fails, and in subsequent operations, the current and Hall signals are jointly controlled to achieve precise position control.

Benefits of technology

Effectively initializes the Hall motor system to ensure that it can achieve accurate and robust motor control during normal operation, supports the learning function of the Hall stroke, eliminates cumulative errors, and provides motor anti-pinch function and life protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116111912B
    Figure CN116111912B
Patent Text Reader

Abstract

The present disclosure relates to a method and related device for controlling a Hall motor system. The method includes: in response to determining that the current position of the motor is outside a preset protection range, assigning a current Hall value to a first reference value; moving the motor to a working position until determining that the current position of the motor is within a preset protection range; continuing to move the motor to the working position, and when the motor reaches the working position, assigning the current Hall value to a preset maximum Hall stroke; moving the motor to a rest position until determining that the current position of the motor is outside the preset protection range; continuing to move the motor to the rest position, and when the motor reaches the rest position, in response to determining that the difference between the preset maximum Hall stroke and the current Hall value is between the preset maximum Hall stroke and the preset minimum Hall stroke, calibrating the Hall stroke to the difference between the preset maximum Hall stroke and the current Hall value, and then calibrating the current Hall value to 0.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of vehicle electronics, and more particularly to a method, system, computing device, and non-transitory storage medium for controlling a Hall motor system. Background Art

[0002] In the motor system, the motor can drive the mechanical structure to rotate or move under the control of the controller and the motor driver, thereby achieving the desired function. Depending on whether the motor has a built-in Hall sensor, the motor system can include a non-Hall motor system and a Hall motor system.

[0003] In a non-Hall motor system, the controller can determine the current motion state of the motor through the motor current, and then control the motor driver to supply power to the motor based on this current to achieve drive control of the mechanical structure. However, since the non-Hall motor system cannot accurately determine the rotor position, its control accuracy is poor and the startup is not smooth.

[0004] In the Hall motor system, the controller can determine the current motion state of the motor through the Hall signal of the motor, and then control the power supply of the motor driver to the motor based on the Hall signal to achieve drive control of the mechanical structure. Since the Hall motor system can achieve precise positioning, commutation, follow-up rotation angle and speed control, it is currently widely used in various actuator modules (for example, window modules, seat modules, car trailer box modules, etc.) in the on-board electronic control units of various vehicles such as traditional cars and new energy vehicles.

[0005] However, compared with motor control based on motor current in non-Hall motor systems, motor control based on Hall signals in Hall motor systems is more complicated. Poor control methods may cause motor functional degradation or even complete failure. Therefore, an improved method for controlling Hall motor systems is needed. Summary of the invention

[0006] According to a first aspect of the present disclosure, a method for controlling a Hall motor system is provided, the Hall motor system comprising a motor and a Hall sensor, the method comprising performing a first initialization of the Hall motor system by the following operations: in response to determining that the current position of the motor is outside a preset protection range from a working position of the motor, assigning a current Hall value provided by the Hall sensor to a first reference value, the first reference value being set so that the Hall stroke of the motor when moving from the current position to the working position does not exceed the sum of a preset reference Hall stroke of the motor and an absolute value of a preset Hall stroke error; causing the motor to move toward the working position until determining that the current position of the motor is within the preset protection range from the working position; and continuing to cause the motor to move toward the working position. The motor moves toward the working position, and when it is determined that the motor has reached the working position, the current Hall value provided by the Hall sensor is assigned as the preset maximum Hall stroke of the motor; the motor is moved toward the rest position of the motor until it is determined that the current position of the motor is outside the preset protection range from the working position; the motor continues to move toward the rest position, and when it is determined that the motor has reached the rest position, in response to determining that the difference between the preset maximum Hall stroke and the current Hall value provided by the Hall sensor is between the preset maximum Hall stroke and the preset minimum Hall stroke of the motor, the Hall stroke of the motor is calibrated as the difference between the preset maximum Hall stroke and the current Hall value, and then the current Hall value is calibrated to 0.

[0007] According to a second aspect of the present disclosure, a system for controlling a Hall motor system including a motor, a Hall sensor and a limit switch is provided, the system comprising: a drive unit configured to provide a drive signal to the motor; a detection unit configured to detect the current of the motor; a control unit configured to generate and provide a control signal to the drive unit based on a current detection signal from the detection unit, a Hall signal from the Hall sensor and a safety switch signal from the limit switch, wherein the drive unit is configured to generate the drive signal based on a control signal received from the control unit, and wherein the control unit is configured to perform the method described in any embodiment of the first aspect of the present disclosure.

[0008] According to a third aspect of the present disclosure, a computing device for controlling a Hall motor system is provided, the computing device comprising: one or more processors; and a memory storing computer executable instructions, wherein the computer executable instructions, when executed by the one or more processors, enable the one or more processors to execute the method described in any embodiment of the first aspect of the present disclosure.

[0009] According to a fourth aspect of the present disclosure, there is provided a non-volatile storage medium having computer executable instructions stored thereon, wherein when the computer executable instructions are executed by a computer, the computer executes the method according to any embodiment of the first aspect of the present disclosure.

[0010] Other features and advantages of the present disclosure will become more apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The foregoing and other features and advantages of the present disclosure will become apparent from the following description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are incorporated herein and form a part of the specification, and are further used to explain the principles of the present disclosure and enable those skilled in the art to make and use the present disclosure. Among them:

[0012] Figure 1 is a flow chart illustrating a method for controlling a Hall motor system according to some embodiments of the present disclosure;

[0013] Figure 2 is a flow chart illustrating a non-limiting example process for performing initialization of a Hall motor system according to some embodiments of the present disclosure;

[0014] Figure 3 is a flow chart illustrating a non-limiting example process for recalling motor position after completing initialization of a Hall motor system according to some embodiments of the present disclosure.

[0015] Figure 4 is a flow chart illustrating a non-limiting example process for controlling a Hall motor system according to a control command after completing initialization of the Hall motor system according to some embodiments of the present disclosure;

[0016] Figure 5 is a flow chart illustrating a non-limiting example process for controlling a Hall motor system according to a control command instructing the motor to move to a working position after initialization of the Hall motor system is completed according to some embodiments of the present disclosure;

[0017] Figure 6 is a flow chart illustrating a non-limiting example process for controlling a Hall motor system according to a control command instructing the motor to move to a rest position after initialization of the Hall motor system is completed according to some embodiments of the present disclosure;

[0018] Figure 7 is a flow chart illustrating a non-limiting example process for calling back a motor position after controlling a motor to reach a rest position according to a control command instructing the motor to move toward a rest position according to some embodiments of the present disclosure;

[0019] Figure 8 is a schematic block diagram showing a system for controlling a Hall motor system according to some embodiments of the present disclosure, in which a method for controlling a Hall motor system according to various embodiments of the present disclosure may be implemented;

[0020] Fig. 9 It is shown Figure 8 A schematic block diagram of a non-limiting example implementation of a system;

[0021] Fig.10 is a schematic block diagram illustrating a computing device for controlling a Hall motor system according to some embodiments of the present disclosure.

[0022] Note that in the embodiments described below, sometimes the same reference numerals are used in common between different drawings to represent the same parts or parts with the same functions, and their repeated descriptions are omitted. In some cases, similar numbers and letters are used to represent similar items, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0023] For ease of understanding, the position, size, range, etc. of each structure shown in the drawings and the like may not represent the actual position, size, range, etc. Therefore, the present disclosure is not limited to the position, size, range, etc. disclosed in the drawings and the like. DETAILED DESCRIPTION

[0024] Various exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0025] The following description of at least one exemplary embodiment is in fact merely illustrative and is in no way intended to limit the present disclosure and its application or use. That is, the structures and methods herein are shown in an exemplary manner to illustrate different embodiments of the structures and methods in the present disclosure. However, those skilled in the art will appreciate that they merely illustrate exemplary ways of the present disclosure that can be implemented, rather than exhaustive ways. In addition, the drawings need not be drawn to scale, and some features may be enlarged to illustrate the details of specific components.

[0026] In addition, technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0027] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0028] A method for controlling a Hall motor system according to one aspect of the present disclosure is described in detail below with reference to the accompanying drawings. Such a Hall motor system includes a motor and a Hall sensor. Figure 1 A method 100 for controlling a Hall motor system according to some embodiments of the present disclosure is depicted, and Figures 2 to 7 Some non-limiting example processes for controlling a Hall motor system according to method 100 are depicted.

[0029] The motor can move between a working position (work) and a resting position (rest). As a non-limiting example, the movement of the motor from the working position to the resting position can be referred to as a folding action, and the movement of the motor from the resting position to the working position can be referred to as an unfolding action. For example, for a rotary motor, the rotary motor can rotate forward when performing an unfolding action and reverse when performing a folding action, and accordingly the Hall value provided by the Hall sensor can increase when the rotary motor rotates forward and decrease when the rotary motor reverses. The difference between the Hall value provided by the Hall sensor when the motor is in the working position and the Hall value provided by the Hall sensor when the motor is in the resting position can be referred to as the Hall stroke of the motor. The current position of the motor can be determined by the Hall stroke of the motor and the Hall value currently provided by the Hall sensor.

[0030] However, when the Hall motor system is not initialized, the Hall stroke of the motor is not accurately calibrated, so the Hall signal cannot be used to accurately determine the position of the motor. In other words, when the Hall motor system is not initialized, the Hall sensor function of the Hall motor system is basically lost, and the Hall motor system is only equivalent to a non-Hall motor system.

[0031] Although the Hall sensor function cannot be used normally before the Hall motor system is initialized, the operating state of the motor can still be judged by the motor current. In some embodiments, the method 100 may include, before the Hall motor system is initialized: determining whether the motor current exceeds the preset initialization maximum current of the motor; in response to determining that the motor current does not exceed the preset initialization maximum current, determining whether the motor current exceeds the preset working position stall current of the motor; in response to determining that the motor current does not exceed the preset working position stall current, initializing the Hall motor system (for example, described later) Figure 2The process shown); and in response to determining that the current of the motor exceeds a preset initialization maximum current, or in response to determining that the current of the motor exceeds a preset working position stall current, determining that the motor is operating abnormally. As a non-limiting example, after the Hall motor system is powered on, the current of the motor can be detected and it can be determined whether the current exceeds the preset initialization maximum current (e.g., 5A) for multiple consecutive cycles (e.g., 30 cycles). If so, it is determined that the motor is operating abnormally; then, it can be determined whether the current exceeds the preset working position stall current (e.g., 3A) for multiple consecutive cycles (e.g., 30 cycles). If so, it is determined that the motor is operating abnormally.

[0032] In order to use the Hall sensor function of the Hall motor system normally, the Hall motor system must be initialized. Figure 1 As shown, the method 100 may include performing initialization of the Hall motor system by the following operations.

[0033] At step S102, in response to determining that the current position of the motor is outside the preset protection range from the working position of the motor, the current Hall value provided by the Hall sensor is assigned to a first reference value. The first reference value can be set so that the Hall stroke of the motor when it moves from the current position to the working position does not exceed the sum of the preset reference Hall stroke of the motor and the absolute value of the preset Hall stroke error. In other words, the first reference value can be set so that the Hall value provided by the Hall sensor when the motor moves from the current position to the working position will not fail, regardless of the current position. For example, the first reference value can be set to 0.

[0034] The preset protection range is an area near the working position of the motor. For example, assuming that the Hall value provided by the Hall sensor when the motor is in the rest position is 0, and the Hall value provided by the Hall sensor when the motor is in the working position is 300, then the preset protection range can be set to a motor position range corresponding to the Hall value of 250 to 300. By setting such a protection range, it is helpful to detect whether the motor is about to reach the working position, so that after detecting that the motor position enters the protection range, actions such as reducing the motor speed can be taken to protect the motor.

[0035] In step S104, the motor is moved toward the working position until it is determined that the current position of the motor is within a preset protection range from the working position.

[0036] At step S106 , the motor continues to move toward the working position (eg, at a reduced speed), and when it is determined that the motor reaches the working position, the current Hall value provided by the Hall sensor is assigned as a preset maximum Hall stroke of the motor.

[0037] At step S108 , the motor is moved toward the rest position of the motor until it is determined that the current position of the motor is outside a preset protection range from the working position.

[0038] At step S110, the motor continues to move toward the rest position, and when it is determined that the motor reaches the rest position, in response to determining that the difference between the preset maximum Hall stroke and the current Hall value provided by the Hall sensor is between the preset maximum Hall stroke and the preset minimum Hall stroke of the motor, the Hall stroke of the motor is calibrated to the difference between the preset maximum Hall stroke and the current Hall value, and then the current Hall value is calibrated to 0.

[0039] The preset reference Hall stroke, the preset Hall stroke error absolute value, the preset maximum Hall stroke and the preset minimum Hall stroke can be specifically set according to actual conditions, for example, they can be values ​​specified in the specification of the Hall motor system.

[0040] In some embodiments, the Hall motor system may further include a limit switch, so that the position of the motor may be determined to be outside or inside a preset protection range by a safety switch signal provided by the limit switch. Specifically, in some examples, the current position of the motor may be determined to be outside the preset protection range from the working position by determining that the safety switch signal provided by the limit switch is in an activated state, and the current position of the motor may be determined to be within the preset protection range from the working position by determining that the safety switch signal provided by the limit switch is in an inactivated state, and vice versa. Therefore, although the Hall sensor function cannot be used normally at this time, resulting in the inability to know the accurate motor position, the motor position can still be roughly determined by the safety switch signal. In addition to the limit switch, other suitable means now known or later developed (such as but not limited to a proximity sensor configured to measure its proximity to the motor at or near the working position) may be used to determine whether the position of the motor is outside or inside the preset protection range.

[0041] In some embodiments, at step S106, it can be determined that the motor has reached the working position by determining that the current of the motor exceeds the preset working position stall current of the motor. In some embodiments, at step S110, it can be determined that the motor has reached the rest position by determining that the current of the motor exceeds the preset initialization maximum current of the motor. In addition, as described later, for a Hall motor system that has been successfully initialized, it can be determined that the motor has reached the rest position by, for example, determining that the current of the motor exceeds the preset rest position stall current of the motor. The preset working position stall current, the preset rest position stall current, and the preset initialization maximum current can be specifically set according to actual conditions, for example, they can be values ​​specified in the specification of the Hall motor system.

[0042] In some embodiments, during the period of moving the motor to the working position at step S104 until the current position of the motor is determined to be within the preset protection range from the working position, the method 100 may also include stopping the motor in response to determining that the current of the motor exceeds the preset initialization maximum current of the motor. In some embodiments, during the period of moving the motor to the rest position of the motor at step S108 until the current position of the motor is determined to be outside the preset protection range from the working position, the method 100 may also include: stopping the motor in response to determining that the current of the motor exceeds the preset initialization maximum current of the motor; and / or stopping the motor in response to determining that the current Hall value provided by the Hall sensor is less than the maximum Hall value for activating the safety switch signal and determining that the safety switch signal is in an inactive state. Such a maximum Hall value for activating the safety switch signal can be specifically set according to actual conditions, for example, it can be a value specified in the specification of the Hall motor system. For example, for the example described above, assuming that the preset protection range is set to a motor position range corresponding to Hall values ​​250 to 300, the maximum Hall value for activating the safety switch signal can be 250.

[0043] In addition, steps S102 to S110 describe how to perform initialization when the motor is initially outside the preset protection range. When the motor is initially within the preset protection range, method 100 may, for example, include performing initialization of the Hall motor system by the following operations: a first operation, in response to determining that the current position of the motor is within the preset protection range from the working position, assigning the current Hall value provided by the Hall sensor to a second reference value, the second reference value may be set so that the Hall stroke when the motor moves from the current position to the rest position does not exceed the sum of the preset reference Hall stroke and the absolute value of the preset Hall stroke error, in other words, the second reference value may be set so that the Hall value provided by the Hall sensor when the motor moves from the current position to the rest position does not fail, regardless of the current position, for example, the second reference value may be set to a preset maximum Hall stroke; a second operation, moving the motor toward the rest position until it is determined that the current position of the motor is outside the preset protection range from the working position; a third operation, performing initialization by executing steps S102 to S110. In some embodiments, during the aforementioned second operation, method 100 may also include: stopping the motor in response to determining that the current of the motor exceeds a preset initialization maximum current; and / or stopping the motor in response to determining that the current Hall value provided by the Hall sensor is less than the maximum Hall value for activating the safety switch signal and determining that the safety switch signal is in an inactive state.

[0044] Figure 2A non-limiting example process for initializing a Hall motor system is depicted. In S202, first determine whether the safety switch signal is in an activated state. If the determination is "yes", it means that the current position of the motor is outside the preset protection range, and thus it is possible to proceed to S204 to assign the current Hall value to the first reference value "0". Next, in S206, the motor is moved to the working position. During this period, it is determined whether the safety switch signal is still in an activated state (S208). If the determination is "yes", it means that the current position of the motor is still outside the preset protection range, and thus it is possible to return to S206 to allow the motor to continue to move to the working position. In particular, during this period, it is also possible to determine whether the motor current I m Is it greater than the preset initialization maximum current I imax (S210), once it is determined that m >I imax If the result of S208 is "No", it means that the current position of the motor has entered the preset protection range, so it can proceed to S212 to make the motor continue to move to the working position, and during this period, the motor current I is detected. m Is it greater than the preset working position stall current I wp (S214). If it is determined that m >I wp , it means that the motor has reached the working position, and the motor can be stopped at this time (S216), and the current Hall value is assigned to the preset maximum Hall stroke (S218).

[0045] Next, the process proceeds to S220, the motor is moved to the rest position, and the motor current I is detected during this period. m Is it greater than the preset initialization maximum current I imax (S222) and whether the current Hall value is less than the maximum Hall value for activating the safety switch signal (S224). Once it is determined that m >I imax, you can proceed to S250 to stop the motor to prevent the motor from being damaged. So far, this initialization has failed, and you may need to further confirm the fault or reinitialize. In addition, if the current Hall value is not less than the maximum Hall value used to activate the safety switch signal, it means that the motor should still be within the preset protection range, and the motor can continue to move to the rest position. However, if the current Hall value is less than the maximum Hall value used to activate the safety switch signal (the safety switch signal should be activated at this time), but it is determined in S226 that the safety switch signal is still not in the activated state, you can proceed to S250 to stop the motor to prevent the motor from being damaged. So far, this initialization has failed, and you may need to further confirm the fault or reinitialize. Normally, if the current Hall value is less than the maximum Hall value used to activate the safety switch signal (S224 is judged as "yes") and the safety switch signal is in the activated state (S226 is judged as "yes"), it means that the motor has currently left the preset protection range.

[0046] Next, the process may proceed to S228 to continue moving the motor toward the rest position, and during this period, the motor current I m Is it greater than the preset initialization maximum current I imax (S230). If it is determined that m >I imax , it means that the motor has reached the rest position. At this time, it can be determined whether the difference between the preset maximum Hall stroke and the current Hall value is between the preset maximum Hall stroke and the preset minimum Hall stroke (S232). If it is judged as "yes" in S232, the Hall stroke of the motor can be calibrated to the difference between the preset maximum Hall stroke and the current Hall value (S234), and then the motor is stopped (S236), and the current Hall value is calibrated to 0 (S238). If it is judged as "no" in S232, it can proceed to S250 to stop the motor to prevent damage to the motor. At this point, the initialization has failed, and it may be necessary to further confirm the fault condition or reinitialize.

[0047] On the other hand, if the judgment is "No" in S202, it means that the current position of the motor is within the preset protection range, and thus it is possible to proceed to S240 to assign the current Hall value to the second reference value "preset maximum Hall stroke". Next, the motor is moved to the rest position (S242), and during this period, it is detected whether the safety switch signal is in an activated state (S244). If the judgment is "Yes" in S244, it means that the current position of the motor is already outside the preset protection range, and at this time, it is possible to proceed to S202 or S204 to continue initialization. If the judgment is "No" in S244, it means that the current position of the motor is still within the preset protection range, and during this period, the motor current I can be detected. m Is it greater than the preset initialization maximum current I imax(S246) and whether the current Hall value is less than the maximum Hall value for activating the safety switch signal (S248). m >I imax , you can proceed to S250 to stop the motor to prevent damage to the motor. At this point, the initialization has failed, and you may need to further confirm the fault or reinitialize. In addition, if the current Hall value is not less than the maximum Hall value used to activate the safety switch signal, it means that the motor should still be within the preset protection range, and the motor can continue to move to the rest position. However, if the current Hall value is less than the maximum Hall value used to activate the safety switch signal (the safety switch signal should be activated at this time), but it has been determined in S244 that the safety switch signal is still not in the activated state, you can proceed to S250 to stop the motor to prevent damage to the motor. At this point, the initialization has failed, and you may need to further confirm the fault or reinitialize.

[0048] pass Figure 2 The non-limiting example process shown can clearly understand how to initialize the Hall motor system according to the above method 100. Figure 2 In the process shown, multiple detection links (S210, S222, S226, S232, S246, S248) are set to stop the motor in time to prevent the motor from being damaged.

[0049] In some embodiments, after completing the initialization of the Hall motor system, method 100 may further include moving the motor from a rest position to a working position until the motor is stopped when one of the following is met: when the motor moves to a certain position, the current Hall value provided by the Hall sensor reaches the preset relaxation Hall value of the motor; the time for the motor to move from the rest position to the working position reaches the preset maximum relaxation time of the motor. Both the preset relaxation Hall value and the preset maximum relaxation time can be specifically set according to actual needs. For example, the preset relaxation Hall value can be set to no more than 10, or no more than 5, for example, 3. Alternatively, the preset relaxation Hall value can be set to no more than 5%, or no more than 3%, or no more than 1% of the Hall stroke. The preset maximum relaxation time can be set, for example, to no more than 1s, or no more than 500ms, for example, 200ms. Specifically, refer to Figure 3 After the initialization is successful (at this time, the motor is in the rest position), the motor can be moved to the working position (S252), and during this period, it is detected whether the current Hall value reaches the preset relaxation Hall value (S254) and whether the motor movement time reaches the preset maximum relaxation time (S256). Once one of them is met, it can proceed to S258 to stop the motor. Through such reverse fine-tuning, it is more conducive to protecting the life of the motor than keeping the motor folded in the rest position.

[0050] The Hall motor system that has been successfully initialized can normally use both the current-based motor control function and the Hall signal-based motor control function. Specifically, in some embodiments, after completing the initialization of the Hall motor system, the method 100 may also include: in response to receiving a control command for the motor, obtaining the current Hall value from the Hall sensor to determine the current position of the motor, and causing the motor to operate according to the control command; after waiting for a preset delay current detection time, in the case where it is determined that the movement time of the motor at this time does not reach the preset single maximum running time of the motor, in response to determining that the current of the motor is greater than the preset stall current of the corresponding position of the motor, it is determined that the motor has moved to the corresponding position in the working position and the rest position according to the control command. In particular, the Hall stroke can be recalibrated at this time to eliminate the cumulative error of the Hall stroke. That is, in the method according to the present disclosure, even if the Hall stroke of the motor has been calibrated in the initialization stage, active learning can still be continued to correct the calibration of the Hall stroke during subsequent operation.

[0051] For example, when the control command instructs the motor to move to the working position, method 100 may include: moving the motor toward the working position until it is determined that the current Hall value provided by the Hall sensor is not less than the difference between a preset reference Hall stroke and an absolute value of a preset Hall stroke error; continuing to move the motor toward the working position, and when it is determined that the current Hall value provided by the Hall sensor is less than the sum of the preset reference Hall stroke and the absolute value of the preset Hall stroke error, determining that the motor has reached the working position by determining that the current of the motor exceeds the preset working position stall current of the motor; when it is determined that the motor has reached the working position, in response to determining that the current Hall value provided by the Hall sensor is between a preset maximum Hall stroke and a preset minimum Hall stroke, recalibrating the Hall stroke of the motor to the current Hall value.

[0052] In some examples, method 100 may also include, during the period of moving the motor to the working position until it is determined that the current Hall value provided by the Hall sensor is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value, in response to determining that the current of the motor exceeds the preset rest maximum current of the motor (which can be specifically set according to actual conditions, for example, it can be a value specified in the specification of the Hall motor system), stopping the motor for a preset time length, and then moving the motor to the rest position. The preset time length can be specifically set according to actual conditions, for example, it can be between 0.5s and 5s, or between 1s and 2s, etc. This can provide a motor anti-pinch function by detecting a pinching event based on the current (for example, for a Hall motor system used in a window module, a passenger's hand may be pinched during the movement of the window), and then reversing / stopping the motor to handle the pinching event.

[0053] In some examples, the method 100 may further include, during the period of continuing to move the motor toward the working position after determining that the current Hall value provided by the Hall sensor is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value, stopping the motor in response to determining that the current Hall value provided by the Hall sensor is not less than the sum of the preset reference Hall stroke and the preset Hall stroke error absolute value. In some examples, the method 100 may further include, when determining that the motor reaches the working position, stopping the motor in response to determining that the current Hall value provided by the Hall sensor is not between the preset maximum Hall stroke and the preset minimum Hall stroke.

[0054] For another example, when the control command instructs the motor to move to the rest position, method 100 may include: assigning the motor's calibrated Hall stroke to the current Hall value provided by the Hall sensor; moving the motor to the rest position until it is determined that the current Hall value provided by the Hall sensor is not greater than a preset Hall stroke error absolute value; continuing to move the motor to the rest position, and when it is determined that the current Hall value provided by the Hall sensor is greater than the negative value of the preset Hall stroke error absolute value, determining that the motor has reached the rest position by determining that the motor's current exceeds the preset rest position stall current of the motor; when it is determined that the motor has reached the rest position, in response to determining that the absolute value of the difference between the current Hall value provided by the Hall sensor and the motor's calibrated Hall stroke is between a preset maximum Hall stroke and a preset minimum Hall stroke, recalibrating the current Hall value to 0.

[0055] In some examples, the method 100 may also include, during the period of moving the motor toward the rest position until it is determined that the current Hall value provided by the Hall sensor is less than the preset Hall stroke error absolute value of the motor, in response to determining that the current of the motor exceeds the preset maximum working current of the motor (which can be specifically set according to actual conditions, for example, it can be a value specified in the specification of the Hall motor system), stopping the motor for a preset time length, and then moving the motor toward the working position. The preset time length can be specifically set according to actual conditions, for example, between 0.5s and 5s, or between 1s and 2s, etc. This also provides a motor anti-pinch function.

[0056] In some examples, the method 100 may also include, during the period of continuing to move the motor to the rest position after determining that the current Hall value provided by the Hall sensor is not greater than the preset Hall stroke error absolute value, in response to determining that the current Hall value provided by the Hall sensor is not greater than the negative value of the preset Hall stroke error absolute value, stopping the motor. In some examples, the method 100 may also include, when determining that the motor has reached the rest position, in response to determining that the absolute value of the difference between the current Hall value provided by the Hall sensor and the motor calibrated Hall stroke is not between the preset maximum Hall stroke and the preset minimum Hall stroke, stopping the motor. In some examples, after determining that the motor has reached the rest position or after recalibrating the current Hall value to 0, the method 100 may also include moving the motor from the rest position to the working position until the motor is stopped when one of the following is met: when the motor moves to a certain position, the current Hall value provided by the Hall sensor reaches the preset relaxation Hall value of the motor; the time for the motor to move from the rest position to the working position reaches the preset maximum relaxation time of the motor. As described above, by such reverse fine-tuning, the life of the motor can be protected.

[0057] In some embodiments, the method 100 may further include, after receiving the control command to the motor, in response to receiving a stop command to the motor, stopping the motor. That is, once the stop command is received, the motor may be stopped regardless of how the previous control command is executed.

[0058] In addition, the state machine can also be used to control the motor according to the received control command, so as to allow the execution state of the motor to be switched in each cycle, and wherein in each cycle, after waiting for the preset delay current detection time, it can be determined whether the movement time of the motor at this time reaches the preset single maximum running time of the motor and whether the current of the motor is greater than the preset stall current of the corresponding position of the motor. The duration of each cycle can be set, for example, in the order of a few milliseconds to several hundred milliseconds, for example, it can be set to 10ms.

[0059] Figure 4A non-limiting example process for operating a Hall motor system according to a control command is depicted. First, determine what control command is received (S302). If the control command is a stop command, the execution state of the motor is set to EXEC_STOP (S304), that is, the motor is stopped in response to the stop command. If the control command is a folding command, indicating that the motor moves from the working position (or the intermediate position between the working position and the rest position) to the rest position, the current Hall value (S306) can be obtained to determine the current position of the motor, and the execution state of the motor is set to EXEC_FOLD (S308). It can also be determined at S310 whether a stop command is currently received, and once the stop command is received, proceed to S304 to stop the motor. Next, the motor performs a folding action (S312) and moves from the working position (or the intermediate position between the working position and the rest position) to the rest position. During this period, it can be detected whether the preset delay current detection time (S314) is reached. The preset delay current detection time can be appropriately set according to specific needs, for example, it is set to no more than 1s, or no more than 500ms, for example, 300ms. After waiting for the preset delay current detection time, it can be determined whether the current motor running time has reached the preset single maximum running time (S316). The preset single maximum running time can be appropriately set according to specific needs, for example, it is set to no more than 30s, or no more than 20s, or no more than 15s, for example, 12s. Once the preset single maximum running time has been exceeded, proceed to S338 to set the execution state of the motor to EXEC_END, that is, terminate the operation of the motor. In the case that the movement time of the motor does not reach the preset single maximum running time, the current I of the motor is detected. m Is it greater than the preset rest position stall current I rp (S318). m rp This means that the motor has not reached the rest position, so you can continue to fold and detect the current. m >I rp This indicates that the motor has reached the rest position (S320). At this time, the motor can be optionally Figure 6 The steps S3382-S3384 shown are used to recalibrate the Hall stroke. After S320, the process can proceed to S338 to set the execution state of the motor to EXEC_END, that is, terminate the operation of the motor.

[0060] like Figure 6 ​As shown, the motor can currently be in the working position (or an intermediate position between the working position and the resting position). Receive a control command instructing the motor to move to the resting position (S3362). Assign the motor calibration Hall stroke to the current Hall value (S3364), and then move the motor to the resting position (S3366). During this period, the motor current I m Whether it exceeds the preset maximum working current I of the motor wmax (S3368) and determine whether the current Hall value is not greater than the preset Hall stroke error absolute value (S3374). Once it is determined that m >I wmax , stop the motor for a preset time, such as 1s (S3370), and then move the motor to the working position (S3372). If the current Hall value corresponding to the current position of the motor is still greater than the preset Hall stroke error absolute value, the motor continues to move to the rest position until the current Hall value corresponding to the motor moves to a certain position is not greater than the preset Hall stroke error absolute value. Next, continue to move the motor to the rest position (S3376), during which time determine whether the current Hall value is greater than the negative value of the preset Hall stroke error absolute value (S3378) and detect the motor current I m Whether the motor's preset rest position stall current I is exceeded rp (S3380). Once it is found that the current Hall value corresponding to the current position of the motor is not greater than the negative value of the preset Hall stroke error absolute value, the motor is stopped (S3386). If the current Hall value remains greater than the negative value of the preset Hall stroke error absolute value during the movement of the motor to the rest position, then when I m >I rp , indicating that the motor has reached the rest position. At this time, it can be determined whether the absolute value of the difference between the current Hall value and the motor calibrated Hall stroke is between the preset maximum Hall stroke and the preset minimum Hall stroke (S3382). If "yes", the current Hall value is recalibrated to 0 (S3384). If "no", the motor is stopped (S3386).

[0061] Further references Figure 7 After S3380 determines that the motor has reached the rest position ("Yes"), in order to protect the life of the motor, the motor position can also be reversely fine-tuned. Specifically, the motor can be moved to the working position (S3392), and during this period, it is detected whether the current Hall value reaches the preset relaxation Hall value (S3394) and whether the motor movement time reaches the preset maximum relaxation time (S3396). Once one of them is met, it can proceed to S3398 to stop the motor.

[0062] Return to reference Figure 4, if it is determined in S302 that the received control command is an unfolding command, instructing the motor to move from the rest position (or the middle position between the rest position and the working position) to the working position, the current Hall value (S322) can be obtained to determine the current position of the motor, and the execution state of the motor is set to EXEC_UNFOLD (S324). It can also be determined in S326 whether a stop command is currently received, and once a stop command is received, it proceeds to S304 to stop the motor. Next, the motor performs an unfolding action (S328) and moves from the rest position (or the middle position between the rest position and the working position) to the working position, during which it can be detected whether the preset delay current detection time (S330) is reached. The preset delay current detection time can be appropriately set according to specific needs, for example, it can be set to no more than 1s, or no more than 500ms, for example, 300ms. After waiting for the preset delay current detection time, it can be determined whether the current motor running time has reached the preset single maximum running time (S332). The preset single maximum operation time can be appropriately set according to specific needs, for example, it is set to no more than 30s, or no more than 20s, or no more than 15s, for example, 12s. Once the preset single maximum operation time has been exceeded, the process proceeds to S338 to set the execution state of the motor to EXEC_END, that is, to terminate the operation of the motor. When the movement time of the motor does not reach the preset single maximum operation time, the current I of the motor is detected. m Is it greater than the preset working position stall current I wp (S334). m wp This means that the motor has not reached the working position, and you can continue to expand and detect the current. m >I wp This indicates that the motor has reached the working position (S336). At this time, the motor can be optionally Figure 5 The steps S3222-S3224 shown are used to recalibrate the Hall stroke. After S336, the process proceeds to S338 to set the execution state of the motor to EXEC_END, ie, terminate the operation of the motor.

[0063] like Figure 5 As shown, the motor may be currently in a rest position (or an intermediate position between the rest position and the working position). A control command instructing the motor to move toward the working position is received (S3202). The motor is caused to move toward the working position (S3204), during which the current I of the motor is detected. m Whether it exceeds the preset maximum rest current I of the motor rmax (S3206) and determine whether the current Hall value is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value (S3212). Once it is determined that m >I​rmax , stop the motor for a preset time, such as 1s (S3208), and then move the motor to the rest position (S3210). If the current Hall value corresponding to the current position of the motor is still smaller than the difference between the preset reference Hall stroke and the absolute value of the preset Hall stroke error, the motor continues to move to the working position until the current Hall value corresponding to the motor moves to a certain position is not less than the difference between the preset reference Hall stroke and the absolute value of the preset Hall stroke error. Next, continue to move the motor to the working position (S3214), during which time determine whether the current Hall value is less than the sum of the preset reference Hall stroke and the preset Hall stroke error absolute value (S3216) and detect the motor current I m Whether it exceeds the motor's preset working position stall current I wp (S3218). Once it is found that the current Hall value corresponding to the current position of the motor is not less than the sum of the preset reference Hall stroke and the absolute value of the preset Hall stroke error, the motor is stopped (S3220). If the current Hall value remains less than the sum of the preset reference Hall stroke and the absolute value of the preset Hall stroke error during the movement of the motor to the working position, then when I m >I wp , indicating that the motor has reached the working position. At this time, it can be determined whether the current Hall value is between the preset maximum Hall stroke and the preset minimum Hall stroke (S3222). If "yes", the Hall stroke of the motor is recalibrated to the current Hall value (S3224). If "no", the motor is stopped (S3220).

[0064] The method disclosed in the present invention can properly initialize the Hall motor system so that accurate and robust motor control can be achieved through both motor current and Hall stroke during the normal operation of the Hall motor system, and also supports the learning function of the motor Hall stroke so that the Hall stroke can be recalibrated during the operation of the Hall motor system to eliminate the accumulated error. The method disclosed in the present invention can also provide a motor anti-pinch function and a reverse fine-tuning function after the motor stops, so as to promote the safe use of the motor and protect the service life of the motor.

[0065] refer to Figure 8 In another aspect, the present disclosure provides a system 800 for controlling a Hall motor system including a motor, a Hall sensor, and a limit switch. The above method of the present disclosure can be implemented in such a system 800. Figure 8As shown, the system 800 includes a drive unit 802, a detection unit 804 and a control unit 806. The drive unit 802 is configured to provide a drive signal to the motor. The detection unit 804 is configured to detect the current of the motor. The control unit 806 is configured to generate and provide a control signal to the drive unit 802 based on the current detection signal from the detection unit 804, the Hall signal from the Hall sensor and the safety switch signal from the limit switch. The drive unit 802 is configured to generate a drive signal for the motor based on the control signal received from the control unit 806. Specifically, the control unit 806 can be configured to perform the method described in any of the foregoing embodiments of the present disclosure. In some examples, the detection unit 804 can be integrated in the drive unit 802. In other words, the drive unit 802 can be configured to be integrated with a current detection capability.

[0066] Fig. 9 Depicted Figure 8 A non-limiting example implementation of a system 800 is shown, in which a Hall motor system 90 and a system 80 for controlling the Hall motor system 90 are shown. A control unit 806 of the system 800 is Fig. 9 In the embodiment, the microcontroller MCU 84 of the system 80 is implemented, and the GPIO port of the MCU 84 with the input capture function can be connected to the Hall signal line of the Hall motor system 90. For example, the MCU 84 can count the Hall pulses by triggering an interrupt on a rising edge. For example, taking the rotating motor described above as an example, the Hall value (Hall pulse number) provided by the Hall sensor 94 can be increased by 1 when the rotating motor rotates forward one circle and decreased by 1 when the rotating motor rotates reversely one circle. The driving unit 802 and the detection unit 804 of the system 800 are both in Fig. 9 The motor driver 82 of the VNH7040 full-bridge chip introduced in the system 80 is integrated and implemented, and the motor driver 82 can be connected to the GPIO port with output function of the MCU84. The VNH7040 full-bridge chip integrates the current diagnosis function, so that the motor driver 82 can detect the current of the motor 92 of the Hall motor system 90 and provide the current detection signal to the MCU 84. The MCU 84 can generate a control signal based on the current detection signal about the motor 92 from the motor driver 82, the Hall signal from the Hall sensor 94, and the safety switch signal from the limit switch 96, and provide the generated control signal to the motor driver 82, and the motor driver 82 can generate a drive signal based on the received control signal and provide the generated drive signal to the motor 92. Specifically, the MCU 84 can be configured to execute the method described in any of the aforementioned embodiments of the present disclosure and coordinately control the Hall motor system 90 with the motor driver 82.

[0067] In another aspect, the present disclosure further provides a computing device for controlling a Hall motor system, which may include one or more processors and a memory storing computer executable instructions, wherein the computer executable instructions, when executed by the one or more processors, enable the one or more processors to execute the method for controlling a Hall motor system according to any of the aforementioned embodiments of the present disclosure. Fig.10 As shown, the computing device 1000 may include (one or more) processors 1002 and a memory 1004 storing computer executable instructions, which, when executed by (one or more) processors 1002, cause (one or more) processors 1002 to perform the method for controlling the Hall motor system according to any of the foregoing embodiments of the present disclosure. (One or more) processors 1002 may be, for example, a central processing unit (CPU) of the computing device 1000. (One or more) processors 1002 may be any type of general-purpose processor, or may be a processor specifically designed for controlling the Hall motor system, such as an application-specific integrated circuit ("ASIC"). The memory 1004 may include various computer-readable media accessible by (one or more) processors 1002. In various embodiments, the memory 1004 described herein may include volatile and non-volatile media, removable and non-removable media. For example, the memory 1004 may include any combination of the following: random access memory ("RAM"), dynamic RAM ("DRAM"), static RAM ("SRAM"), read-only memory ("ROM"), flash memory, cache memory, and / or any other type of non-transitory computer-readable media. The memory 1004 may store instructions that, when executed by the processor 1002 , enable the processor 1002 to perform the method for controlling a Hall motor system according to any of the aforementioned embodiments of the present disclosure.

[0068] On the other hand, the present disclosure further provides a non-volatile storage medium having computer executable instructions stored thereon, which, when executed by a computer, enables the computer to execute the method for controlling a Hall motor system according to any of the aforementioned embodiments of the present disclosure.

[0069] The words "left", "right", "front", "back", "top", "bottom", "up", "down", "high", "low", etc., in the specification and claims, if present, are used for descriptive purposes and are not necessarily used to describe an unchanging relative position. It should be understood that the words so used are interchangeable under appropriate circumstances, so that the embodiments of the present disclosure described herein, for example, can operate in other orientations than those shown or otherwise described herein. For example, when the device in the drawings is turned over, features previously described as being "above" other features may now be described as being "below" the other features. The device may also be oriented in other ways (rotated 90 degrees or in other orientations), and the relative spatial relationships will be interpreted accordingly.

[0070] In the specification and claims, when an element is said to be "above", "attached" to, "connected" to, "coupled" to, "coupled to", or "in contact with" another element, the element may be directly above, directly attached to, directly connected to, directly coupled to, directly coupled to, or directly in contact with another element, or one or more intermediate elements may be present. In contrast, when an element is said to be "directly" "above", "directly attached" to, "directly connected" to, "directly coupled" to, "directly coupled to", or "in direct contact with" another element, there will be no intermediate elements. In the specification and claims, a feature is arranged "adjacent" to another feature, which may refer to a feature having a portion that overlaps with an adjacent feature or a portion that is above or below an adjacent feature.

[0071] As used herein, the word "exemplary" means "serving as an example, instance, or illustration" rather than as a "model" to be exactly copied. Any implementation described as exemplary herein is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, the present disclosure is not to be limited by any expressed or implied theory given in the technical field, background, summary, or detailed description.

[0072] As used herein, the term "substantially" is intended to include any minor variations due to design or manufacturing imperfections, device or component tolerances, environmental influences, and / or other factors. The term "substantially" also allows for deviations from a perfect or ideal condition due to parasitic effects, noise, and other practical considerations that may exist in actual implementations.

[0073] In addition, the terms "first", "second" and the like may also be used herein for reference purposes only, and thus are not intended to be limiting. For example, the terms "first", "second" and other such numerical terms referring to structures or elements do not imply a sequence or order unless the context clearly indicates otherwise.

[0074] It should also be understood that when the term “include / comprises” is used in this document, it indicates the presence of the specified features, integers, steps, operations, units and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, units and / or components and / or their combinations.

[0075] In this disclosure, the term "provide" is used in a broad sense to cover all ways of obtaining an object, and thus "providing an object" includes but is not limited to "purchasing", "preparing / manufacturing", "arranging / setting up", "installing / assembling", and / or "ordering" an object, etc.

[0076] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0077] Those skilled in the art will appreciate that the boundaries between the above operations are merely illustrative. Multiple operations can be combined into a single operation, which can be distributed in additional operations, and operations can be performed at least partially overlapping in time. Moreover, alternative embodiments can include multiple instances of specific operations, and the order of operations can be changed in various other embodiments. However, other modifications, variations, and replacements are equally possible. Aspects and elements of all embodiments disclosed above can be combined in any manner and / or in combination with aspects or elements of other embodiments to provide multiple additional embodiments. Therefore, this specification and accompanying drawings should be considered illustrative, not restrictive.

[0078] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. The various embodiments disclosed herein may be combined in any manner without departing from the spirit and scope of the present disclosure. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A method for controlling a Hall motor system, the Hall motor system comprising a motor and a Hall sensor, the method comprising performing a first initialization of the Hall motor system by: In response to determining that the current position of the motor is outside a preset protection range from the working position of the motor, assigning a current Hall value provided by the Hall sensor to a first reference value, wherein the first reference value is set so that the Hall stroke of the motor when moving from the current position to the working position does not exceed the sum of a preset reference Hall stroke of the motor and an absolute value of a preset Hall stroke error; The motor is moved toward the working position until it is determined that the current position of the motor is within a preset protection range from the working position; Continue to move the motor toward the working position, and when it is determined that the motor reaches the working position, assign a current Hall value provided by the Hall sensor to a preset maximum Hall stroke of the motor; causing the motor to move toward a rest position of the motor until it is determined that the current position of the motor is outside a preset protection range from the working position; Continue to move the motor toward the rest position, and when it is determined that the motor reaches the rest position, in response to determining that the difference between the preset maximum Hall stroke and the current Hall value provided by the Hall sensor is between the preset maximum Hall stroke and the preset minimum Hall stroke of the motor, calibrate the Hall stroke of the motor to the difference between the preset maximum Hall stroke and the current Hall value, and then calibrate the current Hall value to 0.

2. The method according to claim 1, wherein: The Hall motor system also includes a limit switch, and wherein, by determining that the safety switch signal provided by the limit switch is in an activated state, it is determined that the current position of the motor is outside the preset protection range from the working position, and by determining that the safety switch signal provided by the limit switch is in an inactivated state, it is determined that the current position of the motor is within the preset protection range from the working position.

3. The method according to claim 1, wherein: During initialization, the motor reaches the working position by determining that the motor current exceeds a preset working position stall current of the motor, and the motor reaches the rest position by determining that the motor current exceeds a preset initialization maximum current of the motor.

4. The method according to claim 1, further comprising, during the period of moving the motor toward the working position until it is determined that the current position of the motor is within a preset protection range from the working position, and / or during the period of moving the motor toward the rest position of the motor until it is determined that the current position of the motor is outside the preset protection range from the working position: In response to determining that the current of the motor exceeds a preset initialization maximum current of the motor, the motor is stopped.

5. The method according to claim 2, further comprising, during the process of moving the motor toward the rest position of the motor until it is determined that the current position of the motor is outside a preset protection range from the working position: In response to determining that a current Hall value provided by the Hall sensor is less than a maximum Hall value for activating the safety switch signal and determining that the safety switch signal is in an inactive state, the motor is stopped.

6. The method according to claim 2, further comprising performing a second initialization of the Hall motor system by: In response to determining that the current position of the motor is within a preset protection range from the working position, assigning a current Hall value provided by the Hall sensor to a second reference value, wherein the second reference value is set so that the Hall stroke of the motor when moving from the current position to the rest position does not exceed the sum of the preset reference Hall stroke and the absolute value of the preset Hall stroke error; The motor is moved toward the rest position until it is determined that the current position of the motor is outside a preset protection range from the working position, and then the first initialization is performed.

7. The method according to claim 6, wherein: For the second initialization, the method further includes, during the movement of the motor toward the rest position: In response to determining that the current of the motor exceeds a preset initialization maximum current of the motor, stopping the motor; and / or In response to determining that a current Hall value provided by the Hall sensor is less than a maximum Hall value for activating the safety switch signal and determining that the safety switch signal is in an inactive state, the motor is stopped.

8. The method according to claim 6, wherein: The first reference value is set to 0, and the second reference value is set to the preset maximum Hall stroke.

9. The method according to claim 1, further comprising, after completing initialization of the Hall motor system: The motor is moved from the rest position to the working position until one of the following conditions is met and the motor is stopped: When the motor moves to a certain position, the current Hall value provided by the Hall sensor reaches a preset relaxation Hall value of the motor; The time for the motor to move from the rest position to the working position reaches a preset maximum relaxation time of the motor.

10. The method according to claim 1, further comprising, before initializing the Hall motor system: determining whether the current of the motor exceeds a preset initialization maximum current of the motor; In response to determining that the current of the motor does not exceed the preset initialization maximum current, determining whether the current of the motor exceeds a preset working position locked-rotor current of the motor; In response to determining that the current of the motor does not exceed the preset working position locked-rotor current, initializing the Hall motor system; as well as In response to determining that the current of the motor exceeds the preset initialization maximum current, or in response to determining that the current of the motor exceeds the preset working position locked-rotor current, it is determined that the motor is operating abnormally.

11. The method according to claim 1 , further comprising, after completing initialization of the Hall motor system: In response to receiving a control command for the motor, acquiring a current Hall value from the Hall sensor to determine a current position of the motor, and causing the motor to operate according to the control command; After waiting for the preset delayed current detection time, when it is determined that the movement time of the motor at this time has not reached the preset single maximum running time of the motor, in response to determining that the current of the motor is greater than the preset stall current of the corresponding position of the motor, it is determined that the motor has moved to the corresponding position among the working position and the rest position according to the control command.

12. The method according to claim 11, wherein: When the control command instructs the motor to move toward the working position, the method further includes: The motor is moved toward the working position until it is determined that the current Hall value provided by the Hall sensor is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value; Continue to move the motor toward the working position, and when it is determined that the current Hall value provided by the Hall sensor is less than the sum of the preset reference Hall stroke and the preset Hall stroke error absolute value, determine that the motor reaches the working position by determining that the current of the motor exceeds the preset working position stall current of the motor; When it is determined that the motor reaches the working position, in response to determining that the current Hall value provided by the Hall sensor is between the preset maximum Hall stroke and the preset minimum Hall stroke, the Hall stroke of the motor is recalibrated to the current Hall value.

13. The method according to claim 12, further comprising at least one of the following: During the process of moving the motor toward the working position until it is determined that the current Hall value provided by the Hall sensor is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value, in response to determining that the current of the motor exceeds the preset rest maximum current of the motor, stopping the motor for a preset time period, and then moving the motor toward the rest position; During the process of continuing to move the motor toward the working position after determining that the current Hall value provided by the Hall sensor is not less than the difference between the preset reference Hall stroke and the preset Hall stroke error absolute value, stopping the motor in response to determining that the current Hall value provided by the Hall sensor is not less than the sum of the preset reference Hall stroke and the preset Hall stroke error absolute value; When it is determined that the motor reaches the working position, in response to determining that the current Hall value provided by the Hall sensor is not between the preset maximum Hall stroke and the preset minimum Hall stroke, the motor is stopped.

14. The method according to claim 11, wherein: When the control command instructs the motor to move toward the rest position, the method further includes: Assigning the motor calibration Hall stroke to the current Hall value provided by the Hall sensor; The motor is moved toward the rest position until it is determined that the current Hall value provided by the Hall sensor is not greater than the preset Hall stroke error absolute value; Continue to move the motor toward the rest position, and when it is determined that the current Hall value provided by the Hall sensor is greater than the negative value of the preset Hall stroke error absolute value, determine that the motor reaches the rest position by determining that the current of the motor exceeds the preset rest position stall current of the motor; When it is determined that the motor reaches the rest position, in response to determining that the absolute value of the difference between the current Hall value provided by the Hall sensor and the motor calibrated Hall stroke is between the preset maximum Hall stroke and the preset minimum Hall stroke, the current Hall value is recalibrated to 0.

15. The method according to claim 14, further comprising at least one of the following: During the process of moving the motor toward the rest position until determining that the current Hall value provided by the Hall sensor is less than a preset Hall stroke error absolute value of the motor, in response to determining that the current of the motor exceeds a preset maximum working current of the motor, stopping the motor for a preset time period, and then moving the motor toward the working position; During the process of continuing to move the motor toward the rest position after determining that the current Hall value provided by the Hall sensor is not greater than the preset Hall stroke error absolute value, stopping the motor in response to determining that the current Hall value provided by the Hall sensor is not greater than the negative value of the preset Hall stroke error absolute value; When it is determined that the motor reaches the rest position, in response to determining that the absolute value of the difference between the current Hall value provided by the Hall sensor and the motor calibrated Hall stroke is not between the preset maximum Hall stroke and the preset minimum Hall stroke, the motor is stopped.

16. The method according to claim 14, wherein: After recalibrating the current Hall value to 0, the method further includes: The motor is moved from the rest position to the working position until one of the following conditions is met and the motor is stopped: When the motor moves to a certain position, the current Hall value provided by the Hall sensor reaches a preset relaxation Hall value of the motor; The time for the motor to move from the rest position to the working position reaches a preset maximum relaxation time of the motor. 17 . The method of claim 11 , further comprising stopping the motor in response to receiving a stop command for the motor after receiving the control command for the motor.

18. The method according to any one of claims 11 to 17, wherein: A state machine is used to control the motor according to a received control command, thereby allowing the execution state of the motor to be switched within each cycle, and wherein, within each cycle, after waiting for a preset delay current detection time, it is determined whether the movement time of the motor at this time reaches the preset single maximum running time of the motor and whether the current of the motor is greater than the preset stall current of the corresponding position of the motor.

19. A system for controlling a Hall motor system including a motor, a Hall sensor and a limit switch, the system comprising: a driving unit configured to provide a driving signal to the motor; a detection unit configured to detect the current of the motor; a control unit configured to generate and provide a control signal to the drive unit based on the current detection signal from the detection unit, the Hall signal from the Hall sensor, and the safety switch signal from the limit switch, wherein the driving unit is configured to generate the driving signal based on a control signal received from the control unit, and Wherein, the control unit is configured to execute the method according to any one of claims 1-18.

20. The system of claim 19, wherein: The detection unit is integrated in the drive unit.

21. A computing device for controlling a Hall motor system, comprising: one or more processors; as well as A memory storing computer executable instructions which, when executed by the one or more processors, cause the one or more processors to perform a method according to any one of claims 1-18.

22. A non-transitory storage medium having stored thereon computer executable instructions, which when executed by a computer cause the computer to perform the method according to any one of claims 1-18.

Citation Information

Patent Citations

  • Brushless direct current motor based on Hall sensor and detection method

    CN115580100A

  • device for determining the adjustment position of an adjustable motor vehicle part

    DE202015009335U1

  • Image forming apparatus, motor controller and method for diagnosing fault thereof

    US20180212540A1

  • Programmable limit switch with distributed intelligence

    US6912427B1

  • KR20200110845A