Summary of the invention
The utility model is exactly in order to overcome above deficiency, and a kind of stepper motor driver is provided, and first technical problem to be solved is: reduce the distortion and the ripple of driver output current, the motor feels hot in attenuating simultaneously.
Second technical problem to be solved in the utility model is: circuit structure is more succinct, reduces circuit cost.
The 3rd technical problem to be solved in the utility model is: further reduce the circuit cost that employing brought by negative supply.
Technical problem of the present utility model is solved by following technical scheme:
A kind of stepper motor driver, comprise control circuit, current sampling circuit, current correction circuit, power driving circuit, control circuit: the pulse, direction signal, the segmentation that receive outside input select the signal code amplitude to select signal, the triangular signal of output current reference signal and fixed frequency; Current sampling circuit: the output signal with current reference signal is done sampling amplify the output current feedback signal; Current correction circuit: comprise the error measure circuit, received current reference signal, current feedback signal and triangular signal, output brachium pontis control signal; Power driving circuit: receive the brachium pontis control signal, handle, the work of output signal control brachium pontis;
Current correction circuit also comprises the proportional integral regulating circuit, between the end of oppisite phase and output of cross-over connection operational amplifier in the error measure circuit.
In the optimized technical scheme,
Described proportional integral regulating circuit comprises the 6th resistance and the 3rd electric capacity, operational amplifier end of oppisite phase coupling in first end of the 6th resistance and the error measure circuit, first end coupling of second end and the 3rd electric capacity, operational amplifier output terminal coupling in second end of the 3rd electric capacity and the error measure circuit.
In the further optimized technical scheme,
Described current correction circuit also comprises the drift regulating circuit, and this circuit comprises an adjustable resistance, adjustable resistance first end and positive supply coupling, and the second end ground connection, adjustable end is coupled to the end of oppisite phase of operational amplifier in the error regulating circuit.
Described drift regulating circuit is regulated level of back output and the suitable drift conditioning signal of error regulating circuit in-phase end institute ground signalling through adjustable resistance.
In the further optimized technical scheme,
Also comprise third phase brachium pontis control signal generation circuit, comprise biphase current error summing circuit, anti-phase follow circuit and comparison circuit, control circuit is exported the first input end that any biphase current reference signal is coupled to biphase current error summing circuit, corresponding biphase current signal after the current correction circuit homophase amplifies also is coupled to the first input end of biphase current error summing circuit, second input end grounding of biphase current error summing circuit, output is coupled to the first input end of anti-phase follow circuit, second input end grounding of anti-phase follow circuit, output is coupled to the first input end of comparison circuit, the triangular signal of the second input Coupling Control circuit output of comparison circuit, the brachium pontis control signal of output output third phase.
Further in the optimized technical scheme,
Also comprise the positive level acquisition cuicuit, positive level of this circuit generation replaces practically as the reference earth signal, and signal is coupled in the stepper motor driver, signal replaces negative supply to be coupled in the stepper motor driver practically, is raised to described positive level the zero point of the current feedback signal of the current reference signal of described control circuit output and the output of described current sampling circuit.
Described positive level acquisition cuicuit comprises three end power regulator and peripheral circuits
The beneficial effect that the utility model is compared with the prior art is:
Adopted the proportional integral adjusting in the utility model, make the existing ratio governing speed of actuator electrical current control fast, the advantage that dynamic response is good has integration to regulate the high advantage of stable state accuracy again, reduced the distortion and the ripple of driver output current, the motor feels hot in attenuating simultaneously.
The further beneficial effect of the utility model is: the drift that adds amplifier is proofreaied and correct, and guarantees the symmetry of output current, has further reduced the distortion and the ripple of driver output current, and the motor feels hot in attenuating simultaneously.
The further beneficial effect of the utility model is: utilize three-phase current and be zero circuit theory, adopt third phase brachium pontis control signal generation circuit, removed current sample and current reference to third phase from, make circuit structure more succinct, reduce circuit cost.
The utility model further beneficial effect is: adopt positive level as with reference to ground, make drive circuit remove negative supply from, further reduce circuit cost.
Embodiment
As shown in Figure 1, stepper motor driver comprises control circuit, current sampling circuit, current correction circuit and power driving circuit four parts.Wherein, control circuit comprises single-chip microcomputer, D/A converter, triangular-wave generator, be responsible for receiving pulse, direction signal, the segmentation of outside input and select the signal code amplitude to select signal, the triangular signal PWM of output current reference signal REF and fixed frequency is to current correction circuit.Current sampling circuit is done sampling to the output signal with current reference signal and is amplified, and MEA is to current correction circuit for the output current feedback signal.Current correction circuit, comprise in-phase amplification circuit, error measure circuit, proportional integral regulating circuit and comparator circuit, be responsible for that current reference signal REF and current feedback signal MEA are carried out proportional integral and proofread and correct, pass through the pulse-width modulation of comparator circuit at last after, export the brachium pontis control signal.After power driving circuit receives the brachium pontis control signal, by gate driver circuit, the work of control brachium pontis.
As shown in Figure 2, for being with the current correction circuit structural representation of proportional integral regulating circuit.Current correction circuit comprises in-phase amplification circuit, error measure circuit, proportional integral regulating circuit and comparator circuit.
Among Fig. 2, first resistance R 1, the 3rd resistance R 3 and operational amplifier U1A form in-phase amplification circuit, and first capacitor C 1, second capacitor C 2 and second resistance R 2 are the subsidiary components and parts of in-phase amplification circuit.After the current feedback signal MEA process homophase amplification of current sampling circuit output, be output as signal DA.Signal DA and the current reference signal REF that exports from control circuit are input to the error measure circuit, measure to obtain error between feedback signal DA and the current reference signal REF.
The error measure circuit comprises the 4th resistance R 4, the 5th resistance R 5, the 7th resistance R 7 and operational amplifier U2A.The output of the 4th resistance R 4 first termination in-phase amplification circuits promptly connects feedback signal DA, the end of oppisite phase of the second termination operational amplifier U2A.The 5th resistance R 5 first termination current reference signal REF, the end of oppisite phase of the second termination operational amplifier U2A.The end of oppisite phase of the 7th resistance R 7 first termination operational amplifier U2A, the output of the second termination operational amplifier U2A.The output of operational amplifier U2A links to each other with the in-phase input end of comparator circuit, the in-phase end ground connection of operational amplifier U2A.The 4th capacitor C 4 is the subsidiary components and parts of error measure circuit.
The proportional integral regulating circuit comprises the 6th resistance R 6 and the 3rd capacitor C 3, first end of the 6th resistance R 6 links to each other with the end of oppisite phase of operational amplifier U2A in the error measure circuit, second end links to each other with first end of the 3rd capacitor C 3, and second end of the 3rd capacitor C 3 links to each other with the output of operational amplifier U2A in the error measure circuit.
Comparator circuit comprises operational amplifier U3A, and the 8th resistance R 8, the 9th resistance R 9, the tenth resistance R 10 and the 9th capacitor C 9 are the subsidiary components and parts of comparator circuit.
During work, current feedback signal MEA is output as signal DA after amplifying through homophase.Signal DA and current reference signal REF are input to the error measure circuit, measure to obtain error between feedback signal DA and the current reference signal REF.When current error was non-vanishing, the positive and negative two ends input of operational amplifier U2A pressure reduction was non-vanishing, but because the 3rd capacitor C 3 both end voltage can not be suddenlyd change, and the operational amplifier feedback loop has only the 6th resistance R 6 to work, operational amplifier U2A only makes ratio and regulates; After this, the 3rd capacitor C 3 constantly is recharged, and plays autocatalytic reset action, and the part that integration increases is pressed in the output of operational amplifier U2A stack on the basis that ratio is amplified.If current error is non-vanishing always, integration will carry out until the operational amplifier U2A output value of reaching capacity; If in integral process, the current error vanishing, then operational amplifier U2A maintenance error is zero preceding moment output valve.The anode of operational amplifier U3A in the current error input comparator circuit that the error measure circuit records, the negative terminal of operational amplifier U3A in the triangular wave pwm input comparator circuit of control circuit output, constitute pulse width modulator, output is regulated output according to the proportional integral of current error and is adjusted with the brachium pontis control signal of triangular wave with frequency, the pulsewidth of this signal.
Owing to adopted the proportional integral adjusting, the existing ratio governing speed of actuator electrical current control is fast, and the advantage that dynamic response is good has integration to regulate the high advantage of stable state accuracy again, has reduced the distortion and the ripple of driver output current, and the motor feels hot in attenuating simultaneously.
Further, as shown in Figure 3, be the electrical block diagram behind the increase drift regulating circuit in the current correction circuit.
Among Fig. 3, the drift regulating circuit comprises adjustable resistance R37, and adjustable resistance R37 first end links to each other with positive supply, the second end ground connection, and adjustable end is connected to the end of oppisite phase of operational amplifier U2A in the error regulating circuit through the 16 resistance R 16.
During work, adjustable resistance R37 carries out dividing potential drop to positive supply, exports a level and the suitable conditioning signal at zero point of error regulating circuit in-phase end institute ground signalling.By the fine setting of adjustable resistance R37, operational amplifier zero is proofreaied and correct partially.With this at zero point conditioning signal be input in the error measure circuit with signal DA, current reference signal REF and obtain current error.
Owing to add the drift regulating circuit, guarantee the symmetry of output current.Therefore further reduced the distortion and the ripple of driver output current, the motor feels hot in attenuating simultaneously.
Again further, when aforementioned current correction circuit is applied to the three phase electric machine driving, added third phase brachium pontis control signal generation circuit.As shown in Figure 4, third phase brachium pontis control signal generation circuit comprises biphase current error summing circuit, anti-phase follow circuit and comparison circuit.
Among Fig. 4, biphase current error summing circuit comprises the 27 resistance R the 27, the 24 resistance R the 24, the 25 resistance R the 25, the 26 resistance R the 26, the 28 resistance R 28 and operational amplifier U2C.The 13 capacitor C 13 is subsidiary components and parts of biphase current error summing circuit.Control circuit is exported any biphase current reference signal UREF and VREF are connected to operational amplifier U2C through resistance end of oppisite phase, corresponding biphase current feedback signal UDA after the current correction circuit homophase amplifies and VDA also are connected to operational amplifier U2C through resistance end of oppisite phase, the in-phase end ground connection of operational amplifier U2C, output is connected to anti-phase follow circuit.
Anti-phase follow circuit comprises the 29 resistance R the 29, the 31 resistance R 31 and operational amplifier U2D.The output of the 29 resistance R 29 first termination biphase current error summing circuits, the end of oppisite phase of the second termination operational amplifier U2D.The end of oppisite phase of the first termination operational amplifier U2D of the 31 resistance R 31, the output of the second termination operational amplifier U2D.The in-phase end ground connection of operational amplifier U2D, output is connected to the input of comparison circuit.
Comparison circuit comprises operational amplifier U3C, and the 32 resistance R the 32, the 33 resistance R the 33, the 34 resistance R 34 and the 15 capacitor C 15 are the subsidiary components and parts of comparison circuit.The in-phase end of operational amplifier U3C links to each other with the output of anti-phase follower through the 32 resistance R 32, and end of oppisite phase links to each other with triangular signal PWM.
During work, first phase, as be the U phase, current correction circuit produces U phase brachium pontis control signal UPWM; Second phase, as be the V phase, current correction circuit produces V phase brachium pontis control signal VPWM.Simultaneously, biphase current reference signal UREF, VREF and biphase current feedback signal UDA, VDA stack are inputed to third phase brachium pontis control signal generation circuit acquisition W phase brachium pontis control signal WPWM.
Biphase current reference signal UREF, VREF and biphase current feedback signal UDA, VDA stack input biphase current error summing circuit, its output is U, V biphase current error sum.According to three-phase current be zero circuit theory, W=-(U+V).Therefore the output of operational amplifier U2C is through behind the anti-phase follow circuit, and output is W phase current error value.After finishing pulse-width modulation by comparator circuit, output is W phase brachium pontis control signal WPWM.
Owing to utilizing three-phase current and being zero circuit theory, add third phase brachium pontis control signal generation circuit, removed current sample and current reference to third phase, make circuit structure more succinct, reduce circuit cost.
Further, as shown in Figure 5, be positive level acquisition cuicuit structural representation.
Among Fig. 5, the positive level acquisition cuicuit comprises the 23 resistance R 23, the tenth capacitor C the 10, the 11 capacitor C the 11, the 12 capacitor C 12 and three end power regulator Q1.Ground connection after first end of first end of the tenth capacitor C 10, first end of the 11 capacitor C 11, the 12 capacitor C 12 and the positive pole of three end power regulator Q1 link to each other, link to each other with the 23 resistance R 23 first ends after second end of second end of the tenth capacitor C 10, second end of the 11 capacitor C 11, the 12 capacitor C 12 and the negative pole of three end power regulator Q1 link to each other, the 23 resistance R 23 second ends link to each other with positive supply.
Positive level REFGND of positive level acquisition cuicuit output replaces practically as the reference earth signal that signal inserts in the stepper motor driver, and signal replaces negative supply to insert in the stepper motor driver practically.During work, be raised to positive level the zero point of the current feedback signal MEA of the current reference signal REF of control circuit output and current sampling circuit output, thereby be the positive level signal.
As shown in Figure 6, be structural representation after the first phase current correcting circuit increases the positive level signal.
As shown in Figure 7, be structural representation after the second phase current correcting circuit increases the positive level signal.
As shown in Figure 8, be the structural representation behind the third phase brachium pontis control signal generation circuit increase positive level signal.
Owing to add the positive level acquisition cuicuit, removed negative supply in the drive circuit from, further reduce circuit cost.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be considered as belonging to protection range of the present utility model.