Motor drive circuit with adjustable speed and brake protection
By designing a motor drive circuit including motor control, brake and overcurrent protection circuit, the problem of lack of speed regulation and brake functions of motor drive circuits in existing electric furniture is solved, and the motor's smooth speed regulation and brake protection is achieved, reducing maintenance costs and defect rates.
Patent Information
- Application Number
- CN202011053682.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2040-09-29
AI Technical Summary
The motor drive circuits in existing electric furniture lack speed regulation and braking functions, which leads to sudden start and stop of the motor, causing discomfort to the user and increasing the maintenance cost of the product.
A motor driving circuit including a motor control circuit, a brake circuit, a first overcurrent protection circuit and a second overcurrent protection circuit is designed. The motor speed adjustment is realized through a single chip computer controlling the PWM signal, and the energy generated by the inertia of the motor is released through the brake circuit to realize the brake function of the motor.
It realizes the motor's smooth speed regulation and brake protection, reduces the circuit board's defect rate and after-sales maintenance costs, and improves user experience and product stability.
Smart Images

Figure CN112072971B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric furniture, and in particular to a motor drive circuit with adjustable speed and brake protection. Background Art
[0002] With the development of science and technology and the improvement of people's living standards, people have higher requirements for traditional furniture products. Traditional sofas, beds, cabinets and wardrobes no longer attract consumers' attention. Instead, some furniture with electric functions are replaced. For example, electric beds with electric angle adjustment, cabinets and wardrobes with electric switches, sofas with electric posture adjustment, and massage chairs that are gradually recognized and accepted by people. In these electric use scenarios, the motor is an indispensable and important component, and the importance of the motor drive circuit that makes the motor work normally is self-evident. Its quality will directly affect the most important functions and quality of these electric furniture.
[0003] At present, many furniture products with electric functions on the market use too simple motor drive circuits and lack speed regulation and braking functions. During use, the sudden start and stop of the motor and the too fast speed of product angle adjustment cause a series of problems to the user, which not only greatly reduces the user experience, but also the stability of the product and the high cost caused by too frequent after-sales maintenance, which is also an urgent problem to be solved. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a motor drive circuit with adjustable speed and brake protection to solve the problems of poor user experience and excessively high after-sales maintenance costs caused by unstable product quality in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the present application provides a motor drive circuit with adjustable speed and brake protection, the circuit comprising: a motor control circuit, a brake circuit, a first overcurrent protection circuit, a second overcurrent protection circuit, and a motor interface; the first overcurrent protection circuit is connected between the motor control circuit and the motor interface for connecting to the motor; the second overcurrent protection circuit is connected between the brake circuit and the motor interface; the motor control circuit is used to connect to the PWM port and the first IO output port of the single-chip microcomputer, and drive or stop the operation of the motor according to the PWM signal output by the PWM port; the brake circuit is used to connect to the first IO output port and the second IO output port of the single-chip microcomputer, and control the second overcurrent protection circuit to release the energy generated by the inertia of the motor according to the first IO output port and the second IO output port The signal, and the second IO level signal output by the first IO output port and the second IO output port, thereby achieving the purpose of motor braking.
[0006] In one embodiment of the present application, the motor control circuit includes: a first transistor, a second transistor, and a third transistor; the base of the first transistor is used to connect to the PWM port of the single-chip microcomputer to receive a PWM signal; the base of the second transistor and the base of the third transistor are respectively used to connect to the first IO output port of the single-chip microcomputer to receive a first IO level signal; the base of the second transistor and the base of the third transistor are also respectively connected to the collector of the first transistor; the emitter of the second transistor is connected to the emitter of the third transistor and is connected to the first overcurrent protection circuit; the first transistor and the third transistor are NPN transistors; the second transistor is a PNP transistor.
[0007] In one embodiment of the present application, the first overcurrent protection circuit includes: a first fuse, a first diode, and a first MOS tube; the gate of the first MOS tube is respectively connected to the emitter of the second transistor and the emitter of the third transistor to access the motor control circuit; the drain of the first MOS tube is respectively connected to the cathode of the first diode and the motor interface; the anode of the first diode is respectively connected to the first fuse and the motor interface; the source of the first MOS tube is grounded; the first MOS tube is an N-channel MOS tube.
[0008] In one embodiment of the present application, the motor control circuit drives or stops the operation of the motor according to the PWM signal output by the PWM port, including: when the PWM signal is a low-level signal, the first transistor is turned off, the first IO-level signal is a high-level signal, the second diode is turned off, the third transistor is turned on, the emitter of the third transistor is a high-level signal, and the gate voltage of the first MOS transistor is a high-level signal, so that the first MOS transistor is turned on, thereby generating a voltage at the motor interface to drive the connected motor to work; and / or, when the PWM signal is a high-level signal, the first transistor is turned on, the first IO-level signal is a low-level signal, the third transistor is turned off, the second diode is turned on, the emitter of the second transistor is a low-level signal, and the gate voltage of the first MOS transistor is a low-level signal, so that the first MOS transistor is turned on, thereby not generating a voltage at the motor interface to stop the connected motor from working.
[0009] In one embodiment of the present application, the speed of the motor can be adjusted by controlling the PWM signal through a single chip microcomputer.
[0010] In one embodiment of the present application, the brake circuit includes; a fourth transistor and a fifth transistor; the base of the fourth transistor is used to connect to the first IO output port of the microcontroller to receive a first IO level signal; the collector of the fourth transistor and the base of the fifth transistor are respectively used to connect to the second IO output port of the microcontroller to receive a second IO level signal; the emitter of the fourth transistor and the emitter of the fifth transistor are respectively grounded; the collector of the fifth transistor is used to connect to the second overcurrent protection circuit; the fourth transistor and the fifth transistor are NPN transistors.
[0011] In one embodiment of the present application, the second overcurrent protection circuit includes: a capacitor, a second diode, a second MOS tube, a second fuse, and an energy release resistor for releasing the energy generated by the inertia of the motor; one end of the capacitor, the cathode of the second diode, and the gate of the second MOS tube are respectively connected to the collector of the fifth transistor to access the braking circuit; the other end of the capacitor and the anode of the second diode are respectively connected to the drain of the second MOS tube; the source of the second MOS tube is connected to one end of the second fuse; the other end of the second fuse is connected to one end of the energy release resistor; the other end of the energy release resistor is connected to the motor interface; the second MOS tube is a P-channel MOS tube.
[0012] In one embodiment of the present application, the brake circuit controls the second overcurrent protection circuit to release the energy generated by the inertia of the motor according to the first IO level signal and the second IO level signal, thereby achieving the purpose of motor braking, including: when the first IO level signal connected to the base of the fourth transistor is a high level signal, the fourth transistor is turned on and the fifth transistor is turned off, so that the collector voltage of the fifth transistor does not change, so as not to affect the motor connected to the motor interface; and / or, when the first IO level signal connected to the base of the fourth transistor is a low level signal, and the second IO level signal connected to the base of the fifth transistor is a high level signal, the fifth transistor is turned on, so that the collector of the fifth transistor is a low level, and the second MOS tube is turned on. At this time, the energy generated by the inertia of the motor will be quickly released through the energy release resistor to achieve the purpose of braking.
[0013] In one embodiment of the present application, the energy dissipation resistor is a 5.1R / 7W resistor.
[0014] In one embodiment of the present application, any one of the first to fifth transistors can be replaced by a corresponding MOS transistor to achieve the same function; and / or, the first MOS transistor or the second MOS transistor can be replaced by a transistor with corresponding parameters to achieve the same function.
[0015] In summary, the present application discloses a motor drive circuit with adjustable speed and brake protection, the circuit comprising: a motor control circuit, a brake circuit, a first overcurrent protection circuit, a second overcurrent protection circuit, and a motor interface; the first overcurrent protection circuit is connected between the motor control circuit and the motor interface for connecting to the motor; the second overcurrent protection circuit is connected between the brake circuit and the motor interface; the motor control circuit is used to connect to the PWM port and the first IO output port of the single-chip microcomputer, and drive or stop the operation of the motor according to the PWM signal output by the PWM port; the brake circuit is used to connect to the first IO output port and the second IO output port of the single-chip microcomputer, and control the second overcurrent protection circuit to release the energy generated by the inertia of the motor according to the first IO output port and the second IO output port, thereby achieving the purpose of motor braking.
[0016] It has the following beneficial effects:
[0017] Compared with the prior art, the present application can effectively realize smooth speed regulation and brake protection of motor control, and can reduce the defective rate of circuit boards and after-sales maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Shown is a module schematic diagram of a motor driving circuit with adjustable speed and brake protection in one embodiment of the present application.
[0019] Figure 2 Shown is a circuit diagram of a motor driving circuit with adjustable speed and brake protection in one embodiment of the present application. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0021] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Although the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation, the type, quantity and proportion of each component in actual implementation may be changed arbitrarily, and the component layout may also be more complicated.
[0022] Throughout the specification, when a part is said to be "connected" to another part, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a part is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.
[0023] The terms first, second and third are used to describe various parts, components, regions, layers and / or segments, but are not limited thereto. These terms are only used to distinguish a certain part, component, region, layer or segment from other parts, components, regions, layers or segments. Therefore, the first part, component, region, layer or segment described below may refer to the second part, component, region, layer or segment within the scope of this application.
[0024] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0025] At present, there are more and more furniture products with electric functions on the market, such as electric beds with electric angle adjustment, electric cabinets and wardrobes with electric opening and closing, electric sofas with electric posture adjustment, massage chairs, etc. However, the existing motor drive circuits are mostly too simple and lack speed regulation and braking functions. During use, the sudden start and stop of the motor, the excessive speed of the product angle adjustment, and a series of problems that cause discomfort to the user not only greatly reduce the user experience, but also the stability of the product and the high cost caused by too frequent after-sales maintenance are also problems that need to be solved urgently.
[0026] It should be noted that the motor driving circuit described in this application is applicable to different scenarios of motors from those applicable to the automotive field. The power or torque required to be output by the motors applicable to the circuit of this application is much smaller than that of motors in the automotive field, and the performance parameter requirements of each component of the circuit adapted to the motor driving circuit described in this application are also much smaller than those of each component in the motors in the automotive field, and the required PWM signal range and regulation are also much simpler than those of motors in the automotive field.
[0027] like Figure 1 , which is a schematic diagram of a motor drive circuit with adjustable speed and brake protection in one embodiment of the present application. As shown in the figure, the circuit 100 includes: a motor control circuit 110, a brake circuit 120, a first overcurrent protection circuit 130, a second overcurrent protection circuit 140, and a motor interface 150.
[0028] The first overcurrent protection circuit 130 is connected between the motor control circuit 110 and the motor interface 150 for connecting the motor 300; the second overcurrent protection circuit 140 is connected between the brake circuit 120 and the motor interface 150;
[0029] The motor control circuit 110 is used to connect to the PWM port of the single-chip microcomputer 200 and the first IO output port, and drive or stop the motor 300 according to the PWM signal output by the PWM port;
[0030] The brake circuit 120 is used to connect to the first IO output port and the second IO output port of the single-chip microcomputer 200, and control the second overcurrent protection circuit 140 to release the energy generated by the inertia of the motor 300 according to the first IO level signal and the second IO level signal output by the first IO output port and the second IO output port, thereby achieving the purpose of braking the motor 300.
[0031] The first IO output port and the second IO output port are connected to the output ports of the single-chip microcomputer 200 respectively; the PWM port is connected to the IO port pin with a timer function of the single-chip microcomputer 200; and the motor interface 150 is connected to the motor 300 to be driven.
[0032] The present application drives the motor 300 through the PWM and IO port pins of the external single-chip microcomputer 200, so as to adjust the speed of the motor 300 through PWM pulse width modulation, and protects the motor drive circuit 100 through the first overcurrent protection circuit 130, the second overcurrent protection circuit 140 and the brake circuit 120, so as to realize the brake function of the motor 300. The present application can well solve the problem of poor user experience and the problem of excessively high after-sales maintenance costs caused by unstable product quality.
[0033] Furthermore, by Figure 2 Shown is a circuit diagram of a motor drive circuit with adjustable speed and brake protection in one embodiment of the present application, to respectively show the specific composition of each circuit in one or more feasible embodiments.
[0034] In this embodiment, if Figure 2 As shown, the motor control circuit 110 includes a first transistor Q1, a second transistor Q2, and a third transistor Q3.
[0035] Specifically, the base of the first transistor Q1 is used to connect Figure 1 The PWM port of the single-chip computer 200 is connected to receive the PWM signal; specifically, the power supply VCC is also connected to the first resistor R1, and then connected to the base of the first transistor Q1 through the second resistor R2 together with the PWM port; the base of the second transistor Q2 and the base of the third transistor Q3 are respectively used to connect to the first IO output port of the single-chip computer 200 to receive the first IO level signal; the base of the second transistor Q2 and the base of the third transistor Q3 are also respectively connected to the collector of the first transistor Q1; in addition, the power supply VDD1 is also respectively connected to one end of the third resistor R3 and the collector of the base of the first transistor Q1, and the other end of the third resistor R3 is respectively connected to the collector of the first transistor Q1, the base of the second transistor Q2, and the base of the third transistor Q3; the emitter of the second transistor Q2 is connected to the emitter of the third transistor Q3 and connected to the first overcurrent protection circuit 130, wherein a fourth resistor R4 is also inserted between them.
[0036] Among them, the first transistor Q1 and the third transistor Q3 of the power source VDD1 are NPN transistors; and the second transistor Q2 is a PNP transistor.
[0037] It should be noted that the power source VDD1 is a power source for driving the first MOS transistor M1 , and its voltage value meets the driving voltage parameter of the first MOS transistor M1 .
[0038] In the present application, the motor control circuit 110 mainly indirectly controls the on and off of the first overcurrent protection circuit 130 through the received PWM signal in combination with the first IO level signal, thereby controlling the driving or stopping of the motor connected to the motor interface 150.
[0039] In this embodiment, the first over-current protection circuit 130 includes a first fuse F1 , a first diode D1 , and a first MOS transistor M1 .
[0040] Specifically, the gate of the first MOS tube M1 is respectively connected to the emitter of the second transistor Q2 and the emitter of the third transistor Q3 to access the motor control circuit 110; wherein, the gate of the first MOS tube M1 and the motor control circuit 110 are also grounded through a fifth resistor R5; the drain of the first MOS tube M1 is respectively connected to the cathode of the first diode Q1 and the motor interface 150; the anode of the first diode D1 is respectively connected to the first fuse F1 and the motor interface 150; wherein, the other end of the first fuse F1 is connected to the power supply VDD2.
[0041] The source of the first MOS transistor M1 is grounded; the first MOS transistor M1 is an N-channel MOS transistor.
[0042] It should be noted that the power supply VDD2 is the power supply required to drive the motor, and its voltage meets the voltage required for motor driving.
[0043] In addition, the function of the first fuse F1 is: when the load causes excessive current due to short circuit or stall, the first fuse F1 can cut off the power supply to achieve a protective effect; the function of the first diode D1 is: when the motor stops working, the movement caused by inertia will generate a reverse voltage, and the first diode D1 can ensure that the reverse voltage generated by the motor will not be loaded on the first MOS tube M1, causing damage to the first MOS tube M1.
[0044] In this embodiment, the motor control circuit 110 drives or stops the motor 300 according to the PWM signal output by the PWM port, including:
[0045] When the PWM signal is a low level signal, the first transistor Q1 is turned off, the first IO level signal is a high level signal, the second diode D2 is turned off, the third transistor Q3 is turned on, the emitter of the third transistor Q3 is a high level, and the gate voltage of the first MOS tube M1 is a high level, so that the first MOS tube M1 is turned on, so that the motor interface 150 generates a voltage to drive the connected motor to work.
[0046] And / or, when the PWM signal is a high level signal, the first transistor Q1 is turned on, the first IO level signal is a low level signal, the third transistor Q3 is turned off, the second diode D2 is turned on, the emitter of the second transistor Q2 is a low level, and the gate voltage of the first MOS tube M1 is a low level, so that the first MOS tube M1 is turned on, thereby preventing the motor interface 150 from generating voltage to stop the connected motor from working.
[0047] In this embodiment, the speed of the motor can be adjusted by controlling the PWM signal through the single chip microcomputer 200.
[0048] For example, the microcontroller 200 can control the output PWM signal to be high or low to start driving or stop the motor connected to the motor drive circuit described in the present application, and the microcontroller 200 can also control the output frequency of the PWM signal to control the speed of the motor.
[0049] In this embodiment, if Figure 2 As shown, the brake circuit 120 includes a fourth transistor Q4 and a fifth transistor Q5.
[0050] Specifically, the base of the fourth triode Q4 is used to connect to the first IO output port of the single-chip computer 200 to receive a first IO level signal; wherein a sixth resistor R6 is inserted in the middle; the collector of the fourth triode Q4 and the base of the fifth triode Q5 are respectively used to connect to the second IO output port of the single-chip computer 200 to receive a second IO level signal; wherein a seventh resistor R7 is inserted in the middle; the emitter of the fourth triode Q4 and the emitter of the fifth triode Q5 are respectively grounded; an eighth resistor R8 is also connected between the base and the emitter of the fifth triode Q5; the collector of the fifth triode Q5 is used to connect to the second overcurrent protection circuit 140, wherein a ninth resistor R9 is also inserted in the middle.
[0051] The fourth transistor Q4 and the fifth transistor Q5 are NPN transistors.
[0052] In this embodiment, the second overcurrent protection circuit 140 includes: a capacitor C, a second diode D2, a second MOS tube M2, a second fuse F2, and an energy release resistor R11 for releasing the energy generated by the inertia of the motor;
[0053] Specifically, one end of the capacitor C, the cathode of the second diode D2, one end of the tenth resistor R10, and the gate of the second MOS tube M2 are respectively connected to the collector of the fifth transistor Q5 to access the brake circuit 120; the other end of the capacitor C, the anode of the second diode D2, and the other end of the tenth resistor R10 are respectively connected to the power supply VDD2 and the drain of the second MOS tube M2; the source of the second MOS tube M2 is connected to one end of the second fuse F2; the other end of the second fuse F2 is connected to one end of the energy release resistor R11; the other end of the energy release resistor R11 is connected to the motor interface 150.
[0054] The second MOS tube M2 is a P-channel MOS tube. In addition, the second fuse F2 is used to prevent the circuit from being damaged by excessive current during operation, thus playing a protective role.
[0055] In this embodiment, the brake circuit 120 controls the second overcurrent protection circuit 140 to release the energy generated by the inertia of the motor according to the first IO level signal and the second IO level signal, thereby achieving the purpose of braking the motor, including:
[0056] When the first IO level signal connected to the base of the fourth transistor Q4 is a high level signal, the fourth transistor Q4 is turned on and the fifth transistor Q5 is turned off, so that the collector voltage of the fifth transistor Q5 does not change, so as not to affect the motor connected to the motor interface 150;
[0057] And / or, when the first IO level signal connected to the base of the fourth transistor Q4 is a low level signal, and the second IO level signal connected to the base of the fifth transistor Q5 is a high level signal, the fifth transistor Q5 is turned on, so that the collector of the fifth transistor Q5 is at a low level, and the second MOS tube M2 is turned on. At this time, the energy generated by the inertia of the motor will be quickly released through the energy release resistor R11 to achieve the purpose of braking.
[0058] In this embodiment, the energy dissipation resistor R11 is a 5.1R / 7W resistor.
[0059] In this embodiment, any one of the first transistor Q1 to the fifth transistor Q5 can be replaced by a corresponding MOS transistor to achieve the same function; and / or, the first MOS transistor M1 or the second MOS transistor M2 can be replaced by a transistor with corresponding parameters to achieve the same function.
[0060] For example, the second transistor Q2 described in the present application can use the 2N3906 transistor; the first transistor Q1, the third transistor Q3, and the fourth transistor Q4 can use the 2N3906 transistor; the fourth transistor Q4 can also use the MMBT5551 transistor; the first fuse F1 can use KT60-400B; the second fuse F2 can use KT30-2500B; the first diode D1 can use 4744; the second diode D2 can use SB5100.
[0061] In summary, the present application provides a motor drive circuit with adjustable speed and brake protection, the circuit comprising: the circuit comprising: a motor control circuit, a brake circuit, a first overcurrent protection circuit, a second overcurrent protection circuit, and a motor interface. Compared with the prior art, the present application can effectively achieve smooth speed regulation and brake protection of motor control, and can reduce the defective rate of circuit boards and after-sales maintenance costs. The present application effectively overcomes the various shortcomings of the prior art and has a high industrial utilization value.
[0062] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A motor drive circuit with speed regulation and brake protection, characterized in that: The circuit includes: a motor control circuit, a brake circuit, a first overcurrent protection circuit, a second overcurrent protection circuit, and a motor interface; The first overcurrent protection circuit is connected between the motor control circuit and the motor interface for connecting the motor; the second overcurrent protection circuit is connected between the brake circuit and the motor interface; The motor control circuit is used to connect to the PWM port of the single-chip microcomputer and the first IO output port, and drive or stop the motor according to the PWM signal output by the PWM port; The brake circuit is used to connect to the first IO output port and the second IO output port of the single-chip microcomputer, and control the second overcurrent protection circuit to release the energy generated by the inertia of the motor according to the first IO output port and the second IO output port. The purpose of braking the motor is achieved; The brake circuit includes: a fourth transistor and a fifth transistor; the base of the fourth transistor is used to connect to the first IO output port of the single-chip microcomputer to receive a first IO level signal; the collector of the fourth transistor and the base of the fifth transistor are respectively used to connect to the second IO output port of the single-chip microcomputer to receive a second IO level signal; the emitter of the fourth transistor and the emitter of the fifth transistor are respectively grounded; the collector of the fifth transistor is used to connect to the second overcurrent protection circuit; the fourth transistor and the fifth transistor are NPN transistors; The second overcurrent protection circuit includes: a capacitor, a second diode, a second MOS tube, a second fuse, and an energy release resistor for releasing the energy generated by the inertia of the motor; one end of the capacitor, the positive electrode of the second diode, and the gate of the second MOS tube are respectively connected to the collector of the fifth transistor to access the braking circuit; the other end of the capacitor and the negative electrode of the second diode are respectively connected to the drain of the second MOS tube; the source of the second MOS tube is connected to one end of the second fuse; the other end of the second fuse is connected to one end of the energy release resistor; the other end of the energy release resistor is connected to the motor interface; the second MOS tube is a P-channel MOS tube.
2. The motor drive circuit according to claim 1, characterized in that: The motor control circuit comprises: a first triode, a second triode, and a third triode; The base of the first transistor is used to connect to the PWM port of the single-chip microcomputer to receive a PWM signal; The base of the second transistor and the base of the third transistor are respectively used to connect to the first IO output port of the single chip computer to receive the first IO level signal; The base of the second transistor and the base of the third transistor are also connected to the collector of the first transistor respectively; The emitter of the second transistor is connected to the emitter of the third transistor and is connected to the first overcurrent protection circuit; the first transistor and the third transistor are NPN transistors; and the second transistor is a PNP transistor.
3. The motor drive circuit according to claim 2, characterized in that: The first overcurrent protection circuit comprises: a first fuse, a first diode, and a first MOS tube; The gate of the first MOS transistor is respectively connected to the emitter of the second transistor and the emitter of the third transistor to be connected to the motor control circuit; The drain of the first MOS tube is respectively connected to the anode of the first diode and the motor interface; The cathode of the first diode is respectively connected to the first fuse and the motor interface; The source of the first MOS tube is grounded; The first MOS transistor is an N-channel MOS transistor.
4. The motor drive circuit according to claim 3, characterized in that: The motor control circuit drives or stops the motor according to the PWM signal output by the PWM port, including: When the PWM signal is a low-level signal, the first transistor is turned off, the first IO-level signal is a high-level signal, the second diode is turned off, the third transistor is turned on, the emitter of the third transistor is a high-level, and the gate voltage of the first MOS transistor is a high-level, so that the first MOS transistor is turned on, so that the motor interface generates a voltage to drive the connected motor to work; and / or, When the PWM signal is a high-level signal, the first transistor is turned on, the first IO-level signal is a low-level signal, the third transistor is turned off, the second diode is turned on, the emitter of the second transistor is a low-level signal, and the gate voltage of the first MOS tube is a low-level signal, so that the first MOS tube is turned off, thereby preventing the motor interface from generating voltage to stop the connected motor from working.
5. The motor drive circuit according to any one of claims 1 to 4, characterized in that: The speed of the motor can be adjusted by controlling the PWM signal through the microcontroller.
6. The motor drive circuit according to claim 1, characterized in that: The brake circuit controls the second overcurrent protection circuit to release the energy generated by the inertia of the motor according to the first IO level signal and the second IO level signal, thereby achieving the purpose of braking the motor, including: When the first IO level signal connected to the base of the fourth transistor is a high level signal, the fourth transistor is turned on and the fifth transistor is turned off, so that the collector voltage of the fifth transistor does not change, so as not to affect the motor connected to the motor interface; and / or, When the first IO level signal connected to the base of the fourth transistor is a low level signal, and the second IO level signal connected to the base of the fifth transistor is a high level signal, the fifth transistor is turned on, which can make the collector of the fifth transistor a low level, and the second MOS tube is turned on. At this time, the energy generated by the inertia of the motor will be quickly released through the energy release resistor to achieve the purpose of braking.
7. The motor drive circuit according to claim 1 or 6, characterized in that: The energy release resistor is a 5.1R / 7W resistor.
8. The motor drive circuit according to any one of claims 3 to 4, characterized in that: Any one of the first to fifth transistors can be replaced by a corresponding MOS transistor to achieve the same function; and / or, the first MOS transistor or the second MOS transistor can be replaced by a transistor with corresponding parameters to achieve the same function.
Citation Information
Patent Citations
High-power permanent magnet synchronous motor energy discharge device and control method
CN110460272A
Hand vacuum cleaner with adjustable
CN206060288U
Motor drive circuit with speed regulation and brake protection functions
CN212543689U