A kind of DC motor positive and negative rotation control circuit
Technical field
The utility model relates to a kind of motor positive inversion control circuit, particularly a kind of DC motor positive and negative rotation control circuit.Belong to electric machines control technology field.
Background technology
At present, by Single-chip Controlling DC motor positive and negative rotation control circuit, generally adopt that multiple I/O mouths and peripheral integrated circuit are auxiliary is realized turning to of control direct current machine.But adopt this control mode to have following shortcoming: 1, need to take multiple I/O, be unfavorable for the efficient utilization of singlechip chip port resource.2, control in single-chip microcomputer output, need the output state of controlling exactly multichannel I/O simultaneously just can complete rotating control, circuit control is complexity and poor stability comparatively.3, every road single-chip processor i/o mouth all needs external integrated circuit to drive direct current machine work, and circuit is loaded down with trivial details and complicated, in the time of external disturbance, easily occurs output conflict, causes misoperation.
Utility model content
The purpose of this utility model, be for solve prior art Single-chip Controlling direct current take I/O many, control the problem loaded down with trivial details, circuit stability is poor, a kind of DC motor positive and negative rotation control circuit is provided, adopt single I/O mouth to be connected with peripheral circuit, realize DC circuit turned to control, have circuit simple, take I/O mouth less with reliable and stable feature.
The purpose of this utility model can be by taking following technical scheme to reach:
A kind of DC motor positive and negative rotation control circuit, its design feature is: comprise governor circuit, rotating drive circuit, key control circuit and display circuit; The input of governor circuit connects the output of key circuit, the input of the input of one of I/O mouth of governor circuit connection rotating drive circuit, two connection display circuits of I/O port, the output of rotating drive circuit connects the control input end of direct current machine; Rotating drive circuit comprises that forward drives loop and reversion to drive loop, and forward drives loop and reversion to drive the control input end in loop to be connected one of I/O mouth of governor circuit, forms single output port and drives loop structure; Be formed on the I/O mouth output high level, low level of governor circuit or under high-impedance state, by the control circuit structure of rotating drive circuit control direct current forward, reversion and stall.
The purpose of this utility model can also be by taking following technical scheme to reach:
A kind of execution mode of the present utility model is: the main singlechip chip U1 of described governor circuit forms, and the 7th pin of singlechip chip U1 is connected with one end of the resistance R 3 of key circuit, the 8th pin is connected with the base stage of the triode Q3 of rotating drive circuit, the link of resistance R 4-R5, one end of capacitor C 1; The 9th pin of singlechip chip U1 and the 12nd pin be ground connection GND and power supply+5V respectively; The 3rd pin of singlechip chip U1 is connected with the resistance R 1 of display circuit and one end of R2 respectively with the 4th pin.
A kind of execution mode of the present utility model is: described rotating drive circuit is connected and composed by triode Q1-Q8, resistance R 4-R10 and capacitor C 1; The 8th pin, the other end that after one end docking of resistance R 4 and R5, are connected singlechip chip U1 are connected with the base stage of triode Q1, Q2 respectively; The emitter of triode Q1 meets power supply+5V, collector electrode is connected with the collector electrode of triode Q2 by resistance R 6, the grounded emitter of triode Q2; The base stage of triode Q3 is connected with the 8th pin of singlechip chip U1, one end of capacitor C 1, and collector electrode is connected to the base stage of triode Q7 by resistance R 10, and emitter is by resistance R 7 connecting triode Q6 base stages; The emitter of triode Q5 meets power supply+12V, and collector electrode is directly connected with the collector electrode of triode Q6 and is connected to power input of direct current machine as drive circuit output; The grounded emitter of triode Q6; The base stage of triode Q4 is directly connected with the collector electrode of triode Q2, and collector electrode is by the base stage of resistance R 9 connecting triode Q5, and emitter is connected to the base stage of triode Q8 by resistance R 8; The emitter of triode Q7 meets power supply+12V, and collector electrode is directly connected with the collector electrode of triode Q8 and is connected to another power input of direct current as the output of drive circuit; The grounded emitter of triode Q8.
A kind of execution mode of the present utility model is: described key circuit is connected and composed by button K1 and some wires; One end of button K1 is connected with one end of resistance R 3, and the other end of resistance R 3 connects 7 pin of single-chip microcomputer U1, the other end ground connection GND of button K1 as the output of key circuit.
A kind of execution mode of the present utility model is: described display circuit is connected and composed by LED 1, LED2, resistance R 1 and R2; One end of resistance R 1 and R2 is connected to the 3rd pin of singlechip chip U1 and the negative electrode of the 4th pin, other end difference connecting luminous diode LED1 and LED2 as the output of display circuit, and the anode of LED 1 and LED2 meets power supply+5V.
A kind of execution mode of the present utility model is: described triode Q1, Q5 and Q7 are positive-negative-positive triode.
A kind of execution mode of the present utility model is: described triode Q2-Q4, Q6 and Q8 are NPN type triode.
The beneficial effects of the utility model are:
1, the utility model rotating drive circuit comprises that forward drives loop and reversion to drive loop, forward drives loop and reversion to drive the control input end in loop to be connected one of I/O mouth of governor circuit, form single output port and drive loop structure, adopt single I/O to be connected with drive circuit, controlling under I/O mouth high level, low level and high-impedance state, control direct current forward, reversion and stall.There is the beneficial effect that the I/O mouth that takies single-chip microcomputer less, efficiently utilizes singlechip chip port resource.
2, the utility model drive circuit is connected and composed by common triode and resistance, exports by one-chip machine port, utilizes the running of the 26S Proteasome Structure and Function property driving direct current machine of triode PNP, NPN, and circuit structure is simple, uses components and parts few, and cost is low.Circuit is by single-port control, controls simple and conveniently, is not subject to the impact of ambient temperature and external disturbance, has reliable stable beneficial effect.
Brief description of the drawings
Fig. 1 is circuit theory diagrams of the present utility model.
Embodiment
Below in conjunction with drawings and Examples, the utility model is described in further detail:
Specific embodiment 1:
With reference to Fig. 1, the present embodiment comprises governor circuit 1, rotating drive circuit 2, key control circuit 3 and display circuit 4; The input of governor circuit 1 connects the output of key circuit 3, the input of the input of one of I/O mouth of governor circuit 1 connection rotating drive circuit 2, two connection display circuits 3 of I/O port, the output of rotating drive circuit 2 connects the control input end of direct current machine; Rotating drive circuit 2 comprises that forward drives loop and reversion to drive loop, and forward drives loop and reversion to drive the control input end in loop to be connected one of I/O mouth of governor circuit 1, forms single output port and drives loop structure; Be formed on the I/O mouth output high level, low level of governor circuit 1 or under high-impedance state, control the control circuit structure of direct current forward, reversion and stall by rotating drive circuit 2.
In the present embodiment,
The main singlechip chip U1 of described governor circuit 1 forms, and the 7th pin of singlechip chip U1 is connected with one end of the resistance R 3 of key circuit, the 8th pin is connected with the base stage of the triode Q3 of rotating drive circuit 2, the link of resistance R 4-R5, one end of capacitor C 1; The 9th pin of singlechip chip U1 and the 12nd pin be ground connection GND and power supply+5V respectively; The 3rd pin of singlechip chip U1 is connected with the resistance R 1 of display circuit (4) and one end of R2 respectively with the 4th pin.
Described rotating drive circuit 2 is connected and composed by triode Q1-Q8, resistance R 4-R10 and capacitor C 1; The 8th pin, the other end that after one end docking of resistance R 4 and R5, are connected singlechip chip U1 are connected with the base stage of triode Q1, Q2 respectively; The emitter of triode Q1 meets power supply+5V, collector electrode is connected with the collector electrode of triode Q2 by resistance R 6, the grounded emitter of triode Q2; The base stage of triode Q3 is connected with the 8th pin of singlechip chip U1, one end of capacitor C 1, and collector electrode is connected to the base stage of triode Q7 by resistance R 10, and emitter is by resistance R 7 connecting triode Q6 base stages; The emitter of triode Q5 meets power supply+12V, and collector electrode is directly connected with the collector electrode of triode Q6 and is connected to power input of direct current machine as drive circuit 2 outputs; The grounded emitter of triode Q6; The base stage of triode Q4 is directly connected with the collector electrode of triode Q2, and collector electrode is by the base stage of resistance R 9 connecting triode Q5, and emitter is connected to the base stage of triode Q8 by resistance R 8; The emitter of triode Q7 meets power supply+12V, and collector electrode is directly connected with the collector electrode of triode Q8 and is connected to another power input of direct current as the output of drive circuit 2; The grounded emitter of triode Q8.
Described key circuit 3 is connected and composed by button K1 and some wires; One end of button K1 is connected with one end of resistance R 3, and the other end of resistance R 3 connects 7 pin of single-chip microcomputer U1, the other end ground connection GND of button K1 as the output of key circuit 3.
Described display circuit 4 is connected and composed by LED 1, LED2, resistance R 1 and R2; One end of resistance R 1 and R2 is connected to the 3rd pin of singlechip chip U1 and the negative electrode of the 4th pin, other end difference connecting luminous diode LED1 and LED2 as the output of display circuit (4), and the anode of LED 1 and LED2 meets power supply+5V.
Described triode Q1, Q5 and Q7 are positive-negative-positive triode.Described triode Q2-Q4, Q6 and Q8 are NPN type triode.
The operation principle of the present embodiment:
With reference to Fig. 1, the 8th pin of singlechip chip U1 is connected with the base stage of the triode Q3 of drive circuit, the butt end of resistance R 4-R5, the other end of resistance R 4 and R5 is connected with the base stage of triode Q1 and Q2 respectively, controls triode Q1-Q3 conducting or cut-off by single I/O; Described triode Q1, Q5 and Q7 are positive-negative-positive triode, and triode Q2~Q4, Q6 and Q8 are NPN type triode.MOTORB, MOTORA two-port connect two power inputs of direct current machine as the output of drive circuit 2, the present embodiment, by changing the state of the I/O mouth being connected with motor positive and inverse functional circuit, can be controlled forward, reversion, the stop state of motor.Its course of work is as follows:
1, in the time of the I/O of single-chip microcomputer U1 mouth 8 pin (PB0) output high level, triode Q2-Q3, Q6-Q7 conducting, triode Q1, Q4-Q5, Q8 cut-off, MOTORB and MOTORA port output " positive 12V ", direct current machine two ends obtain electric, motor forward.Meanwhile, 3 pin and 4 pin of U1 are made as respectively low level and high level, now LED 1 and LED2 respectively electric and dead electricity, LED1 lights, LED2 extinguishes.
2, in the time of the I/O of single-chip microcomputer U1 mouth 8 pin (PB0) output low level, triode Q2-Q3, Q6-Q7 cut-off, triode Q1, Q4-Q5, Q8 conducting, MOTORB and MOTORA port output " negative 12V ", direct current machine two ends obtain electric, motor reversal.Meanwhile, 3 pin and 4 pin of U1 are made as respectively high level and low level, now LED 1 and LED2 respectively dead electricity and electric, LED1 extinguishes, LED2 lights luminous.
3, in the time of the I/O of single-chip microcomputer U1 mouth 8 pin (PB0) output high-impedance state, triode Q1-Q8 cut-off, MOTORB and MOTORA port Non voltage output, motor stops dead electricity simultaneously, and LED1 and LED2 extinguish.
The above; it is only preferably specific embodiment of the utility model; but protection range of the present utility model is not limited to this; any be familiar with those skilled in the art the utility model disclose scope in; be equal to replacement or changed according to the technical solution of the utility model and utility model design thereof, all being belonged to protection range of the present utility model.