A new digital PID circuit and its control method

The digital-to-analog converter and RS flip-flop generate bias voltage in the digital PID circuit, which solves the problem of insufficient signal driving when the digital PID circuit is overflowed or zero, and improves the speed of control.

CN113267996BInactive Publication Date: 2024-11-19FUZHOU UNIV
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110652080.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-11
Publication Date
2024-11-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The digital PID circuit cannot generate corresponding signals when overflow or zero occurs, resulting in insufficient control speed.

Method used

The digital-to-analog converter is used to convert the deviation generated by the digital circuit into an analog signal, and when the deviation value exceeds the upper and lower limits, the positive and negative bias voltage is generated through the RS flip-flop, and the analog signal output by the digital-to-analog converter is input as the PID circuit according to the weight. .

Benefits of technology

Improves the speed of PID circuits and enhances the control and response capabilities of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113267996B_ABST
    Figure CN113267996B_ABST
Patent Text Reader

Abstract

The present invention relates to a novel digital PID circuit and a control method thereof. The circuit comprises a digital-to-analog converter, a first RS trigger, a second RS trigger, a first operational amplifier, first to fourth resistors, a first variable resistor, and a PID circuit. The present invention utilizes a digital-to-analog converter to convert the deviation generated by a digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by a digital quantity, a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage is generated by an RS trigger, and the analog signal output by the digital-to-analog converter is used as a PID circuit input according to their respective weights to improve the rapidity of the PID circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a novel digital PID circuit and a control method thereof. Background Art

[0002] Currently, common PID circuits are implemented through software or analog circuits. The PID in digital control circuits converts the deviation into an analog quantity through digital-to-analog conversion and implements PID through analog circuits. However, when overflow or zero occurs in the digital circuit, it cannot generate the corresponding signal to drive the PID, resulting in insufficient control speed. Summary of the Invention

[0003] The purpose of the present invention is to provide a novel digital PID circuit and control method thereof, which utilizes a digital-to-analog converter to convert the deviation generated by a digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, an RS trigger is used to generate a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage. The voltage is used as the input of the PID circuit together with the analog signal output by the digital-to-analog converter according to their respective weights, thereby improving the speed of the PID circuit.

[0004] To achieve the above-mentioned purpose, the technical solution of the present invention is: a novel digital PID circuit, comprising a first NAND gate, a second NAND gate, a digital-to-analog converter, a first RS trigger, a second RS trigger, a first operational amplifier, first to fourth resistors, a first variable resistor, and a PID circuit; the first input terminal of the first NAND gate and the first input terminal of the second NAND gate serve as a positive deviation input terminal and a negative deviation input terminal, respectively; the second input terminal of the first NAND gate is connected to the second input terminal of the second NAND gate; the output terminal of the first NAND gate is connected to the C1 terminal of the first RS trigger and the R terminal of the second RS trigger; the output terminal of the second NAND gate is connected to the C1 terminal of the second RS trigger and the R terminal of the first RS trigger; the S terminal of the first RS trigger and the S terminal of the second RS trigger are connected to GND; the output terminal of the first RS trigger is connected to the C1 terminal of the first RS trigger and the R terminal of the second RS trigger; The second RS flip-flop The terminals are connected to the 1D terminal of the second RS trigger and the 1D terminal of the first RS trigger respectively. The first terminal is connected to the first output terminal of the digital-to-analog converter, one end of the second resistor, and the input terminal of the PID circuit through the first resistor. The first end is connected to the second output end of the digital-to-analog converter, one end of the fourth resistor, the second input end of the first operational amplifier, and the variable resistance end of the first variable resistor through the third resistor, the other end of the second resistor and the other end of the fourth resistor are connected to the output end of the first operational amplifier, the first output end of the first operational amplifier is connected to GND, the UREF end of the digital-to-analog converter is connected to the first end of the first variable resistor and VCC, and the second end of the first variable resistor is connected to GND.

[0005] In one embodiment of the present invention, the PID circuit includes a second operational amplifier, a third operational amplifier, a second variable resistor, first to third capacitors, and fifth to eighth resistors; one end of the fifth resistor and the second input end of the second operational amplifier are connected as the input end of the PID circuit, the first input end of the second operational amplifier is connected to GND, the output end of the second operational amplifier is connected to one end of the sixth resistor, one end of the seventh resistor, the second end of the second variable resistor, and the variable resistor end of the second variable resistor, the other end of the fifth resistor is connected to the first end of the second variable resistor, the first input end of the third operational amplifier is connected to GND, the second input end of the third operational amplifier is connected to one end of the first capacitor, one end of the second capacitor, one end of the third capacitor, and the other end of the sixth resistor, the other end of the first capacitor is connected to the other end of the seventh resistor, and the other end of the second capacitor is connected to the other end of the third capacitor and the output end of the third operational amplifier via the eighth resistor, and serves as the output end of the PID circuit.

[0006] In one embodiment of the present invention, the digital-to-analog converter is AD7521.

[0007] The present invention also provides a control method for a circuit based on the above-mentioned novel digital PID, which utilizes a digital-to-analog converter to convert the deviation generated by the digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, the 0 and 1 signals of the digital circuit are used to generate a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage through a first RS trigger and a second RS trigger. That is, when a positive deviation upper limit occurs, a first NAND gate is used to generate a rising edge output positive deviation bias voltage at the clock end of the first RS trigger. Similarly, when a negative deviation lower limit occurs, a second NAND gate is used to generate a rising edge output negative deviation bias voltage at the clock end of the second RS trigger. Then, the voltage is used together with the analog signal output by the digital-to-analog converter as the PID circuit input according to their respective weights, thereby improving the speed of the PID circuit.

[0008] Compared with the prior art, the present invention has the following beneficial effects: the present invention utilizes a digital-to-analog converter to convert the deviation generated by a digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, an RS trigger is used to generate a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage, which is used together with the analog signal output by the digital-to-analog converter as the input of the PID circuit according to their respective weights, thereby improving the speed of the PID circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 This is a circuit diagram of a new type of digital PID in the present invention. DETAILED DESCRIPTION

[0010] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.

[0011] The present invention discloses a novel digital PID circuit, comprising a first NAND gate, a second NAND gate, a digital-to-analog converter, a first RS trigger, a second RS trigger, a first operational amplifier, first to fourth resistors, a first variable resistor, and a PID circuit; the first input end of the first NAND gate and the first input end of the second NAND gate serve as a positive deviation input end and a negative deviation input end, respectively; the second input end of the first NAND gate is connected to the second input end of the second NAND gate; the output end of the first NAND gate is connected to the C1 end of the first RS trigger and the R end of the second RS trigger; the output end of the second NAND gate is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the S end of the first RS trigger and the S end of the second RS trigger are connected to GND; the output end of the first RS trigger ... output end of the first RS trigger is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the output end of the second RS trigger is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the output end of the first RS trigger is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the output end of the second RS trigger is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the output end of the first RS trigger is connected to the C1 end of the second RS trigger and the R end of the first RS trigger; the output end of The second RS flip-flop The terminals are connected to the 1D terminal of the second RS trigger and the 1D terminal of the first RS trigger respectively. The first terminal is connected to the first output terminal of the digital-to-analog converter, one end of the second resistor, and the input terminal of the PID circuit through the first resistor. The first end is connected to the second output end of the digital-to-analog converter, one end of the fourth resistor, the second input end of the first operational amplifier, and the variable resistance end of the first variable resistor through the third resistor, the other end of the second resistor and the other end of the fourth resistor are connected to the output end of the first operational amplifier, the first output end of the first operational amplifier is connected to GND, the UREF end of the digital-to-analog converter is connected to the first end of the first variable resistor and VCC, and the second end of the first variable resistor is connected to GND. The PID circuit includes a second operational amplifier, a third operational amplifier, a second variable resistor, first to third capacitors, and fifth to eighth resistors; one end of the fifth resistor and the second input end of the second operational amplifier are connected as the input end of the PID circuit, the first input end of the second operational amplifier is connected to GND, the output end of the second operational amplifier is connected to one end of the sixth resistor, one end of the seventh resistor, the second end of the second variable resistor, and the variable resistor end of the second variable resistor, the other end of the fifth resistor is connected to the first end of the second variable resistor, the first input end of the third operational amplifier is connected to GND, the second input end of the third operational amplifier is connected to one end of the first capacitor, one end of the second capacitor, one end of the third capacitor, and the other end of the sixth resistor, the other end of the first capacitor is connected to the other end of the seventh resistor, and the other end of the second capacitor is connected to the other end of the third capacitor and the output end of the third operational amplifier via the eighth resistor, and serves as the output end of the PID circuit.

[0012] The present invention also provides a control method for a circuit based on the above-mentioned novel digital PID, which utilizes a digital-to-analog converter to convert the deviation generated by the digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, the 0 and 1 signals of the digital circuit are used to generate a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage through a first RS trigger and a second RS trigger. That is, when a positive deviation upper limit occurs, a first NAND gate is used to generate a rising edge output positive deviation bias voltage at the clock end of the first RS trigger. Similarly, when a negative deviation lower limit occurs, a second NAND gate is used to generate a rising edge output negative deviation bias voltage at the clock end of the second RS trigger. Then, the voltage is used together with the analog signal output by the digital-to-analog converter as the PID circuit input according to their respective weights, thereby improving the speed of the PID circuit.

[0013] like Figure 1 As shown, in one embodiment of the present invention, a novel digital PID circuit utilizes a digital-to-analog converter (AD7521) to convert the deviation generated by the digital circuit into an analog signal. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, the 0 or 1 signal from the digital circuit is used to generate a positive deviation upper limit or a negative deviation lower limit bias voltage for RS trigger 4013. (In the case of a positive deviation upper limit, U1 generates a rising edge at the clock end of 4013 (U4) to output a positive deviation bias voltage. This voltage, through R4, serves as a newly added positive input to the PID, increasing the PID output and accelerating the system. Similarly, in the case of a negative deviation lower limit, the output of U2 is used as a clock. A rising edge causes U3 to output a negative deviation bias voltage. This voltage, through R1, serves as the input of U6, that is, as the negative input of the PID, decreasing the PID output and decelerating the system.) The positive deviation bias voltage passes through R4, and the negative deviation bias voltage passes through R1. Together with the analog signal output from ADC7521, according to their respective weights, they serve as PID inputs. The PID is implemented through analog circuits U7 and U8, improving its speed.

[0014] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions and effects do not exceed the scope of the technical solution of the present invention, shall fall within the scope of protection of the present invention.

Claims

1. A control method for a digital PID circuit, characterized in that: The digital PID circuit comprises a first NAND gate, a second NAND gate, a digital-to-analog converter, a first RS trigger, a second RS trigger, a first operational amplifier, first to fourth resistors, a first variable resistor, and a PID circuit; the first input end of the first NAND gate and the first input end of the second NAND gate are respectively used as a positive deviation input end and a negative deviation input end, the second input end of the first NAND gate is connected to the second input end of the second NAND gate, the output end of the first NAND gate is connected to the C1 end of the first RS trigger and the R end of the second RS trigger, the output end of the second NAND gate is connected to the C1 end of the second RS trigger and the R end of the first RS trigger, the S end of the first RS trigger and the S end of the second RS trigger are connected to GND, and the output end of the first RS trigger is connected to the C1 end of the first RS trigger and the R end of the second RS trigger. The second RS flip-flop The first RS trigger is connected to the 1D end of the second RS trigger and the 1D end of the first RS trigger respectively, the Q end of the first RS trigger is connected to the first output end of the digital-to-analog converter, one end of the second resistor, and the input end of the PID circuit through the first resistor, the Q end of the second RS trigger is connected to the second output end of the digital-to-analog converter, one end of the fourth resistor, the second input end of the first operational amplifier, and the variable resistance end of the first variable resistor through the third resistor, the other end of the second resistor and the other end of the fourth resistor are connected to the output end of the first operational amplifier, the first input end of the first operational amplifier is connected to GND, the UREF end of the digital-to-analog converter is connected to the first end of the first variable resistor and VCC, and the second end of the first variable resistor is connected to GND; the PID circuit includes a second operational amplifier, a third operational amplifier, a second variable resistor, first to third capacitor, fifth to eighth resistors; one end of the fifth resistor and the second input end of the second operational amplifier are connected as the input end of the PID circuit, the first input end of the second operational amplifier is connected to GND, the output end of the second operational amplifier is connected to one end of the sixth resistor, one end of the seventh resistor, the second end of the second variable resistor, and the variable resistance end of the second variable resistor, the other end of the fifth resistor is connected to the first end of the second variable resistor, the first input end of the third operational amplifier is connected to GND, the second input end of the third operational amplifier is connected to one end of the first capacitor, one end of the second capacitor, one end of the third capacitor, and the other end of the sixth resistor, the other end of the first capacitor is connected to the other end of the seventh resistor, the other end of the second capacitor is connected to the other end of the third capacitor and the output end of the third operational amplifier through the eighth resistor, and serves as the output end of the PID circuit; The control method of the digital PID circuit is specifically implemented as follows: The deviation generated by the digital circuit is converted into an analog signal by using a digital-to-analog converter. When the deviation value exceeds the upper and lower limits that can be represented by the digital quantity, the 0, 1 signal of the digital circuit is used to generate a positive deviation upper limit bias voltage or a negative deviation lower limit bias voltage through the first RS trigger and the second RS trigger. That is, in the case of a positive deviation upper limit, the first NAND gate is used to generate a rising edge output positive deviation bias voltage at the clock end of the first RS trigger. Similarly, in the case of a negative deviation lower limit, the second NAND gate is used to generate a rising edge output negative deviation bias voltage at the clock end of the second RS trigger, and then it is used as a PID circuit input together with the analog signal output by the digital-to-analog converter according to their respective weights to improve the rapidity of the PID circuit.

2. The control method of a digital PID circuit according to claim 1, characterized in that: The digital-to-analog converter adopts AD7521.

Citation Information

Patent Citations

  • Self-adaption voltage regulator based on optimized PSM modulation mode

    CN101995894A

  • Speed controller intelligent starting control method based on pumped-storage set

    CN102434373A

  • Solar cell piece PID (potential induced degradation) test device and test method

    CN103618499A

  • Frequency multiplication circuit and frequency multiplication method

    CN104052406A

  • Self-gain-scheduling PID (proportion integration differentiation) controller of double-in double-out system of heat-engine plant

    CN104216288A