Adjustable constant current source circuit system and control method
By introducing a temperature sensor and DA chip into the constant current source circuit to dynamically adjust the current output, the problem of insufficient accuracy of the constant current source in complex temperature environments is solved, and current source adjustment and high-precision output for different devices are achieved, which is suitable for Large-scale equipment testing improves the reliability and applicability of the system.
Patent Information
- Application Number
- CN202410082246.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for existing constant current sources to dynamically guarantee the accuracy of the output current value in complex temperature environments. Moreover, the current output range is small and the adjustment accuracy is poor. It cannot meet the requirements of modern circuit design for a wide input voltage range and high output current accuracy.
An adjustable constant current source circuit system is designed, including a temperature sensor, processor, DA chip, constant current source output circuit unit, overcurrent detection circuit unit, resistance measurement circuit unit and switch drive circuit. The ambient temperature is obtained through the temperature sensor. value, calculate the target current value, and output the target current through the DA chip. Use the difference between the preset and actual A code values to adjust the current output to provide different current sources for different test equipment.
It improves the reliability of the current output of the constant current source and its ability to withstand harsh environments, realizes high-precision adjustment and bidirectional testing of the current output, is suitable for testing large equipment, and reduces system cost and complexity.
Smart Images

Figure CN118689276A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated circuits, and in particular relates to an adjustable constant current source circuit system and a control method. Background Art
[0002] A constant current source is a power source that can provide a constant current to a load. It has the advantages of fast response, high constant current accuracy, long-term stable operation, and is suitable for loads of various properties (resistive, inductive, capacitive), etc. It is mainly used to detect thermal relays, molded case circuit breakers, small circuit breakers, and production occasions where the rated current, operating current, short-circuit protection current, etc. need to be set.
[0003] At present, the existing constant current source calibration method in a complex temperature environment is to adjust the performance of each component in the hardware circuit to ensure that it reduces the overall temperature drift and maintains a certain accuracy within the set temperature range. Or according to the preset algorithm, a fixed preset algorithm is used in a certain temperature range. Such a calibration method has the limitations of a small adaptable temperature range, a small current dynamic adjustment range, and low reliability. At the same time, most constant current source devices in the prior art cannot dynamically guarantee the accuracy of the output current value under a complex temperature environment. In addition, most constant current source devices have a small current output range and poor adjustment accuracy.
[0004] With the continuous development of industrial intelligence, embedded systems have higher and higher requirements for power supply, wider input voltage range, and higher requirements for output current accuracy. Constant current sources are widely used in modern circuit design and engineering fields. A constant current source is a circuit or device that can provide a stable current output. Compared with a constant voltage source, a constant current source has a higher stability in output current and is suitable for many applications that require constant current. The output current of a constant current source remains constant, while the output voltage varies due to changes in the load of the external circuit; common constant current sources include voltage-controlled current sources, feedback current sources, and field-effect transistor constant current sources. In many cases, current changes have little effect on the circuit, as long as the voltage is stable and the current is appropriate. The use of constant current sources in the prior art cannot be combined and the current source cannot be adjusted bidirectionally, and the scope of application is small. When relatively large equipment needs to be tested, it cannot provide a large enough power supply.
[0005] Therefore, it is necessary to provide an adjustable constant current source circuit system and a control method to solve the above technical problems. Summary of the invention
[0006] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the abstract of the specification and the title of the invention of this application to avoid blurring the purpose of this section, the abstract of the specification and the title of the invention, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0007] Therefore, the technical problem to be solved by the present invention is that the constant current source circuit can be used to test the bidirectional current source and can provide different current sources for different test equipment.
[0008] In order to solve the above technical problems, the present invention provides the following technical solutions: an adjustable constant current source circuit system, the constant current source circuit is mainly composed of an input stage and an output stage, the input stage provides a reference current, and the output stage outputs the required constant current; it is characterized in that: the system includes a temperature sensor, a processor, a DA chip, a constant current source output circuit unit, an overcurrent detection circuit unit, a resistance measurement circuit unit, a switch drive circuit and an ARM main control unit; the processor is communicatively connected to the temperature sensor and the DA chip respectively, and the DA chip is communicatively connected to the constant current source output circuit; the constant current source output circuit is used to be connected to a load;
[0009] The constant current output circuit unit includes a DAC, a V / I circuit, a current monitoring circuit, a filter amplifier circuit and a 32-bit ADC sampling circuit; wherein the input end of the DAC is connected to the output end of the ARM main control unit, the output end of the DAC is connected to the output end of the 32-bit ADC sampling circuit and then connected to the input end of the V / I circuit; the output end of the V / I circuit is connected to the input end of the current monitoring circuit through the current detection circuit unit, and the output end of the current monitoring circuit is connected to the input end of the 32-bit ADC sampling circuit through the filter amplifier circuit;
[0010] The other output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the DAC is used to output an analog voltage signal according to the command of the ARM main control unit; the V / I circuit is used to convert the voltage signal into a set current output as a constant current output excitation for resistance testing; the current monitoring circuit is used to perform I / V conversion on the output current and convert the current into voltage; the filter amplifier circuit is used to reduce noise and amplify the voltage of the current monitoring circuit; the 32-bit ADC sampling circuit is used to sample the voltage value after filtering and amplification;
[0011] The overcurrent detection circuit unit includes a jitter-free high-speed switch, a self-locking circuit and an overcurrent protection circuit; the input end of the overcurrent protection circuit is connected to the output end of the V / I circuit in the constant current output circuit unit through the jitter-free high-speed switch, and the output end of the overcurrent protection circuit is respectively connected to the self-locking circuit and the current monitoring circuit in the constant current output circuit unit; the input end of the self-locking circuit is connected to the ARM main control unit, and the output end of the self-locking circuit is connected to the jitter-free high-speed switch; the overcurrent protection circuit is used to generate a pulse signal after the output current exceeds the protection current threshold, trigger the self-locking circuit and control the jitter-free high-speed switch to turn off the loop; after the overcurrent protection, the self-locking circuit is in a self-locking state to ensure that the constant current output channel is in a turned-off state; when the overcurrent restart test is released, the self-locking circuit is controlled by the ARM main control unit to close the jitter-free high-speed switch to ensure that the constant current output loop is unobstructed, thereby releasing the overcurrent protection;
[0012] The resistance measurement circuit unit includes a matrix switch, a four-wire resistance test circuit, a resistance measurement circuit, a filter amplifier circuit and a 32-bit ADC sampling circuit; the input end of the matrix switch is connected to the output of the current monitoring circuit in the constant current output circuit unit;
[0013] The output end of the matrix switch is connected to the four-wire resistance test circuit; the two wires of the constant current excitation and the two wires of the voltage test at both ends of the resistor are independently connected to the two ends of the measured resistor through the four-wire resistance test circuit; the resistance measurement circuit, the filter amplifier circuit and the 32-bit ADC sampling circuit are electrically connected in sequence, the input end of the resistance measurement circuit is connected to the output end of the matrix switch, and the output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the output current of the constant current output circuit unit is output to each measured resistor through the matrix switch and the four-wire resistance test circuit in sequence; the filter amplifier circuit is used to filter and amplify the voltage signal after the voltage drop of each measured resistor, and input it to the ARM main control unit through the 32-bit ADC sampling;
[0014] The input end of the switch driving circuit is connected to the output end of the ARM main control unit, and the output end of the switch driving circuit is connected to the input end of the matrix switch;
[0015] The processor is configured to perform the following operations:
[0016] Receiving the current ambient temperature value sent by the temperature sensor and obtaining the theoretical current value of the theoretical current required to be output;
[0017] Determining a corresponding theoretical A code value according to the theoretical current value; the theoretical current value and the theoretical A code value have a preset corresponding relationship;
[0018] Calling a pre-stored target adjustment function according to the current ambient temperature value and the theoretical A code value; the target adjustment function includes a corresponding relationship between the theoretical A code value and the actual A code value;
[0019] Obtaining a target A code value by calculating the target adjustment function and the theoretical A code value;
[0020] The target A code value is sent to the DA chip so that the DA chip outputs a target analog voltage to the constant current source output circuit according to the target A code value; the constant current source output circuit is used to output a target current with a target current value according to the target analog voltage; the difference between the target current value and the theoretical current value is within an allowable error range.
[0021] As a preferred solution of the adjustable constant current source circuit system of the present invention, the resistance measurement circuit unit further includes an aviation plug interface connected to the matrix switch for connecting an external resistance to be measured.
[0022] As a preferred solution of the adjustable constant current source circuit system described in the present invention, the resistance measurement circuit unit also includes a precision resistor connected to the matrix switch, which is used to measure the constant current value output by the constant current output circuit unit before testing; the resistance measurement circuit unit also includes an external metering interface connected to the matrix switch, which is used to connect an external metering device to perform constant current output and resistance measurement accuracy metering.
[0023] As a preferred solution of the adjustable constant current source circuit system of the present invention, it also includes an output detection circuit; the output detection circuit is communicatively connected with the constant current source output circuit and the processor, and the load is connected with the output detection circuit; the processor is also used to receive the target current value detected by the output detection circuit; and judge whether the difference between the target current value and the theoretical current value is within the allowable error range;
[0024] It is determined whether the target A code value needs to be adjusted according to the judgment result.
[0025] As a preferred solution of the adjustable constant current source circuit system described in the present invention, the actual A code value determined according to the actual current value includes: sending a first A code value to the DA chip at the current ambient temperature value, so that the DA chip generates a first analog voltage according to the first A code value and sends the first analog voltage to the constant current source output circuit; obtaining a first current value of a first current output by the constant current source output circuit according to the first analog voltage; calculating a third difference between the first current value and the theoretical current value; adjusting the first A code value according to the third difference to obtain a second A code value; sending the second A code value to the DA chip, so that the DA chip generates a second analog voltage according to the second A code value and sends the second analog voltage to the constant current source output circuit; obtaining a second current value of a second current output by the constant current source output circuit according to the second analog voltage; after determining that a fourth difference between the second current value and the theoretical current value is within an allowable error range, confirming that the second A code value is the actual A code value.
[0026] As a preferred solution of the adjustable constant current source circuit system described in the present invention, the third difference adjusts the size of the first A code value to obtain the second A code value, including: adding and subtracting the first A code value according to the positive and negative attributes of the third difference according to a second preset step size to obtain the second A code value.
[0027] As a preferred solution of the adjustable constant current source circuit system described in the present invention, the target adjustment function is determined by several fifth differences between several theoretical A code values and several actual A code values, including: fitting several fifth differences to form the target adjustment function so that the target adjustment function satisfies the correspondence between all the theoretical A code values and all the actual A code values in the temperature range and the A code value range.
[0028] As a preferred solution of the adjustable constant current source circuit system of the present invention, it also includes an EMC filter module and a self-regulating loop reference voltage, wherein the EMC filter module is used to perform EMC filtering on the power supply to remove interference caused by the power supply module; the self-regulating loop reference voltage includes a minimum voltage selection circuit, a transconductance amplifier, a narrow pulse width circuit, an inverter, a voltage follower and two switches, wherein the minimum voltage selection circuit is connected to the current as the input of the self-regulating loop reference voltage, and the signal Vmin output by the minimum voltage selection circuit is connected to the negative terminal of the transconductance amplifier, and the positive terminal of the transconductance amplifier is connected to the reference voltage signal VR, and the output of the narrow pulse width circuit is connected to the two switches, and the two switches are selectively controlled by the inverter to turn on one of them and turn off the other, corresponding to one of them The output of the transconductance amplifier directly charges and discharges the filter capacitor CAVR corresponding to the branch where another switch is located, and the output of the transconductance amplifier is connected to the filter capacitor CAVR through a voltage follower; the minimum voltage selection circuit includes a bias current source Ibias, a current mirror load MN0-MN1, a sampling and holding circuit corresponding to n currents, and n+1 PMOS tubes, wherein the bias current source Ibias is connected to the S poles of all PMOS tubes, the sampling and holding circuit is branched to the G poles of the first n PMOS tubes, the A poles of the first n PMOS tubes are connected to the current mirror loads MN0-MN1, and the G pole and the A pole of the remaining PMOS tube are commonly connected to the current mirror loads MN0-MN1, and the minimum voltage Vmin is output.
[0029] As a preferred solution of the adjustable constant current source circuit control method described in the present invention, the common terminal voltage V1-Vn is connected to the self-regulating loop reference voltage through a current adapter, and the minimum value is taken and differential operation is performed with the reference source VR, and the transconductance current is output to charge and discharge the filter capacitor CAVR, and a dynamically changing voltage AVR=[max(VLED1,…,VLEDn)+VR]*RFB2 / (RFB1+RFB2) is obtained. As the charge and discharge balance of the filter capacitor CAVR is achieved, the voltage AVR tends to be stable within an error range ΔAVR=IAVR*TC / CAVR, wherein IAVR is the charge and discharge current, TC is the effective charge and discharge time per unit time, and CAVR is the capacitance of the filter capacitor; by reducing the effective charge and discharge time Tc per unit time, the voltage AVR of the filter capacitor CAVR is reduced.
[0030] The beneficial effects of the present invention are as follows: the system receives the data of the temperature sensor through the processor, compensates for the current output size, and improves the reliability of the constant current source current output and the ability to resist harsh environments. The circuit can be designed with domestically produced devices to achieve complete autonomous control. The scheme can automatically identify the branch with the largest voltage drop of the LED light string, dynamically adjust the LED driving voltage by generating a reference voltage through a self-regulating loop, and achieve the minimum saturation voltage drop of the constant current circuit; and the self-regulating loop realizes accurate dynamic adjustment of the reference voltage through current charging and discharging, without the need for additional filter capacitors, and can achieve single-chip integration, reducing system cost and complexity. It has an external metering interface, through which an external metering device is connected to measure the constant current output and resistance measurement accuracy; and by setting a precision resistor, the constant current output current value is sampled through a 32-bit ADC sampling circuit to calibrate the constant current output accuracy. Closed-loop compensation is achieved through a constant current output circuit unit and an overcurrent detection unit, which can provide a high-precision constant current source excitation for the measured resistor. An overcurrent protection mechanism is set, and the overcurrent protection circuit triggers a self-locking circuit to control the non-jitter high-speed switch to shut down the loop; the response time through the overcurrent protection circuit can be less than 0.5ms. It can effectively eliminate the impedance of wiring and contact resistance and improve the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0032] in:
[0033] Figure 1 A schematic diagram of system connections of an adjustable constant current source circuit system and a control method according to an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of the control principle of an adjustable constant current source circuit system and a control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0037] Secondly, the present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0038] Furthermore, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0039] Example 1
[0040] Reference Figure 1 The first embodiment of the present invention provides an adjustable constant current source circuit system, wherein the constant current source circuit is mainly composed of an input stage and an output stage, wherein the input stage provides a reference current, and the output stage outputs the required constant current; the system comprises a temperature sensor, a processor, a DA chip, a constant current source output circuit unit, an overcurrent detection circuit unit, a resistance measurement circuit unit, a switch drive circuit and an ARM main control unit; the processor is communicatively connected to the temperature sensor and the DA chip respectively, and the DA chip is communicatively connected to the constant current source output circuit; the constant current source output circuit is used to be connected to a load;
[0041] The constant current output circuit unit includes a DAC, a V / I circuit, a current monitoring circuit, a filtering and amplifying circuit, and a 32-bit ADC sampling circuit; wherein the input end of the DAC is connected to the output end of the ARM main control unit, the output end of the DAC is connected to the output end of the 32-bit ADC sampling circuit and then connected to the input end of the V / I circuit; the output end of the V / I circuit is connected to the input end of the current monitoring circuit through the current detection circuit unit, and the output end of the current monitoring circuit is connected to the input end of the 32-bit ADC sampling circuit through the filtering and amplifying circuit; the other output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the DAC is used to output an analog voltage signal according to the command of the ARM main control unit; the V / I circuit is used to convert the voltage signal into a set current output as a constant current output excitation for resistance testing; the current monitoring circuit is used to perform I / V conversion on the output current and convert the current into voltage; the filtering and amplifying circuit is used to reduce noise and amplify the voltage of the current monitoring circuit; the 32-bit ADC sampling circuit is used to sample the voltage value after filtering and amplification;
[0042] The overcurrent detection circuit unit includes a non-jitter high-speed switch, a self-locking circuit and an overcurrent protection circuit; the input end of the overcurrent protection circuit is connected to the output end of the V / I circuit in the constant current output circuit unit through the non-jitter high-speed switch, and the output end of the overcurrent protection circuit is respectively connected to the self-locking circuit and the current monitoring circuit in the constant current output circuit unit; the input end of the self-locking circuit is connected to the ARM main control unit, and the output end of the self-locking circuit is connected to the non-jitter high-speed switch; the overcurrent protection circuit is used to generate a pulse signal after the output current exceeds the protection current threshold, trigger the self-locking circuit and control the non-jitter high-speed switch to turn off the loop; after the overcurrent protection, the self-locking circuit is in a self-locking state to ensure that the constant current output channel is in a turned-off state; when the overcurrent restart test is released, the self-locking circuit is controlled by the ARM main control unit to close the non-jitter high-speed switch to ensure that the constant current output loop is unobstructed, thereby releasing the overcurrent protection; the resistance measurement circuit unit includes a matrix switch, a four-wire resistance test circuit, a resistance measurement circuit, a filter amplifier circuit and a 32-bit ADC sampling circuit; the input end of the matrix switch is connected to the output of the current monitoring circuit in the constant current output circuit unit;
[0043] The output end of the matrix switch is connected to the four-wire resistance test circuit; the two wires of the constant current excitation and the two wires of the voltage test at both ends of the resistor are independently connected to the two ends of the measured resistor through the four-wire resistance test circuit; the resistance measurement circuit, the filter amplifier circuit and the 32-bit ADC sampling circuit are electrically connected in sequence, the input end of the resistance measurement circuit is connected to the output end of the matrix switch, and the output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the output current of the constant current output circuit unit is output to each measured resistor through the matrix switch and the four-wire resistance test circuit in sequence; the filter amplifier circuit is used to filter and amplify the voltage signal after the voltage drop of each measured resistor, and input it to the ARM main control unit through the 32-bit ADC sampling;
[0044] The input end of the switch driving circuit is connected to the output end of the ARM main control unit, and the output end of the switch driving circuit is connected to the input end of the matrix switch;
[0045] The processor is configured to perform the following operations:
[0046] Receiving the current ambient temperature value sent by the temperature sensor and obtaining the theoretical current value of the theoretical current required to be output;
[0047] Determining a corresponding theoretical A code value according to the theoretical current value; the theoretical current value and the theoretical A code value have a preset corresponding relationship;
[0048] Calling a pre-stored target adjustment function according to the current ambient temperature value and the theoretical A code value; the target adjustment function includes a corresponding relationship between the theoretical A code value and the actual A code value;
[0049] Obtaining a target A code value by calculating the target adjustment function and the theoretical A code value;
[0050] The target A code value is sent to the DA chip so that the DA chip outputs a target analog voltage to the constant current source output circuit according to the target A code value; the constant current source output circuit is used to output a target current with a target current value according to the target analog voltage; the difference between the target current value and the theoretical current value is within an allowable error range.
[0051] Specifically, the output detection circuit is communicatively connected to the constant current source output circuit and the processor, and the load is connected to the output detection circuit; the processor is also used to receive the target current value detected by the output detection circuit; and determine whether the difference between the target current value and the theoretical current value is within an allowable error range;
[0052] It is determined whether the target A code value needs to be adjusted according to the judgment result.
[0053] At the same time, determining the actual A code value according to the actual current value includes: sending a first A code value to the DA chip at the current ambient temperature value, so that the DA chip generates a first analog voltage according to the first A code value and sends the first analog voltage to the constant current source output circuit; obtaining a first current value of a first current output by the constant current source output circuit according to the first analog voltage; calculating a third difference between the first current value and the theoretical current value;
[0054] The first A code value is adjusted according to the third difference to obtain a second A code value; the second A code value is sent to the DA chip so that the DA chip generates a second analog voltage according to the second A code value and sends the second analog voltage to the constant current source output circuit; the second current value of the second current output by the constant current source output circuit according to the second analog voltage is obtained; after determining that the fourth difference between the second current value and the theoretical current value is within the allowable error range, the second A code value is confirmed to be the actual A code value. The third difference is used to adjust the first A code value to obtain the second A code value, including: adding and subtracting the first A code value according to the second preset step size according to the positive and negative attributes of the third difference to obtain the second A code value. The target adjustment function is determined by a number of fifth differences between a number of the theoretical A code values and a number of the actual A code values, including: fitting a number of the fifth differences to form the target adjustment function so that the target adjustment function satisfies the corresponding relationship between all the theoretical A code values and all the actual A code values in the temperature range and the A code value range.
[0055] (1) Basic principles of constant current source circuit: The constant current source circuit is to be able to provide a stable current to ensure the stable operation of other circuits. That is, the constant current source circuit is required to output a constant current, so the device as the output stage should have a volt-ampere characteristic of a saturated output current. This can be achieved by using a BJT or MOSFET that works in a saturated output current state. In order to ensure the current stability of the output transistor, two conditions must be met: a) its input voltage must be stable - the input stage needs to be a constant voltage source; b) the output resistance of the output transistor is as large as possible (preferably infinite) - the output stage needs to be a constant current source.
[0056] (2) Requirements for input-stage devices: Because the input stage needs to be a constant voltage source, devices with voltage saturation volt-ampere characteristics can be used as the input stage. General pn junction diodes have this characteristic - exponentially rising volt-ampere characteristics; in addition, the diode formed by short-circuiting the source and drain of the enhancement MOSFET also has a similar volt-ampere characteristic - a parabolic rising volt-ampere characteristic. When a diode is used as an input-stage device in an IC, it is generally an integrated diode formed by appropriately connecting triodes, because this type of diode can adapt to IC processes and has its own special advantages. For these triodes, it is required to have a certain amplification performance, so that the corresponding diode can have better constant voltage performance.
[0057] (3) Requirements for output stage devices: If BJT is used, in order to increase its output resistance, it is necessary to try to reduce the Evarly effect (base width modulation effect), that is, to increase the Early voltage as much as possible. If MOSFET is used, in order to increase its output resistance, it is necessary to try to reduce its channel length modulation effect and liner bias effect. Therefore, long channel MOSFET is generally used here instead of short channel devices.
[0058] On the one hand, under the action of the diode constant voltage source (T1), multiple output branches (multiple transistors in parallel with T2) can be connected behind it, so that multiple stable output currents can be obtained. It also includes an EMC filter module and a self-regulating loop reference voltage. The EMC filter module is used to perform EMC filtering on the power supply to remove interference caused by the power supply module; the self-regulating loop reference voltage includes a minimum voltage selection circuit, a transconductance amplifier, a narrow pulse width circuit, an inverter, a voltage follower and two switches, wherein the minimum voltage selection circuit is connected to the current of each LED light string as the input of the self-regulating loop reference voltage, and the signal Vmin output by the minimum voltage selection circuit is connected to the negative end of the transconductance amplifier, and the positive end of the transconductance amplifier is connected to the reference voltage signal VR, and the output of the narrow pulse width circuit is connected to two switches, and the two switches are selectively controlled by an inverter to turn one on and the other off, corresponding to the branch where one of the switches is located, the transconductance amplifier is connected to the reference voltage signal VR, and the output of the narrow pulse width circuit is connected to the two switches. The output of the transconductance amplifier directly charges and discharges the filter capacitor CAVR, corresponding to the branch where another switch is located, and the output of the transconductance amplifier is connected to the filter capacitor CAVR through a voltage follower; the minimum voltage selection circuit includes a bias current source Ibias, a current mirror load MN0-MN1, a sampling and holding circuit corresponding to the n-way LED light string current and n+1 PMOS tubes, wherein the bias current source Ibias is connected to the S poles of all PMOS tubes, the sampling and holding circuit is branched to the G poles of the first n PMOS tubes, the D poles of the first n PMOS tubes are connected to the current mirror load MN0-MN1, and the G pole and A pole of the remaining PMOS tube are commonly connected to the current mirror load MN0-MN1, and the minimum voltage Vmin is output.
[0059] Example 2
[0060] Reference Figure 2 A control method is provided, wherein the common terminal voltage V1-Vn of each LED lamp string is connected to the self-regulating loop reference voltage through a current adapter, and the minimum value is taken and differential operation is performed with the reference source VR, and a transconductance current is output to charge and discharge the filter capacitor CAVR, and a dynamically changing voltage AVR=[max(VLED1,…,VLEDn)+VR]*RFB2 / (RFB1+RFB2) is obtained. As the charge and discharge balance of the filter capacitor CAVR is achieved, the voltage AVR tends to be stable within an error range ΔAVR=IAVR*TC / CAVR, wherein IAVR is the charge and discharge current, TC is the effective charge and discharge time per unit time, and CAVR is the capacitance of the filter capacitor; by reducing the effective charge and discharge time Tc per unit time, the voltage AVR of the filter capacitor CAVR is reduced.
[0061] In the improved differential amplifier, a constant current source is used to replace the emitter resistor RE, which not only sets a suitable static operating current for the differential amplifier circuit, but also greatly enhances the common-mode negative feedback effect, making the circuit have a stronger ability to suppress common-mode signals, and does not require a very high power supply voltage. The constant current source can not only provide a suitable static current for the amplifier circuit, but also serve as an active load to replace the high-resistance resistor, thereby increasing the voltage amplification factor of the amplifier circuit. Generally, there are four types of constant current source circuits: (1) Mirror constant current source circuit: It consists of two tubes VT0 and VT1 with exactly the same characteristics. Since the c and b poles of the VT0 tube are connected, UCE0 = UBE0, that is, VT0 is in the amplification state, and the collector current IC0 = β0*IB0. In addition, the be of the tubes VT0 and VT1 are connected respectively, so their base currents IB0 = IB1 = IB. Assuming the current amplification factor β0 = β1 = β, the collector currents of the two tubes IC0 = IC1 = IC = β*IB. It can be seen that due to this special connection method of the circuit, the collectors of the two tubes IC1 and IC0 are in a mirror relationship, so this circuit is called a mirror constant current source (IR is the reference current, IC1 is the output current). The mirror constant current source circuit is simple and widely used. However, when the power supply voltage is constant, if IC1 is required to be larger, IR will inevitably increase, and the power consumption of resistor R will increase, which should be avoided in integrated circuits; if IC1 is required to be smaller, IR will inevitably be small, and the value of resistor R will be large, which is difficult to achieve in integrated circuits.
[0062] (2) Proportional constant current source circuit: It is composed of two tubes VT0 and VT1 with exactly the same characteristics. The emitters of the two tubes are connected in series with resistors Re0 and Re1 respectively. The proportional constant current source circuit changes the relationship of IC1≈IR, making IC1 proportional to IR, thereby overcoming the shortcomings of the mirror image constant current source circuit. Like the typical static operating point stability circuit, Re0 and Re1 are current negative feedback resistors. Therefore, compared with the mirror image constant current source circuit, the output current IC1 of the proportional constant current source has higher stability. (3) Micro-variable constant current source circuit: If Re0 is very small or even zero, Re1 can obtain a smaller output current by using only a smaller resistor. This circuit is called a micro-variable constant current source. The quiescent current of the integrated operational amplifier input stage is very small, often only tens of microamperes, or even smaller. Therefore, the micro-variable current source is mainly used for the active load of the integrated operational amplifier input stage. (4) Multi-channel constant current source circuit: IE0Re0≈IE1Re1≈IE2Re2≈IE3Re3; the integrated operational amplifier is a multi-stage amplifier circuit, so a multi-channel constant current source circuit is required to provide appropriate quiescent current to each stage respectively. A reference current can be used to obtain multiple different output currents to meet the needs of each level. The circuit is a multi-channel constant current source circuit based on a proportional constant current source. IR is the reference current, and IC1, IC2 and IC3 are three output currents.
[0063] In summary, the combined use of constant current sources, bidirectional testing and adjustment can increase the test range. The adjustable constant current source can improve stability and the application space of the constant current source, solving the problem of difficult testing of large equipment. It is easy to operate and can meet the needs of different equipment for the use of constant current sources.
[0064] Additionally, in order to provide a concise description of exemplary embodiments, all features of an actual embodiment (ie, those features that are not relevant to the best mode presently contemplated for carrying out the invention or those that are not relevant to implementing the invention) may not be described.
[0065] It will be appreciated that in the development of any actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort may be complex and time-consuming, but will be a routine task of design, fabrication, and production for those of ordinary skill having the benefit of this disclosure without undue experimentation.
[0066] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. An adjustable constant current source circuit system, the constant current source circuit is mainly composed of an input stage and an output stage, the input stage provides a reference current, and the output stage outputs the required constant current; it is characterized by: The system includes a temperature sensor, a processor, a DA chip, a constant current source output circuit unit, an overcurrent detection circuit unit, a resistance measurement circuit unit, a switch drive circuit and an ARM main control unit; the processor is communicably connected to the temperature sensor and the DA chip respectively, and the DA chip is communicably connected to the constant current source output circuit; the constant current source output circuit is used to be connected to a load; The constant current output circuit unit includes a DAC, a V / I circuit, a current monitoring circuit, a filtering and amplifying circuit, and a 32-bit ADC sampling circuit; wherein the input end of the DAC is connected to the output end of the ARM main control unit, the output end of the DAC is connected to the output end of the 32-bit ADC sampling circuit and then connected to the input end of the V / I circuit; the output end of the V / I circuit is connected to the input end of the current monitoring circuit through the current detection circuit unit, and the output end of the current monitoring circuit is connected to the input end of the 32-bit ADC sampling circuit through the filtering and amplifying circuit; the other output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the DAC is used to output an analog voltage signal according to the command of the ARM main control unit; the V / I circuit is used to convert the voltage signal into a set current output as a constant current output excitation for resistance testing; the current monitoring circuit is used to perform I / V conversion on the output current and convert the current into voltage; the filtering and amplifying circuit is used to reduce noise and amplify the voltage of the current monitoring circuit; the 32-bit ADC sampling circuit is used to sample the voltage value after filtering and amplification; The overcurrent detection circuit unit includes a jitter-free high-speed switch, a self-locking circuit and an overcurrent protection circuit; the input end of the overcurrent protection circuit is connected to the output end of the V / I circuit in the constant current output circuit unit through the jitter-free high-speed switch, and the output end of the overcurrent protection circuit is respectively connected to the self-locking circuit and the current monitoring circuit in the constant current output circuit unit; the input end of the self-locking circuit is connected to the ARM main control unit, and the output end of the self-locking circuit is connected to the jitter-free high-speed switch; the overcurrent protection circuit is used to generate a pulse signal after the output current exceeds the protection current threshold, trigger the self-locking circuit and control the jitter-free high-speed switch to turn off the loop; after the overcurrent protection, the self-locking circuit is in a self-locking state to ensure that the constant current output channel is in a turned-off state; when the overcurrent restart test is released, the self-locking circuit is controlled by the ARM main control unit to close the jitter-free high-speed switch to ensure that the constant current output loop is unobstructed, thereby releasing the overcurrent protection; The resistance measurement circuit unit includes a matrix switch, a four-wire resistance test circuit, a resistance measurement circuit, a filter amplifier circuit and a 32-bit ADC sampling circuit; the input end of the matrix switch is connected to the output of the current monitoring circuit in the constant current output circuit unit; The output end of the matrix switch is connected to the four-wire resistance test circuit; the two wires of the constant current excitation and the two wires of the voltage test at both ends of the resistor are independently connected to the two ends of the measured resistor through the four-wire resistance test circuit; the resistance measurement circuit, the filter amplifier circuit and the 32-bit ADC sampling circuit are electrically connected in sequence, the input end of the resistance measurement circuit is connected to the output end of the matrix switch, and the output end of the 32-bit ADC sampling circuit is connected to the ARM main control unit; the output current of the constant current output circuit unit is output to each measured resistor through the matrix switch and the four-wire resistance test circuit in sequence; the filter amplifier circuit is used to filter and amplify the voltage signal after the voltage drop of each measured resistor, and input it to the ARM main control unit through the 32-bit ADC sampling; The input end of the switch driving circuit is connected to the output end of the ARM main control unit, and the output end of the switch driving circuit is connected to the input end of the matrix switch; The processor is configured to perform the following operations: Receiving the current ambient temperature value sent by the temperature sensor and obtaining the theoretical current value of the theoretical current required to be output; Determining a corresponding theoretical A code value according to the theoretical current value; the theoretical current value and the theoretical A code value have a preset corresponding relationship; Calling a pre-stored target adjustment function according to the current ambient temperature value and the theoretical A code value; the target adjustment function includes a corresponding relationship between the theoretical A code value and the actual A code value; Obtaining a target A code value by calculating the target adjustment function and the theoretical A code value; The target A code value is sent to the DA chip so that the DA chip outputs a target analog voltage to the constant current source output circuit according to the target A code value; the constant current source output circuit is used to output a target current with a target current value according to the target analog voltage; the difference between the target current value and the theoretical current value is within an allowable error range.
2. The adjustable constant current source circuit system according to claim 1, characterized in that: The resistance measurement circuit unit also includes an aviation plug interface connected to the matrix switch for connecting an external resistance to be measured.
3. The adjustable constant current source circuit system according to claim 2, characterized in that: The resistance measurement circuit unit also includes a precision resistor connected to the matrix switch, which is used to measure the constant current value output by the constant current output circuit unit before testing; the resistance measurement circuit unit also includes an external metering interface connected to the matrix switch, which is used to connect an external metering device to perform constant current output and resistance measurement accuracy metering.
4. The adjustable constant current source circuit system according to claim 1, characterized in that: It also includes an output detection circuit; the output detection circuit is communicatively connected to the constant current source output circuit and the processor, and the load is connected to the output detection circuit; the processor is also used to receive the target current value detected by the output detection circuit; determine whether the difference between the target current value and the theoretical current value is within the allowable error range; and determine whether the target A code value needs to be adjusted based on the judgment result.
5. The adjustable constant current source circuit system according to claim 4, characterized in that: Determining the actual A code value according to the actual current value includes: sending a first A code value to the DA chip at the current ambient temperature value, so that the DA chip generates a first analog voltage according to the first A code value and sends the first analog voltage to the constant current source output circuit; obtaining a first current value of a first current output by the constant current source output circuit according to the first analog voltage; calculating a third difference between the first current value and the theoretical current value; Adjust the first A code value according to the third difference to obtain a second A code value; The second A code value is sent to the DA chip so that the DA chip generates a second analog voltage according to the second A code value and sends the second analog voltage to the constant current source output circuit; a second current value of the second current output by the constant current source output circuit according to the second analog voltage is obtained; after determining that a fourth difference between the second current value and the theoretical current value is within an allowable error range, the second A code value is confirmed to be the actual A code value.
6. The adjustable constant current source circuit system according to claim 5, characterized in that: The third difference value adjusts the size of the first A code value to obtain the second A code value, including: adding or subtracting the first A code value according to a second preset step size according to the positive or negative attribute of the third difference value to obtain the second A code value.
7. The adjustable constant current source circuit system according to claim 6, characterized in that: The target adjustment function is determined by a number of fifth differences between a number of the theoretical A code values and a number of the actual A code values, including: fitting a number of the fifth differences to form the target adjustment function so that the target adjustment function satisfies the correspondence between all the theoretical A code values and all the actual A code values in the temperature range and the D code value range.
8. The adjustable constant current source circuit system according to claim 1, characterized in that: It also includes an EMC filter module and a self-regulating loop reference voltage. The EMC filter module is used to perform EMC filtering on the power supply to remove interference caused by the power supply module; the self-regulating loop reference voltage includes a minimum voltage selection circuit, a transconductance amplifier, a narrow pulse width circuit, an inverter, a voltage follower and two switches, wherein the minimum voltage selection circuit is connected to the current as the input of the self-regulating loop reference voltage, and the signal Vmin output by the minimum voltage selection circuit is connected to the negative end of the transconductance amplifier, and the positive end of the transconductance amplifier is connected to the reference voltage signal VR, the output of the narrow pulse width circuit is connected to the two switches, and the two switches are selectively controlled by the inverter to turn on one of them and turn off the other, corresponding to the branch where one of the switches is located, the transconductance amplifier The output of the amplifier directly charges and discharges the filter capacitor CAVR, corresponding to the branch where another switch is located, and the output of the transconductance amplifier is connected to the filter capacitor CAVR through a voltage follower; the minimum voltage selection circuit includes a bias current source Ibias, a current mirror load MN0-MN1, a sampling and holding circuit corresponding to n series currents, and n+1 PMOS tubes, wherein the bias current source Ibias is connected to the S poles of all PMOS tubes, the sampling and holding circuit is branched to the G poles of the first n PMOS tubes, the D poles of the first n PMOS tubes are connected to the current mirror load MN0-MN1, and the G pole and D pole of the remaining PMOS tube are commonly connected to the current mirror load MN0-MN1, and the minimum voltage Vmin is output.
9. A control method, comprising the adjustable constant current source circuit system according to any one of claims 1 to 8, characterized in that: The common voltage V1-Vn is connected to the self-regulating loop reference voltage through the current adapter, and the minimum value is taken and differential operation is performed with the reference source VR, and the output transconductance current is used to charge and discharge the filter capacitor CAVR, and the dynamically changing voltage AVR=[max(VLED1,…,VLEDn)+VR]*RFB2 / (RFB1+RFB2) is obtained. As the filter capacitor CAVR is charged and discharged in balance, the voltage AVR tends to be stable within the error range ΔAVR=IAVR*TC / CAVR, where IAVR is the charge and discharge current, TC is the effective charge and discharge time per unit time, and CAVR is the capacitance of the filter capacitor; By reducing the effective charge and discharge time Tc per unit time, the voltage AVR of the filter capacitor CAVR is reduced.
Citation Information
Patent Citations
Thyristor breakover voltage drop measurement system and method
CN104714074A
Resistance measuring instrument and resistance measuring method
CN106990295A
Low frequency sinusoidal signal peak detecting device and peak detecting method
CN108333420A
Alternating-current earth resistivity viewer
CN109581066A
Temperature control system
CN112306120A
