CN102314187B - Direct-current voltage proportion output circuit and control method thereof - Google Patents

Direct-current voltage proportion output circuit and control method thereof Download PDF

Info

Publication number
CN102314187B
CN102314187B CN201010219075.0A CN201010219075A CN102314187B CN 102314187 B CN102314187 B CN 102314187B CN 201010219075 A CN201010219075 A CN 201010219075A CN 102314187 B CN102314187 B CN 102314187B
Authority
CN
China
Prior art keywords
circuit
vcc
voltage
vctl
microprocessor
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.)
Active
Application number
CN201010219075.0A
Other languages
Chinese (zh)
Other versions
CN102314187A (en
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.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201010219075.0A priority Critical patent/CN102314187B/en
Publication of CN102314187A publication Critical patent/CN102314187A/en
Application granted granted Critical
Publication of CN102314187B publication Critical patent/CN102314187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Voltage And Current In General (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The invention provides a direct-current voltage proportion output circuit and a control method thereof. The direct-current voltage proportion output circuit comprises an amplification circuit, a filtration circuit, a voltage following circuit and a microprocessor, the microprocessor is used for calculating a theoretical value P0 of a duty cycle corresponding to a theoretical voltage proportion Vctl'/Vcc' according to theoretical voltage output values Vctl' and Vcc' of the circuit and outputting a pulse signal with the duty cycle being P to the amplification circuit, the duty cycle P of the pulse signal output for the first time is equal to P0, and the actual output voltage Vctl and the actual power voltage Vcc of the circuit are collected by the microprocessor to adjust the duty cycle P of the pulse signal output by the microprocessor, so that the actual voltage proportion Vctl/Vcc is close to the theoretical voltage proportion Vctl'/Vcc'. The circuit is used for outputting the actual voltage proportion Vctl/Vcc for control of a direct-current stroke motor, and the defects of errors in motor stroke control due to changes in the actual power voltage Vcc when the motor stroke is controlled by the actual output voltage Vct1 can be overcome.

Description

A kind of direct-current voltage proportion output circuit and control method thereof
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of direct-current voltage proportion output circuit and control method thereof.
Background technology
Existing direct current stroke motor, provide power supply by power source voltage Vcc, separately has the voltage of control Vctl to carry out regulating and controlling for the stroke to direct current stroke motor simultaneously.In the application of vehicle-mounted or other mobile devices, supply voltage is to be provided by compact power (as battery), therefore not enough at battery electric quantity or power source voltage Vcc be subject to ectocine and while fluctuating, may occur causing because power source voltage Vcc is unstable and control voltage Vctl when controlling motor range, can not realize controlling accurately to direct current stroke motor to such an extent as to produce error.
Summary of the invention
For solving in prior art because mains fluctuations cause the problem that the Control of Voltage motor range is inaccurate, produce larger error of controlling, the invention provides a kind of ratio enforcement stroke Electric Machine Control that can pass through to control voltage and supply voltage, and the ratio of control voltage and supply voltage facilitates adjustable a kind of direct-current voltage proportion output circuit and control method thereof.
For addressing the above problem, a kind of direct-current voltage proportion output circuit of the present invention comprises amplifying circuit, filtering circuit, voltage follower circuit and microprocessor,
Described amplifying circuit receives the pulse signal that practical power voltage vcc and dutycycle are P, after described amplifying circuit amplifies the pulse signal received for output,
The input end of described filtering circuit connects the output terminal of described amplifying circuit, and described filtering circuit carries out PWM filtering processing to the pulse amplifying signal of described amplifying circuit output, and output analog voltage signal Vout,
The input end of described voltage follower circuit connects the output terminal of described filtering circuit, described voltage follower circuit has high input impedance, it receives the analog voltage Vout of described filtering circuit output, and equivalent actual output voltage Vctl, described microprocessor connects the input end of described amplifying circuit pulse voltage that output duty cycle is P to described amplifying circuit, described microprocessor gathers the practical power voltage vcc of described amplifying circuit and the actual output voltage Vctl of described voltage follower circuit, and by comparing the size of virtual voltage ratio Vctl/Vcc and dutycycle P, the dutycycle P of the pulse voltage that described microprocessor is exported is regulated.
Described amplifying circuit is the second amplifying circuit that comprises two triodes.
During described microprocessor judges virtual voltage ratio Vctl/Vcc>P, by pulse voltage dutycycle P turn down, during judgement virtual voltage ratio Vctl/Vcc<P, the dutycycle P of pulse voltage is tuned up.
Described direct-current voltage proportion output circuit also comprises the dividing potential drop Acquisition Circuit, described dividing potential drop Acquisition Circuit is connected with described microprocessor, and described microprocessor receives the practical power voltage vcc of amplifying circuit and the actual output voltage Vctl of voltage follower circuit by described dividing potential drop Acquisition Circuit.
Described dividing potential drop Acquisition Circuit comprises the first dividing potential drop Acquisition Circuit and the second dividing potential drop Acquisition Circuit, described the first dividing potential drop Acquisition Circuit connects the output terminal of described microprocessor and described voltage follower circuit, and described the second dividing potential drop Acquisition Circuit connects the practical power voltage vcc incoming end of described microprocessor and described amplifying circuit.
A kind of control method of direct-current voltage proportion output circuit, described direct-current voltage proportion output circuit is the arbitrary described direct-current voltage proportion output circuit of claim 1-5; Described control method comprises the following steps: step S1: microprocessor calculates the theoretical value P of the dutycycle corresponding with theoretical voltage ratio Vctl '/Vcc ' according to theoretical output valve Vctl ', the Vcc ' of described direct-current voltage proportion output circuit 0; Step S2: the output of pulse signal that microprocessor is P by dutycycle is through amplifying circuit, filtering circuit, voltage follower circuit, and the wait circuit is stable, wherein, when the pulse signal that dutycycle is P is output to amplifying circuit first, dutycycle P value is set for P 0; Step S3: microprocessor gathers the actual output voltage Vctl of voltage follower circuit and the practical power voltage vcc of amplifying circuit; Step S4: microprocessor judges | Vctl/Vcc-P 0| whether be greater than setting value m, if microprocessor is adjusted dutycycle P, and goes to step S2, if not, carries out next step; Step S5: microprocessor output virtual voltage ratio Vctl/Vcc.
Microprocessor is according to formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit, B are side-play amount, calculate the theoretical value P of the dutycycle corresponding with theoretical voltage ratio Vctl '/Vcc ' 0.
In described step S4, described dutycycle P=P 0+ P ', wherein, regulated value P ' is at | Vctl/Vcc-P 0| while being greater than setting value m, according to the theoretical value P of theoretical voltage ratio Vctl/Vcc and dutycycle 0the regulated value set of magnitude relationship.
Described step S4 comprises step S41: it is the first setting value m1 that setting value m is set, and wherein m1=50 ‰, microprocessor judges | Vctl/Vcc-P 0| whether be greater than setting value 50 ‰, if, as judgement Vctl/Vcc-P 0, regulated value P '=-50 ‰ are set, as judgement Vctl/Vcc-P at>50 ‰ o'clock 0<-50 ‰ o'clock, regulated value P '=50 ‰ are set, microprocessor, according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2; Work as microprocessor judges | Vctl/Vcc-P 0| be not more than at 50 ‰ o'clock, perform step S5.
Also comprise step S42 between step S41 and step S5: it is the first setting value m1 that setting value m is set, and wherein m1=20 ‰, microprocessor judges | Vctl/Vcc-P 0| whether be greater than setting value 20 ‰, if, as judgement Vctl/Vcc-P 0, regulated value P '=-20 ‰ are set, as judgement Vctl/Vcc-P at>20 ‰ o'clock 0<-20 ‰ o'clock, regulated value P '=20 ‰ are set, microprocessor, according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2; Work as microprocessor judges | Vctl/Vcc-P 0| be not more than at 20 ‰ o'clock, perform step S5.Also comprise step S43 between step S42 and step S5: it is the first setting value m1 that setting value m is set, and wherein m1=50 ‰, microprocessor judges | Vctl/Vcc-P 0| whether be greater than setting value 5 ‰, if, as judgement Vctl/Vcc-P 0, regulated value P '=-5 ‰ are set, as judgement Vctl/Vcc-P at>5 ‰ o'clock 0<-5 ‰ o'clock, regulated value P '=5 ‰ are set, microprocessor, according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2; Work as microprocessor judges | Vctl/Vcc-P 0| be not more than at 5 ‰ o'clock, perform step S5.
After having adopted a kind of direct-current voltage proportion output circuit provided by the invention and control method thereof, according to formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit, B are side-play amount, calculate the theoretical value P of the corresponding dutycycle of theoretical voltage ratio Vctl ' under theoretical output valve Vctl ', the Vcc ' with this direct-current voltage proportion output circuit/Vcc ' 0, and the pulse signal that is P by dutycycle is defeated through amplifying circuit, filtering circuit and voltage follower circuit, the dutycycle P value of the pulse signal of output is theoretical value P first 0thereafter, the actual output voltage Vctl of voltage follower circuit and the practical power voltage vcc of amplifying circuit are gathered by microprocessor, regulated for the dutycycle P to microprocessor output pulse, make the virtual voltage ratio Vctl/Vcc of final output level off to theoretical voltage ratio Vctl '/Vcc '.A kind of direct-current voltage proportion output circuit provided by the invention and control method thereof in the control procedure of stroke motor for adjustment and the output of virtual voltage ratio Vctl/Vcc, in order to reach the effect of controlling virtual voltage ratio Vctl/Vcc size by the dutycycle P of adjusting input pulse voltage, the accurate control of realization to the stroke motor, and overcome while utilizing actual output voltage Vctl to control motor range, because the practical power voltage vcc changes to cause, controlled when voltage is controlled motor range the defect that produces error.
The accompanying drawing explanation
Fig. 1 is the circuit theory diagrams of a kind of embodiment of a kind of direct-current voltage proportion output circuit provided by the invention;
Fig. 2 is the microprocessor 4 voltage acquisition connection layout of a kind of embodiment of a kind of direct-current voltage proportion output circuit provided by the invention;
Fig. 3 is the simplified flow chart of a kind of embodiment of control method of a kind of direct-current voltage proportion output circuit provided by the invention.
Fig. 4 is the detail flowchart of a kind of embodiment of control method of a kind of direct-current voltage proportion output circuit provided by the invention.
Embodiment
In order to make technical matters solved by the invention, technical scheme and beneficial effect clearer, below in conjunction with accompanying drawing, the present invention is further elaborated in direct current stroke motor application field, be to be understood that, specific embodiment described herein only, in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, a kind of embodiment according to a kind of direct-current voltage proportion output circuit of the present invention, comprise amplifying circuit 1, filtering circuit 2, voltage follower circuit 3 and microprocessor 4, amplifying circuit 1 receives the practical power voltage vcc and the input signal received is amplified, filtering circuit 2 is connected between described amplifying circuit 1 and described voltage follower circuit 3, the voltage signal of 2 pairs of amplifying circuits of this filtering circuit, 1 output carries out PWM filtering processing, and output analog voltage signal Vout is to voltage follower circuit 3, voltage follower circuit 3 has high input impedance, it receives the analog voltage Vout of described filtering circuit 2 outputs, and the equivalent actual output voltage Vctl that obtains.
Above-mentioned amplifying circuit can adopt general positive logic amplifying circuit, for input voltage and the output voltage homophase that makes amplifying circuit 1, this amplifying circuit 1 comprises two triodes, it forms second amplifying circuit, under present embodiment, first order amplifying circuit comprises resistance R 11, resistance R 12 and triode Q1, wherein, resistance R 11 is connected between the base stage of the input end TP61 of amplifying circuit 1 and triode Q1, the base stage of triode Q1 is through resistance R 12 ground connection, and the emitter of triode Q1 is connected to resistance R 12 ground connection one ends; Second level amplifying circuit comprises resistance R 13, resistance R 14, R21 and triode Q2, wherein, resistance R 14 is connected between the base stage of the collector of triode Q1 and triode Q2, resistance R 13 is connected between the emitter of the collector of triode Q1 and triode Q2, and collector one end of triode Q2 is by resistance R 21 ground connection.
Microprocessor 4 adopts MC9S08DZ60 model chip, and the input end TP61 of amplifying circuit 1 is connected with microprocessor 4, and the pulse voltage that microprocessor 4 output duty cycles are P is to above-mentioned amplifying circuit 1.1 pair of voltage signal received of amplifying circuit is amplified, and filtering circuit 2 gathers the dividing potential drop on resistance R21 on amplifying circuits 1, and using it as filtering circuit 2 input voltage.The input voltage of filtering circuit is after PWM filtering, and input voltage converts simulating signal to by digital signal and, with filtering voltage Vout output, filtering circuit 2 comprises resistance R 21, R22, R23, R24, capacitor C 21, C22 and diode D1.Wherein, resistance R 22, R23, R24 are connected in series successively from collector one end of triode Q2, and resistance R 22 is connected rear its two ends and is provided with diode D1 with R23; Capacitor C 1, C2 are connected in series afterwards and resistance R 24 is arranged in parallel, and filtering circuit 2 is drawn ground connection between capacitor C 1 and C2, and filtering voltage Vout exports between R24 and C22.Wherein, R23 and R21 are respectively filtering charging resistor and filtering discharge resistance, R23 and R21 resistance value ratio approach 1.33, now, the filter curve linearity is best, can obtain dutycycle P and the good linear relationship of filtering voltage Vout, above-mentioned resistance ratio is by a large amount of experiments, to draw on the basis of theory analysis, draw formula 2:Vout '=A*Vcc ' * P+B by matching, the amplification coefficient that in formula, A is amplifying circuit 1, B is side-play amount, the linear dependence degree of dutycycle P and filtering voltage Vout is 0.9988 after tested, this value more approaches 1, the error that fitting formula calculates is just less, get over the rule of conversion of energy response data.
In filtering circuit 2, R22 is semifixed resistor, can be by regulating the ratio of R22 fine setting charging resistor R23 and discharge resistance R21.Capacitor C 21 adopts the electrochemical capacitor of 4.7u, and 4.7u can meet the needs of filtering, can obtain response speed faster again.Power source voltage Vcc inputs to filtering circuit 2 through port TP82, when with this direct-current voltage proportion output circuit, motor being controlled, the practical power voltage vcc is introduced by the supply voltage of motor, due to different motors, its required supply voltage may be different, power source voltage Vcc is adjustable flexibly, for example, the practical power voltage vcc can be set to 6V, 9V, 12V respectively, a kind of direct-current voltage proportion output circuit provided by the invention, the variation of practical power voltage vcc can not impact the output of voltage ratio Vctl/Vcc.
Voltage follower circuit 3 is connected with the output terminal of filtering circuit 2, and this voltage follower circuit 3 has larger input impedance, and it carries out equal proportion output to filtering voltage Vout, and actual output voltage is Vctl.Voltage follower circuit 3 can adopt conventional voltage follower circuit design, and under present embodiment, voltage follower circuit 3 comprises an operational amplifier U103B, resistance R 32, R33, R31, capacitor C 31, C32, C33 and voltage stabilizing diode ZD.Resistance R 31 is connected between the output terminal of the in-phase input end of operational amplifier U103B and filtering circuit 2, resistance R 32 is connected between the inverting input and output terminal of operational amplifier U103B, and the power input of operational amplifier U103B is by capacitor C 31 ground connection.Voltage stabilizing diode ZD connects with resistance R 33 with after capacitor C 33 parallel connections, capacitor C 32 is parallel to the circuit two ends of above-mentioned voltage stabilizing diode ZD, capacitor C 33, resistance R 33 formation, the output terminal of operational amplifier U103B is connected between resistance R 33 and capacitor C 32, the output voltage V ctl self-capacitance C33 of this voltage follower circuit and the output of the port TP72 between voltage stabilizing diode ZD.Introduce high input impedance by voltage follower circuit 3, can the filtering voltage Vout of filtering circuit 2 outputs be cushioned, reduce the decay that filtering voltage Vout occurs in its latter linked dividing potential drop Acquisition Circuit.
As shown in Figure 2, a kind of embodiment according to a kind of direct-current voltage proportion output circuit of the present invention and control method thereof, be provided with dividing potential drop Acquisition Circuit 5 between voltage follower circuit 3 and microprocessor 4, the dividing potential drop Acquisition Circuit comprises the first dividing potential drop Acquisition Circuit 51 and the second dividing potential drop Acquisition Circuit 52, the first dividing potential drop Acquisition Circuit 51 connectivity port TP82 and microprocessor 4, for receiving the practical power voltage vcc, wherein, the first dividing potential drop Acquisition Circuit 51 comprises resistance R 45, R46, R44 and capacitor C 42, resistance R 44 is connected in series with R46, resistance R 45 is with after capacitor C 42 is in parallel, the one end is connected between resistance R 44 and resistance R 46, other end ground connection, the second dividing potential drop Acquisition Circuit 52 connectivity port TP72 and microprocessor 4, actual output voltage Vctl for the receiver voltage follow circuit, wherein, the second dividing potential drop Acquisition Circuit 52 comprises resistance R 43, R41, R42 and capacitor C 41, resistance R 41 is connected in series with R43, resistance R 42 is with after capacitor C 41 is in parallel, and the one end is connected between resistance R 41 and resistance R 43, other end ground connection.
As shown in Figure 3, according to a kind of embodiment of the control method of a kind of direct-current voltage proportion output circuit of the present invention, above-mentioned direct-current voltage proportion output circuit is the described direct-current voltage proportion output circuit of Fig. 1, Fig. 2.The control method of a kind of direct-current voltage proportion output circuit of the present invention specifically comprises the following steps:
Step S1: microprocessor calculates the theoretical value P of the dutycycle corresponding with theoretical voltage ratio Vctl '/Vcc ' according to theoretical output valve Vctl ', the Vcc ' of described direct-current voltage proportion output circuit 0; Wherein, microprocessor is according to formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit 1, B are side-play amount, calculate the theoretical value P of the dutycycle corresponding with theoretical output valve Vctl '/Vcc ' 0.Formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit 1, B is side-play amount, by formula 2:Vout=A*Vcc*P+B, the amplification coefficient that in formula, A is amplifying circuit 1, B is side-play amount, be transformed, concrete conversion process is: filtering voltage Vout obtains actual output voltage Vctl after voltage follower circuit 3 is processed, because voltage follower circuit 3 is only cushioned the filtering voltage Vout of filtering circuit 2 outputs, relative filtering voltage Vout is substantially constant for the value of actual output voltage Vctl, therefore after actual output voltage Vctl being replaced to filtering voltage Vout, can obtain P=(Vctl/Vcc)/A-(B/Vcc)/A through conversion, by theoretical voltage Vctl ', Vcc ' changes to and can obtain formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit 1, B are side-play amount.
Step S2: the output of pulse signal that microprocessor 4 is P by dutycycle is through amplifying circuit 1, filtering circuit 2, voltage follower circuit 3, and the wait circuit is stable, and wherein, when the pulse signal that dutycycle is P is output to amplifying circuit 1 first, dutycycle P value is P 0; The pulse signal of microprocessor 4 outputs, specifically through amplification, PWM filtering and voltage follow processing procedure, finally obtains actual output voltage Vctl.
Step S3: microprocessor gathers the actual output voltage Vctl of voltage follower circuit and the practical power voltage vcc of amplifying circuit.
Step S4: microprocessor 4 judgements | Vctl/Vcc-P 0| whether be greater than setting value m, if microprocessor 4 is adjusted dutycycle P, and goes to step S2, if not, carries out next step.
Step S5: microprocessor output virtual voltage ratio Vctl/Vcc.
In above-mentioned steps S4, dutycycle P=P 0+ P ', wherein, regulated value P ' is at | Vctl/Vcc-P 0| while being greater than setting value m, according to the theoretical value P of theoretical voltage ratio Vctl/Vcc and dutycycle 0the regulated value set of magnitude relationship.
As shown in Figure 4, in the present invention, can be to above-mentioned setting value m, and the regulated value P ' under different setting value m values specifically arranges.Method is as follows, at step S4, comprises step S41: it is the first setting value m1 that initial set value m is set, and wherein m1=50 ‰, | Vctl/Vcc-P 0|>50 ‰, as Vctl/Vcc and P 0the numerical value differed is greater than at 50 ‰ o'clock, relatively Vctl/Vcc and P 0size, as Vctl/Vcc>P 0the time, regulated value P '=-50 ‰ are set, adjust P=P 0-50 ‰, as Vctl/Vcc<P 0the time, regulated value P '=50 ‰ are set, adjust P=P 0+ 50 ‰, and return to step S2, the pulse signal that the microprocessor output duty cycle is P, to amplifying circuit, repeats said process, until | Vctl/Vcc-P 0|≤50 ‰, i.e. the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0the numerical value differed is not more than at 50 ‰ o'clock, and execution step S5 is about to virtual voltage ratio Vctl/Vcc value output now.When by a kind of direct-current voltage proportion output circuit provided by the invention and control method thereof, controlling direct current stroke motor, the value of virtual voltage ratio Vctl/Vcc is linearly related to motor speed, therefore, variation along with the value of virtual voltage ratio Vctl/Vcc, motor speed changes thereupon, with this control direct current stroke motor the course of work.
A kind of improvement as present embodiment, the numerical range that virtual voltage ratio Vctl/Vcc and dutycycle P value differ can further be set, to increase the precision to dutycycle P feedback regulation, concrete grammar is: increase step S42 between step S41 and step S5, it is the second setting value m2 that adjustment arranges initial set value m, wherein m2=20 ‰, further judges relation | Vctl/Vcc-P 0| whether>20 ‰ set up, and judges the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0whether the numerical range differed is between 20 ‰-50 ‰.| Vctl/Vcc-P 0|>20 ‰ o'clock, the theoretical value P of comparison virtual voltage ratio Vctl/Vcc and dutycycle 0size, as Vctl/Vcc>P 0the time, regulated value P '=-20 ‰ are set, adjust P=P 0-20 ‰, as Vctl/Vcc<P 0the time, regulated value P '=20 ‰ are set, adjust dutycycle P=P 0+ 20 ‰, and return to step S2, the pulse signal that microprocessor 4 output duty cycles are P, to amplifying circuit, repeats said process, until | Vctl/Vcc-P 0|≤20 ‰, i.e. the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0the numerical value differed is not more than at 20 ‰ o'clock, and execution step S5 is about to virtual voltage ratio Vctl/Vcc value output now.
Certainly, also can be at | Vctl/Vcc-P 0|≤20 ‰ o'clock, the value of virtual voltage ratio Vctl/Vcc is not exported, and further P is carried out to feedback regulation, make the value of virtual voltage ratio Vctl/Vcc more level off to theoretical voltage ratio Vctl '/Vcc ', now, increase step S42 between step S42 and step S5, it is the 3rd setting value m3 that adjustment arranges initial set value m, and wherein m3=5 ‰, increases judgement | Vctl/Vcc-P 0| whether>5 ‰ set up, and judges the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0whether the numerical range differed is between 5 ‰-20 ‰.| Vctl/Vcc-P 0|>5 ‰ o'clock, the theoretical value P of comparison virtual voltage ratio Vctl/Vcc and dutycycle 0size, as Vctl/Vcc>P 0the time, regulated value P '=-5 ‰ are set, adjust P=P 0-5 ‰,, as Vctl/Vcc<P 0the time, regulated value P '=5 ‰ are set, adjust P=P 0+ 5 ‰, and return to step S2, the pulse signal that the microprocessor output duty cycle is P, to amplifying circuit, repeats said process, until | Vctl/Vcc-P 0|≤5 ‰, i.e. the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0the numerical value differed is not more than at 5 ‰ o'clock, and execution step S5 is about to virtual voltage ratio Vctl/Vcc value output now.
Under present embodiment, the above-mentioned numerical range provided only, as to a kind of explaining of the present invention, in actual applications, specifically can arrange corresponding numerical range for the feedback regulation to dutycycle P according to different situations.
After having adopted a kind of direct-current voltage proportion output circuit provided by the invention and control method thereof, according to formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit 1, B are side-play amount, calculate the theoretical value P of the corresponding dutycycle of theoretical voltage ratio Vctl ' under theoretical output valve Vctl ', the Vcc ' with this direct-current voltage proportion output circuit/Vcc ' 0, and the pulse signal that is P by dutycycle is defeated through amplifying circuit 1, filtering circuit 2 and voltage follower circuit 3, the dutycycle P value of the pulse signal of output is theoretical value P first 0thereafter, the actual output voltage Vctl of voltage follower circuit 3 and the practical power voltage vcc of amplifying circuit 1 are gathered by microprocessor 4, regulated for the dutycycle P to microprocessor 4 output pulses, make the virtual voltage ratio Vctl/Vcc of final output level off to theoretical output valve Vctl '/Vcc '.A kind of direct-current voltage proportion output circuit provided by the invention and control method thereof in the control procedure of stroke motor for adjustment and the output of virtual voltage ratio Vctl/Vcc, in order to reach the effect of controlling virtual voltage ratio Vctl/Vcc size by the dutycycle P of adjusting input pulse voltage, the accurate control of realization to the stroke motor, and overcome while utilizing actual output voltage Vctl to control motor range, because the practical power voltage vcc changes to cause, controlled when voltage is controlled motor range the defect that produces error.
Above content is the further description of the present invention being done in conjunction with concrete preferred implementation, can not assert that specific embodiment of the invention is confined to these explanations.For the ordinary skill in the art, can carry out multiple variation, modification, replacement and distortion to this embodiment in the case of without departing from the principles of the present invention, but all should be considered as belonging to protection scope of the present invention.

Claims (11)

1. a direct-current voltage proportion output circuit, is characterized in that, described circuit comprises amplifying circuit (1), filtering circuit (2), voltage follower circuit (3) and microprocessor (4),
Described amplifying circuit (1) receives the pulse voltage that practical power voltage vcc and dutycycle are P, after described amplifying circuit (1) amplifies the pulse voltage received for output,
The input end of described filtering circuit (2) connects the output terminal of described amplifying circuit, and described filtering circuit (2) carries out PWM filtering processing to the pulse amplifying signal of described amplifying circuit (1) output, and output analog voltage signal Vout,
The input end of described voltage follower circuit (3) connects the output terminal of described filtering circuit (2), described voltage follower circuit (3) has high input impedance, it receives the analog voltage Vout of described filtering circuit (2) output, and equivalent actual output voltage Vctl
Described microprocessor (4) connects the input end of described amplifying circuit (1) pulse voltage that output duty cycle is P to described amplifying circuit (1), described microprocessor (4) gathers the practical power voltage vcc of described amplifying circuit (1) and the actual output voltage Vctl of described voltage follower circuit (3), and, by comparing the size of virtual voltage ratio Vctl/Vcc and dutycycle P, the dutycycle P of the pulse voltage that described microprocessor (4) is exported is regulated.
2. a kind of direct-current voltage proportion output circuit as claimed in claim 1, is characterized in that, described amplifying circuit (1) is the second amplifying circuit that comprises two triodes.
3. a kind of direct-current voltage proportion output circuit as claimed in claim 1, it is characterized in that, described microprocessor (4) judgement virtual voltage ratio Vctl/Vcc > during P, by pulse voltage dutycycle P turn down, during judgement virtual voltage ratio Vctl/Vcc<P, the dutycycle P of pulse voltage is tuned up.
4. a kind of direct-current voltage proportion output circuit as claimed in claim 1, it is characterized in that, described direct-current voltage proportion output circuit also comprises dividing potential drop Acquisition Circuit (5), described dividing potential drop Acquisition Circuit (5) is connected with described microprocessor (4), and described microprocessor (4) receives the practical power voltage vcc of amplifying circuit and the actual output voltage Vctl of voltage follower circuit by described dividing potential drop Acquisition Circuit (5).
5. a kind of direct-current voltage proportion output circuit as claimed in claim 4, it is characterized in that, described dividing potential drop Acquisition Circuit (5) comprises the first dividing potential drop Acquisition Circuit (51) and the second dividing potential drop Acquisition Circuit (52), described the first dividing potential drop Acquisition Circuit (51) connects the output terminal of described microprocessor (4) and described voltage follower circuit (3), and described the second dividing potential drop Acquisition Circuit (52) connects the practical power voltage vcc incoming end of described microprocessor (4) and described amplifying circuit.
6. the control method of a direct-current voltage proportion output circuit, is characterized in that, described direct-current voltage proportion output circuit is the arbitrary described direct-current voltage proportion output circuit of claim 1-5;
Described control method comprises the following steps:
Step S1: microprocessor (4) calculates the theoretical value P of the dutycycle corresponding with theoretical voltage ratio Vctl '/Vcc ' according to theoretical output valve Vctl ', the Vcc ' of described direct-current voltage proportion output circuit 0;
Step S2: the output of pulse signal that microprocessor (4) is P by dutycycle is through amplifying circuit (1), filtering circuit (2), voltage follower circuit (3), and wait for that circuit is stable, wherein, when the pulse signal that dutycycle is P is output to amplifying circuit (1) first, dutycycle P value is set for P 0;
Step S3: microprocessor (4) gathers the actual output voltage Vctl of voltage follower circuit (3) and the practical power voltage vcc of amplifying circuit (1);
Step S4: microprocessor (4) judgement | Vctl/Vcc-P 0| whether be greater than setting value m, if microprocessor (4) is adjusted dutycycle P, and goes to step S2, if not, carries out next step;
Step S5: microprocessor output virtual voltage ratio Vctl/Vcc.
7. the control method of a kind of direct-current voltage proportion output circuit as claimed in claim 6, is characterized in that, microprocessor (4) is according to formula 1:P 0=(Vctl '/Vcc ')/A-(B/Vcc ')/A, the amplification coefficient that in formula, A is amplifying circuit (1), B are side-play amount, calculate the theoretical value P of the dutycycle corresponding with theoretical voltage ratio Vctl '/Vcc ' 0.
8. the control method of a kind of direct-current voltage proportion output circuit as claimed in claim 6, is characterized in that, in described step S4, and described dutycycle P=P 0+ P ', wherein, regulated value P ' is at | Vctl/Vcc-P 0| while being greater than setting value m, according to the theoretical value P of virtual voltage ratio Vctl/Vcc and dutycycle 0the regulated value set of magnitude relationship.
9. the control method of a kind of direct-current voltage proportion output circuit as claimed in claim 8, is characterized in that, described step S4 comprises step S41:
It is the first setting value m1 that setting value m is set, and wherein m1=50 ‰, microprocessor (4) judgement | Vctl/Vcc-P 0| whether be greater than setting value 50 ‰, if, as judgement Vctl/Vcc-P 050 ‰ o'clock, regulated value P '=-50 ‰ are set, as judgement Vctl/Vcc-P 0<-50 ‰ o'clock, regulated value P '=50 ‰ are set, microprocessor (4), according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2;
When microprocessor (4) judgement | Vctl/Vcc-P 0| be not more than at 50 ‰ o'clock, perform step S5.
10. the control method of a kind of direct-current voltage proportion output circuit as claimed in claim 9, is characterized in that, also comprises step S42 between step S41 and step S5:
It is the second setting value m2 that setting value m is set, and wherein m2=20 ‰, microprocessor (4) judgement | Vctl/Vcc-P 0| whether be greater than setting value 20 ‰, if, as judgement Vctl/Vcc-P 020 ‰ o'clock, regulated value P '=-20 ‰ are set, as judgement Vctl/Vcc-P 0<-20 ‰ o'clock, regulated value P '=20 ‰ are set, microprocessor (4), according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2;
When microprocessor (4) judgement | Vctl/Vcc-P 0| be not more than at 20 ‰ o'clock, perform step S5.
11. the control method of a kind of direct-current voltage proportion output circuit as claimed in claim 10, is characterized in that, also comprises step S43 between step S42 and step S5:
It is the 3rd setting value m3 that setting value m is set, and wherein m3=5 ‰, microprocessor (4) judgement | Vctl/Vcc-P 0| whether be greater than setting value 5 ‰, if, as judgement Vctl/Vcc-P 05 ‰ o'clock, regulated value P '=-5 ‰ are set, as judgement Vctl/Vcc-P 0<-5 ‰ o'clock, regulated value P '=5 ‰ are set, microprocessor (4), according to above-mentioned judged result, is adjusted into P=P by P 0+ P ', and return to step S2;
When microprocessor (4) judgement | Vctl/Vcc-P 0| be not more than at 5 ‰ o'clock, perform step S5.
CN201010219075.0A 2010-06-30 2010-06-30 Direct-current voltage proportion output circuit and control method thereof Active CN102314187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010219075.0A CN102314187B (en) 2010-06-30 2010-06-30 Direct-current voltage proportion output circuit and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010219075.0A CN102314187B (en) 2010-06-30 2010-06-30 Direct-current voltage proportion output circuit and control method thereof

Publications (2)

Publication Number Publication Date
CN102314187A CN102314187A (en) 2012-01-11
CN102314187B true CN102314187B (en) 2014-01-01

Family

ID=45427422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010219075.0A Active CN102314187B (en) 2010-06-30 2010-06-30 Direct-current voltage proportion output circuit and control method thereof

Country Status (1)

Country Link
CN (1) CN102314187B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446098B (en) * 2016-01-04 2022-03-18 湖南工业大学 Method for calculating proportional value between two input voltages
CN105653241B (en) * 2016-01-04 2018-06-26 湖南工业大学 Seek the device of ratio value between two input voltages
CN106602875A (en) * 2016-12-02 2017-04-26 杭州先途电子有限公司 DC solenoid valve driving circuit and PWM control method based on the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002262551A (en) * 2000-02-07 2002-09-13 Fiderikkusu:Kk Voltage step-down dc-dc converter
CN100388148C (en) * 2002-10-31 2008-05-14 中兴通讯股份有限公司 Circuit for regulating lower limit of limiting switch power source voltage
JP5386801B2 (en) * 2007-07-27 2014-01-15 株式会社リコー Switching regulator and operation control method thereof
JP2009291006A (en) * 2008-05-29 2009-12-10 Fujitsu Ltd Device and method for converting voltage, and program for determining duty ratio

Also Published As

Publication number Publication date
CN102314187A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
CN101794159B (en) Band-gap reference voltage source of high power supply voltage rejection ratio
CN104699153B (en) Low-dropout linear regulator
CN202238482U (en) Ultrasonic atomizer
CN109613202B (en) Signal calibration device for pipeline corrosion degree measuring instrument
CN104236009A (en) Conditioner signal acquisition compensating device and method
CN102314187B (en) Direct-current voltage proportion output circuit and control method thereof
CN103166587A (en) Audio processing circuit
CN105445673A (en) Direct-current constant-resistance electronic load apparatus
CN103973244A (en) Current compensating circuit, current compensating method and operational amplifier
CN102006018B (en) Opening control circuit used for AB class audio amplifier
CN109104180B (en) Electronic information data processing system
CN103885518A (en) Small-area and ultralow-noise LDO
CN106374742B (en) Switching Power Supply output frequency adjusts circuit
CN103761964B (en) Automatic speech recognition circuit
CN203747761U (en) Automatic gain adjustment circuit
CN204334400U (en) A kind of signal sampling device controlled for motor in electric automobile
CN209055869U (en) A kind of linear voltage-stabilizing circuit
CN203590168U (en) Gain control circuit
CN107102667A (en) Low pressure difference linear voltage regulator
CN207397132U (en) High-precision temperature calibration system based on MCU
CN203746419U (en) Automatic voice identification circuit
CN104901537B (en) A kind of analog-to-digital conversion correction auxiliary circuit of air conditioner and its master controller
CN205644336U (en) Constant current output circuit
CN110504830A (en) A kind of reconfigurable circuit and reconstructing method of inductive current
CN109541302B (en) Frequency response measuring method for leakage current and contact current

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant