The present invention relates to a motor controller, and more particularly, to a motor controller which is capable of changing the driving direction of a motor.
Conventionally, a motor controller includes a Hall sensor that is used to measure the magnitude of a magnetic field based on the Hall effect. Once the circuit structure of the motor controller is decided, there is only one output mode for driving a motor by using a Hall signal generated by the Hall effect for further processing.
Thus, what is needed is the motor controller which is capable of changing the driving direction of the motor.
According to the present invention, a motor controller used for driving a motor is provided. The motor controller comprises a driving circuit, a control unit, an operational amplifier, a comparator, an inverter, a multiplexer, a first resistor, and a second resistor. The first and second resistors are mounted on a printed circuit board. By changing the resistance of the first resistor and the resistance of the second resistor, it is capable of changing the driving direction of the motor.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
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:
Preferred embodiments according to the present invention will be described in detail with reference to the drawings.
The driving circuit 100 includes a first transistor 101, a second transistor 102, a third transistor 103, and a fourth transistor 104 for supplying a driving current IL to the motor coil L. The first transistor 101 and the third transistor 103 are coupled to a voltage source Vd and the motor coil L, while the transistor 102 and the fourth transistor 104 are coupled to the motor coil L and the ground GND. Transistors 101-104 may be respectively a p-type MOSFET or an n-type MOSFET. As shown in
The control unit 110 is coupled to the driving circuit 100 so as to respectively control on/off states of transistors 101-104.
The Hall sensor 160 is coupled to the first resistor R1 and the second resistor R2, so as to generate a first output signal and the second output signal. The comparator 130 receives the first output signal and a reference voltage Vr for generating a first control signal C1. The operational amplifier 120 comprises a first input terminal IN1 and a second input terminal IN2, where the first input terminal IN1 is coupled to the first output signal and the second input terminal IN2 is coupled to the second output signal, so as to generate a second control signal C2. The inverter 140 receives the second control signal C2 for generating an inverted signal. The multiplexer 150 receives the first control signal C1, the second control signal C2, and the inverted signal for providing a third control signal C3 to the control unit 110.
For example, when the voltage source Vh is 5 volts, the resistance of the first resistor R1 is 700 ohms, the resistance of the second resistor R2 is 0 ohm, the equivalent resistance of the Hall sensor 160 is 300 ohms, the reference voltage Vr is 2.5 volts, and the common-mode voltage of the first input terminal IN1 and the second input terminal IN2 is about 1.5 volts, the control signal C1 is at a low level and thus the multiplexer 150 selects the second control signal C2 for driving the motor coil L.
When the voltage source Vh is 5 volts, the resistance of the first resistor R1 is 0 ohm, the resistance of the second resistor R2 is 700 ohms, the equivalent resistance of the Hall sensor 160 is 300 ohms, the reference voltage Vr is 2.5 volts, and the common-mode voltage of the first input terminal IN1 and the second input terminal IN2 is about 3.5 volts, the control signal C1 is at a high level and thus the multiplexer 150 selects the inverted signal for driving the motor coil L. By changing the resistance of the first resistor R1 and the resistance of the second resistor R2, it is capable of changing the direction of the driving current IL, thereby changing the driving direction of the motor. Therefore, there is no need to re-design the printed circuit board when desiring to change the driving direction of the motor. Cost reduction can be achieved by sharing common printed circuit boards.
For example, when the voltage source Vh is 5 volts, the resistance of the first resistor R1 is 700 ohms, the resistance of the second resistor R2 is 300 ohms, the reference voltage Vr is 2.5 volts, and the voltage V1 is 1.5 volts, the first control signal C1 is at the low level and thus the multiplexer 150 selects the second control signal C2 for driving the motor coil L.
When the voltage source Vh is 5 volts, the resistance of the first resistor R1 is 300 ohms, the resistance of the second resistor R2 is 700 ohms, the reference voltage Vr is 2.5 volts, and the voltage V1 is 3.5 volts, the first control signal is at the high level and thus the multiplexer 150 selects the inverted signal for driving the motor coil L. By changing the resistance of the first resistor R1 and the resistance of the second resistor R2, it is capable of changing the direction of the driving current IL, thereby changing the driving direction of the motor.
While the present invention has been described by the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. 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.
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.
Number | Name | Date | Kind |
---|---|---|---|
6020700 | Tien | Feb 2000 | A |
7411367 | Tsai | Aug 2008 | B2 |
20150102817 | Angerbauer | Apr 2015 | A1 |
20210041509 | Jiang | Feb 2021 | A1 |
Number | Date | Country |
---|---|---|
102545770 | Jul 2012 | CN |
540902 | Jul 2003 | TW |
201301739 | Jan 2013 | TW |
201315133 | Apr 2013 | TW |
Number | Date | Country | |
---|---|---|---|
20210305922 A1 | Sep 2021 | US |