A kind of wide-range and the DC current source and processing method of closed-loop control
Technical field
The present invention relates to electronic technology field more particularly to the DC current sources and processing of a kind of wide-range and closed-loop control
Method.
Background technique
With the development of modern electronic technology, the application of DC current source is increasingly extensive, such as in industrial automation, intelligence
Instrument and meter and other digital control aspects require using current source to be equipment power supply.DC current source is in analog circuit
Important component, it may be used as driving, control or biasing circuit, the precision of current source directly influence whole system
Precision and stability.So research and development constant current source has a very important significance.For dedicated current source, especially
It is that operating current is big, personalized current source with high accuracy still needs to user's designed, designed.
Conventional current source output current value is that fixed or limited gear is optional, be not easy to it is general, although manually can be with
Change the size of biasing resistor, but this mode requires non-linear, high-precision, the occasion of fast reaction to be difficult to realize essence some
Really control, and balance cannot be obtained between power consumption and performance.In addition, conventional current source is easy by temperature, supply voltage
Etc. factors influence, cause precision not high, the linearity is bad.Also occurred relatively good scheme of the invention in succession in recent years, such as:
Existing Digital Control Direct Current Source can also interfere output stability because of the variation of temperature, supply voltage, load impedance, and
Range switching cannot be realized according to loading demand.Another example is: although mirror image high-precision current source can provide high-precision current, its
Output electric current is fixed, and can not be converted, while can not achieve closed-loop control, the most important present age in automation control, cannot
Realize numerical control control, in use for versus busy.
Summary of the invention
In order to overcome defect present on the prior art, the present invention discloses that a kind of range is changeable to be compatible with closed loop control simultaneously
The wide-range high-precision DC current source of system.
To achieve the above object, the presently disclosed wide-range and DC current source of closed-loop control includes:
V/I conversion circuit, for DC input voitage to be converted into output DC current, the input voltage is to be controlled by
Close loop control circuit is to realize the adjustable variable one of range;And the V/I conversion circuit is additionally provided at least two resistor coupled in parallel, with
The adjustable variable two of range is formed by total resistance value that on-off combines change parallel resistance;The output of the V/I conversion circuit
Electric current with the variable one and the variable two the linear transformation of quotient;
The sampling resistor being connected between the V/I conversion circuit and load;
The analog-to-digital conversion of required feedback data acquisition is realized in the close loop control circuit including connecting the sampling resistor
Device, the digital analog converter being connect with the V/I conversion circuit input terminal, and it is connected to the analog-digital converter and the digital-to-analogue
Processor between converter;The processor according to the feedback data and the variable two of the sampling resistor for calculating
Increment needed for adjusting the variable one out, and the increment is acted on into the V/I conversion circuit through the digital analog converter
Input terminal.
In order to achieve the above object, invention additionally discloses a kind of wide-range and the DC current source processing method of closed-loop control, packet
It includes:
Input voltage is converted into electric current with V/I conversion circuit, the input voltage be controlled by close loop control circuit with
Realize the adjustable variable one of range;And the V/I conversion circuit is additionally provided at least two resistor coupled in parallel, to be changed by on-off combination
Become total resistance value of parallel resistance and forms the adjustable variable two of range;The output electric current of the V/I conversion circuit is with the variable
One with the linear transformation of quotient of the variable two;
One sampling resistor, and construction close loop control circuit are set between the V/I conversion circuit and load, it is described to close
Ring control loop includes connecting the sampling resistor to turn with the analog-digital converter for realizing required feedback data acquisition and the V/I
Change the digital analog converter of circuit input end connection, and the place being connected between the analog-digital converter and the digital analog converter
Manage device;
According to the target environment parameter of load determine the variable two corresponding to parallel resistance on-off syntagmatic, and with
Adjustment institute is calculated according to the feedback data and the variable two of the sampling resistor in the processor of the close loop control circuit
Increment needed for stating variable one, and the increment is acted on to the input terminal of the V/I conversion circuit through the digital analog converter.
The DC current source and its processing method of wide-range of the present invention and closed-loop control have the advantages that
V/I conversion circuit is especially made of V/I conversion circuit band-gap reference voltage circuit, itself has definitely
Inhibit the function of the influence of variation and interference due to temperature, supply voltage, load impedance to current source.Closed-loop control into
Under the effect of one step, deeper time reduces the influence to current source such as component nonlinear change characteristic, noise and temperature drift, and really
The high-precision control of output electric current is protected.Moreover, circuit of the present invention is simple and performance is stably and controllable, in V/I conversion circuit and close
Under the action of ring control loop, the output electric current of V/I conversion circuit is measured accordingly with the variation of variable one and variable two
Journey switching, realizing range can be switched, and by changing variable one and/or variable two, in practical applications, wide-range can be realized
From Naan to the switching of milliampere grade.
Below with reference to accompanying drawings, the present invention is described in further detail.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the V/I conversion circuit schematic illustration of the preferred embodiment of the present invention;
Fig. 2 is that the range of the V/I conversion circuit of the preferred embodiment of the present invention can be changed schematic illustration;
Fig. 3 is the final schematic illustration of V/I conversion circuit of the preferred embodiment of the present invention;
Fig. 4 is the functional block diagram of the preferred embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with attached drawing, but the present invention can be defined by the claims
Implement with the multitude of different ways of covering.
Embodiment 1
The present embodiment discloses the DC current source of a kind of wide-range and closed-loop control, comprising:
V/I conversion circuit, for input direct-current voltage to be converted into output DC current, the input voltage is to be controlled by
Close loop control circuit is to realize the adjustable variable one of range;And the V/I conversion circuit is additionally provided at least two resistor coupled in parallel, with
The adjustable variable two of range is formed by total resistance value that on-off combines change parallel resistance;The output of the V/I conversion circuit
Electric current with the variable one and the variable two the linear transformation of quotient;
The sampling resistor being connected between the V/I conversion circuit and load;
The analog-to-digital conversion of required feedback data acquisition is realized in the close loop control circuit including connecting the sampling resistor
Device, the digital analog converter being connect with the V/I conversion circuit input terminal, and it is connected to the analog-digital converter and the digital-to-analogue
Processor between converter;The processor according to the feedback data and the variable two of the sampling resistor for calculating
Increment needed for adjusting the variable one out, and the increment is acted on into the V/I conversion circuit through the digital analog converter
Input terminal.
Preferably, the present embodiment V/I conversion circuit is made of band-gap reference voltage circuit, specifically can include:
Triode Q1 and Q2, resistance R, it is used for and operational amplifier U1;
The emitter of triode Q1 is through resistance RSGround connection, base stage introduce the input voltage, and collector connects through the resistance R
Meet power supply VCC;
The emitter of triode Q2 is through loading RLGround connection, base stage connect the output end of the operational amplifier U1, collector
At least two parallel resistance for being changed the variable two connects power supply VCC;
The normal phase input end of the operational amplifier U1 connects the emitter of the triode Q1, the operational amplifier U1
Inverting input terminal connect the emitter of the triode Q2.
Preferably, the precision digit of the present embodiment analog-digital converter is greater than or equal to 24 to realize V grades of output voltage μ
Not, the output current scope of the V/I conversion circuit is made to be clipped to mA rank from nA grades with the value in conjunction with two resistance of variable;Phase
Corresponding, the precision digit of digital analog converter is greater than or equal to 24.
Structure and principle in relation to the present embodiment V/I conversion circuit can refer to Fig. 1 and Fig. 2.
In Fig. 1, input voltage VinIt into Q1 base stage, turns it on, Q1 emitter currentIt is put according to operation
The big empty short characteristic of device has IRR=IoR1, Q1 collector current is equal with transmitting colleeting comb, i.e. IR=IRS, Q2 collector current and hair
It is equal to penetrate colleeting comb, i.e. Io=IRL, it is possible thereby to releaseAs R, R1、RsWith input voltage VinWhen determining,
It can determine output electric current IRLValue.
Further, changeable in order to provide range, as shown in Fig. 2, R1 is changed to the parallel connection of multiple groups resistance, i.e., it is in parallel more
Group resistance R1、R2、R3…Rn, by RAlwaysInverse be equal to each sub-resistance the sum of inverse, can obtainAccording toR need to only be changedAlwaysValue, can change output electric current IRLValue.Further according to bearing power difference, benefit
Different resistance are combined with switch on and off, change RAlwaysTo change IRL, thus exported to generate wide electric current, range can be clipped to mA from nA grades
Rank, it is final to realize that range is variable.
Further, the present embodiment also provides Symmetrical simultaneously and exports the technical solution converted in real time, positive output according to
Fig. 2 circuit is designed, and in order to obtain symmetrical negative output, negative output circuit design and V/I convert complete mirror image, wherein power supply
VCC and VEE is in the same size, contrary, and Q1 and Q1 use NPN to manage, and Q2 and `Q2 use PNP pipe, while passing through control
Relay RL1 and RL2 realize the positive real-time conversion function of negative output, further improve while providing and manipulating convenience and are
The performances such as anti-interference of system, and then also by precision improvement to a higher rank;Circuit design schematic diagram is as shown in Figure 3.Value
Must illustrate: in relation to Fig. 2 and V/I conversion circuit shown in Fig. 3, those skilled in the art can also infer other a variety of easily
Deformation or equivalent replacement, such deformation or equivalent replacement come under protection scope of the present invention, are not unfolded to be repeated one by one.
Further, referring to Fig. 4, the present embodiment close loop control circuit can include: the DSP of the analog-digital converter is connected,
The DSP connects the V/I conversion circuit through digital analog converter;Wherein, it is communicated between DSP and ADC and DAC with SPI.Phase
It is corresponding, in specific closed loop adjustment process, by DSP according to the present input voltage of sampling resistor fed back and current electricity
Increment needed for variable one is calculated in the corresponding relationship and target current of stream and the difference of current flow.Preferably, this reality
The sampling resistor that a sampling resistor is Low Drift Temperature 0.2ppm or more is applied, the precision of analog-digital converter is 32, the digital-to-analogue conversion
The precision of device is 24;It can ensure that the precision of the present embodiment DC current source 0.01% or more whereby.24 DAC used,
Theoretically output voltage minimum precision are as follows:
In above formula, n is DAC digit, VREFFor DAC reference data voltage.In general, DAC output voltage is up to μ V rank, so
Afterwards in conjunction with the value of two resistance of variable, output exchange range can be clipped to mA rank from nA grades, final to realize that range is variable, generate
Wide electric current output, range are clipped to mA rank from nA grades.
To sum up, the V/I of electric current of voltage regulation source disclosed in the present embodiment, Combination for High Precision A/D, D/A conversion chip and mirror image turns
Change the high precision performance that circuit realizes up to nA grades.By changing RAlwaysValue it is defeated to generate wide electric current so that output range is variable
Out, range is clipped to mA rank from nA grades.The characteristics of meeting high precision closed loop control simultaneously.
Embodiment 2
Corresponding with above-described embodiment 1, the present embodiment discloses at a kind of wide-range and the DC current source of closed-loop control
Reason method, comprising the following steps:
Step S1, with by V/I conversion circuit by DC input voitage be converted into output DC current, the input voltage be by
It controls in close loop control circuit to realize the adjustable variable one of range;And the V/I conversion circuit is additionally provided at least two resistor coupled in parallel,
The adjustable variable two of range is formed with the total resistance value for combining change parallel resistance by on-off;The output of the V/I conversion circuit
Electric current carries out corresponding range switching with the variation of the variable one and variable two, and the output electric current of the V/I conversion circuit
With the linear transformation of quotient of the variable one and the variable two.
Step S2, a sampling resistor, and construction close loop control circuit are set between the V/I conversion circuit and load,
The close loop control circuit includes the analog-digital converter and the V/ for connecting the sampling resistor to realize required feedback data acquisition
The digital analog converter of I conversion circuit input terminal connection, and be connected between the analog-digital converter and the digital analog converter
Processor.
Step S3, according to the target environment parameter of load determine the variable two corresponding to parallel resistance on-off combination close
System, and adjustment is calculated according to the feedback data and the variable two of the sampling resistor with the processor of close loop control circuit
Increment needed for the variable one, and the increment is acted on to the input of the V/I conversion circuit through the digital analog converter
End.
Optionally, the present embodiment close loop control circuit processor is also wrapped in specifically closed loop control process using DSP
It includes:
The DSP is according to the present input voltage of sampling resistor fed back and the corresponding relationship and target of current flow
Increment needed for the variable one is calculated in the difference of electric current and current flow.
To sum up, DC current source and its processing method disclosed in the present embodiment above-described embodiment, have it is following the utility model has the advantages that
V/I conversion circuit itself has the variation and interference definitely inhibited due to temperature, supply voltage, load impedance
The function of influence to current source.Under the further effect of closed-loop control, deeper time reduces component nonlinear change
The influence to current source such as characteristic, noise and temperature drift, and ensure the high-precision control of output electric current.Moreover, circuit of the present invention
Simple and performance is stably and controllable, under the action of V/I conversion circuit and close loop control circuit, the output electric current of V/I conversion circuit
Carry out corresponding range switching with the variation of variable one and variable two, it is changeable to realize range, by change variable one and/
Or variable two, in practical applications, wide-range can realize the switching from Naan to milliampere grade.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.