[go: up one dir, main page]

CN111682811A - A DC motor control circuit and a DC motor control system - Google Patents

A DC motor control circuit and a DC motor control system Download PDF

Info

Publication number
CN111682811A
CN111682811A CN202010575216.6A CN202010575216A CN111682811A CN 111682811 A CN111682811 A CN 111682811A CN 202010575216 A CN202010575216 A CN 202010575216A CN 111682811 A CN111682811 A CN 111682811A
Authority
CN
China
Prior art keywords
circuit
resistor
electrically connected
control circuit
motor
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.)
Pending
Application number
CN202010575216.6A
Other languages
Chinese (zh)
Inventor
刘国涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Original Assignee
Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Shuliantianxia Intelligent Technology Co Ltd filed Critical Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority to CN202010575216.6A priority Critical patent/CN111682811A/en
Publication of CN111682811A publication Critical patent/CN111682811A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/03Arrangements for regulating or controlling the speed or torque of electric DC motors for controlling the direction of rotation of DC motors
    • H02P7/04Arrangements for regulating or controlling the speed or torque of electric DC motors for controlling the direction of rotation of DC motors by means of a H-bridge circuit
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H1/00Details of emergency protective circuit arrangements
    • H02H1/0007Details of emergency protective circuit arrangements concerning the detecting means
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/08Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors
    • H02H7/085Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors against excessive load
    • H02H7/0853Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors against excessive load specially adapted for motors rotating in both directions
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P1/00Arrangements for starting electric motors or dynamo-electric converters
    • H02P1/16Arrangements for starting electric motors or dynamo-electric converters for starting dynamo-electric motors or dynamo-electric converters
    • H02P1/18Arrangements for starting electric motors or dynamo-electric converters for starting dynamo-electric motors or dynamo-electric converters for starting an individual DC motor
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/06Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current
    • H02P7/18Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power
    • H02P7/24Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices
    • H02P7/28Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Direct Current Motors (AREA)

Abstract

本发明实施例涉及电机控制技术领域,提供了一种直流电机控制电路及直流电机控制系统。包括:控制器,用于发送PWM信号;调速控制电路,与控制器电连接,用于响应PWM信号,产生驱动电源,驱动电源与PWM信号的占空比成正比关系;H桥驱动电路,与调速控制电路电连接,用于根据驱动电源,驱动直流电机工作,驱动电源与直流电机的转速成正比关系;过流保护电路,与H桥驱动电路和调速控制电路电连接,用于当检测到流经直流电机的驱动电流大于或等于阈值电流时,触发调速控制电路降低驱动电源;以及,转速检测电路,分别与H桥驱动电路和控制器电连接,用于采样直流电机的工作电压。本发明实施例能够提升直流电机控制电路的安全性和可靠性。

Figure 202010575216

Embodiments of the present invention relate to the technical field of motor control, and provide a DC motor control circuit and a DC motor control system. It includes: a controller for sending a PWM signal; a speed control circuit, which is electrically connected to the controller and used to respond to the PWM signal to generate a drive power, which is proportional to the duty cycle of the PWM signal; an H-bridge drive circuit, It is electrically connected to the speed regulation control circuit for driving the DC motor to work according to the driving power supply, and the driving power supply is proportional to the speed of the DC motor; the overcurrent protection circuit is electrically connected to the H bridge driving circuit and the speed regulation control circuit, and is used for When it is detected that the driving current flowing through the DC motor is greater than or equal to the threshold current, the speed regulation control circuit is triggered to reduce the driving power; Operating Voltage. The embodiments of the present invention can improve the safety and reliability of the DC motor control circuit.

Figure 202010575216

Description

一种直流电机控制电路及直流电机控制系统A DC motor control circuit and a DC motor control system

【技术领域】【Technical field】

本发明实施例涉及电机控制技术领域,尤其涉及一种直流电机控制电路及直流电机控制系统。Embodiments of the present invention relate to the technical field of motor control, and in particular, to a DC motor control circuit and a DC motor control system.

【背景技术】【Background technique】

目前,多采用H桥驱动电路控制直流电机的运转,H桥驱动电路与控制器电连接,通过控制器输出的PWM信号的占空比调制H桥驱动电路的目标开关管基极或栅极的偏置,从而改变该目标开关管的导通时间,得到驱动电源,以实现直流电机的正向或反向调速。然而,在目标开关管工作状态切换的过程中,可能会对PWM信号的调制产生影响,导致降低驱动电源的可靠性,并且在直流电机调速过程中,驱动电源是恒定不变的,当驱动直流电机的驱动电流大于或等于阈值电流时,可能导致电路起火等安全隐患。At present, the H-bridge drive circuit is mostly used to control the operation of the DC motor. The H-bridge drive circuit is electrically connected to the controller, and the duty ratio of the PWM signal output by the controller is used to modulate the target switch base or gate of the H-bridge drive circuit. Bias, thereby changing the on-time of the target switch tube to obtain the driving power, so as to realize the forward or reverse speed regulation of the DC motor. However, in the process of switching the working state of the target switch tube, it may affect the modulation of the PWM signal, resulting in a decrease in the reliability of the driving power supply, and in the process of DC motor speed regulation, the driving power supply is constant. When the driving current of the DC motor is greater than or equal to the threshold current, it may cause safety hazards such as circuit fire.

【发明内容】[Content of the invention]

本发明实施例旨在提供一种安全可靠的直流电机控制电路及直流电机控制系统。The embodiments of the present invention aim to provide a safe and reliable DC motor control circuit and a DC motor control system.

为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above-mentioned technical problems, the embodiments of the present invention provide the following technical solutions:

本发明实施例提供了一种直流电机控制电路,包括:An embodiment of the present invention provides a DC motor control circuit, including:

控制器,用于发送PWM信号;Controller, used to send PWM signal;

调速控制电路,与所述控制器电连接,用于响应所述PWM信号,产生驱动电源,所述驱动电源与所述PWM信号的占空比成正比关系;a speed regulation control circuit, electrically connected to the controller, for generating a driving power supply in response to the PWM signal, and the driving power supply is proportional to the duty ratio of the PWM signal;

H桥驱动电路,与所述调速控制电路电连接,用于根据所述驱动电源,驱动所述直流电机工作,所述驱动电源与所述直流电机的转速成正比关系;The H-bridge drive circuit is electrically connected to the speed regulation control circuit, and is used for driving the DC motor to work according to the drive power source, and the drive power source is proportional to the rotational speed of the DC motor;

过流保护电路,分别与所述H桥驱动电路和所述调速控制电路电连接,用于当检测到流经所述直流电机的驱动电流大于或等于阈值电流时,向所述调速控制电路发送保护信号,使得所述调速控制电路降低所述驱动电源;以及,an overcurrent protection circuit, which is electrically connected to the H-bridge drive circuit and the speed control circuit respectively, and is used for sending the speed control to the speed control when it is detected that the drive current flowing through the DC motor is greater than or equal to a threshold current a circuit sends a protection signal to cause the speed control circuit to reduce the drive power; and,

转速检测电路,分别与所述H桥驱动电路和所述控制器电连接,用于采样所述直流电机的工作电压并将所述工作电压发送至所述控制器,使得所述控制器控制所述调速控制电路调整所述驱动电源。a rotational speed detection circuit, which is electrically connected to the H-bridge drive circuit and the controller, respectively, for sampling the working voltage of the DC motor and sending the working voltage to the controller, so that the controller controls the The speed control circuit adjusts the drive power.

可选地,所述调速控制电路包括:Optionally, the speed regulation control circuit includes:

充电电路;charging circuit;

启动电路,分别与所述控制器和所述充电电路电连接,用于当所述PWM信号为高电平时,控制外部电源为所述充电电路进行充电以及为所述H桥驱动电路路提供所述驱动电源,当所述PWM信号为低电平时,控制外部电源停止为所述充电电路进行充电,使得所述充电电路进行放电以为所述H桥驱动电路提供所述驱动电源。A startup circuit, which is electrically connected to the controller and the charging circuit respectively, is used to control an external power supply to charge the charging circuit and provide all the necessary power for the H-bridge driving circuit when the PWM signal is at a high level. The driving power supply, when the PWM signal is at a low level, controls the external power supply to stop charging the charging circuit, so that the charging circuit discharges to provide the driving power for the H-bridge driving circuit.

可选地,所述启动电路包括第一电阻、第二电阻、NPN三极管、第三电阻、第四电阻以及PNP三极管;Optionally, the startup circuit includes a first resistor, a second resistor, an NPN transistor, a third resistor, a fourth resistor, and a PNP transistor;

所述第一电阻的一端用于接收所述PWM信号,所述第一电阻的另一端与所述第二电阻的一端、所述NPN三极管的基极以及所述过流保护电路电连接;所述第二电阻的另一端接地;所述NPN三极管的发射极接地,所述NPN三极管的集电极与所述第三电阻的一端电连接;所述第三电阻的另一端与所述第四电阻的一端和所述PNP三极管的基极电连接;所述第四电阻的另一端与所述PNP三极管的发射极电连接,用于接收外部电源;所述PNP三极管的集电极与所述充电电路电连接。One end of the first resistor is used to receive the PWM signal, and the other end of the first resistor is electrically connected to one end of the second resistor, the base of the NPN transistor and the overcurrent protection circuit; The other end of the second resistor is grounded; the emitter of the NPN triode is grounded, and the collector of the NPN triode is electrically connected to one end of the third resistor; the other end of the third resistor is connected to the fourth resistor One end of the resistor is electrically connected to the base of the PNP triode; the other end of the fourth resistor is electrically connected to the emitter of the PNP triode for receiving external power; the collector of the PNP triode is connected to the charging circuit electrical connection.

可选地,所述充电电路包括电感和第一电容;Optionally, the charging circuit includes an inductor and a first capacitor;

所述电感的一端与所述PNP三极管的集电极电连接,所述电感的另一端与所述第一电容的正极电连接,用于输出所述驱动电源;所述第一电容的负极接地。One end of the inductor is electrically connected to the collector of the PNP triode, and the other end of the inductor is electrically connected to the positive electrode of the first capacitor for outputting the driving power; the negative electrode of the first capacitor is grounded.

可选地,所述调速控制电路还包括续流电路,所述续流电路电连接在所述启动电路和所述充电电路之间,用于当所述PWM信号为低电平时,所述启动电路控制外部电源停止为所述充电电路进行充电时,对所述充电电路产生的反向电动势作续流处理。Optionally, the speed regulation control circuit further includes a freewheeling circuit, the freewheeling circuit is electrically connected between the start-up circuit and the charging circuit, for when the PWM signal is at a low level, the When the start-up circuit controls the external power supply to stop charging the charging circuit, the back electromotive force generated by the charging circuit is subjected to freewheeling processing.

可选地,所述续流电路包括第一二极管与第二二极管;Optionally, the freewheeling circuit includes a first diode and a second diode;

所述第一二极管的阴极与所述PNP三极管的发射极电连接,所述第一二极管的阳极与所述PNP三极管的集电极、所述电感的一端以及所述第二二极管的阴极电连接;所述第二二极管的阳极接地。The cathode of the first diode is electrically connected to the emitter of the PNP triode, the anode of the first diode is connected to the collector of the PNP triode, one end of the inductor and the second diode The cathode of the tube is electrically connected; the anode of the second diode is grounded.

可选地,所述过流保护电路包括:Optionally, the overcurrent protection circuit includes:

第一采样电路,与所述H桥驱动电路电连接,用于采样流经所述直流电机的驱动电流,产生采样电压;a first sampling circuit, electrically connected to the H-bridge drive circuit, for sampling the drive current flowing through the DC motor to generate a sampling voltage;

开关电路,分别与所述第一采样电路和所述调速控制电路电连接,用于当所述采样电压大于电压导通阈值时,所述开关电路将所述PWM信号偏置在作为所述保护信号的低电平,使得所述调速控制电路降低所述驱动电源。a switch circuit, which is electrically connected to the first sampling circuit and the speed regulation control circuit respectively, and is used for biasing the PWM signal as the The low level of the protection signal causes the speed control circuit to reduce the drive power.

可选地,所述第一采样电路包括第五电阻、第二电容以及第六电阻;Optionally, the first sampling circuit includes a fifth resistor, a second capacitor and a sixth resistor;

所述第五电阻的一端与所述H桥驱动电路电连接,所述第五电阻的另一端与所述第二电容的一端、所述第六电阻的一端以及所述开关电路电连接;所述第二电容的另一端接地;所述第六电阻的另一端接地。One end of the fifth resistor is electrically connected to the H-bridge drive circuit, and the other end of the fifth resistor is electrically connected to one end of the second capacitor, one end of the sixth resistor and the switch circuit; The other end of the second capacitor is grounded; the other end of the sixth resistor is grounded.

可选地,所述转速检测电路包括第七电阻、第八电阻以及第三电容;Optionally, the rotational speed detection circuit includes a seventh resistor, an eighth resistor and a third capacitor;

所述第七电阻的一端与所述H桥驱动电路和所述第八电阻的一端电连接,所述第七电阻的另一端接地;所述第八电阻的另一端与所述第三电容的一端和所述控制器电连接;所述第三电容的另一端接地。本发明实施例还提供了一种直流电机控制系统,包括:One end of the seventh resistor is electrically connected to the H-bridge drive circuit and one end of the eighth resistor, and the other end of the seventh resistor is grounded; the other end of the eighth resistor is connected to the third capacitor. One end is electrically connected to the controller; the other end of the third capacitor is grounded. The embodiment of the present invention also provides a DC motor control system, including:

直流电机;DC;

如上任一项所述的直流电机控制电路,所述直流电机控制电路与所述直流电机电连接。The DC motor control circuit according to any one of the above, wherein the DC motor control circuit is electrically connected to the DC motor.

本发明的有益效果是:与现有技术相比较,本发明实施例提供了一种直流电机控制电路及直流电机控制系统,通过调速控制电路响应控制器发送的PWM信号,产生驱动电源,驱动电源与PWM信号的占空比成正比关系,H桥驱动电路根据驱动电源驱动直流电机工作,驱动电源与直流电机的转速成正比关系,过流保护电路当检测到流经直流电机的驱动电流大于或等于阈值电流时,向调速控制电路发送保护信号,使得调速控制电路降低驱动电源。因此,本发明实施例通过调速控制电路将PWM信号转换成驱动电源,以直接驱动直流电机,且通过过流保护电路当检测到流经直流电机的驱动电流大于或等于阈值电流时,使得调速控制电路降低驱动电源,以实现即时的硬件保护,从而提升了直流电机控制电路的安全性和可靠性。The beneficial effects of the present invention are: compared with the prior art, the embodiment of the present invention provides a DC motor control circuit and a DC motor control system, through which the speed regulation control circuit responds to the PWM signal sent by the controller to generate a driving power supply to drive the The power supply is proportional to the duty cycle of the PWM signal. The H-bridge drive circuit drives the DC motor to work according to the drive power. The drive power is proportional to the speed of the DC motor. When the overcurrent protection circuit detects that the drive current flowing through the DC motor is greater than When the current is equal to or equal to the threshold value, a protection signal is sent to the speed control circuit, so that the speed control circuit reduces the driving power. Therefore, in the embodiment of the present invention, the PWM signal is converted into a driving power source through the speed regulation control circuit to directly drive the DC motor, and when the overcurrent protection circuit detects that the driving current flowing through the DC motor is greater than or equal to the threshold current, the regulation is adjusted. The high-speed control circuit reduces the drive power to achieve instant hardware protection, thereby improving the safety and reliability of the DC motor control circuit.

【附图说明】【Description of drawings】

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.

图1为本发明实施例提供的一种直流电机控制系统的电路结构示意图;1 is a schematic diagram of a circuit structure of a DC motor control system according to an embodiment of the present invention;

图2为本发明实施例提供的其中一种直流电机控制电路的电路结构示意图;FIG. 2 is a schematic diagram of the circuit structure of one of the DC motor control circuits provided in an embodiment of the present invention;

图3为本发明实施例提供的其中一种直流电机控制电路的电路结构示意图;FIG. 3 is a schematic diagram of the circuit structure of one of the DC motor control circuits provided in an embodiment of the present invention;

图4为本发明实施例提供的一种调速控制电路的电路连接示意图;4 is a schematic diagram of circuit connection of a speed regulation control circuit according to an embodiment of the present invention;

图5为本发明实施例提供的一种H桥驱动电路的电路连接示意图;5 is a schematic diagram of circuit connection of an H-bridge drive circuit provided by an embodiment of the present invention;

图6为本发明实施例提供的一种过流保护电路的电路连接示意图;6 is a schematic diagram of circuit connection of an overcurrent protection circuit provided by an embodiment of the present invention;

图7为本发明实施例提供的一种转速检测电路的电路连接示意图。FIG. 7 is a schematic diagram of circuit connection of a rotational speed detection circuit according to an embodiment of the present invention.

【具体实施方式】【Detailed ways】

为了便于理解本申请,下面结合附图和具体实施方式,对本申请进行更详细的说明。需要说明的是,当一个元件被表述“连接”另一个元件,它可以是直接连接到另一个元件、或者其间可以存在一个或多个居中的元件。此外,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。In order to facilitate the understanding of the present application, the present application will be described in more detail below with reference to the accompanying drawings and specific embodiments. It should be noted that when an element is referred to as being "connected" to another element, it can be directly connected to the other element, or one or more intervening elements may be present therebetween. Furthermore, the terms "first," "second," etc. are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

除非另有定义,本说明书所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。在本发明的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是用于限制本发明。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the technical field of the present invention. The terms used in the description of the present invention are only for the purpose of describing specific embodiments, and are not used to limit the present invention. As used in this specification, the term "and/or" includes any and all combinations of one or more of the associated listed items.

此外,下面所描述的本申请不同实施例中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as there is no conflict with each other.

请参阅图1,为本发明实施例提供的一种直流电机控制系统的电路结构示意图。如图1所示,直流电机控制系统300包括直流电机200以及如下任一实施例所述的直流电机控制电路100,直流电机控制电路100与直流电机200电连接,用于控制直流电机200的运转。Please refer to FIG. 1 , which is a schematic diagram of a circuit structure of a DC motor control system according to an embodiment of the present invention. As shown in FIG. 1 , the DC motor control system 300 includes the DC motor 200 and the DC motor control circuit 100 described in any of the following embodiments. The DC motor control circuit 100 is electrically connected to the DC motor 200 for controlling the operation of the DC motor 200 . .

请参阅图2,为本发明实施例提供的其中一种直流电机控制电路的电路结构示意图。如图2所示,直流电机控制电路100包括控制器10、调速控制电路20、H桥驱动电路30、过流保护电路40以及转速检测电路50。Please refer to FIG. 2 , which is a schematic diagram of a circuit structure of one of the DC motor control circuits provided by the embodiments of the present invention. As shown in FIG. 2 , the DC motor control circuit 100 includes a controller 10 , a speed regulation control circuit 20 , an H-bridge drive circuit 30 , an overcurrent protection circuit 40 and a rotational speed detection circuit 50 .

控制器10用于发送PWM信号。The controller 10 is used to send the PWM signal.

在本发明实施例中,控制器10包括AD采样端口和若干个IO端口,AD采样端口用于采集直流电机200的工作电压(如图7所示的AD端口),若干个IO端口包括分别用于输出PWM信号、DR1电平信号和DR2电平信号(具体如图4和图5所示)。PWM信号是对逆变电路开关器件的通断进行控制,使得输出端得到一系列幅值相等的脉冲,用这些脉冲代替正弦波或所需要的波形。因此,PWM信号是一种数字信号,具体为一种通或断的重复脉冲序列,通过控制通(ON)或断(OFF)的比例,可得到不同占空比的PWM信号。In the embodiment of the present invention, the controller 10 includes an AD sampling port and several IO ports, the AD sampling port is used to collect the working voltage of the DC motor 200 (the AD port shown in FIG. 7 ), and the several IO ports include It is used to output PWM signal, DR1 level signal and DR2 level signal (as shown in Figure 4 and Figure 5). The PWM signal controls the on-off of the switching device of the inverter circuit, so that the output terminal gets a series of pulses of equal amplitude, and these pulses are used to replace the sine wave or the required waveform. Therefore, the PWM signal is a digital signal, specifically a repetitive pulse sequence of on or off. By controlling the ratio of on (ON) or off (OFF), PWM signals with different duty ratios can be obtained.

在本发明实施例中,控制器10包括单片机,单片机可以采用51系列、Arduino系列、STM32系列等。在一些实施例中,控制器10还可以为通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、ARM(Acorn RISC Machine)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合;还可以是任何传统处理器、控制器、微控制器或状态机;也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP核、或任何其它这种配置。In the embodiment of the present invention, the controller 10 includes a single-chip microcomputer, and the single-chip microcomputer may adopt a 51 series, an Arduino series, an STM32 series, and the like. In some embodiments, the controller 10 may also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), an ARM (Acorn RISC Machine) or other programmable Logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these; may also be any conventional processor, controller, microcontroller, or state machine; may also be implemented as a combination of computing devices, for example, A combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.

调速控制电路20与控制器10电连接,用于响应PWM信号,产生驱动电源,驱动电源与PWM信号的占空比成正比关系。The speed control circuit 20 is electrically connected to the controller 10, and is used for generating a driving power in response to the PWM signal, and the driving power is proportional to the duty ratio of the PWM signal.

请一并参阅图3,调速控制电路20包括充电电路201和启动电路202。Please also refer to FIG. 3 , the speed control circuit 20 includes a charging circuit 201 and a start-up circuit 202 .

如图4所示,充电电路201包括电感L1和第一电容C1。其中,电感L1的一端与PNP三极管的集电极Q2电连接,电感L1的另一端与第一电容C1的正极电连接,用于输出驱动电源V2;第一电容C1的负极接地。As shown in FIG. 4 , the charging circuit 201 includes an inductor L1 and a first capacitor C1 . One end of the inductor L1 is electrically connected to the collector Q2 of the PNP transistor, and the other end of the inductor L1 is electrically connected to the positive electrode of the first capacitor C1 for outputting the driving power V2; the negative electrode of the first capacitor C1 is grounded.

启动电路202分别与控制器10和充电电路201电连接,用于当PWM信号为高电平时,控制外部电源为充电电路201进行充电以及为H桥驱动电路30提供驱动电源,当PWM信号为低电平时,控制外部电源停止为充电电路201进行充电,使得充电电路201进行放电以为H桥驱动电路30提供驱动电源。The start-up circuit 202 is electrically connected to the controller 10 and the charging circuit 201 respectively, and is used to control the external power supply to charge the charging circuit 201 and provide the driving power for the H-bridge drive circuit 30 when the PWM signal is at a high level. When the PWM signal is at a low level When the level is high, the external power supply is controlled to stop charging the charging circuit 201 , so that the charging circuit 201 discharges to provide the driving power for the H-bridge driving circuit 30 .

如图4所示,启动电路包括第一电阻R1、第二电阻R2、NPN三极管Q1、第三电阻R3、第四电阻R4以及PNP三极管Q2。其中,第一电阻R1的一端用于接收PWM信号,第一电阻R1的另一端与第二电阻R2的一端、NPN三极管Q1的基极以及过流保护电路40电连接(通过图4所示的网络端口P与过流保护电路40,网络端口P为第一电阻R1、第二电阻R2以及NPN三极管Q1的连接节点);第二电阻R2的另一端接地;NPN三极管Q1的发射极接地,NPN三极管Q1的集电极与第三电阻R3的一端电连接;第三电阻R3的另一端与第四电阻R4的一端和PNP三极管Q2的基极电连接;第四电阻R4的另一端与PNP三极管Q2的发射极电连接,用于接收外部电源V1;PNP三极管Q2的集电极与充电电路201(即电感L1的一端)电连接。As shown in FIG. 4 , the startup circuit includes a first resistor R1 , a second resistor R2 , an NPN transistor Q1 , a third resistor R3 , a fourth resistor R4 and a PNP transistor Q2 . One end of the first resistor R1 is used to receive the PWM signal, and the other end of the first resistor R1 is electrically connected to one end of the second resistor R2, the base of the NPN transistor Q1 and the overcurrent protection circuit 40 (through the The network port P and the overcurrent protection circuit 40, the network port P is the connection node of the first resistor R1, the second resistor R2 and the NPN transistor Q1); the other end of the second resistor R2 is grounded; the emitter of the NPN transistor Q1 is grounded, and the NPN The collector of the transistor Q1 is electrically connected to one end of the third resistor R3; the other end of the third resistor R3 is electrically connected to one end of the fourth resistor R4 and the base of the PNP transistor Q2; the other end of the fourth resistor R4 is electrically connected to the PNP transistor Q2 The emitter is electrically connected to receive the external power supply V1; the collector of the PNP transistor Q2 is electrically connected to the charging circuit 201 (ie, one end of the inductor L1).

在一些实施例中,请再次参阅图3,调速控制电路20还包括续流电路203,续流电路203电连接在启动电路202和充电电路201之间,用于当PWM信号为低电平时,启动电路202控制外部电源停止为充电电路201进行充电时,对充电电路201产生的反向电动势作续流处理。In some embodiments, please refer to FIG. 3 again, the speed control circuit 20 further includes a freewheeling circuit 203, and the freewheeling circuit 203 is electrically connected between the startup circuit 202 and the charging circuit 201 for when the PWM signal is at a low level , when the startup circuit 202 controls the external power supply to stop charging the charging circuit 201 , the back electromotive force generated by the charging circuit 201 is subjected to a freewheeling process.

如图4所示,续流电路203包括第一二极管D1与第二二极管D2。其中,第一二极管D1的阴极与PNP三极管Q2的发射极电连接,第一二极管D1的阳极与PNP三极管Q2的集电极、电感L1的一端以及第二二极管D2的阴极电连接;第二二极管D2的阳极接地。As shown in FIG. 4 , the freewheeling circuit 203 includes a first diode D1 and a second diode D2. The cathode of the first diode D1 is electrically connected to the emitter of the PNP transistor Q2, and the anode of the first diode D1 is electrically connected to the collector of the PNP transistor Q2, one end of the inductor L1 and the cathode of the second diode D2. Connect; the anode of the second diode D2 is grounded.

综上,调速控制电路20的工作过程为:In summary, the working process of the speed control circuit 20 is as follows:

(1)接收控制器10发送的PWM信号,当PWM信号为高电平时,高电平信号经过第一电阻R1到达NPN三极管Q1的基极,满足NPN三极管Q1的导通条件,NPN三极管Q1导通,NPN三极管Q1的集电极电压被拉低,此时,满足PNP三极管Q2的导通条件,PNP三极管Q2导通,外部电源V1经过PNP三极管Q2的发射极、PNP三极管Q2的集电极、电感L1,为第一电容C1充电并为H桥驱动电路30供电。(1) Receive the PWM signal sent by the controller 10. When the PWM signal is at a high level, the high level signal reaches the base of the NPN transistor Q1 through the first resistor R1, which satisfies the conduction condition of the NPN transistor Q1. The NPN transistor Q1 conducts On, the collector voltage of the NPN transistor Q1 is pulled down. At this time, the conduction condition of the PNP transistor Q2 is satisfied, the PNP transistor Q2 is turned on, and the external power supply V1 passes through the emitter of the PNP transistor Q2, the collector of the PNP transistor Q2, and the inductor. L1 , charges the first capacitor C1 and supplies power to the H-bridge driving circuit 30 .

(2)当PWM信号为低电平时,低电平信号经过第一电阻R1到达NPN三极管Q1的基极,不满足NPN三极管Q1的导通条件,NPN三极管Q1截止,此时,不满足PNP三极管Q2的导通条件,PNP三极管Q2截止。此时,第一电容C1进行放电,以使存储的能量为H桥驱动电路30供电。同时,由于通过电感的电流不能突变的特性,电感L1产生的反向电动势经过第一二极管D1与第二二极管D2进行续流,以保护PNP三极管Q2不被击穿。(2) When the PWM signal is at a low level, the low-level signal reaches the base of the NPN transistor Q1 through the first resistor R1, which does not satisfy the conduction condition of the NPN transistor Q1, and the NPN transistor Q1 is turned off. At this time, the PNP transistor is not satisfied. The conduction condition of Q2, the PNP transistor Q2 is turned off. At this time, the first capacitor C1 is discharged, so that the stored energy supplies power to the H-bridge driving circuit 30 . At the same time, due to the characteristic that the current passing through the inductor cannot abruptly change, the reverse electromotive force generated by the inductor L1 freewheels through the first diode D1 and the second diode D2 to protect the PNP transistor Q2 from breakdown.

(3)根据PWM信号的周期变化,重复步骤(1)和(2),调速控制电路20将外部电源V1转化为驱动电源V2,驱动电源V2的大小与PWM信号的占空比成正比关系,PWM信号的占空比越大,调速控制电路20输出的驱动电源V2越大,PWM信号的占空比越小,调速控制电路20输出的驱动电源V2越小。(3) Steps (1) and (2) are repeated according to the cycle change of the PWM signal, the speed control circuit 20 converts the external power supply V1 into the driving power supply V2, and the size of the driving power supply V2 is proportional to the duty ratio of the PWM signal , the larger the duty cycle of the PWM signal, the larger the drive power V2 output by the speed control circuit 20, the smaller the duty cycle of the PWM signal, the smaller the drive power V2 output by the speed control circuit 20.

H桥驱动电路30与调速控制电路20电连接,用于根据驱动电源,驱动直流电机200工作,驱动电源与直流电机200的转速成正比关系。The H-bridge driving circuit 30 is electrically connected to the speed regulation control circuit 20 for driving the DC motor 200 to work according to the driving power source, and the driving power source is proportional to the rotation speed of the DC motor 200 .

如图5所示,H桥驱动电路30包括PMOS管TR1、PMOS管TR2、NMOS管TR3、NMOS管TR4、电阻R51、电阻R52、NPN三极管Q51、电阻R53、电阻R54、电阻R55、电阻R56、NPN三极管Q52、电阻R57、电阻R58、电阻R59、电阻R60、电阻R61以及电阻R62。As shown in FIG. 5, the H-bridge drive circuit 30 includes a PMOS transistor TR1, a PMOS transistor TR2, an NMOS transistor TR3, an NMOS transistor TR4, a resistor R51, a resistor R52, an NPN transistor Q51, a resistor R53, a resistor R54, a resistor R55, a resistor R56, NPN transistor Q52, resistor R57, resistor R58, resistor R59, resistor R60, resistor R61 and resistor R62.

其中,PMOS管TR1的源极与电阻R54的一端、PMOS管TR2的源极、电阻R58的一端以及调速控制电路20电连接,用于接收驱动电源V2,PMOS管TR1的漏极与NMOS管TR3的漏极以及直流电机200的正极M+电连接,PMOS管TR1的栅极与电阻R54的另一端和电阻R53的一端电连接;PMOS管TR2的漏极与NMOS管TR4的漏极以及直流电机200的负极M-电连接,PMOS管TR2的栅极与电阻R58的另一端和电阻R57的一端电连接;NMOS管TR3的源极与NMOS管TR4的源极电连接,并通过网络端口IU与过流保护电路40和转速检测电路50电连接,NMOS管TR3的栅极与电阻R59的一端和电阻R60的一端电连接;NMOS管TR4的栅极与电阻R61的一端和电阻R62的一端电连接;电阻R51的一端与控制器10电连接,用于接收DR1电平信号,电阻R51的另一端与电阻R52的一端和NPN三极管Q51的基极电连接;电阻R52的另一端接地;NPN三极管Q51的发射极接地,NPN三极管Q51的集电极与电阻R53的另一端电连接;电阻R55的一端与控制器10电连接,用于接收DR2电平信号,电阻R55的另一端与电阻R56的一端和NPN三极管Q52的基极电连接;电阻R56的另一端接地;NPN三极管Q52的发射极接地,NPN三极管Q52的集电极与电阻R57的另一端电连接;电阻R59的另一端与电阻R61的另一端电连接;电阻R60的另一端接地;电阻R62的另一端接地。The source of the PMOS transistor TR1 is electrically connected to one end of the resistor R54, the source of the PMOS transistor TR2, one end of the resistor R58 and the speed control circuit 20 for receiving the driving power V2, and the drain of the PMOS transistor TR1 is connected to the NMOS transistor. The drain of TR3 and the positive pole M+ of the DC motor 200 are electrically connected, the gate of the PMOS transistor TR1 is electrically connected to the other end of the resistor R54 and one end of the resistor R53; the drain of the PMOS transistor TR2 is electrically connected to the drain of the NMOS transistor TR4 and the DC motor The negative electrode M- of 200 is electrically connected, the gate of the PMOS transistor TR2 is electrically connected to the other end of the resistor R58 and one end of the resistor R57; the source electrode of the NMOS transistor TR3 is electrically connected to the source electrode of the NMOS transistor TR4, and is connected to the network port IU through the network port. The overcurrent protection circuit 40 is electrically connected to the rotational speed detection circuit 50, the gate of the NMOS transistor TR3 is electrically connected to one end of the resistor R59 and one end of the resistor R60; the gate of the NMOS transistor TR4 is electrically connected to one end of the resistor R61 and one end of the resistor R62 One end of the resistor R51 is electrically connected to the controller 10 for receiving the DR1 level signal, and the other end of the resistor R51 is electrically connected to one end of the resistor R52 and the base of the NPN transistor Q51; the other end of the resistor R52 is grounded; the NPN transistor Q51 The emitter is grounded, the collector of the NPN transistor Q51 is electrically connected to the other end of the resistor R53; one end of the resistor R55 is electrically connected to the controller 10 for receiving the DR2 level signal, the other end of the resistor R55 is connected to one end of the resistor R56 and The base of the NPN transistor Q52 is electrically connected; the other end of the resistor R56 is grounded; the emitter of the NPN transistor Q52 is grounded, and the collector of the NPN transistor Q52 is electrically connected to the other end of the resistor R57; the other end of the resistor R59 is connected to the other end of the resistor R61 Electrical connection; the other end of the resistor R60 is grounded; the other end of the resistor R62 is grounded.

当DR1电平信号为高电平、DR2电平信号为低电平时,高电平信号经过电阻R51到达NPN三极管Q51的基极,满足NPN三极管Q51的导通条件,NPN三极管Q51导通,NPN三极管Q51的集电极电压的被拉低,PMOS管TR1的栅极为低电压,满足PMOS管TR1的导通条件,PMOS管TR1导通;同时,高电平信号经过电阻R61到达NMOS管TR4的栅极,满足NMOS管TR4的导通条件,NMOS管TR4导通;低电平信号经过电阻R55到达NPN三极管Q52的基极,不满足NPN三极管Q52的导通条件,NPN三极管Q52截止,不满足PMOS管TR2的导通条件,PMOS管TR2截止;同时,低电平信号经过电阻R59到达NMOS管TR3的栅极,不满足NMOS管TR3的导通条件,NMOS管TR3截止,因此,驱动电源V2经过PMOS管TR1、直流电机200的正极M+、直流电机200的负极M-、NMOS管TR4到地,直流电机200正转。When the DR1 level signal is high and the DR2 level signal is low, the high level signal reaches the base of the NPN transistor Q51 through the resistor R51, which satisfies the conduction condition of the NPN transistor Q51, the NPN transistor Q51 is turned on, and the NPN The collector voltage of the transistor Q51 is pulled down, the gate of the PMOS transistor TR1 is low voltage, which satisfies the conduction condition of the PMOS transistor TR1, and the PMOS transistor TR1 is turned on; at the same time, the high-level signal reaches the gate of the NMOS transistor TR4 through the resistor R61. It meets the conduction condition of the NMOS transistor TR4, and the NMOS transistor TR4 is turned on; the low-level signal reaches the base of the NPN transistor Q52 through the resistor R55, which does not meet the conduction condition of the NPN transistor Q52, and the NPN transistor Q52 is turned off, which does not satisfy the PMOS At the same time, the low-level signal reaches the gate of the NMOS transistor TR3 through the resistor R59, which does not meet the conduction condition of the NMOS transistor TR3, and the NMOS transistor TR3 is turned off. Therefore, the driving power supply V2 passes through The PMOS transistor TR1, the positive pole M+ of the DC motor 200, the negative pole M- of the DC motor 200, and the NMOS transistor TR4 reach the ground, and the DC motor 200 rotates forward.

当DR1电平信号为低电平、DR2电平信号为高电平时,低电平信号经过电阻R51到达NPN三极管Q51的基极,不满足NPN三极管Q51的导通条件,NPN三极管Q51截止,不满足PMOS管TR1的导通条件,PMOS管TR1截止;同时,低电平信号经过电阻R61到达NMOS管TR4的栅极,不满足NMOS管TR4的导通条件,NMOS管TR4截止;高电平信号经过电阻R55到达NPN三极管Q52的基极,满足NPN三极管Q52的导通条件,NPN三极管Q52导通,NPN三极管Q52的集电极电压被拉低,PMOS管TR2的栅极电压为低电压,满足PMOS管TR2的导通条件,PMOS管TR2导通;同时,低电平信号经过电阻R59到达NMOS管TR3的栅极,满足NMOS管TR3的导通条件,NMOS管TR3导通,因此,驱动电源V2经过PMOS管TR2、直流电机200的负极M-、直流电机200的正极M+、NMOS管TR3到地,直流电机200反转。When the DR1 level signal is low level and the DR2 level signal is high level, the low level signal reaches the base of the NPN transistor Q51 through the resistor R51, which does not meet the conduction condition of the NPN transistor Q51. The NPN transistor Q51 is turned off and does not If the conduction condition of the PMOS transistor TR1 is satisfied, the PMOS transistor TR1 is turned off; at the same time, the low-level signal reaches the gate of the NMOS transistor TR4 through the resistor R61, and the conduction condition of the NMOS transistor TR4 is not satisfied, and the NMOS transistor TR4 is turned off; the high-level signal After the resistor R55 reaches the base of the NPN transistor Q52, the conduction condition of the NPN transistor Q52 is satisfied, the NPN transistor Q52 is turned on, the collector voltage of the NPN transistor Q52 is pulled down, and the gate voltage of the PMOS transistor TR2 is a low voltage, which satisfies the PMOS transistor. The conduction condition of the tube TR2, the PMOS tube TR2 is turned on; at the same time, the low-level signal reaches the gate of the NMOS tube TR3 through the resistor R59, which satisfies the conduction condition of the NMOS tube TR3, and the NMOS tube TR3 is turned on. Therefore, the driving power supply V2 After the PMOS transistor TR2, the negative pole M- of the DC motor 200, the positive pole M+ of the DC motor 200, and the NMOS transistor TR3 reach the ground, the DC motor 200 is reversed.

综上,在直流电机200正转或反转的过程中,驱动电源V2的大小与直流电机200的转速成正比关系,驱动电源V2越大,直流电机200的转速越快,驱动电源V2越小,直流电机200的转速越慢。因此,直流电机200的转速与PWM信号的占空比有关,但PWM信号不直接参与直流电机200的调速过程,避免了PWM信号直接作用于H桥驱动电路30,由于半导体开关器件导通和关断导致输出的驱动电源不可靠的问题。To sum up, in the process of forward or reverse rotation of the DC motor 200, the size of the driving power supply V2 is proportional to the rotation speed of the DC motor 200. The larger the driving power supply V2 is, the faster the rotation speed of the DC motor 200 is, and the smaller the driving power supply V2 is. , the speed of the DC motor 200 is slower. Therefore, the rotation speed of the DC motor 200 is related to the duty ratio of the PWM signal, but the PWM signal does not directly participate in the speed regulation process of the DC motor 200, which prevents the PWM signal from directly acting on the H-bridge driving circuit 30. The problem of unreliable drive power for output caused by shutdown.

过流保护电路40分别与H桥驱动电路30和调速控制电路20电连接,用于当检测到流经直流电机200的驱动电流大于或等于阈值电流时,向调速控制电路20发送保护信号,使得调速控制电路20降低驱动电源。The overcurrent protection circuit 40 is electrically connected to the H-bridge drive circuit 30 and the speed control circuit 20 respectively, and is used to send a protection signal to the speed control circuit 20 when it is detected that the drive current flowing through the DC motor 200 is greater than or equal to the threshold current , so that the speed control circuit 20 reduces the driving power.

如图3所示,过流保护电路40包括第一采样电路401和开关电路402。As shown in FIG. 3 , the overcurrent protection circuit 40 includes a first sampling circuit 401 and a switch circuit 402 .

第一采样电路401与H桥驱动电路30电连接,用于采样流经直流电机200的驱动电流,产生采样电压。The first sampling circuit 401 is electrically connected to the H-bridge driving circuit 30, and is used for sampling the driving current flowing through the DC motor 200 to generate a sampling voltage.

如图6所示,第一采样电路401包括第五电阻R5、第二电容C2以及第六电阻R6。其中,第五电阻R5的一端与H桥驱动电路30(即图4所示的网络端口IU)电连接,第五电阻R5的另一端与第二电容C2的一端、第六电阻R6的一端以及开关电路402电连接;第二电容C2的另一端接地;第六电阻R6的另一端接地。As shown in FIG. 6 , the first sampling circuit 401 includes a fifth resistor R5 , a second capacitor C2 and a sixth resistor R6 . One end of the fifth resistor R5 is electrically connected to the H-bridge drive circuit 30 (ie, the network port IU shown in FIG. 4 ), and the other end of the fifth resistor R5 is connected to one end of the second capacitor C2, one end of the sixth resistor R6 and The switch circuit 402 is electrically connected; the other end of the second capacitor C2 is grounded; the other end of the sixth resistor R6 is grounded.

开关电路402分别与第一采样电路401和调速控制电路20电连接,用于当采样电压大于电压导通阈值时,开关电路402将PWM信号偏置在作为保护信号的低电平,使得调速控制电路20降低驱动电源。The switch circuit 402 is electrically connected to the first sampling circuit 401 and the speed regulation control circuit 20 respectively, and is used to bias the PWM signal to a low level as a protection signal when the sampling voltage is greater than the voltage turn-on threshold, so that the regulation The speed control circuit 20 reduces the drive power.

如图6所示,开关电路402包括NPN三极管Q3,NPN三极管Q3的基极与第五电阻R5的另一端、第二电容C2的一端以及第六电阻R6的一端电连接,NPN三极管Q3的发射极接地,NPN三极管Q3的集电极与调速控制电路20电连接(即图4所示的网络端口P)。As shown in FIG. 6 , the switch circuit 402 includes an NPN transistor Q3, the base of the NPN transistor Q3 is electrically connected to the other end of the fifth resistor R5, one end of the second capacitor C2 and one end of the sixth resistor R6, and the emission of the NPN transistor Q3 The pole is grounded, and the collector of the NPN transistor Q3 is electrically connected to the speed control circuit 20 (ie, the network port P shown in FIG. 4 ).

综上,过流保护电路40的工作过程如下:To sum up, the working process of the overcurrent protection circuit 40 is as follows:

(1)假设直流电机200的阈值电流为Im、NPN三极管Q3基极的导通电压为VB,当直流电机200正常工作时,直流电机200的驱动电流小于阈值电流Im,直流电机200的驱动电流经过第五电阻R5、第二电容C2以及第六电阻R6,产生采样电压,并作用于NPN三极管Q3的基极。此时,采样电压小于NPN三极管Q3的基极的导通电压VB,不满足NPN三极管Q3的导通条件,NPN三极管Q3截止,过流保护电路40不工作。(1) Assuming that the threshold current of the DC motor 200 is Im and the on-voltage of the base of the NPN transistor Q3 is VB, when the DC motor 200 works normally, the driving current of the DC motor 200 is less than the threshold current Im, and the driving current of the DC motor 200 The sampling voltage is generated through the fifth resistor R5, the second capacitor C2 and the sixth resistor R6, and acts on the base of the NPN transistor Q3. At this time, the sampling voltage is less than the conduction voltage VB of the base of the NPN transistor Q3, which does not satisfy the conduction condition of the NPN transistor Q3, the NPN transistor Q3 is turned off, and the overcurrent protection circuit 40 does not work.

(2)当直流电机200异常(如发生桥臂短路、直流电机200短路等故障)时,直流电机200的驱动电流大于或等于阈值电流Im,直流电机200的驱动电流经过第五电阻R5、第二电容C2以及第六电阻R6,产生采样电压。此时,采样电压大于或等于NPN三极管Q3的基极的导通电压VB,满足NPN三极管Q3的导通条件,NPN三极管Q3导通,过流保护电路40工作。具体的,当NPN三极管Q3导通时,NPN三极管Q3导通集电极的电压被拉低,通过网络端口P将NPN三极管Q1的基极输入偏置为低电平,使得调速控制电路20无法接收PWM信号,进而使得调速控制电路20输出的驱动电源V2下降。(2) When the DC motor 200 is abnormal (such as a bridge arm short circuit, a short circuit of the DC motor 200, etc.), the driving current of the DC motor 200 is greater than or equal to the threshold current Im, and the driving current of the DC motor 200 passes through the fifth resistor R5, the first The second capacitor C2 and the sixth resistor R6 generate the sampling voltage. At this time, the sampling voltage is greater than or equal to the conduction voltage VB of the base of the NPN transistor Q3, which satisfies the conduction condition of the NPN transistor Q3, the NPN transistor Q3 is turned on, and the overcurrent protection circuit 40 operates. Specifically, when the NPN transistor Q3 is turned on, the voltage of the conductive collector of the NPN transistor Q3 is pulled down, and the base input of the NPN transistor Q1 is biased to a low level through the network port P, so that the speed control circuit 20 cannot After receiving the PWM signal, the driving power V2 output by the speed control circuit 20 is lowered.

(3)当驱动电源V2下降至使得直流电机200的驱动电流再次小于阈值电流Im时,重复上述步骤(1),过流保护电路40不工作,使得调速控制电路20可再次正常接收PWM信号,进而使得调速控制电路20输出的驱动电源V2升高,当驱动电源V2升高至使得采样电压大于或等于NPN三极管Q3的基极的导通电压VB,重复上述步骤(2),过流保护电路40工作。(3) When the driving power V2 drops to the point that the driving current of the DC motor 200 is less than the threshold current Im again, repeat the above step (1), the overcurrent protection circuit 40 does not work, so that the speed control circuit 20 can normally receive the PWM signal again , and then make the drive power V2 output by the speed control circuit 20 rise, when the drive power V2 rises to make the sampling voltage greater than or equal to the conduction voltage VB of the base of the NPN transistor Q3, repeat the above step (2), overcurrent The protection circuit 40 operates.

需要说明的是,上述过程为NPN三极管Q3的电流放大过程,最终使得H桥驱动电路30的驱动电流(即流经直流电机200的驱动电流)等于阈值电流Im,从而使得驱动电流不超过阈值电流Im,以达到保护H桥驱动电路30的目的,从而提升了直流电机控制电路100的安全性。It should be noted that the above process is the current amplification process of the NPN transistor Q3, and finally the drive current of the H-bridge drive circuit 30 (that is, the drive current flowing through the DC motor 200) is equal to the threshold current Im, so that the drive current does not exceed the threshold current. Im, in order to achieve the purpose of protecting the H-bridge driving circuit 30, thereby improving the safety of the DC motor control circuit 100.

转速检测电路50分别与H桥驱动电路和控制器电连接,用于采样直流电机200的工作电压并将工作电压发送至控制器10,使得控制器10控制调速控制电路20调整驱动电源。The rotational speed detection circuit 50 is electrically connected to the H-bridge driving circuit and the controller, respectively, for sampling the operating voltage of the DC motor 200 and sending the operating voltage to the controller 10 , so that the controller 10 controls the speed control circuit 20 to adjust the driving power.

如图7所示,转速检测电路50包括第七电阻R7、第八电阻R8以及第三电容C3。其中,第七电阻R7的一端与H桥驱动电路30和第八电阻R8的一端电连接,第七电阻R7的另一端接地;第八电阻R8的另一端与第三电容C3的一端和控制器10电连接;第三电容C3的另一端接地。As shown in FIG. 7 , the rotational speed detection circuit 50 includes a seventh resistor R7 , an eighth resistor R8 and a third capacitor C3 . One end of the seventh resistor R7 is electrically connected to the H-bridge drive circuit 30 and one end of the eighth resistor R8, and the other end of the seventh resistor R7 is grounded; the other end of the eighth resistor R8 is connected to one end of the third capacitor C3 and the controller 10 is electrically connected; the other end of the third capacitor C3 is grounded.

其中,第七电阻R7为采样电阻,第七电阻R7的阻值等于VB/Im。第八电阻R8和第三电容C3组成一滤波电路,对第七电阻R7采样的工作电压进行降噪滤波,并发送至控制器10的AD采样端口,控制器10根据转速检测电路50采样的工作电压与预设电压,计算PWM信号的目标占空比,以使调速控制电路20根据目标占空比调整驱动电源。The seventh resistor R7 is a sampling resistor, and the resistance value of the seventh resistor R7 is equal to VB/Im. The eighth resistor R8 and the third capacitor C3 form a filter circuit, which performs noise reduction filtering on the working voltage sampled by the seventh resistor R7, and sends it to the AD sampling port of the controller 10. The controller 10 works according to the sampling of the rotational speed detection circuit 50. The voltage and the preset voltage are used to calculate the target duty cycle of the PWM signal, so that the speed control circuit 20 adjusts the drive power according to the target duty cycle.

综上,转速检测电路50的工作过程如下:To sum up, the working process of the rotational speed detection circuit 50 is as follows:

(1)当直流电机200正常工作时,流经直流电机200的驱动电流小于阈值电流Im,第七电阻R7采样的直流电机200的工作电压,经过第八电阻R8和第三电容C3作滤波处理后发送至控制器10,控制器10将第七电阻R7采样的直流电机200的工作电压与预设电压进行求差计算,根据求差计算的结果,调节控制器10输出的PWM信号的占空比,直到转速检测电路50采样的直流电机200的工作电压达到预设电压的允许偏差内,从而达到直流电机200调速的目的。(1) When the DC motor 200 is working normally, the driving current flowing through the DC motor 200 is less than the threshold current Im, and the working voltage of the DC motor 200 sampled by the seventh resistor R7 is filtered through the eighth resistor R8 and the third capacitor C3 Then, it is sent to the controller 10, and the controller 10 calculates the difference between the working voltage of the DC motor 200 sampled by the seventh resistor R7 and the preset voltage, and adjusts the duty cycle of the PWM signal output by the controller 10 according to the result of the difference calculation. until the working voltage of the DC motor 200 sampled by the rotational speed detection circuit 50 reaches within the allowable deviation of the preset voltage, so as to achieve the purpose of speed regulation of the DC motor 200 .

(2)当直流电机200异常时,流经直流电机200的驱动电流大于或等于阈值电流Im,第七电阻R7采样的直流电机200的工作电压,经过第八电阻R8和第三电容C3作滤波处理后发送至控制器10,此时,工作电压大于或等于NPN三极管Q3的基极的导通电压VB,控制器10控制PWM信号为低电平,以实现软件控制过流保护的目的,进一步提升了直流电机控制电路100的安全性。(2) When the DC motor 200 is abnormal, the driving current flowing through the DC motor 200 is greater than or equal to the threshold current Im, and the working voltage of the DC motor 200 sampled by the seventh resistor R7 is filtered through the eighth resistor R8 and the third capacitor C3 After processing, it is sent to the controller 10. At this time, the working voltage is greater than or equal to the turn-on voltage VB of the base of the NPN transistor Q3, and the controller 10 controls the PWM signal to be low to achieve the purpose of software-controlled overcurrent protection, and further The safety of the DC motor control circuit 100 is improved.

本发明实施例提供了一种直流电机控制电路,通过调速控制电路响应控制器发送的PWM信号,产生驱动电源,驱动电源与PWM信号的占空比成正比关系,H桥驱动电路根据驱动电源驱动直流电机工作,驱动电源与直流电机的转速成正比关系,过流保护电路当检测到流经直流电机的驱动电流大于或等于阈值电流时,向调速控制电路发送保护信号,使得调速控制电路降低驱动电源。因此,本发明实施例通过调速控制电路将PWM信号转换成驱动电源,以直接驱动直流电机,且通过过流保护电路当检测到流经直流电机的驱动电流大于或等于阈值电流时,使得调速控制电路降低驱动电源,以实现即时的硬件保护,从而提升了直流电机控制电路的安全性和可靠性。The embodiment of the present invention provides a DC motor control circuit. The speed regulation control circuit responds to a PWM signal sent by a controller to generate a driving power supply. The driving power supply is proportional to the duty cycle of the PWM signal. The H-bridge driving circuit responds to the driving power supply The DC motor is driven to work, and the driving power is proportional to the speed of the DC motor. When the overcurrent protection circuit detects that the driving current flowing through the DC motor is greater than or equal to the threshold current, it sends a protection signal to the speed control circuit to make the speed control control The circuit reduces the drive power. Therefore, in the embodiment of the present invention, the PWM signal is converted into a driving power source through the speed regulation control circuit to directly drive the DC motor, and when the overcurrent protection circuit detects that the driving current flowing through the DC motor is greater than or equal to the threshold current, the regulation is adjusted. The high-speed control circuit reduces the drive power to achieve instant hardware protection, thereby improving the safety and reliability of the DC motor control circuit.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, The steps may be carried out in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the invention has been The skilled person should understand that it is still possible to modify the technical solutions recorded in the foregoing embodiments, or to perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the implementation of the present invention. scope of technical solutions.

Claims (10)

1. A dc motor control circuit, comprising:
a controller for transmitting a PWM signal;
the speed regulation control circuit is electrically connected with the controller and used for responding to the PWM signal and generating a driving power supply, and the driving power supply and the duty ratio of the PWM signal are in a direct proportion relation;
the H-bridge driving circuit is electrically connected with the speed regulation control circuit and used for driving the direct current motor to work according to the driving power supply, and the driving power supply is in direct proportion to the rotating speed of the direct current motor;
the overcurrent protection circuit is respectively electrically connected with the H-bridge drive circuit and the speed regulation control circuit and is used for sending a protection signal to the speed regulation control circuit when detecting that the drive current flowing through the direct current motor is greater than or equal to a threshold current, so that the speed regulation control circuit reduces the drive power supply; and the number of the first and second groups,
and the rotating speed detection circuit is respectively electrically connected with the H-bridge driving circuit and the controller and is used for sampling the working voltage of the direct current motor and sending the working voltage to the controller, so that the controller controls the speed regulation control circuit to regulate the driving power supply.
2. The dc motor control circuit of claim 1, wherein the speed regulation control circuit comprises:
a charging circuit;
and the starting circuit is respectively electrically connected with the controller and the charging circuit and used for controlling an external power supply to charge the charging circuit and provide the driving power supply for the H-bridge driving circuit when the PWM signal is at a high level, and controlling the external power supply to stop charging the charging circuit when the PWM signal is at a low level so that the charging circuit discharges to provide the driving power supply for the H-bridge driving circuit.
3. The dc motor control circuit of claim 2, wherein the start-up circuit comprises a first resistor, a second resistor, an NPN transistor, a third resistor, a fourth resistor, and a PNP transistor;
one end of the first resistor is used for receiving the PWM signal, and the other end of the first resistor is electrically connected with one end of the second resistor, the base electrode of the NPN triode and the overcurrent protection circuit; the other end of the second resistor is grounded; an emitting electrode of the NPN triode is grounded, and a collector electrode of the NPN triode is electrically connected with one end of the third resistor; the other end of the third resistor is electrically connected with one end of the fourth resistor and the base electrode of the PNP triode; the other end of the fourth resistor is electrically connected with an emitting electrode of the PNP triode and used for receiving an external power supply; and the collector electrode of the PNP triode is electrically connected with the charging circuit.
4. The dc motor control circuit of claim 3, wherein the charging circuit comprises an inductor and a first capacitor;
one end of the inductor is electrically connected with the collector of the PNP triode, and the other end of the inductor is electrically connected with the positive electrode of the first capacitor and used for outputting the driving power supply; and the negative electrode of the first capacitor is grounded.
5. The DC motor control circuit of claim 4, wherein the speed control circuit further comprises a free-wheeling circuit electrically connected between the start-up circuit and the charging circuit, for controlling the start-up circuit to stop charging the charging circuit when the external power supply stops charging the charging circuit when the PWM signal is at a low level, and performing free-wheeling processing on the back electromotive force generated by the charging circuit.
6. The dc motor control circuit of claim 5, wherein the freewheel circuit includes a first diode and a second diode;
the cathode of the first diode is electrically connected with the emitting electrode of the PNP triode, and the anode of the first diode is electrically connected with the collector electrode of the PNP triode, one end of the inductor and the cathode of the second diode; the anode of the second diode is grounded.
7. The direct current motor control circuit according to any one of claims 1 to 6, wherein the overcurrent protection circuit comprises:
the first sampling circuit is electrically connected with the H-bridge driving circuit and is used for sampling the driving current flowing through the direct current motor and generating sampling voltage;
and the switching circuit is respectively electrically connected with the first sampling circuit and the speed regulation control circuit and is used for biasing the PWM signal at a low level serving as the protection signal when the sampling voltage is greater than a voltage conduction threshold value, so that the speed regulation control circuit reduces the driving power supply.
8. The dc motor control circuit of claim 7, wherein the first sampling circuit comprises a fifth resistor, a second capacitor, and a sixth resistor;
one end of the fifth resistor is electrically connected with the H-bridge driving circuit, and the other end of the fifth resistor is electrically connected with one end of the second capacitor, one end of the sixth resistor and the switch circuit; the other end of the second capacitor is grounded; the other end of the sixth resistor is grounded.
9. The direct current motor control circuit according to any one of claims 1 to 6, wherein the rotation speed detection circuit includes a seventh resistor, an eighth resistor, and a third capacitor;
one end of the seventh resistor is electrically connected with the H-bridge driving circuit and one end of the eighth resistor, and the other end of the seventh resistor is grounded; the other end of the eighth resistor is electrically connected with one end of the third capacitor and the controller; the other end of the third capacitor is grounded.
10. A dc motor control system, comprising:
a direct current motor;
the dc motor control circuit of any of claims 1 to 9, electrically connected to the dc motor.
CN202010575216.6A 2020-06-22 2020-06-22 A DC motor control circuit and a DC motor control system Pending CN111682811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010575216.6A CN111682811A (en) 2020-06-22 2020-06-22 A DC motor control circuit and a DC motor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010575216.6A CN111682811A (en) 2020-06-22 2020-06-22 A DC motor control circuit and a DC motor control system

Publications (1)

Publication Number Publication Date
CN111682811A true CN111682811A (en) 2020-09-18

Family

ID=72456091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010575216.6A Pending CN111682811A (en) 2020-06-22 2020-06-22 A DC motor control circuit and a DC motor control system

Country Status (1)

Country Link
CN (1) CN111682811A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064366A (en) * 2021-03-15 2021-07-02 上海飞象健康科技有限公司 Control circuit and method for tooth flushing device, storage medium and tooth flushing device
CN113179096A (en) * 2021-04-25 2021-07-27 珠海格力电器股份有限公司 Delay circuit, motor device and motor system
CN115327970A (en) * 2022-06-30 2022-11-11 深圳作为科技有限公司 Control circuit of bathing machine
WO2022267483A1 (en) * 2021-06-21 2022-12-29 青岛海尔生物医疗科技有限公司 Control method and apparatus for direct-current motor, and motor control system
CN119356195A (en) * 2024-12-25 2025-01-24 海星科技(深圳)有限公司 An extrusion molding mechanism control circuit of an ice cream machine and an ice cream machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262197A (en) * 2007-03-06 2008-09-10 罗姆股份有限公司 Motor drive device and electric apparatus using the same
CN101589545A (en) * 2007-12-26 2009-11-25 三洋电机株式会社 Motor driving circuit, fan motor, electronic instrument, and notebook personal computer
US20100033064A1 (en) * 2008-08-06 2010-02-11 Denso Corporation Rotation detector and direct-current motor
CN212649385U (en) * 2020-06-22 2021-03-02 深圳数联天下智能科技有限公司 Direct current motor control circuit and direct current motor control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262197A (en) * 2007-03-06 2008-09-10 罗姆股份有限公司 Motor drive device and electric apparatus using the same
CN101589545A (en) * 2007-12-26 2009-11-25 三洋电机株式会社 Motor driving circuit, fan motor, electronic instrument, and notebook personal computer
US20100033064A1 (en) * 2008-08-06 2010-02-11 Denso Corporation Rotation detector and direct-current motor
CN212649385U (en) * 2020-06-22 2021-03-02 深圳数联天下智能科技有限公司 Direct current motor control circuit and direct current motor control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢圣昌 等: "一种H 桥式驱动电路的设计", 《广州航海学院学报》, vol. 24, no. 3, 30 September 2016 (2016-09-30), pages 36 - 38 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064366A (en) * 2021-03-15 2021-07-02 上海飞象健康科技有限公司 Control circuit and method for tooth flushing device, storage medium and tooth flushing device
CN113179096A (en) * 2021-04-25 2021-07-27 珠海格力电器股份有限公司 Delay circuit, motor device and motor system
WO2022267483A1 (en) * 2021-06-21 2022-12-29 青岛海尔生物医疗科技有限公司 Control method and apparatus for direct-current motor, and motor control system
CN115327970A (en) * 2022-06-30 2022-11-11 深圳作为科技有限公司 Control circuit of bathing machine
CN119356195A (en) * 2024-12-25 2025-01-24 海星科技(深圳)有限公司 An extrusion molding mechanism control circuit of an ice cream machine and an ice cream machine

Similar Documents

Publication Publication Date Title
CN111682811A (en) A DC motor control circuit and a DC motor control system
US6664750B2 (en) D.C. motor bridge coil driver
CN109888739B (en) MOSFET short-circuit protection circuit for drive axle
CN103795033B (en) A kind of detection protective circuit of switched reluctance machines phase fault and method thereof
TW200841578A (en) Motor driving circuit having low current consumption under a standby mode
TW201707371A (en) Direct-current motor control device including first switch module, a second switch module, an inductor element, a power storage element, a first valve control element and a second valve control element
US20070296363A1 (en) Rectifier and System for Controlling the Speed of an Electric Motor
CN212649385U (en) Direct current motor control circuit and direct current motor control system
CN118213950A (en) Low-side high-power MOS protection circuit
CN106208893B (en) Speed regulation driving circuit of motor and fan motor
CN219322274U (en) Protection circuit, motor control device and lighting equipment
CN103263969A (en) paper shredder
CN103016378B (en) Driving circuit and driving method of external rotor electronic control type fan adjuster
CN112615574B (en) Direct current motor driving device
CN212463098U (en) Direct current motor driving circuit with power-on protection and shutdown protection
CN216437100U (en) DC motor locked rotor detection device
CN113659878A (en) Wall robot motor control circuit and overcurrent protection method
CN1205739C (en) DC fan driving circuit
CN114421773A (en) Household appliance power supply
CN213782863U (en) Direct current has brush motor protection circuit and direct current has brush motor
CN206364738U (en) Motor speed control drive circuit and fan motor
CN115276386B (en) Duty cycle limiting circuit, motor driving circuit and motor driving method
CN205986686U (en) Single-phase DC brushless motor driving circuit
CN216437090U (en) Wall robot motor control circuit
CN118695451B (en) Dimming power supply

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