MOTOR CONTROLLER

20220077796 ยท 2022-03-10

    Inventors

    Cpc classification

    International classification

    Abstract

    A motor controller is configured to stabilize a motor current. The motor controller is used for driving a motor, where the motor has a motor coil. The motor controller comprises a switch circuit, a control unit, a command unit, a counting unit, a comparing unit, and a phase detecting unit. The switch circuit is used for supplying the motor current to the motor coil. The phase detecting unit generates a phase signal to the control unit, so as to inform the control unit to switch phases. The control unit generates a plurality of control signals to control the switch circuit. The motor controller resets the counting unit based on the phase signal, such that the control signals are synchronized with the phase signal for stabilizing the motor current.

    Claims

    1. A motor controller configured to drive a motor, wherein the motor has a motor coil, the motor coil has a first terminal and a second terminal, and the motor controller comprises: a switch circuit, configured to supply a motor current to the motor coil; a control unit, configured to generate a plurality of control signals for controlling the switch circuit; a counting unit, configured to generate an output signal, wherein the output signal is utilized by the control unit to control the switch circuit; and a phase detecting unit, configured to generate a phase signal to the control unit for switching phases, wherein the motor controller resets the counting unit based on the phase signal, thereby stabilizing the motor current.

    2. The motor controller of claim 1, wherein the control signals are synchronized with the phase signal.

    3. The motor controller of claim 1, wherein a voltage signal applied to the first terminal and a voltage signal applied to the second terminal are synchronized with the phase signal.

    4. The motor controller of claim 1, wherein the output signal has a fixed initial value after switching the phases.

    5. The motor controller of claim 1, wherein the counting unit is reset when the phase signal is changed from a low level to a high level or from the high level to the low level.

    6. The motor controller of claim 1, wherein the motor controller is applied to a single-phase or polyphase configuration.

    7. The motor controller of claim 1, wherein the motor controller further comprises a command unit, and the command unit receives an external pulse width modulation signal for generating a command signal.

    8. The motor controller of claim 7, wherein the motor controller further comprises a comparing unit, and the comparing unit generates a pulse width modulation signal to the control unit by comparing the command signal with the output signal.

    9. The motor controller of claim 8, wherein the comparing unit is a digital comparator.

    10. The motor controller of claim 8, wherein the pulse width modulation signal has a fixed duty cycle after switching the phases.

    11. A motor controller configured to drive a motor, wherein the motor has a motor coil, the motor coil has a first terminal and a second terminal, and the motor controller comprises: a switch circuit, configured to supply a motor current to the motor coil; a control unit, configured to generate a plurality of control signals for controlling the switch circuit; a counting unit, configured to generate an output signal, wherein the output signal is utilized by the control unit to control the switch circuit; and a phase detecting unit, configured to generate a phase signal to the control unit for switching phases, wherein the motor controller resets the counting unit based on the phase signal, and the control signals are synchronized with the phase signal.

    12. The motor controller of claim 11, wherein a voltage signal applied to the first terminal and another voltage signal applied to the second terminal are synchronized with the phase signal.

    13. The motor controller of claim 11, wherein the output signal has a fixed initial value after switching the phases.

    14. The motor controller of claim 11, wherein the counting unit is reset when the phase signal is changed from a low level to a high level or from the high level to the low level.

    15. The motor controller of claim 11, wherein the motor controller is applied to a single-phase or polyphase configuration.

    16. The motor controller of claim 11, wherein the motor controller further comprises a command unit, and the command unit receives an external pulse width modulation signal for generating a command signal.

    17. The motor controller of claim 16, wherein the motor controller further comprises a comparing unit, and the comparing unit generates a pulse width modulation signal to the control unit by comparing the command signal with the output signal.

    18. The motor controller of claim 17, wherein the comparing unit is a digital comparator.

    19. The motor controller of claim 17, wherein the pulse width modulation signal has a fixed duty cycle after switching the phases.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0008] The above-mentioned and other objects, features, and advantages of the present invention will become apparent with reference to the following descriptions and accompanying drawings, wherein:

    [0009] FIG. 1 is a circuit diagram showing a conventional motor controller;

    [0010] FIG. 2 is a timing chart showing the related signals of FIG. 1;

    [0011] FIG. 3 is a circuit diagram showing a motor controller according to one embodiment of the present invention; and

    [0012] FIG. 4 is a timing chart showing the related signals of FIG. 3 according to one embodiment of the present invention.

    DETAILED DESCRIPTION

    [0013] Preferred embodiments according to the present invention will be described in detail with reference to the drawings.

    [0014] FIG. 3 is a circuit diagram showing a motor controller 20 according to one embodiment of the present invention. The motor controller 20 is used for driving a motor, where the motor has a motor coil L. The motor coil L has a first terminal O1 and a second terminal O2. The motor controller 20 comprises a switch circuit 200, a control unit 210, a command unit 220, a counting unit 230, a comparing unit 240, and a phase detecting unit 250. The switch circuit 200 is coupled to a voltage source VCC and the voltage source VCC generates a supply current IVCC to the switch circuit 200. The switch circuit 200 is configured to supply a motor current to the motor coil L, where the motor current may be analogous to the supply current IVCC. The switch circuit 200 includes a first transistor 201, a second transistor 202, a third transistor 203, and a fourth transistor 204. The first transistor 201 is coupled to the voltage source VCC and the first terminal O1 while the second transistor 202 is coupled to the first terminal O1 and a ground GND. The third transistor 203 is coupled to the voltage source VCC and the second terminal O2 while the fourth transistor 204 is coupled to the second terminal O2 and the ground GND. The first transistor 201, the second transistor 202, the third transistor 203, and the fourth transistor 204 may be respectively a p-type MOSFET or an n-type MOSFET. As shown in FIG. 3, each of the first transistor 201 and the third transistor 203 may be a p-type MOSFET, while each of the second transistor 202 and the fourth transistor 204 may be an n-type MOSFET.

    [0015] The control unit 210 generates a first control signal C1, a second control signal C2, a third control signal C3, and a fourth control signal C4 so as to respectively control the ON/OFF states of the first transistor 201, the second transistor 202, the third transistor 203, and the fourth transistor 204. The control unit 210 operates alternatively in a first driving mode and a second driving mode, so as to supply the electric energy to the motor. In the first driving mode, the control unit 210 turns on the first transistor 201 and the fourth transistor 204 by controlling the first control signal C1 and the fourth control signal C4. At this moment the current flows sequentially from the voltage source VCC to the first transistor 201, the motor coil L, and the fourth transistor 204 for supplying the electric energy to the motor. In the second driving mode, the control unit 210 turns on the second transistor 202 and the third transistor 203 by controlling the second control signal C2 and the third control signal C3. At this moment the current flows sequentially from the voltage source VCC to the third transistor 203, the motor coil L, and the second transistor 202 for supplying the electric energy to the motor. By operating alternatively between the first driving mode and the second driving mode, the motor can be rotated normally as a result.

    [0016] The phase detecting unit 250 generates a phase signal Vph to the control unit 210, so as to inform the control unit 210 to switch phases, where the phase detecting unit 250 may be a Hall sensor or a back-electromotive force detecting circuit. The hall sensor may be placed nearby the motor for sensing the magnetic field variation of the motor. The motor controller 20 operates alternatively between the first driving mode and the second driving mode to drive the motor based on the motor rotor position sensed by the Hall sensor. The back-electromotive force detecting circuit detects the zero-crossing point of the back-electromotive force to switch phases. The designer can select either the Hall sensor or the back-electromotive force detecting circuit to design the phase detecting unit 250 based on the motor configuration.

    [0017] In addition, the phase detecting unit 250 generates the phase signal Vph to the counting unit 230 for resetting the counting unit 230. The command unit 220 receives an external pulse width modulation signal Vex for generating a command signal Vc to the comparing unit 240. The counting unit 230 receives the phase signal Vph for generating an output signal Vo to the comparing unit 240. The comparing unit 240 generates a pulse width modulation signal Vp to the control unit 210 by comparing the command signal Vc and the output signal Vo, where the pulse width modulation signal Vp has a duty cycle. According to one embodiment of the present invention, the motor controller 20 uses the pulse width modulation technique for adjusting the motor current, so as to save the electric energy and control the motor speed. When the duty cycle approaches 1, it indicates that the voltage source VCC delivers the electric energy to the motor almost in full capability. When the duty cycle approaches 0, it indicates that the voltage source VCC delivers very tiny amount of electric energy to the motor.

    [0018] FIG. 4 is a timing chart showing the related signals of FIG. 3 according to one embodiment of the present invention. More specifically, when the phase signal Vph changes from a low level L to a high level H or from the high level H to the low level L, it enables the counting unit 230 to be reset, such that the output signal Vo has a fixed initial value after switching phases. Then the output signal Vo increases with time. The desired duty cycle can be obtained by comparing the command signal Vc and the output signal Vo. Consequently, the pulse width modulation signal Vp also has a fixed duty cycle after switching phases. Based on the pulse width modulation signal Vp and the phase signal Vph, the control unit 210 is configured to output the first control signal C1, the second control signal C2, the third control signal C3, and the fourth control signal C4, which are synchronized with the phase signal Vph. As shown in FIG. 4, the voltage signal of the first terminal O1 and the voltage signal of the second terminal O2 are synchronized with the phase signal Vph, such that the supply current IVCC has a stable current waveform after switching phases for stabilizing the motor current.

    [0019] According to one embodiment of the present invention, the comparing unit 240 may be an analog comparator or a digital comparator. For instance, when the comparing unit 240 is the digital comparator, the command signal Vc may be an N-bit digital command signal and the output signal Vo may be an N-bit digital output signal, where N is greater than 1 or equal to 1. The comparing unit 240 is capable of obtaining the desired duty cycle to control the motor speed by comparing the N-bit digital command signal and the N-bit digital output signal.

    [0020] According to one embodiment of the present invention, the motor controller 20 can be applied to a single-phase or polyphase configuration. Also, the motor controller 20 can be applied to an inductive actuator, such as a brushless motor, a DC motor, a voice coil motor, or an electromagnetic actuator. The motor controller 20 resets the counting unit 230 based on the phase signal Vph, such that the control signals are synchronized with the phase signal Vph for stabilizing the motor current.

    [0021] While the present invention has been described by the preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications.

    [0022] Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.