Motor controller

文档序号:52296 发布日期:2021-09-28 浏览:34次 中文

阅读说明:本技术 马达控制器 (Motor controller ) 是由 曾光男 于 2020-03-26 设计创作,主要内容包括:本发明公开一种马达控制器,用以驱动一马达。该马达控制器具有一驱动电路、一控制单元、一运算放大器、一比较器、一反相器、一多工器、一第一电阻以及一第二电阻,其中该第一电阻与该第二电阻设置于一印刷电路板上。通过改变该第一电阻的阻值与该第二电阻的阻值,即可改变该马达的驱动方向。(The invention discloses a motor controller for driving a motor. 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, wherein the first resistor and the second resistor are arranged on a printed circuit board. The driving direction of the motor can be changed by changing the resistance value of the first resistor and the resistance value of the second resistor.)

1. A motor controller for driving a motor having a motor coil, the motor controller comprising:

a driving circuit for supplying a driving current to the motor coil;

a control unit coupled to the driving circuit;

a first resistor for providing a bias voltage to a Hall sensor, wherein the Hall sensor is used for generating a first output signal and a second output signal; and

a comparator for receiving the first output signal and a reference voltage to generate a first control signal, wherein the first resistor is used to determine the high/low level of the first control signal and the direction of the driving current.

2. The motor controller of claim 1 further comprising a second resistor for providing the bias voltage to the hall sensor.

3. The motor controller of claim 1 further comprising an operational amplifier having a first input coupled to the first output signal and a second input coupled to the second output signal for generating a second control signal.

4. The motor controller of claim 3, further comprising an inverter receiving the second control signal for generating an inverted signal.

5. The motor controller of claim 4, further comprising a multiplexer receiving the first control signal, the second control signal and the inverted signal for generating a third control signal to the control unit.

6. The motor controller of claim 1, wherein the first resistor is disposed on a printed circuit board.

7. The motor controller of claim 1 wherein the first resistor is coupled to the hall sensor and a first voltage source.

8. The motor controller of claim 2 wherein said second resistor is coupled to said hall sensor and a ground potential.

9. The motor controller of claim 1, wherein the driving circuit comprises:

a first transistor coupled to a second voltage source and the motor coil;

a second transistor coupled to the motor coil;

a third transistor coupled to the second voltage source and the motor coil; and

a fourth transistor coupled to the motor coil.

10. The motor controller of claim 9, wherein the control unit is configured to control the switching states of the first transistor, the second transistor, the third transistor, and the fourth transistor, respectively.

11. A motor controller for driving a motor having a motor coil, the motor controller comprising:

a driving circuit for supplying a driving current to the motor coil;

a control unit coupled to the driving circuit;

a first resistor for providing a voltage; and

a comparator for receiving the voltage and a reference voltage to generate a first control signal, wherein the first resistor is used to determine the high/low level of the first control signal and the direction of the driving current.

12. The motor controller of claim 11 further comprising a second resistor coupled to the first resistor and a ground potential for providing the voltage.

13. The motor controller of claim 11 wherein the first resistor is coupled to a first voltage source and the first voltage source is coupled to a hall IC for generating a third output signal.

14. The motor controller of claim 13 further comprising an operational amplifier having a first input coupled to one end of the first resistor and a second input coupled to the third output signal for generating a second control signal.

15. The motor controller of claim 14, further comprising an inverter receiving the second control signal for generating an inverted signal.

16. The motor controller of claim 15, further comprising a multiplexer receiving the first control signal, the second control signal and the inverted signal for generating a third control signal to the control unit.

17. The motor controller of claim 11, wherein the first resistor is disposed on a printed circuit board.

18. The motor controller of claim 12, wherein the second resistor is disposed on a printed circuit board.

19. The motor controller of claim 11, wherein the driving circuit comprises:

a first transistor coupled to a second voltage source and the motor coil;

a second transistor coupled to the motor coil;

a third transistor coupled to the second voltage source and the motor coil; and

a fourth transistor coupled to the motor coil.

20. The motor controller of claim 19, wherein the control unit is configured to control the switching states of the first transistor, the second transistor, the third transistor and the fourth transistor respectively.

Technical Field

The present invention relates to a motor controller, and more particularly, to a motor controller capable of changing a driving direction of a motor.

Background

A typical motor controller includes a Hall Sensor (Hall Effect) which measures the magnitude of a magnetic field based on the Hall Effect. Once the circuit architecture of the motor controller is determined, subsequent processing using Hall signals (Hall signals) generated by the Hall effect enables the motor drive to have a single output mode.

Disclosure of Invention

In view of the foregoing, it is an object of the present invention to provide a motor controller capable of changing a driving direction of a motor.

According to an embodiment of the present invention, a motor controller is provided for driving a motor. 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, wherein the first resistor and the second resistor are arranged on a printed circuit board. The driving direction of the motor can be changed by changing the resistance value of the first resistor and the resistance value of the second resistor.

Drawings

Fig. 1 is a schematic diagram of a motor controller according to a first embodiment of the present invention;

fig. 2 is a schematic diagram of a motor controller according to a second embodiment of the present invention.

Description of reference numerals: 10. 20-a motor controller; 100-a drive circuit; 110-a control unit; 120-an operational amplifier; 130-a comparator; 140-an inverter; 150-a multiplexer; 160-hall sensor; 101-a first transistor; 102-a second transistor; 103-a third transistor; 104-a fourth transistor; an L-motor coil; an IL-drive current; r1 — first resistance; r2 — second resistance; c1 — first control signal; c2 — second control signal; c3 — third control signal; IN1 — first input; IN2 — second input terminal; vr-reference voltage; v1-voltage; vd, Vh-voltage source; GND-ground potential.

Detailed Description

The objects, features and advantages of the present invention will become more apparent from the following description. Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings.

Fig. 1 is a schematic diagram of a motor controller according to a first embodiment of the present invention. The motor controller 10 is used to drive a motor having a motor coil L. The motor controller 10 has a driving circuit 100, a control unit 110, an operational amplifier 120, a comparator 130, an inverter 140, and a multiplexer 150. In addition, the motor controller 10 further has a first resistor R1 and a second resistor R2, wherein the first resistor R1 and the second resistor R2 are disposed on a Printed Circuit Board (Printed Circuit Board). The first resistor R1 is coupled to a voltage source Vh and a hall sensor 160. The second resistor R2 is coupled to the hall sensor 160 and a ground potential GND. The voltage source Vh, the first resistor R1 and the second resistor R2 are used to provide a bias voltage to the hall sensor 160.

The driving circuit 100 has 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, and the second transistor 102 and the fourth transistor 104 are coupled to the motor coil L and the ground GND. The first transistor 101, the second transistor 102, the third transistor 103 and the fourth transistor 104 may be a pmos transistor or an nmos transistor. In fig. 1, the first transistor 101 and the third transistor 103 are two pmos transistors, and the second transistor 102 and the fourth transistor 104 are two nmos transistors.

The control unit 110 is coupled to the driving circuit 100 for controlling the switching states of the first transistor 101, the second transistor 102, the third transistor 103 and the fourth transistor 104, respectively.

The hall sensor 160 is coupled to the first resistor R1 and the second resistor R2 for generating a first output signal and a second output signal. The comparator 130 receives the first output signal and a reference voltage Vr to generate a first control signal C1. The operational amplifier 120 has a first input terminal IN1 and a second input terminal IN2, wherein 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 for generating a second control signal C2. The inverter 140 receives the second control signal C2 to generate an inverted signal. The multiplexer 150 receives the first control signal C1, the second control signal C2 and the inverted signal, and generates a third control signal C3 to the control unit 110.

For example, when the voltage of 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 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 1.5 volts, the first control signal C1 is at a low level, and the multiplexer 150 selects the second control signal C2 to drive the motor coil L.

When the voltage of 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 first control signal C1 is at a high level, and the multiplexer 150 selects the inverted signal to drive the motor coil L. By changing the resistance of the first resistor R1 and the resistance of the second resistor R2, the direction of the driving current IL can be changed, and thus the driving direction of the motor can be changed. Therefore, the invention can change the driving direction of the motor without redesigning the printed circuit board, thereby achieving the purpose of sharing the printed circuit board and further saving the cost.

Fig. 2 is a schematic diagram of a motor controller according to a second embodiment of the present invention. As shown in fig. 1 and 2, the structure of the motor controller 20 is similar to that of the motor controller 10. The first resistor R1 is coupled to the voltage source Vh, the operational amplifier 120, the comparator 130, and the second resistor R2. The second resistor R2 is coupled to the ground potential GND, the operational amplifier 120, and the comparator 130. The voltage source Vh, the first resistor R1 and the second resistor R2 are used for providing a voltage V1 to the operational amplifier 120 and the comparator 130. The second embodiment is designed for a hall IC (hall IC) application, wherein the hall IC is coupled to the voltage source Vh and the ground potential GND for generating a third output signal. The comparator 130 receives the voltage V1 and the reference voltage Vr for generating the first control signal C1. The operational amplifier 120 has a first input terminal IN1 and a second input terminal IN2, wherein the first input terminal IN1 is coupled to one end of the first resistor R1 and the second input terminal IN2 is coupled to the third output signal for generating the second control signal C2. The inverter 140 receives the second control signal C2 to generate an inverted signal. The multiplexer 150 receives the first control signal C1, the second control signal C2 and the inverted signal to generate a third control signal C3 to the control unit 110.

For example, when the voltage of 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 a low level, and the multiplexer 150 selects the second control signal C2 to drive the motor coil L.

When the voltage of 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 C1 is at a high level, and the multiplexer 150 selects the inverted signal to drive the motor coil L. By changing the resistance of the first resistor R1 and the resistance of the second resistor R2, the direction of the driving current IL can be changed, and thus the driving direction of the motor can be changed.

While the invention has been described by way of examples of preferred embodiments, it is to be understood that: the invention is not limited to the disclosed embodiments. On the contrary, the invention is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Accordingly, the scope of the claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.

The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种有刷电机驱动方法、装置及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!