CN-113630061-B - Control method
Abstract
A control method for controlling a motor comprises the steps of driving the motor according to a driving signal, receiving a first Hall signal output by a Hall sensor, judging whether the first Hall signal is abnormal, increasing the driving current of a coil to be larger than a set value when the first Hall signal is abnormal, receiving a second Hall signal output by the Hall sensor after increasing the driving current of the coil to be larger than the set value again, judging whether the second Hall signal is abnormal, judging that the Hall sensor fails and reporting corresponding information if the second Hall signal is abnormal, and judging that the motor is blocked and reporting the corresponding information if the second Hall signal is not abnormal. The technical scheme can distinguish faults of the Hall sensor or motor stalling, and the control method is simple.
Inventors
- Request for anonymity
- Request for anonymity
Assignees
- 杭州三花研究院有限公司
- 杭州三花研究院有限公司
Dates
- Publication Date
- 20260421
- Application Date
- 20200506
- Priority Date
- 20200506
Claims (9)
- 1. A control method for controlling an electric motor, characterized by comprising: driving the motor to operate according to the driving signal; Receiving a first Hall signal output by a Hall sensor, and judging whether the first Hall signal is abnormal or not; When the first Hall signal is abnormal, increasing the driving current of the stator coil to be larger than a set value, receiving a second Hall signal output by the Hall sensor after increasing the driving current of the stator coil to be larger than the set value again, and judging whether the second Hall signal is abnormal; if yes, judging that the Hall sensor fails, and reporting corresponding information; if not, judging that the motor is blocked, and reporting corresponding information.
- 2. The control method according to claim 1, characterized in that the control method includes: driving the motor to operate according to the driving signal; Receiving a first Hall signal output by a Hall sensor, and judging whether the first Hall signal is abnormal or not; When the first Hall signal is abnormal, a driving signal is sent to increase the driving current of the stator coil so that the driving current is larger than a first current threshold value and lasts for a set period of time; and receiving a second Hall signal output by the Hall sensor within the set time length again, judging whether the second Hall signal is abnormal, if so, judging that the Hall sensor fails and reporting corresponding information, and if not, judging that the motor is locked and reporting the corresponding information.
- 3. The control method according to claim 1, characterized in that the control method includes: driving the motor to operate according to the driving signal; Receiving a first Hall signal output by a Hall sensor, and judging whether the first Hall signal is abnormal or not; When the first Hall signal is abnormal, a driving signal is sent to close a driving circuit of the stator coil, and a driving current larger than a second current threshold value is applied to the detection coil for a set duration; and receiving a second Hall signal output by the Hall sensor within the set time length again, judging whether the second Hall signal is abnormal, if so, judging that the Hall sensor fails and reporting corresponding information, and if not, judging that the motor is locked and reporting the corresponding information.
- 4. The control method according to claim 2, wherein the number of the hall sensors is 1 to 3, the hall sensors are switch-type hall sensors, and leakage magnetic energy of a magnetic field generated by the stator coil when the driving current of the stator coil is greater than the first current threshold value is detected by the hall sensors if the hall sensors are not failed.
- 5. The control method according to claim 3, wherein the number of the hall sensors is 1 to 3, the hall sensors are switch-type hall sensors, the detection coil is disposed closer to the hall sensors than the stator coil, and if the hall sensors are not failed, a magnetic field generated by the detection coil can be detected by the hall sensors when a driving current of the detection coil is greater than the second current threshold.
- 6. The control method according to claim 2 or 4, characterized in that the control method includes: s11, driving the motor to operate according to normal driving current according to the driving signal; S12, receiving a first Hall signal output by a Hall sensor, judging whether the first Hall signal is abnormal, if not, operating the motor normally, and if so, executing a step S13; S13, sending a driving signal to increase the driving current acting on the stator coil to be larger than a preset first current threshold value and continuously setting the duration; s14, receiving the second Hall signal output by the Hall sensor within the set time length again, judging whether the second Hall signal is abnormal or not, if so, judging that the Hall sensor fails and reporting corresponding information, and if not, judging that the motor is locked and reporting corresponding information.
- 7. The method of claim 6, wherein the first current threshold is 1.5-2 times the normal drive current.
- 8. The control method according to claim 3 or 5, characterized in that the control method includes: S31, driving the motor to operate according to the normal driving current according to the driving signal; S32, receiving a first Hall signal output by the Hall sensor, judging whether the first Hall signal is abnormal, if not, operating the motor normally, and if so, executing step S33; s33, sending a driving signal to close a driving circuit of the stator coil, and applying a driving current larger than a second current threshold value to the detection coil for a set duration; s34, receiving the second Hall signal output by the Hall sensor within the set time length again, judging whether the second Hall signal is abnormal, if so, judging that the Hall sensor fails and reporting the corresponding information, and if not, judging that the motor is locked and reporting the corresponding information.
- 9. The control method according to claim 2 or 4, wherein the hall sensor includes a first hall sensor, a second hall sensor, the control method comprising: S21, driving a motor to operate according to a driving signal; s22, respectively receiving a first Hall signal output by the first Hall sensor and a second Hall signal output by the second Hall sensor, judging whether the first Hall signal and the second Hall signal are abnormal, if so, executing a step S24, and if not, executing a step S23; S23, judging whether the first Hall signal and the second Hall signal are normal, if so, operating the motor normally, if not, judging that one of the first Hall sensor and the second Hall sensor fails, and reporting corresponding information; s24, sending a driving signal to increase the driving current acting on the stator coil to be larger than a preset first current threshold value for a set duration; s25, respectively receiving a third Hall signal output by the first Hall sensor and a fourth Hall signal output by the second Hall sensor within the set time period, judging whether the third Hall signal and the fourth Hall are abnormal, if so, judging that the first Hall sensor and the second Hall sensor are both faulty, and reporting corresponding information; S26, judging whether the third Hall signal and the fourth Hall signal are normal, if so, judging that the motor is blocked and reporting corresponding information, and if not, judging that the motor is blocked and one of the first Hall sensor and the second Hall sensor fails and reporting corresponding information.
Description
Control method Technical Field The invention relates to the technical field of motors, in particular to a motor control method for distinguishing faults of a Hall sensor and motor stalling. Background The motor includes a rotor and a stator, and a switch Hall (Hall) sensor is typically used to detect whether the rotor continuously rotates during operation of the motor, so as to determine whether the motor is locked. When the Hall signal output by the Hall sensor is abnormal, the motor is possibly blocked or the Hall sensor fails. If motor stalling or Hall sensor faults are not distinguished, reverse control is continuously performed according to a motor stalling strategy when the Hall sensor faults, and damage to a motor can be possibly caused, so that the technical problem of distinguishing the motor stalling or the Hall sensor faults is solved. Disclosure of Invention The invention aims to provide a control method for controlling a motor, which can distinguish motor stalling from Hall sensor faults. In order to achieve the above purpose, the invention adopts the following technical scheme: A control method for controlling an electric motor, characterized by comprising: driving the motor to operate according to the driving signal; Receiving a first Hall signal output by a Hall sensor, and judging whether the first Hall signal is abnormal or not; When the first Hall signal is abnormal, increasing the driving current of the stator coil to be larger than a set value, receiving a second Hall signal output by the Hall sensor after increasing the driving current of the stator coil to be larger than the set value again, and judging whether the second Hall signal is abnormal; if yes, judging that the Hall sensor fails, and reporting corresponding information; if not, judging that the motor is blocked, and reporting corresponding information. According to the technical scheme, when the first Hall signal is abnormal, the driving current of the stator coil is increased to be larger than the set value, whether the second Hall signal is abnormal or not is received and judged again, the failure of the Hall sensor or the motor locked rotor can be distinguished according to the second Hall signal result, when the Hall sensor fails, the continuous reverse control according to the motor locked rotor strategy can be avoided, the damage to the motor is reduced, and the control method is simple. Drawings FIG. 1 is a schematic diagram of an embodiment of an electrically operated valve; FIG. 2 is a schematic flow chart of a first embodiment of a control method of an electric valve; FIG. 3 is a schematic diagram of stator coil current Ia and Hall sensor output signals during normal operation of the motor; FIG. 4 is a schematic diagram of stator coil current Ia and Hall sensor output signals at motor anomalies; FIG. 5 is a schematic diagram of one possible stator coil current Ib, hall sensor output signal after the stator coil current is increased; FIG. 6 is a schematic diagram of one possible trend of the Hall sensor output signal; FIG. 7 is another possible schematic diagram of the stator coil current Ib, the Hall sensor output signal after the stator coil current is increased; FIG. 8 is another possible schematic diagram of the trend of the Hall sensor output signal; Fig. 9 is a schematic flow chart of a second embodiment of a control method of an electric valve; FIG. 10 is a schematic structural view of another embodiment of an electrically operated valve; Fig. 11 is a schematic flow chart of a third embodiment of a control method of an electric valve. Detailed Description The invention is further described with reference to the drawings and the specific embodiments below: Fig. 1 is a schematic structural diagram of an embodiment of an electric valve, which can be applied to an automotive air conditioning system for flow adjustment and/or flow on-off control of the system. The electric valve 100 includes a motor, a valve element, a valve body 1, and a circuit board 2. The valve body 1 is provided with a valve port, the motor can be a stepping motor, the motor comprises a rotor assembly and a stator assembly, the stator assembly comprises a stator coil 3, the rotor assembly comprises a rotor 4 with permanent magnetic materials, the stator coil 3 can be electrically connected/in signal connection with the circuit board 2, and the stator coil 3 is electrically connected with the circuit board 2 through a coil power supply line 5 or a contact pin in the embodiment. The circuit board 2 may be integrated with a control system, and of course, the control system may also be located in an upper computer. The control system can send a driving signal to the motor to enable the stator coil 3 to be electrified, an excitation magnetic field is generated after the stator coil 3 is electrified, the rotor 4 rotates under the action of the excitation magnetic field and drives the valve core of the electric valve to move relative to the valve po