CN209805709U - closed-loop control system for driving direct current motor to rotate through single chip microcomputer - Google Patents

closed-loop control system for driving direct current motor to rotate through single chip microcomputer Download PDF

Info

Publication number
CN209805709U
CN209805709U CN201920565969.1U CN201920565969U CN209805709U CN 209805709 U CN209805709 U CN 209805709U CN 201920565969 U CN201920565969 U CN 201920565969U CN 209805709 U CN209805709 U CN 209805709U
Authority
CN
China
Prior art keywords
chip microcomputer
mos transistor
single chip
resistor
port
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.)
Expired - Fee Related
Application number
CN201920565969.1U
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.)
Sichuan Feifang Agricultural Technology Co ltd
CROP Research Institute of Sichuan Academy of Agricultural Sciences
Original Assignee
Sichuan Feifang Agricultural Technology Co ltd
CROP Research Institute of Sichuan Academy of Agricultural Sciences
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 Sichuan Feifang Agricultural Technology Co ltd, CROP Research Institute of Sichuan Academy of Agricultural Sciences filed Critical Sichuan Feifang Agricultural Technology Co ltd
Priority to CN201920565969.1U priority Critical patent/CN209805709U/en
Application granted granted Critical
Publication of CN209805709U publication Critical patent/CN209805709U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model belongs to the technical field of electromechanics, specifically disclose a through singlechip drive direct current motor pivoted closed-loop control system, it includes singlechip, photoelectricity code wheel and positive and negative rotation drive circuit, photoelectricity code wheel connect in direct current motor's afterbody pivot, positive and negative rotation drive circuit connect respectively in the singlechip with direct current motor, the singlechip connect in photoelectricity code wheel when the singlechip receives the control signal that outside input carries out positive and negative rotation to direct current motor, triggers positive and negative rotation drive circuit drive direct current motor rotates and drives the place hatch door and open or close.

Description

Closed-loop control system for driving direct current motor to rotate through single chip microcomputer
Technical Field
The utility model relates to an electromechanical control technical field especially relates to a through singlechip drive direct current motor pivoted closed-loop control system.
background
The unmanned aerial vehicle that is being used for liquid spraying in the farming operation at present has more maturely, nevertheless the current thing of spraying is not restricted to liquid yet, still relates to the solid, and finds through the experiment that the unmanned aerial vehicle that has been used for spraying liquid now can not directly be used for the solid to spray, and its reason is that the motor drive of current unmanned aerial vehicle is the undercurrent drive, and if will carry out the solid and spray then must use the heavy current motor to carry out hatch door open and shut control.
the discovery of carrying out drive circuit improvement in-process at research and development personnel to unmanned aerial vehicle, because the motor is changed to the heavy current motor after, the power supply ability of current battery just needs to consider again, for this reason how still use current battery to supply power after changing the heavy current motor, it is a technical difficulty to carry out the power saving design to the circuit.
SUMMERY OF THE UTILITY MODEL
Technical problem
on current liquid sprays unmanned aerial vehicle's basis, improve motor drive circuit and make it can drive the work of heavy current motor, can accomplish simultaneously to reduce the current consumption when the motor is out of work, saves the problem of electric quantity.
technical scheme
the closed-loop control system comprises a single chip microcomputer, a photoelectric code disc and a forward and reverse rotation driving circuit, wherein the photoelectric code disc is connected to a tail rotating shaft of the direct current motor; the forward and reverse rotation driving circuit is respectively connected with the single chip microcomputer and the direct current motor; the single chip microcomputer is connected with the photoelectric coded disc, and when the single chip microcomputer receives a control signal which is input from the outside and used for carrying out forward and reverse rotation on the direct current motor, the single chip microcomputer triggers the forward and reverse rotation driving circuit to drive the direct current motor to rotate so as to drive the cabin door to be opened or closed.
In some embodiments, the single chip microcomputer is a single chip microcomputer of type STC15W104, and includes at least a first port, a second port, a third port, a fourth port, a fifth port, a sixth port, a first pin, and a second pin, where the first port is connected to an externally input control signal, the first pin is connected to a ground terminal, and the second pin is connected to an operating voltage.
In some embodiments, the forward and reverse rotation drive circuit comprises: the motor forward rotation driving circuit is connected between the third port and the fifth port of the single chip microcomputer in series; the motor reverse rotation driving circuit is connected between the fourth port and the sixth port of the single chip microcomputer in series; the motor forward rotation driving circuit and the motor reverse rotation driving circuit form an H-bridge driving circuit, and the direct current motor is connected between diagonals of the H-bridge driving circuit.
in some implementations, the motor forward rotation drive circuit includes: the second capacitor, the first resistor, the third resistor, the fifth resistor, the first triode, the first MOS tube, the third MOS tube and the fifth MOS tube; the first end of the first resistor is connected to a third port of the single chip microcomputer, the second end of the first resistor is connected to a base electrode of the first triode, an emitting electrode of the first triode is connected to a grounding end, a collecting electrode of the first triode is connected to the first end of the third resistor, the second end of the third resistor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to source electrodes of the first MOS transistor and the third MOS transistor, a drain electrode of the first MOS transistor is connected with a drain electrode of the third MOS transistor, the direct current motor is connected between a grid electrode of the third MOS transistor and a grid electrode of the fifth MOS transistor, a source electrode of the fifth MOS transistor is connected to the grounding end, a drain electrode of the fifth MOS transistor is connected to the fifth port of the single chip microcomputer, and the second capacitor is connected to two ends of the fifth resistor; the first MOS tube and the third MOS tube are P-channel MOS tubes, and the fifth MOS tube is an N-channel MOS tube.
In some embodiments, the motor reversal drive circuit includes: the fourth capacitor, the second resistor, the fourth resistor, the sixth resistor, the second triode, the second MOS transistor, the fourth MOS transistor and the sixth MOS transistor; the first end of the second resistor is connected to the fourth port of the single chip microcomputer, the second end of the second resistor is connected to the base electrode of the second triode, the emitter electrode of the second triode is connected to the ground terminal, the collector electrode of the second triode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the drain electrodes of the second MOS transistor and the fourth MOS transistor respectively, the source electrode of the second MOS transistor is connected to the source electrode of the fourth MOS transistor, the sixth resistor and the fourth capacitor are connected in parallel in sequence and between the drain electrode and the source electrode of the fourth MOS transistor, the direct current motor is connected between the gate electrode of the second MOS transistor and the gate electrode of the sixth MOS transistor, the source electrode of the sixth MOS transistor is connected to the ground terminal, and the drain electrode of the sixth MOS transistor is connected to the sixth port of the single chip microcomputer; the second MOS tube and the fourth MOS tube are P channel type MOS tubes, and the sixth MOS tube is an N channel type MOS tube.
In some embodiments, the forward/reverse drive circuit further comprises: the voltage stabilizer comprises an input end, an output end and a grounding end, wherein the input end of the voltage stabilizer is connected to a working power supply of the direct current motor, the output end of the voltage stabilizer is connected to the ground through a first capacitor, and the grounding end of the voltage stabilizer is grounded.
In some embodiments, the photoelectric code disc is connected between the voltage stabilizer and the single chip microcomputer.
Technical effects
by the scheme, the working state of the motor can be transmitted to the single chip microcomputer through the photoelectric coded disc, so that the working current is about 10ma when the motor rotates, the motor is in standby when the motor does not rotate, and the standby current is less than 3ua, so that the electric quantity is saved; meanwhile, the photoelectric code disc has high precision, the precision of 0.2 degree can be realized, the installation is very simple, no screw is used, the buckle installation is carried out, and the installation can be carried out as soon as the press is carried out.
Drawings
Fig. 1 is a schematic block diagram of the closed-loop control system for driving the dc motor to rotate by the single chip microcomputer in an embodiment of the present invention. Fig. 2 is another schematic block diagram of the closed-loop control system for driving the dc motor to rotate by the single chip in an embodiment of the present invention.
Fig. 3 is a schematic circuit diagram of the closed-loop control system for driving the dc motor to rotate by the single chip microcomputer in an example.
Detailed Description
Example 1
See fig. 1, show the utility model discloses a singlechip drive direct current motor pivoted closed-loop control system's principle schematic diagram, as shown in the figure, this closed-loop control system includes singlechip 11, photoelectricity code wheel 13 and positive and negative rotation drive circuit 12, photoelectricity code wheel connect in direct current motor 2's afterbody pivot, positive and negative rotation drive circuit 12 connect respectively in singlechip 11 with direct current motor 2, singlechip 11 connect in photoelectricity code wheel 13 when singlechip 11 receives the control signal of outside input to direct current motor 2 and carry out positive and negative rotation, trigger positive and negative rotation drive circuit 12 drive direct current motor rotates and drives the place hatch door and opens or close.
Specifically, the single chip microcomputer is a single chip microcomputer of type STC15W104, and at least includes a first port, a second port, a third port, a fourth port, a fifth port, a sixth port, a first pin, and a second pin, where the first port is connected to an externally input control signal, the first pin is connected to a ground terminal, and the second pin is connected to a working voltage.
Specifically, as shown in fig. 2, the forward/reverse rotation driving circuit 12 includes: the motor forward rotation driving circuit 121 is connected in series between the third port and the fifth port of the single chip microcomputer; the motor reverse rotation driving circuit 122 is connected between the fourth port and the sixth port of the single chip microcomputer in series; the motor forward rotation driving circuit and the motor reverse rotation driving circuit form an H-bridge driving circuit, and the direct current motor is connected between diagonals of the H-bridge driving circuit.
Specifically, as shown in fig. 3, the motor forward rotation driving circuit includes: the second capacitor, the first resistor, the third resistor, the fifth resistor, the first triode, the first MOS tube, the third MOS tube and the fifth MOS tube; the first end of the first resistor is connected to a third port of the single chip microcomputer, the second end of the first resistor is connected to a base electrode of the first triode, an emitting electrode of the first triode is connected to a grounding end, a collecting electrode of the first triode is connected to the first end of the third resistor, the second end of the third resistor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to source electrodes of the first MOS transistor and the third MOS transistor, a drain electrode of the first MOS transistor is connected with a drain electrode of the third MOS transistor, the direct current motor is connected between a grid electrode of the third MOS transistor and a grid electrode of the fifth MOS transistor, a source electrode of the fifth MOS transistor is connected to the grounding end, a drain electrode of the fifth MOS transistor is connected to the fifth port of the single chip microcomputer, and the second capacitor is connected to two ends of the fifth resistor; the first MOS tube and the third MOS tube are P-channel MOS tubes, and the fifth MOS tube is an N-channel MOS tube.
In addition, referring to fig. 3, the motor reverse rotation driving circuit includes: the fourth capacitor, the second resistor, the fourth resistor, the sixth resistor, the second triode, the second MOS transistor, the fourth MOS transistor and the sixth MOS transistor; the first end of the second resistor is connected to the fourth port of the single chip microcomputer, the second end of the second resistor is connected to the base electrode of the second triode, the emitter electrode of the second triode is connected to the ground terminal, the collector electrode of the second triode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the drain electrodes of the second MOS transistor and the fourth MOS transistor respectively, the source electrode of the second MOS transistor is connected to the source electrode of the fourth MOS transistor, the sixth resistor and the fourth capacitor are connected in parallel in sequence and between the drain electrode and the source electrode of the fourth MOS transistor, the direct current motor is connected between the gate electrode of the second MOS transistor and the gate electrode of the sixth MOS transistor, the source electrode of the sixth MOS transistor is connected to the ground terminal, and the drain electrode of the sixth MOS transistor is connected to the sixth port of the single chip microcomputer; the second MOS tube and the fourth MOS tube are P channel type MOS tubes, and the sixth MOS tube is an N channel type MOS tube.
Specifically, the positive and negative rotation driving circuit further comprises a voltage stabilizer, the voltage stabilizer comprises an input end, an output end and a grounding end, the input end of the voltage stabilizer is connected to the working power supply of the direct current motor, the output end of the voltage stabilizer is connected to the ground through a first capacitor, and the grounding end of the voltage stabilizer is grounded.
specifically, the photoelectric code disc is connected between the voltage stabilizer and the single chip microcomputer.
The principle of the circuit is as follows: control signals are input from a first port 3 of the single chip microcomputer IC1, the motor is controlled to rotate through the motor forward rotation driving circuit and the motor reverse rotation driving circuit after being processed by the single chip microcomputer IC1, the cabin door is opened by the motor forward rotation, and the cabin door is closed by the motor reverse rotation.
The specific driving process is as follows: when a control signal is input from the first port 3 of the single chip microcomputer IC1, the third port 5 of the single chip microcomputer IC1 is at a high level, the fourth port 6 is at a low level, the fifth port 7 is at a high level, and the pin 8 of the sixth port is at a low level, so that the two ends of the third MOS transistor PM3 and the fifth MOS transistor NM1 are respectively conducted, the two ends of the second MOS transistor PM2 and the two ends of the sixth MOS transistor NM2 are respectively cut off, and a current flows from the third MOS transistor PM3 to the fifth MOS transistor NM1 through the direct current motor M to drive the motor to rotate forwards;
Similarly, when a control signal is input from the first port 3 of the single chip IC1 (specifically, the control signal is an input pulse width modulation signal), the third port 5 of the single chip IC1 is at a low level, the fourth port 6 is at a high level, the fifth port 7 is at a low level, and the pin of the sixth port 8 is at a high level, so that the two ends of the third MOS transistor PM3 and the two ends of the fifth MOS transistor NM1 are respectively disconnected, the two ends of the second MOS transistor PM2 and the two ends of the sixth MOS transistor NM2 are respectively connected, a current flows from the second MOS transistor PM2 to the sixth MOS transistor NM2 through the dc motor M, and the driving motor rotates reversely.
The forward and reverse rotation driving circuit is an improved circuit on the existing H-bridge circuit, when the existing H-bridge 50A has large current, the input signal is large and at least has the current of more than 50ma, and when the input signal of the existing motor is less than 10ma, the driving current is insufficient, and through the improvement, the H-bridge input signal can output the large current of 50A when 0.1 ma. In addition, the phase change speed of the driving circuit is very high, the phase change is completed within 1MS, and no sound exists.
Specifically, detection switch K includes first end and second end, detection switch K's first end connect in the second port 4 of singlechip, detection switch K's second end is connected in ground terminal GND. The detection switch is used for monitoring whether the loading barrel is opened or closed, the switch is indirectly connected to the H bridge through the single chip microcomputer, the single chip microcomputer detects whether the cabin door is closed or not through the switch, and if the cabin door is not closed, a reverse signal is output to the H bridge driving motor to reversely rotate.

Claims (8)

1. The utility model provides a drive direct current motor pivoted closed-loop control system through singlechip, includes the singlechip, its characterized in that, closed-loop control system still includes:
The photoelectric coded disc is connected to a tail rotating shaft of the direct current motor;
The forward and reverse rotation driving circuit is respectively connected with the single chip microcomputer and the direct current motor;
the single chip microcomputer is connected with the photoelectric coded disc, and when the single chip microcomputer receives a control signal which is input from the outside and used for carrying out forward and reverse rotation on the direct current motor, the single chip microcomputer triggers the forward and reverse rotation driving circuit to drive the direct current motor to rotate so as to drive the cabin door to be opened or closed.
2. The closed-loop control system for driving a dc motor to rotate according to claim 1, wherein the single chip microcomputer is a single chip microcomputer with model STC15W104, and at least includes a first port, a second port, a third port, a fourth port, a fifth port, a sixth port, a first pin and a second pin, the first port is connected to an externally input control signal, the first pin is connected to a ground terminal, and the second pin is connected to an operating voltage.
3. the closed-loop control system for driving the direct-current motor to rotate through the single chip microcomputer according to claim 2, wherein the forward and reverse rotation driving circuit comprises:
The motor forward rotation driving circuit is connected between the third port and the fifth port of the single chip microcomputer in series;
the motor reverse rotation driving circuit is connected between the fourth port and the sixth port of the single chip microcomputer in series;
The motor forward rotation driving circuit and the motor reverse rotation driving circuit form an H-bridge driving circuit, and the direct current motor is connected between diagonals of the H-bridge driving circuit.
4. The closed-loop control system for driving the direct current motor to rotate through the single chip microcomputer according to claim 3, wherein the motor forward rotation driving circuit comprises:
The second capacitor, the first resistor, the third resistor, the fifth resistor, the first triode, the first MOS tube, the third MOS tube and the fifth MOS tube;
The first end of the first resistor is connected to a third port of the single chip microcomputer, the second end of the first resistor is connected to a base electrode of the first triode, an emitting electrode of the first triode is connected to a grounding end, a collecting electrode of the first triode is connected to the first end of the third resistor, the second end of the third resistor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to source electrodes of the first MOS transistor and the third MOS transistor, a drain electrode of the first MOS transistor is connected with a drain electrode of the third MOS transistor, the direct current motor is connected between a grid electrode of the third MOS transistor and a grid electrode of the fifth MOS transistor, a source electrode of the fifth MOS transistor is connected to the grounding end, a drain electrode of the fifth MOS transistor is connected to the fifth port of the single chip microcomputer, and the second capacitor is connected to two ends of the fifth resistor;
The first MOS tube and the third MOS tube are P-channel MOS tubes, and the fifth MOS tube is an N-channel MOS tube.
5. The closed-loop control system for driving the direct-current motor to rotate through the single chip microcomputer according to claim 4, wherein the motor reverse driving circuit comprises:
the fourth capacitor, the second resistor, the fourth resistor, the sixth resistor, the second triode, the second MOS transistor, the fourth MOS transistor and the sixth MOS transistor;
The first end of the second resistor is connected to the fourth port of the single chip microcomputer, the second end of the second resistor is connected to the base electrode of the second triode, the emitter electrode of the second triode is connected to the ground terminal, the collector electrode of the second triode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the drain electrodes of the second MOS transistor and the fourth MOS transistor respectively, the source electrode of the second MOS transistor is connected to the source electrode of the fourth MOS transistor, the sixth resistor and the fourth capacitor are connected in parallel in sequence and between the drain electrode and the source electrode of the fourth MOS transistor, the direct current motor is connected between the gate electrode of the second MOS transistor and the gate electrode of the sixth MOS transistor, the source electrode of the sixth MOS transistor is connected to the ground terminal, and the drain electrode of the sixth MOS transistor is connected to the sixth port of the single chip microcomputer;
the second MOS tube and the fourth MOS tube are P channel type MOS tubes, and the sixth MOS tube is an N channel type MOS tube.
6. The closed-loop control system for driving the direct current motor to rotate through the single chip microcomputer according to claim 5, wherein the forward and reverse rotation driving circuit further comprises:
The voltage stabilizer comprises an input end, an output end and a grounding end, wherein the input end of the voltage stabilizer is connected to a working power supply of the direct current motor, the output end of the voltage stabilizer is connected to the ground through a first capacitor, and the grounding end of the voltage stabilizer is grounded.
7. The closed-loop control system for driving a dc motor to rotate by a single-chip microcomputer according to claim 6, wherein the photoelectric encoder is connected between the voltage stabilizer and the single-chip microcomputer.
8. The closed-loop control system for driving the direct-current motor to rotate through the single chip microcomputer according to any one of claims 1 to 7, wherein the single chip microcomputer is a single chip microcomputer with model number STC15W 104.
CN201920565969.1U 2019-04-22 2019-04-22 closed-loop control system for driving direct current motor to rotate through single chip microcomputer Expired - Fee Related CN209805709U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201920565969.1U CN209805709U (en) 2019-04-22 2019-04-22 closed-loop control system for driving direct current motor to rotate through single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201920565969.1U CN209805709U (en) 2019-04-22 2019-04-22 closed-loop control system for driving direct current motor to rotate through single chip microcomputer

Publications (1)

Publication Number Publication Date
CN209805709U true CN209805709U (en) 2019-12-17

Family

ID=68830816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201920565969.1U Expired - Fee Related CN209805709U (en) 2019-04-22 2019-04-22 closed-loop control system for driving direct current motor to rotate through single chip microcomputer

Country Status (1)

Country Link
CN (1) CN209805709U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023272843A1 (en) * 2021-07-01 2023-01-05 江门市锦隆高科实业有限公司 Current detection circuit and garbage can
US11973450B2 (en) 2021-04-13 2024-04-30 Jiangmen Jinlong High Technology Industrial Co., Ltd. Current detection circuit and garbage can

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11973450B2 (en) 2021-04-13 2024-04-30 Jiangmen Jinlong High Technology Industrial Co., Ltd. Current detection circuit and garbage can
WO2023272843A1 (en) * 2021-07-01 2023-01-05 江门市锦隆高科实业有限公司 Current detection circuit and garbage can

Similar Documents

Publication Publication Date Title
CN209805709U (en) closed-loop control system for driving direct current motor to rotate through single chip microcomputer
WO2018121727A1 (en) Drive control circuit and robot
CN104300852B (en) Small-sized electric brushed servo controller
CN107462842B (en) Direct-current power supply voltage and current power isolation detection interface circuit
CN210327426U (en) Circuit for controlling direct current motor to rotate to open and close cabin door through single chip microcomputer
CN105471362B (en) Motor rotation-speed control circuit and motor
CN211127634U (en) Vehicle motor control circuit
CN207368880U (en) Bi-directional DC-DC battery pack converting means in electric automobile
CN105938340A (en) LIN communication automobile voltage regulator based on single-chip microcomputer
CN203415345U (en) Bidirectional electromagnet driving circuit
CN203911816U (en) High-efficiency double-brush direct current driver
CN214789293U (en) Water valve control circuit and intelligent water valve
CN209908371U (en) Modular control system of automatic garage door
CN104009701A (en) Variable frequency controller for alternating current motor
CN108762163B (en) Motion control system of mobile robot based on QT human-computer interaction interface and motor servo system
CN103325522A (en) Electric magnet bi-directional driving circuit
CN206494057U (en) A kind of linear electron brake system
CN213585729U (en) Switching circuit based on MOS pipe
CN112286271B (en) BSS communication low-drive voltage regulator based on single chip microcomputer
CN113466689A (en) Fault diagnosis circuit and method for brush direct current motor
CN219574635U (en) Control system for controlling opening and closing of ball valve based on pulse signal
CN202059363U (en) Motor drive device integrating speed regulation and voltage matching
CN204761347U (en) Stepper motor driver
CN216437097U (en) Motor driving circuit of range hood
CN218335800U (en) Control circuit for retraction and extension of undercarriage of unmanned aerial vehicle

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191217

Termination date: 20210422

CF01 Termination of patent right due to non-payment of annual fee