CN114499337B - motor controller - Google Patents
motor controller Download PDFInfo
- Publication number
- CN114499337B CN114499337B CN202011254823.9A CN202011254823A CN114499337B CN 114499337 B CN114499337 B CN 114499337B CN 202011254823 A CN202011254823 A CN 202011254823A CN 114499337 B CN114499337 B CN 114499337B
- Authority
- CN
- China
- Prior art keywords
- signal
- motor controller
- pin
- frequency
- hall
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P23/00—Arrangements or methods for the control of AC motors characterised by a control method other than vector control
- H02P23/14—Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Motors That Do Not Use Commutators (AREA)
Abstract
一种马达控制器,用以获得多个物理参数。该马达控制器具有一选择电路、一霍尔信号处理单元、一温度传感器、一晶体管、一控制单元以及一驱动电路。该霍尔信号处理单元用以产生一霍尔信号。该温度传感器用以产生一温度信号。该控制单元具有一判断单元且该判断单元用以决定该马达控制器操作于一正常操作模式或一测试模式。该判断单元根据一第一启动测试信号或一第二启动测试信号,用以通知该选择电路输出该温度信号或该霍尔信号。
A motor controller to obtain multiple physical parameters. The motor controller has a selection circuit, a hall signal processing unit, a temperature sensor, a transistor, a control unit and a driving circuit. The Hall signal processing unit is used for generating a Hall signal. The temperature sensor is used to generate a temperature signal. The control unit has a judging unit and the judging unit is used to determine whether the motor controller operates in a normal operation mode or a test mode. The judging unit is used to notify the selection circuit to output the temperature signal or the Hall signal according to a first start-up test signal or a second start-up test signal.
Description
技术领域technical field
本发明关于一种马达控制器,特别是关于一种于测试模式下可获得多个物理参数的马达控制器。The present invention relates to a motor controller, in particular to a motor controller capable of obtaining multiple physical parameters in a test mode.
背景技术Background technique
目前有些马达控制器内建多个感测元件(如霍尔传感器、温度传感器等)以供内部控制信号使用。然而,使用者无法通过外部测量去获得这些感测元件所输出的物理参数。现有技术中可利用一脉宽调变(Pulse Width Modulation)脚位接收一测试启动信号以进入测试模式,且利用脉宽调变脚位以输出一霍尔信号。由于脚位数量会影响封装成本,在节省成本前提下会尽量减少脚位数量以提升产品的竞争力。因此,如何善用现有脚位以进入测试模式获得所需的物理参数,实为目前所需解决的重要课题。At present, some motor controllers have built-in multiple sensing elements (such as Hall sensors, temperature sensors, etc.) for internal control signals. However, users cannot obtain the physical parameters output by these sensing elements through external measurement. In the prior art, a pulse width modulation (PWM) pin can be used to receive a test start signal to enter the test mode, and a pulse width modulation pin can be used to output a Hall signal. Since the number of pins will affect the packaging cost, the number of pins will be reduced as much as possible to improve the competitiveness of the product under the premise of saving costs. Therefore, how to make good use of the existing pins to enter the test mode to obtain the required physical parameters is an important issue to be solved at present.
发明内容Contents of the invention
有鉴于前述问题,本发明的目的在于提供一种可于测试模式下输出多个物理参数的马达控制器。In view of the aforementioned problems, the object of the present invention is to provide a motor controller capable of outputting multiple physical parameters in a test mode.
依据本发明提供该马达控制器。该马达控制器用以驱动一马达。该马达控制器具有一命令脚位、一转速信号脚位、一选择电路、一霍尔信号处理单元、一温度传感器、一晶体管、一控制单元以及一驱动电路。该选择电路耦合至该转速信号脚位。该驱动电路用以提供一马达电流至该马达。该霍尔信号处理单元用以产生一霍尔信号。该温度传感器用以产生一温度信号。该控制单元具有一判断单元且该判断单元用以决定该马达控制器操作于一正常操作模式或一测试模式。该判断单元耦合至该命令脚位。该判断单元根据一第一启动测试信号,用以通知该选择电路经由该转速信号脚位输出一温度信号。该判断单元根据一第二启动测试信号,用以通知该选择电路经由该转速信号脚位输出一霍尔信号。The motor controller is provided according to the invention. The motor controller is used to drive a motor. The motor controller has a command pin, a rotational speed signal pin, a selection circuit, a Hall signal processing unit, a temperature sensor, a transistor, a control unit and a driving circuit. The selection circuit is coupled to the speed signal pin. The driving circuit is used for providing a motor current to the motor. The Hall signal processing unit is used for generating a Hall signal. The temperature sensor is used to generate a temperature signal. The control unit has a judging unit and the judging unit is used to determine whether the motor controller operates in a normal operation mode or a test mode. The judging unit is coupled to the command pin. The judging unit is used to notify the selection circuit to output a temperature signal through the rotation speed signal pin according to a first start-up test signal. The judging unit is used for notifying the selection circuit to output a Hall signal through the rotational speed signal pin according to a second start-up test signal.
附图说明Description of drawings
图1为本发明一实施例的马达控制器的脚位图。FIG. 1 is a pin diagram of a motor controller according to an embodiment of the present invention.
图2为本发明一实施例的马达控制器的示意图。FIG. 2 is a schematic diagram of a motor controller according to an embodiment of the present invention.
附图标记说明:10-马达控制器;VCC-电压供应脚位;GND-接地脚位;OUT1-第一输出脚位;OUT2-第二输出脚位;SO-转速信号脚位;CMD-命令脚位;L-马达线圈;110-选择电路;120-霍尔信号处理单元;130-温度传感器;140-晶体管;150-控制单元;160-驱动电路;Vhb,Vm电压源;121-霍尔传感器;122-放大器;IN1-第一输入端;IN2-第二输入端;131-双载子晶体管;CS-电流源;151-判断单元;Vh-霍尔信号;Vb-参考电压;Vt-温度信号;Vs-转速信号;SEL-数字信号;Vp-脉宽调变信号。Explanation of reference numerals: 10—motor controller; VCC—voltage supply pin; GND—grounding pin; OUT1—first output pin; OUT2—second output pin; SO—speed signal pin; CMD—command Pin position; L-motor coil; 110-selection circuit; 120-Hall signal processing unit; 130-temperature sensor; 140-transistor; 150-control unit; 160-drive circuit; Vhb, Vm voltage source; 121-Hall Sensor; 122-amplifier; IN1-first input terminal; IN2-second input terminal; 131-bipolar transistor; CS-current source; 151-judgment unit; Vh-Hall signal; Vb-reference voltage; Vt- Temperature signal; Vs-speed signal; SEL-digital signal; Vp-pulse width modulation signal.
具体实施方式Detailed ways
下文中的说明将使本发明的目的、特征、与优点更明显。兹将参考图式详细说明依据本发明的较佳实施例。The following description will make the objects, features and advantages of the present invention more apparent. Preferred embodiments according to the present invention will now be described in detail with reference to the drawings.
图1为本发明一实施例的马达控制器10的脚位图。马达控制器10用以驱动一马达,其中马达具有一马达线圈L。马达控制器10具有一电压供应脚位VCC、一接地脚位GND、一命令脚位CMD、一第一输出脚位OUT1、一第二输出脚位OUT2以及一转速信号脚位SO。电压供应脚位VCC与接地脚位GND耦合至一电压源Vm以供应马达控制器10所需的电压。命令脚位CMD接收一脉宽调变信号以调整马达的转速。转速信号脚位SO用以输出一转速信号。第一输出脚位OUT1与第二输出脚位OUT2耦合至马达线圈L以驱动马达。FIG. 1 is a pin diagram of a motor controller 10 according to an embodiment of the present invention. The motor controller 10 is used to drive a motor, wherein the motor has a motor coil L. As shown in FIG. The motor controller 10 has a voltage supply pin VCC, a ground pin GND, a command pin CMD, a first output pin OUT1 , a second output pin OUT2 and a speed signal pin SO. The voltage supply pin VCC and the ground pin GND are coupled to a voltage source Vm to supply the voltage required by the motor controller 10 . The command pin CMD receives a pulse width modulation signal to adjust the speed of the motor. The speed signal pin SO is used to output a speed signal. The first output pin OUT1 and the second output pin OUT2 are coupled to the motor coil L to drive the motor.
图2为本发明一实施例的马达控制器10的示意图。马达控制器10更具有一选择电路110、一霍尔信号处理单元120、一温度传感器130、一晶体管140、一控制单元150以及一驱动电路160。霍尔信号处理单元120具有一霍尔传感器121与一放大器122,其中霍尔传感器121设置于马达附近以感测马达的磁场变化。霍尔传感器121耦合至一电压源Vhb以产生一第一输出信号与一第二输出信号。放大器122具有一第一输入端IN1与一第二输入端IN2,其中第一输入端IN1耦合至第一输出信号且第二输入端IN2耦合至第二输出信号,用以产生一霍尔信号Vh至选择电路110。此外,霍尔信号Vh相关于一物理参数,例如磁场。FIG. 2 is a schematic diagram of a motor controller 10 according to an embodiment of the present invention. The motor controller 10 further has a selection circuit 110 , a Hall signal processing unit 120 , a temperature sensor 130 , a transistor 140 , a control unit 150 and a driving circuit 160 . The Hall signal processing unit 120 has a Hall sensor 121 and an amplifier 122 , wherein the Hall sensor 121 is disposed near the motor to sense the change of the magnetic field of the motor. The Hall sensor 121 is coupled to a voltage source Vhb to generate a first output signal and a second output signal. The amplifier 122 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 Hall signal Vh to the selection circuit 110 . In addition, the Hall signal Vh is related to a physical parameter, such as a magnetic field.
温度传感器130具有一双载子晶体管131与一电流源CS。双载子晶体管131具有一射极、一基极以及一集极。双载子晶体管131的集极耦合至电压源Vm。双载子晶体管131的基极耦合至一参考电压Vb,其中参考电压Vb具有一零温度系数。双载子晶体管131的射极耦合至电流源CS,用以产生一温度信号Vt至选择电路110,其中温度信号Vt会以约25mV/℃的因子而随温度变化。如第2图所示,双载子晶体管131可为一NPN型双载子晶体管。此外,温度信号Vt相关于一物理参数,例如温度。The temperature sensor 130 has a bipolar transistor 131 and a current source CS. The BJT 131 has an emitter, a base and a collector. The collector of bipolar transistor 131 is coupled to a voltage source Vm. The base of the BJT 131 is coupled to a reference voltage Vb, wherein the reference voltage Vb has a zero temperature coefficient. The emitter of the bipolar transistor 131 is coupled to the current source CS for generating a temperature signal Vt to the selection circuit 110, wherein the temperature signal Vt varies with temperature by a factor of about 25 mV/°C. As shown in FIG. 2 , the BJT 131 can be an NPN type BJT. In addition, the temperature signal Vt is related to a physical parameter, such as temperature.
控制单元150耦合至晶体管140,用以产生一转速信号Vs至选择电路110。控制单元150具有一判断单元151且判断单元151用以决定马达控制器10操作于一正常操作模式或一测试模式。判断单元151耦合至命令脚位CMD,用以产生一N位数字信号SEL至选择电路110且产生一脉宽调变信号Vp至驱动电路160,其中N=2。驱动电路160用以提供一马达电流至马达,其中驱动电路160可具有一H桥式(H-bridge)电路。The control unit 150 is coupled to the transistor 140 for generating a speed signal Vs to the selection circuit 110 . The control unit 150 has a judging unit 151 and the judging unit 151 is used to determine whether the motor controller 10 operates in a normal operation mode or a test mode. The judging unit 151 is coupled to the command pin CMD for generating an N-bit digital signal SEL to the selection circuit 110 and a pulse width modulation signal Vp to the driving circuit 160 , where N=2. The driving circuit 160 is used to provide a motor current to the motor, wherein the driving circuit 160 may have an H-bridge circuit.
当命令脚位CMD接收到一正常脉宽调变信号时,判断单元151可将数字信号SEL设成00,用以通知选择电路110将转速信号Vs耦合至转速信号脚位SO。此时马达控制器10处于正常操作模式,判断单元151将脉宽调变信号Vp耦合至命令脚位CMD以控制马达运转。当命令脚位CMD接收到一第一启动测试信号时,判断单元151可将数字信号SEL设成01,用以通知选择电路110将温度信号Vt耦合至转速信号脚位SO。此时,马达控制器10处于测试模式。当命令脚位CMD接收到一第二启动测试信号时,判断单元151可将数字信号SEL设成10,用以通知选择电路110将霍尔信号Vh耦合至转速信号脚位SO。此时,马达控制器10亦处于测试模式。When the command pin CMD receives a normal PWM signal, the judging unit 151 can set the digital signal SEL to 00 to notify the selection circuit 110 to couple the speed signal Vs to the speed signal pin SO. At this time, the motor controller 10 is in the normal operation mode, and the judging unit 151 couples the pulse width modulation signal Vp to the command pin CMD to control the operation of the motor. When the command pin CMD receives a first start-up test signal, the judging unit 151 can set the digital signal SEL to 01 to notify the selection circuit 110 to couple the temperature signal Vt to the speed signal pin SO. At this point, the motor controller 10 is in a test mode. When the command pin CMD receives a second start-up test signal, the judging unit 151 can set the digital signal SEL to 10 to notify the selection circuit 110 to couple the Hall signal Vh to the speed signal pin SO. At this time, the motor controller 10 is also in the test mode.
具体而言,有各种不同的方式可产生第一启动测试信号与第二启动测试信号以进入测试模式。本发明一实施例的第一启动测试信号可为一高频信号且具有一第一频率。第二启动测试信号亦可为一高频信号且具有一第二频率。第一频率大于一第一预定频率且第一频率小于一第二预定频率。第二频率大于一第三预定频率且第二频率小于一第四预定频率。第一预定频率小于第二预定频率。第三预定频率小于第四预定频率。第二预定频率小于第三预定频率。Specifically, there are various ways to generate the first start-up test signal and the second start-up test signal to enter the test mode. The first start-up test signal in an embodiment of the present invention may be a high-frequency signal and has a first frequency. The second start-up test signal can also be a high-frequency signal and has a second frequency. The first frequency is greater than a first predetermined frequency and the first frequency is less than a second predetermined frequency. The second frequency is greater than a third predetermined frequency and the second frequency is smaller than a fourth predetermined frequency. The first predetermined frequency is less than the second predetermined frequency. The third predetermined frequency is less than the fourth predetermined frequency. The second predetermined frequency is less than the third predetermined frequency.
本发明一实施例的马达控制器10可应用于一单相马达或一多相马达。马达控制器10用以驱动一马达。马达控制器10具有命令脚位CMD、转速信号脚位SO、选择电路110、控制单元150以及驱动电路160。驱动电路160用以提供一马达电流至马达。控制单元150具有判断单元151。判断单元151用以决定马达控制器10操作于正常操作模式或测试模式。判断单元151耦合至命令脚位CMD。判断单元151根据第一启动测试信号与第二启动测试信号以获得多个物理参数。选择电路110耦合至转速信号脚位SO,其中选择电路110用以输出霍尔信号与温度信号。霍尔信号与温度信号相关于多个物理参数。本发明的优点在于不需增加额外脚位的情形下而能实现于测试模式时获得多个物理参数。The motor controller 10 of an embodiment of the present invention can be applied to a single-phase motor or a multi-phase motor. The motor controller 10 is used to drive a motor. The motor controller 10 has a command pin CMD, a speed signal pin SO, a selection circuit 110 , a control unit 150 and a driving circuit 160 . The driving circuit 160 is used for providing a motor current to the motor. The control unit 150 has a judging unit 151 . The judging unit 151 is used to determine whether the motor controller 10 operates in a normal operation mode or a test mode. The judging unit 151 is coupled to the command pin CMD. The judging unit 151 obtains a plurality of physical parameters according to the first start-up test signal and the second start-up test signal. The selection circuit 110 is coupled to the speed signal pin SO, wherein the selection circuit 110 is used to output the Hall signal and the temperature signal. Hall signals and temperature signals are related to several physical parameters. The advantage of the present invention is that multiple physical parameters can be obtained in the test mode without adding extra pins.
虽然本发明业已通过较佳实施例作为例示加以说明,应了解者为:本发明不限于此被揭露的实施例。相反地,本发明意欲涵盖对于本领域技术人员而言为明显的各种修改与相似配置。因此,申请专利范围应根据最广的诠释,以包含所有此类修改与相似配置。Although the present invention has been described by way of illustration of preferred embodiments, it should be understood that the present invention is not limited to the disclosed embodiments. On the contrary, the invention is intended to cover various modifications and similar arrangements apparent to those skilled in the art. Accordingly, the scope of claims should be construed in the broadest way to encompass all such modifications and similar arrangements.
以上所述仅为本发明的较佳实施例,凡依本发明权利要求范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011254823.9A CN114499337B (en) | 2020-11-11 | 2020-11-11 | motor controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011254823.9A CN114499337B (en) | 2020-11-11 | 2020-11-11 | motor controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114499337A CN114499337A (en) | 2022-05-13 |
CN114499337B true CN114499337B (en) | 2023-08-11 |
Family
ID=81491359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011254823.9A Active CN114499337B (en) | 2020-11-11 | 2020-11-11 | motor controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114499337B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1791250A1 (en) * | 2005-11-25 | 2007-05-30 | Hitachi, Ltd. | Semiconductor device, motor and motor drive unit including the same |
CN101908853A (en) * | 2009-06-08 | 2010-12-08 | 罗姆股份有限公司 | The drive circuit of motor and driving method |
CN204376379U (en) * | 2014-11-21 | 2015-06-03 | 无锡中星微电子有限公司 | The temperature protective device of Circuits System |
CN110504870A (en) * | 2018-05-18 | 2019-11-26 | 茂达电子股份有限公司 | motor drive circuit |
-
2020
- 2020-11-11 CN CN202011254823.9A patent/CN114499337B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1791250A1 (en) * | 2005-11-25 | 2007-05-30 | Hitachi, Ltd. | Semiconductor device, motor and motor drive unit including the same |
CN101908853A (en) * | 2009-06-08 | 2010-12-08 | 罗姆股份有限公司 | The drive circuit of motor and driving method |
CN204376379U (en) * | 2014-11-21 | 2015-06-03 | 无锡中星微电子有限公司 | The temperature protective device of Circuits System |
CN110504870A (en) * | 2018-05-18 | 2019-11-26 | 茂达电子股份有限公司 | motor drive circuit |
Also Published As
Publication number | Publication date |
---|---|
CN114499337A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016104378A1 (en) | Position estimation method and position control device | |
US9503000B2 (en) | Driving device of multi-phase motor, driving method, cooling device, and electronic apparatus | |
CN102136819A (en) | Motor drive circuit | |
US7012388B2 (en) | Method and circuit for driving a DC motor | |
TWI302400B (en) | Rotation speed controller of motor | |
CN110535401B (en) | Motor driving circuit | |
CN114499337B (en) | motor controller | |
US20220149762A1 (en) | Motor controller | |
TWI749857B (en) | Motor controller | |
TW556407B (en) | Electric motor driving circuit and its method with frequency setting and correction functions | |
US8497674B2 (en) | Magnetic detection apparatus | |
US8030864B2 (en) | Motor drive circuit | |
KR100417144B1 (en) | Rotation angle detecting device | |
JP2004242386A (en) | Limiting circuit and motor driver | |
JP2012130089A (en) | Blower control circuit and blower using the same | |
JP2977700B2 (en) | Hall element circuit | |
JP2012117486A (en) | Control circuit for air-blowing apparatus, and air-blowing apparatus using the same | |
JP3333318B2 (en) | Output transistor saturation prevention circuit | |
JP4215335B2 (en) | Motor drive device | |
US7049770B2 (en) | Current control circuit and motor drive circuit that can accurately and easily control a drive current | |
JPH0640479Y2 (en) | Current detection circuit | |
JPH0630589A (en) | Apparatus for driving brushless dc motor | |
JPH07222482A (en) | Saturation-proof circuit of output transistor | |
CN206323265U (en) | Brushless direct current motor and steering engine | |
JP2024171164A (en) | Stepping motor control apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |