Detection circuit and detection method thereof, electronic equipment and storage medium
By designing a multifunctional detection circuit, the problems of unadjustable electrolysis voltage and current, single current acquisition range, and interference in microcoulometric titration detection were solved, achieving flexible electrolysis control and high-precision detection results.
Patent Information
- Application Number
- CN202411881685.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-11
AI Technical Summary
Existing microcoulometric titration detection circuits suffer from problems such as fixed electrolysis voltage, non-adjustable electrolysis current, uncontrollable electrolysis voltage direction, limited current acquisition range, and susceptibility to interference with the indicator electrode, resulting in low detection accuracy and efficiency.
A detection circuit was designed, comprising a main control circuit, an electrolysis voltage generation circuit, an electrolysis current control circuit, an electrolysis current acquisition circuit, and an electrode potential acquisition circuit. Through closed-loop control and signal processing circuits, flexible adjustment of electrolysis voltage and current and interference filtering are achieved, thereby improving detection accuracy and efficiency.
It enables flexible adjustment of electrolysis voltage and current to adapt to solutions of different concentrations, improves detection accuracy and efficiency, simplifies software operation, and reduces the workload of software filtering algorithms.
Smart Images

Figure CN119595827A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of detection circuits and relates to a detection circuit, and in particular to a detection circuit and a detection method, electronic equipment and storage medium that can be used for microcoulomb titration. Background Art
[0002] Microcoulometric titration is a technique based on coulometry that determines the concentration of specific ions in a solution by controlling the electrolysis current. For example, in the petroleum and chemical industries, microcoulometric titration can be used to determine trace amounts of chloride ions in chemical products; in simple terms, chloride ions precipitate with silver ions in solution, causing the silver ion concentration to drop. The indicator electrode can detect this change, and the electrolysis electrode restores the silver ion concentration to its initial level by applying an electric current to the metallic silver electrode; at this point, the amount of silver ions produced by electrolysis is equal to the amount of chloride ions consumed. By measuring the amount of electricity consumed during the electrolysis process, combined with Faraday's law of electrolysis, the chloride ion content can be calculated.
[0003] The existing microcoulomb titration detection circuit has the following defects:
[0004] (1) The electrolysis voltage is fixed, and only the electrolysis current is adjustable. When the concentration of the sample to be measured is too high or too low, there are great limitations. For example, when the concentration of the sample to be measured is very low, if the voltage is not adjustable, the electrolysis current will be very small, resulting in slow electrolysis speed and long reaction time. In addition, too small current will affect the accuracy of electrolysis current collection;
[0005] (2) The electrolysis voltage cannot be set in a direction, and the ion concentration of the electrolyte will change during the actual test, resulting in large errors in detection using existing technologies;
[0006] (3) There is only one acquisition level for electrolysis current, resulting in large errors;
[0007] (4) The indicator electrode potential is collected directly after being buffered and is susceptible to interference, thereby affecting the detection efficiency and accuracy of the detection circuit.
[0008] In view of this, there is an urgent need to design a new detection circuit to overcome at least part of the above-mentioned defects of the existing detection circuit. Summary of the invention
[0009] The present invention provides a detection circuit and a detection method thereof, an electronic device and a storage medium, which can simplify software operation and improve the real-time performance of data collection.
[0010] To solve the above technical problem, according to one aspect of the present invention, the following technical solution is adopted:
[0011] A detection circuit, the detection circuit comprising: a main control circuit, an electrolysis voltage generating circuit, an electrolysis current control circuit, an electrolysis current acquisition circuit and an electrode potential acquisition circuit;
[0012] The electrolysis voltage generating circuit is connected to the main control circuit, and is used to connect the electrolysis anode and apply a set voltage to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ is dissolved into the electrolyte or precipitated and adsorbed on the electrode;
[0013] The electrolysis current control circuit is connected to the main control circuit, and the electrolysis current control circuit is used to connect the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations;
[0014] The electrolysis current collection circuit is connected to the main control circuit and the electrolysis current control circuit respectively, so as to collect the electrolysis current and send the collected electrolysis current to the main control circuit;
[0015] The electrode potential acquisition circuit is used to connect the indicator electrode and the reference electrode, acquire the potential signals of the indicator electrode and the reference electrode, and send the acquired signals to the main control circuit;
[0016] The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the current collection voltage, thereby realizing closed-loop control of electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0017] As an embodiment of the present invention, the detection circuit further includes a signal processing circuit, and the signal processing circuit is arranged between the electrode potential acquisition circuit and the main control circuit;
[0018] The signal processing circuit is used to filter out the power frequency interference of the potential signal collected by the electrode potential collection circuit, and amplify the potential signal so that the main control circuit can accurately judge the starting point and end point of the electrolysis reaction.
[0019] As an implementation mode of the present invention, the signal processing circuit includes a sixth operational amplifier U6, a seventh operational amplifier U7, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9, a first zero capacitor C10, a second first resistor R21, a second second resistor R22, a second third resistor R23, a second fourth resistor R24, a second fifth resistor R25, a second ninth resistor R29, a third zero resistor R30 and a third second resistor R32;
[0020] The electrode potential acquisition circuit is respectively connected to the first end of the second first resistor R21 and the first end of the second fifth resistor R25; the non-inverting input end of the seventh operational amplifier U7 is grounded, and the inverting input end of the seventh operational amplifier U7 is respectively connected to the second end of the ninth capacitor C9 and the first end of the third second resistor R32;
[0021] The first end of the ninth capacitor C9 is respectively connected to the second end of the second-first resistor R21 and the first end of the second-second resistor R22, and the second end of the second-second resistor R22 is grounded;
[0022] The output end of the seventh operational amplifier U7 is respectively connected to the second end of the seventh capacitor C7, the second end of the third second resistor R32, and the first end of the second fourth resistor R24;
[0023] The non-phase input terminal of the eighth differential amplifier U8 is respectively connected to the second end of the second fourth resistor R24 and the second end of the second fifth resistor R25;
[0024] The inverting input terminal of the eighth differential amplifier U8 is respectively connected to the second end of the second third resistor R23, the first end of the eighth capacitor C8, and the first end of the second ninth resistor R29; the first end of the second third resistor R23 is grounded;
[0025] The output end of the eighth differential amplifier U8 is respectively connected to the second end of the eighth capacitor C8, the second end of the second nine resistors R29, and the first end of the third zero resistor R30; the second ends of the three zero resistors R30 are respectively connected to the electrode potential measurement end of the main control circuit and the first end of the first zero capacitor C10, and the second end of the first zero capacitor C10 is grounded.
[0026] As an embodiment of the present invention, the electrolysis voltage generating circuit includes a first operational amplifier U1, a second operational amplifier U2, a third analog switch U3A, a fourth analog switch U4A, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6;
[0027] The non-inverting input terminal of the first operational amplifier U1 is connected to the second end of the first resistor R1, and the first end of the first resistor R1 is connected to the main control circuit to receive the electrolysis voltage setting signal sent by the main control circuit;
[0028] The inverting input terminal of the first operational amplifier U1 is respectively connected to the second end of the second resistor R2 and the first end of the third resistor R3; the first end of the second resistor R2 is grounded;
[0029] The output end of the first operational amplifier U1 is respectively connected to the second end of the third resistor R3, the first end of the fifth resistor R5, and the first end of the third analog switch U3A; the second end of the third analog switch U3A is used to connect to the electrolysis anode;
[0030] The non-inverting input terminal of the second operational amplifier U2 is connected to the first terminal of the fourth resistor R4, and the second terminal of the fourth resistor R4 is grounded;
[0031] The inverting input terminal of the second operational amplifier U2 is respectively connected to the second end of the fifth resistor R5 and the first end of the sixth resistor R6;
[0032] The output end of the second operational amplifier U2 is connected to the second end of the sixth resistor R6 and the first end of the fourth analog switch U4A respectively; the second end of the fourth analog switch U4A is used to connect to the electrolysis anode.
[0033] As an embodiment of the present invention, the electrolysis current control circuit includes a first zero operational amplifier U10, a first analog switch U11A, a first second analog switch U12A, a first third analog switch U13A, a first MOS tube Q1, a first capacitor C1, a second capacitor C2, a seventh resistor R7, an eighth resistor R8, a third first resistor R31, a second sixth resistor R26, a second seventh resistor R27, and a second eighth resistor R28;
[0034] The non-inverting input terminal of the first zero operational amplifier U10 is connected to the second end of the seventh resistor R7 and the first end of the first capacitor C1 respectively; the second end of the first capacitor C1 is grounded, and the first end of the seventh resistor R7 is connected to the electrolysis current setting signal of the main control circuit;
[0035] The inverting input terminal of the first zero operational amplifier U10 is connected to the first end of the third resistor R31; the output terminal of the first zero operational amplifier U10 is connected to the first end of the eighth resistor R8, the second end of the eighth resistor R8 is respectively connected to the gate of the first MOS transistor Q1 and the first end of the second capacitor C2, and the second end of the second capacitor C2 is grounded;
[0036] The drain of the first MOS transistor Q1 is used to connect to the electrolytic cathode, and the source of the first MOS transistor Q1 is respectively connected to the second end of the third-first resistor R31, the second end of the first-first analog switch U11A, the second end of the first-second analog switch U12A, and the second end of the first-third analog switch U13A;
[0037] The first end of the first analog switch U11A is connected to the first end of the second sixth resistor R26, the first end of the first second analog switch U12A is connected to the first end of the second seventh resistor R27, and the first end of the first third analog switch U13A is connected to the first end of the second eighth resistor R28;
[0038] The second end of the second-sixth resistor R26, the second end of the second-seventh resistor R27, and the second end of the second-eighth resistor R28 are respectively connected to the electrolysis current collection circuit.
[0039] As an embodiment of the present invention, the electrolysis current acquisition circuit includes a first four operational amplifier U14, a first five operational amplifier U15, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a ninth resistor R9, a first zero resistor R10, a first first resistor R11, a first second resistor R12, a first third resistor R13, and a first fourth resistor R14;
[0040] The non-inverting input terminal of the first five operational amplifiers U15 is connected to the first end of the first four resistors R14, and the second end of the first four resistors R14 is grounded;
[0041] The inverting input terminal of the first five operational amplifiers U15 are respectively connected to the second end of the first zero resistor R10, the second end of the fourth capacitor C4, the second end of the second six resistor R26, the second end of the second seven resistor R27, and the second end of the second eight resistor R28;
[0042] The output end of the first five operational amplifiers U15 are respectively connected to the first end of the fourth capacitor C4, the first end of the first zero resistor R10, and the second end of the first three resistors R13;
[0043] The non-inverting input terminal of the first quad operational amplifier U14 is respectively connected to the first end of the first quad resistor R13 and the first end of the sixth capacitor C6; the second end of the sixth capacitor C6 is grounded;
[0044] The inverting input terminals of the first four operational amplifiers U14 are respectively connected to the first terminals of the first two resistors R12, the second terminals of the third capacitor C3, and the second terminals of the ninth resistor R9; the second terminals of the first two resistors R12 are grounded;
[0045] The output ends of the first four operational amplifiers U14 are respectively connected to the first end of the third capacitor C3, the first end of the ninth resistor R9, and the second end of the first resistor R11; the first end of the first resistor R11 is connected to the electrolysis current collection end of the main control circuit and the first end of the fifth capacitor C5; the second end of the fifth capacitor C5 is grounded.
[0046] As an embodiment of the present invention, the electrode potential acquisition circuit includes a fifth input buffer stage U5, an eighth differential amplifier U8, a ninth input buffer stage U9, a first fifth resistor R15, a first sixth resistor R16, a first seventh resistor R17, a first eighth resistor R18, a first ninth resistor R19 and a second zero resistor R20;
[0047] The positive input terminal of the fifth input buffer stage U5 is used to connect the indicator electrode, and the negative input terminal of the fifth input buffer stage U5 is respectively connected to the output terminal of the fifth input buffer stage U5, the first terminal of the first five resistors R15, and the first terminal of the first seven resistors R17;
[0048] The second end of the first five resistors R15 are respectively connected to the first end of the first six resistors R16 and the non-inverting input end of the eighth differential amplifier U8; the second end of the first six resistors R16 is grounded; the second end of the first seven resistors R17 is grounded;
[0049] The non-inverting input terminal of the ninth input buffer stage U9 is used to connect to the reference electrode, and the inverting input terminal of the ninth input buffer stage U9 is respectively connected to the output terminal of the ninth input buffer stage U9, the first terminal of the first nine-resistor R19, and the second terminal of the first eight-resistor R18; the first terminal of the first eight-resistor R18 is grounded;
[0050] The second end of the first nine resistors R19 are respectively connected to the inverting input end of the eighth differential amplifier U8 and the first end of the second zero resistor R20; the second end of the second zero resistor R20 is respectively connected to the output end of the eighth differential amplifier U8.
[0051] According to another aspect of the present invention, the following technical solution is adopted: a detection method of the above detection circuit, the detection method comprising:
[0052] The electrolysis voltage generating circuit is connected to the electrolysis anode and applies a set voltage to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ dissolves into the electrolyte or precipitates and adsorbs on the electrode;
[0053] The electrolysis current control circuit is connected to the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations;
[0054] The electrolysis current collection circuit collects the electrolysis current and sends the collected electrolysis current to the main control circuit;
[0055] The electrode potential acquisition circuit is connected to the indicator electrode and the reference electrode, acquires the potential signals of the indicator electrode and the reference electrode, and sends the acquired signals to the main control circuit;
[0056] The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the current collection voltage, thereby realizing closed-loop control of electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0057] According to another aspect of the present invention, the following technical solution is adopted: an electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0058] According to another aspect of the present invention, the following technical solution is adopted: a storage medium stores computer program instructions, and the computer program instructions implement the steps of the above method when executed by a processor.
[0059] The beneficial effects of the present invention are as follows: the detection circuit and detection method thereof, the electronic device and the storage medium proposed in the present invention can set the size and direction of the electrolysis voltage according to needs; the electrolysis current can select a variety of ranges to adapt to different concentrations of the solution to be tested, and the electrolysis current can be accurately collected to meet the measurement accuracy requirements of low concentrations.
[0060] The electrode potential acquisition circuit of the present invention can accurately measure the weak potential difference between the indicator electrode and the reference electrode, and add a special filtering circuit. Compared with directly sampling a large amount of data and performing software filtering, it can simplify software operation and improve the real-time performance of data acquisition.
[0061] In one use scenario of the present invention, the voltage and current can be adjusted according to actual needs, and the scope of application is wider; the acquisition circuit of the electrolysis current of the present invention is also designed with multiple adjustable gears, which can accurately measure currents of different magnitudes. The present invention can adjust the ion concentration of the electrolyte by reverse electrolysis or forward electrolysis to keep it in a balanced state. The present invention adds a first-level differential, and the voltage difference between the indicator electrode and the reference electrode is directly obtained in hardware, and a first-level notch filter is added in a targeted manner to filter out the 50Hz interference signal, making the signal more real and accurate, and also reducing the algorithm work of software filtering. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 FIG. 4 is a schematic diagram of the composition of a detection circuit in one embodiment of the present invention.
[0063] Figure 2 Schematic diagram of an electrolysis voltage generating circuit in one embodiment of the present invention.
[0064] Figure 3 The figure is a circuit diagram of an electrolysis current control circuit and an electrolysis current acquisition circuit in one embodiment of the present invention.
[0065] Figure 4 Schematic diagram of an electrode potential acquisition circuit and a signal processing circuit in one embodiment of the present invention.
[0066] Figure 5 The flowchart of the detection method of the microcoulomb titration detection circuit can be used in one embodiment of the present invention.
[0067] Figure 6 FIG. 4 is a schematic diagram of the composition of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0068] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0069] In order to further understand the present invention, preferred embodiments of the present invention are described below in conjunction with examples. However, it should be understood that these descriptions are only for further illustrating the features and advantages of the present invention, rather than limiting the claims of the present invention.
[0070] The description in this section is only for several typical embodiments, and the present invention is not limited to the scope of the embodiments. The same or similar prior art means and some technical features in the embodiments are mutually replaced within the scope of the present invention.
[0071] The description of the steps in each embodiment in the specification is only for the convenience of explanation, and the implementation method of the present application is not limited by the order of implementation of the steps.
[0072] The term "connection" as used in the specification includes both direct connection and indirect connection, such as connection through some active devices, passive devices or electrically conductive media; it may also include connection through other active devices or passive devices known to those skilled in the art on the basis of achieving the same or similar functional purposes, such as connection through circuits or components such as switches and follower circuits.
[0073] The present invention discloses a detection circuit. Figure 1 FIG. 1 is a schematic diagram of a detection circuit for microcoulomb titration according to an embodiment of the present invention; please refer to FIG. Figure 1 The detection circuit includes: a main control circuit 1, an electrolysis voltage generating circuit 2, an electrolysis current control circuit 3, an electrolysis current acquisition circuit 4 and an electrode potential acquisition circuit 5. In one use scenario of the present invention, the detection circuit can be used for microcoulomb titration; of course, it can also be used in other scenarios.
[0074] The electrolysis voltage generating circuit 2 is connected to the main control circuit 1, and is used to connect the electrolysis anode 11, and apply a set voltage to the electrolysis anode 11, so as to control the reaction direction of the electrolysis, so that Ag+ dissolves into the electrolyte or precipitates and adsorbs on the electrode.
[0075] The electrolysis current control circuit 3 is connected to the main control circuit 1 and is used to connect to the electrolysis cathode 12 to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations.
[0076] The electrolysis current collection circuit 4 is connected to the main control circuit 1 and the electrolysis current control circuit 3 respectively, and is used to collect the electrolysis current and send the collected electrolysis current to the main control circuit 1.
[0077] The electrode potential acquisition circuit 5 is used to connect the indicator electrode 13 and the reference electrode 14 , acquire potential signals of the indicator electrode 13 and the reference electrode 14 , and send the acquired signals to the main control circuit 1 .
[0078] The main control circuit 1 senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the current collection voltage, thereby realizing closed-loop control of electrolysis; the main control circuit 1 obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0079] Figure 2 FIG. 1 is a circuit diagram of an electrolytic voltage generating circuit in one embodiment of the present invention; please refer to FIG. Figure 2 In one embodiment of the present invention, the electrolysis voltage generating circuit includes a first operational amplifier U1, a second operational amplifier U2, a third analog switch U3A, a fourth analog switch U4A, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6.
[0080] The non-inverting input terminal of the first operational amplifier U1 is connected to the second end of the first resistor R1, and the first end of the first resistor R1 is connected to the main control circuit to receive the electrolysis voltage setting signal sent by the main control circuit; the inverting input terminal of the first operational amplifier U1 is respectively connected to the second end of the second resistor R2 and the first end of the third resistor R3; the first end of the second resistor R2 is grounded; the output terminal of the first operational amplifier U1 is respectively connected to the second end of the third resistor R3, the first end of the fifth resistor R5, and the first end of the third analog switch U3A; the second end of the third analog switch U3A is used to connect the electrolysis anode.
[0081] The non-inverting input terminal of the second operational amplifier U2 is connected to the first end of the fourth resistor R4, and the second end of the fourth resistor R4 is grounded; the inverting input terminal of the second operational amplifier U2 is respectively connected to the second end of the fifth resistor R5 and the first end of the sixth resistor R6; the output terminal of the second operational amplifier U2 is respectively connected to the second end of the sixth resistor R6 and the first end of the fourth analog switch U4A; the second end of the fourth analog switch U4A is used to connect the electrolysis anode.
[0082] The working principle of the electrolysis voltage generation circuit is as follows: MCU pushes out an initial voltage of 0 to 2.5V through DAC, which is amplified to 0 to 10V through op amp U1. U2 is a reverse amplifier, which reversely amplifies the voltage to -10V to 0V. The size of the electrolysis voltage directly affects the size of the electrolysis current, so the electrolysis voltage should be set according to the Cl- concentration of the solution to be tested. U3A and U4A are analog switches, which can choose to apply these two voltages to the electrolysis anode, thereby controlling the direction of the electrolysis reaction, so that Ag+ dissolves into the electrolyte or precipitates and adsorbs on the electrode.
[0083] Figure 3 FIG. 1 is a circuit diagram of an electrolysis current control circuit and an electrolysis current acquisition circuit in one embodiment of the present invention; please refer to FIG. Figure 3 In one embodiment of the present invention, the electrolysis current control circuit includes a first zero operational amplifier U10, a first-one analog switch U11A, a first-two analog switch U12A, a first-three analog switch U13A, a first MOS tube Q1, a first capacitor C1, a second capacitor C2, a seventh resistor R7, an eighth resistor R8, a third-one resistor R31, a second-sixth resistor R26, a second-seventh resistor R27, and a second-eighth resistor R28.
[0084] The non-inverting input terminal of the first zero operational amplifier U10 is respectively connected to the second end of the seventh resistor R7 and the first end of the first capacitor C1; the second end of the first capacitor C1 is grounded, and the first end of the seventh resistor R7 is connected to the electrolysis current setting signal of the main control circuit. The inverting input terminal of the first zero operational amplifier U10 is connected to the first end of the third resistor R31; the output terminal of the first zero operational amplifier U10 is connected to the first end of the eighth resistor R8, and the second end of the eighth resistor R8 is respectively connected to the gate of the first MOS tube Q1 and the first end of the second capacitor C2, and the second end of the second capacitor C2 is grounded. The drain of the first MOS tube Q1 is used to connect the electrolysis cathode, and the source of the first MOS tube Q1 is respectively connected to the second end of the third resistor R31, the second end of the first analog switch U11A, the second end of the first second analog switch U12A, and the second end of the first third analog switch U13A.
[0085] The first end of the first-first analog switch U11A is connected to the first end of the second-sixth resistor R26, the first end of the first-second analog switch U12A is connected to the first end of the second-seventh resistor R27, and the first end of the first-third analog switch U13A is connected to the first end of the second-eighth resistor R28. The second end of the second-sixth resistor R26, the second end of the second-seventh resistor R27, and the second end of the second-eighth resistor R28 are respectively connected to the electrolysis current collection circuit.
[0086] The electrolysis current acquisition circuit includes a first four operational amplifier U14, a first five operational amplifier U15, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a ninth resistor R9, a first zero resistor R10, a first first resistor R11, a first second resistor R12, a first third resistor R13, and a first fourth resistor R14.
[0087] The non-inverting input terminal of the first-five operational amplifiers U15 is connected to the first end of the first-fourth resistor R14, and the second end of the first-fourth resistor R14 is grounded; the inverting input terminals of the first-five operational amplifiers U15 are respectively connected to the second end of the first zero resistor R10, the second end of the fourth capacitor C4, the second end of the second-sixth resistor R26, the second end of the second-seventh resistor R27, and the second end of the second-eighth resistor R28; the output terminals of the first-five operational amplifiers U15 are respectively connected to the first end of the fourth capacitor C4, the first end of the first zero resistor R10, and the second end of the first-three resistor R13.
[0088] The non-inverting input terminals of the first four operational amplifiers U14 are respectively connected to the first end of the first three resistors R13 and the first end of the sixth capacitor C6; the second end of the sixth capacitor C6 is grounded; the inverting input terminals of the first four operational amplifiers U14 are respectively connected to the first end of the first two resistors R12, the second end of the third capacitor C3, and the second end of the ninth resistor R9; the second end of the first two resistors R12 is grounded; the output terminals of the first four operational amplifiers U14 are respectively connected to the first end of the third capacitor C3, the first end of the ninth resistor R9, and the second end of the first one resistor R11; the first end of the first resistor R11 is connected to the electrolysis current collection terminal of the main control circuit and the first end of the fifth capacitor C5; the second end of the fifth capacitor C5 is grounded.
[0089] The working principle of the electrolysis current control circuit is as follows: the operational amplifier U10, MOS tube Q1 and feedback resistors R26~27 form a constant current source circuit, and the electrolysis current is set by the DAC output of the MCU. The working principle is as follows: the DAC sets the voltage U corresponding to the electrolysis current. Due to the "virtual short and virtual disconnection" of the operational amplifier, the operational amplifier U10 will adjust the output voltage to control the opening degree of Q1, so that the voltage on the feedback resistor is also equal to U. At this time, the "current flowing through the electrolysis cathode" is equal to the "current flowing through the feedback resistor" is equal to U / R, and R is fixed. As long as the MCU keeps U unchanged, the current can remain unchanged. The DAC output of the MCU is fixed at 0~2.5V, and the analog switches U11, U12, and U13 can choose to switch three different feedback resistors, corresponding to three different current ranges, to meet the electrolysis speed requirements of different concentrations of the liquid to be tested.
[0090] The working principle of the electrolysis current acquisition circuit is as follows: the current of the electrolysis cathode is converted into a voltage signal by the transimpedance amplifier U15, and then amplified and filtered by the operational amplifier U14 and output to the MCU for collection and judgment. By comparing the set voltage of the electrolysis current and the current acquisition voltage, it is possible to sense whether the working state of the entire electrolysis system is normal and realize closed-loop control of electrolysis. At the same time, the accurate acquisition of current is also the key to whether the entire system can accurately determine the Cl- concentration. Assuming that the electrolysis is completed with a fixed current, the power consumed is Q=I*T, and the time T is obtained by timing from the start of electrolysis to the end of the MCU.
[0091] Figure 4 FIG. 1 is a circuit diagram of an electrode potential acquisition circuit and a signal processing circuit in one embodiment of the present invention; please refer to FIG. Figure 4 , in one embodiment of the present invention, as an implementation mode of the present invention, the electrode potential acquisition circuit includes a fifth input buffer stage U5, an eighth differential amplifier U8, a ninth input buffer stage U9, a first fifth resistor R15, a first sixth resistor R16, a first seventh resistor R17, a first eighth resistor R18, a first ninth resistor R19 and a second zero resistor R20;
[0092] The positive input terminal of the fifth input buffer stage U5 is used to connect the indicator electrode, and the negative input terminal of the fifth input buffer stage U5 is respectively connected to the output terminal of the fifth input buffer stage U5, the first terminal of the first five resistors R15, and the first terminal of the first seven resistors R17;
[0093] The second end of the first five resistors R15 are respectively connected to the first end of the first six resistors R16 and the non-inverting input end of the eighth differential amplifier U8; the second end of the first six resistors R16 is grounded; the second end of the first seven resistors R17 is grounded;
[0094] The non-inverting input terminal of the ninth input buffer stage U9 is used to connect to the reference electrode, and the inverting input terminal of the ninth input buffer stage U9 is respectively connected to the output terminal of the ninth input buffer stage U9, the first terminal of the first nine-resistor R19, and the second terminal of the first eight-resistor R18; the first terminal of the first eight-resistor R18 is grounded;
[0095] The second end of the first nine resistors R19 are respectively connected to the inverting input end of the eighth differential amplifier U8 and the first end of the second zero resistor R20; the second end of the second zero resistor R20 is respectively connected to the output end of the eighth differential amplifier U8.
[0096] The working principle of the electrode potential acquisition circuit is as follows: the potential between the indicator electrode and the reference electrode will change with the concentration of Ag+ in the electrolyte, thereby indicating the changes brought about by the droplet of the test solution and the end point of the electrolysis reaction. Therefore, the accuracy of the electrode potential acquisition directly affects the MCU's control of the electrolysis circuit. Here, an operational amplifier with a 4GΩ input impedance is used as the input buffer stage U5 and U9 of the two electrodes, which can greatly avoid the influence of the acquisition circuit on the electrode potential. U8 is a differential amplifier, and its function is to take the difference between the input voltages of the two electrodes to obtain a voltage value that directly reflects the electrode potential.
[0097] In one embodiment of the present invention, the detection circuit further includes a signal processing circuit 6, which is arranged between the electrode potential acquisition circuit 5 and the main control circuit 1. The signal processing circuit 7 is used to filter out the power frequency interference of the potential signal collected by the electrode potential acquisition circuit 5, and amplify the potential signal, so that the main control circuit 1 can accurately judge the starting point and end point of the electrolysis reaction.
[0098] Please continue reading Figure 4 The signal processing circuit includes a sixth operational amplifier U6, a seventh operational amplifier U7, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9, a first zero capacitor C10, a second first resistor R21, a second second resistor R22, a second third resistor R23, a second fourth resistor R24, a second fifth resistor R25, a second ninth resistor R29, a third zero resistor R30 and a third second resistor R32.
[0099] The electrode potential acquisition circuit is respectively connected to the first end of the second-first resistor R21 and the first end of the second-fifth resistor R25; the non-inverting input end of the seventh operational amplifier U7 is grounded, and the inverting input end of the seventh operational amplifier U7 is respectively connected to the second end of the ninth capacitor C9 and the first end of the third-second resistor R32. The first end of the ninth capacitor C9 is respectively connected to the second end of the second-first resistor R21 and the first end of the second-second resistor R22, and the second end of the second-second resistor R22 is grounded; the output end of the seventh operational amplifier U7 is respectively connected to the second end of the seventh capacitor C7, the second end of the third-second resistor R32, and the first end of the second-fourth resistor R24.
[0100] The positive input end of the eighth differential amplifier U8 is respectively connected to the second end of the second fourth resistor R24 and the second end of the second fifth resistor R25; the negative input end of the eighth differential amplifier U8 is respectively connected to the second end of the second third resistor R23, the first end of the eighth capacitor C8, and the first end of the second ninth resistor R29; the first end of the second third resistor R23 is grounded. The output end of the eighth differential amplifier U8 is respectively connected to the second end of the eighth capacitor C8, the second end of the second ninth resistor R29, and the first end of the third zero resistor R30; the second end of the third zero resistor R30 is respectively connected to the electrode potential measurement end of the main control circuit and the first end of the first zero capacitor C10, and the second end of the first zero capacitor C10 is grounded.
[0101] The working principle of the signal processing circuit is as follows: The voltage obtained by the eighth differential amplifier U8 can be directly collected and used in theory, but in fact, because the two electrodes are inserted in the electrolyte, the potential is "suspended" relative to the circuit, and it is very susceptible to various interference signals. Therefore, a 1-BP type notch filter composed of the sixth operational amplifier U6 and the seventh operational amplifier U7 with MFB bandpass is added, and the design center frequency can be 50Hz, which mainly filters out power frequency interference and appropriately amplifies the potential signal. After the MCU collects the signal, it can accurately judge the starting point and end point of the electrolysis reaction.
[0102] The present invention further discloses a detection method of the above detection circuit. Figure 5 This is a flow chart of a detection method for a microcoulomb titration detection circuit in one embodiment of the present invention; please refer to Figure 5 , the detection method comprises:
[0103] [Step S1] The electrolysis voltage generating circuit is connected to the electrolysis anode, and a set voltage is applied to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ is dissolved into the electrolyte or precipitated and adsorbed on the electrode;
[0104] [Step S2] The electrolysis current control circuit is connected to the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations;
[0105] [Step S3] The electrolysis current collection circuit collects the electrolysis current and sends the collected electrolysis current to the main control circuit;
[0106] [Step S4] The electrode potential acquisition circuit is connected to the indicator electrode and the reference electrode, acquires potential signals of the indicator electrode and the reference electrode, and sends the acquired signals to the main control circuit;
[0107] [Step S5] The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the collected voltage of the current, thereby realizing closed-loop control of the electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0108] The present invention also discloses an electronic device, Figure 6 FIG. 1 is a schematic diagram of the composition of an electronic device in an embodiment of the present invention; please refer to FIG. Figure 6 At the hardware level, the electronic device includes a memory, a processor and at least one network interface; the processor may be a microprocessor, and the memory may include a memory, such as a random access memory (RAM), or a non-volatile memory (non-volatile memory), etc. Of course, the electronic device may also be provided with other hardware as required.
[0109] The processor, network interface and memory may be interconnected via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus may include an address bus, a data bus, a control bus, etc. The memory is used to store programs (which may include operating system programs and application programs); the program may include program code, which may include computer operation instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0110] In one embodiment, the processor can read the corresponding program from the non-volatile memory into the memory and then run it; the processor can execute the program stored in the memory and is specifically used to perform the following operations (such as Figure 5 shown):
[0111] [Step S1] The electrolysis voltage generating circuit is connected to the electrolysis anode, and a set voltage is applied to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ is dissolved into the electrolyte or precipitated and adsorbed on the electrode;
[0112] [Step S2] The electrolysis current control circuit is connected to the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations;
[0113] [Step S3] The electrolysis current collection circuit collects the electrolysis current and sends the collected electrolysis current to the main control circuit;
[0114] [Step S4] The electrode potential acquisition circuit is connected to the indicator electrode and the reference electrode, acquires potential signals of the indicator electrode and the reference electrode, and sends the acquired signals to the main control circuit;
[0115] [Step S5] The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the collected voltage of the current, thereby realizing closed-loop control of the electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0116] The present invention further discloses a storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the following steps of the method of the present invention (eg Figure 5 shown):
[0117] [Step S1] The electrolysis voltage generating circuit is connected to the electrolysis anode, and a set voltage is applied to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ is dissolved into the electrolyte or precipitated and adsorbed on the electrode;
[0118] [Step S2] The electrolysis current control circuit is connected to the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations;
[0119] [Step S3] The electrolysis current collection circuit collects the electrolysis current and sends the collected electrolysis current to the main control circuit;
[0120] [Step S4] The electrode potential acquisition circuit is connected to the indicator electrode and the reference electrode, acquires potential signals of the indicator electrode and the reference electrode, and sends the acquired signals to the main control circuit;
[0121] [Step S5] The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the collected voltage of the current, thereby realizing closed-loop control of the electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
[0122] In summary, the detection circuit and detection method thereof, the electronic device and the storage medium proposed in the present invention can set the size and direction of the electrolysis voltage as needed; the electrolysis current can select a variety of ranges to adapt to different concentrations of the solution to be tested, and the electrolysis current can be accurately collected to meet the measurement accuracy requirements of low concentrations.
[0123] The electrode potential acquisition circuit can accurately measure the weak potential difference between the indicator electrode and the reference electrode, and add a special filtering circuit. Compared with directly sampling a large amount of data and performing software filtering, it can simplify software operation and improve the real-time performance of data acquisition.
[0124] In one use scenario of the present invention, the voltage and current can be adjusted according to actual needs, and the scope of application is wider; the acquisition circuit of the electrolysis current of the present invention is also designed with multiple adjustable gears, which can accurately measure currents of different magnitudes. The present invention can adjust the ion concentration of the electrolyte by reverse electrolysis or forward electrolysis to keep it in a balanced state. The present invention adds a first-level differential, and the voltage difference between the indicator electrode and the reference electrode is directly obtained in hardware, and a first-level notch filter is added in a targeted manner to filter out the 50Hz interference signal, making the signal more real and accurate, and also reducing the algorithm work of software filtering.
[0125] It should be noted that the present application can be implemented in software and / or a combination of software and hardware; for example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In some embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including related data structures) can be stored in a computer-readable recording medium; for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present application can be implemented in hardware; for example, as a circuit that cooperates with a processor to perform various steps or functions.
[0126] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0127] The description and application of the present invention here are illustrative, and it is not intended to limit the scope of the present invention to the above-mentioned embodiments. The effects or advantages involved in the embodiments may not be embodied in the embodiments due to interference from various factors, and the description of the effects or advantages is not used to limit the embodiments. The deformation and change of the embodiments disclosed here are possible, and the replacement of the embodiments and the various equivalent parts are well known to those of ordinary skill in the art. It should be clear to those skilled in the art that the present invention can be implemented in other forms, structures, arrangements, proportions, and with other components, materials and parts without departing from the spirit or essential features of the present invention. Other deformations and changes can be made to the embodiments disclosed here without departing from the scope and spirit of the present invention.
Claims
1. A detection circuit, characterized in that: The detection circuit comprises: a main control circuit, an electrolysis voltage generating circuit, an electrolysis current control circuit, an electrolysis current acquisition circuit and an electrode potential acquisition circuit; The electrolysis voltage generating circuit is connected to the main control circuit, and is used to connect the electrolysis anode and apply a set voltage to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ is dissolved into the electrolyte or precipitated and adsorbed on the electrode; The electrolysis current control circuit is connected to the main control circuit, and the electrolysis current control circuit is used to connect the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations; The electrolysis current collection circuit is connected to the main control circuit and the electrolysis current control circuit respectively, so as to collect the electrolysis current and send the collected electrolysis current to the main control circuit; The electrode potential acquisition circuit is used to connect the indicator electrode and the reference electrode, acquire the potential signals of the indicator electrode and the reference electrode, and send the acquired signals to the main control circuit; The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the current collection voltage, thereby realizing closed-loop control of electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
2. The detection circuit according to claim 1, characterized in that: The detection circuit further includes a signal processing circuit, and the signal processing circuit is arranged between the electrode potential acquisition circuit and the main control circuit; The signal processing circuit is used to filter out the power frequency interference of the potential signal collected by the electrode potential collection circuit, and amplify the potential signal so that the main control circuit can accurately judge the starting point and end point of the electrolysis reaction.
3. The detection circuit according to claim 2, characterized in that: The signal processing circuit includes a sixth operational amplifier U6, a seventh operational amplifier U7, a seventh capacitor C7, an eighth capacitor C8, a ninth capacitor C9, a first zero capacitor C10, a second first resistor R21, a second second resistor R22, a second third resistor R23, a second fourth resistor R24, a second fifth resistor R25, a second ninth resistor R29, a third zero resistor R30 and a third second resistor R32; The electrode potential acquisition circuit is respectively connected to the first end of the second first resistor R21 and the first end of the second fifth resistor R25; the non-inverting input end of the seventh operational amplifier U7 is grounded, and the inverting input end of the seventh operational amplifier U7 is respectively connected to the second end of the ninth capacitor C9 and the first end of the third second resistor R32; The first end of the ninth capacitor C9 is respectively connected to the second end of the second-first resistor R21 and the first end of the second-second resistor R22, and the second end of the second-second resistor R22 is grounded; The output end of the seventh operational amplifier U7 is respectively connected to the second end of the seventh capacitor C7, the second end of the third second resistor R32, and the first end of the second fourth resistor R24; The non-phase input terminal of the eighth differential amplifier U8 is respectively connected to the second end of the second fourth resistor R24 and the second end of the second fifth resistor R25; The inverting input terminal of the eighth differential amplifier U8 is respectively connected to the second end of the second third resistor R23, the first end of the eighth capacitor C8, and the first end of the second ninth resistor R29; the first end of the second third resistor R23 is grounded; The output end of the eighth differential amplifier U8 is respectively connected to the second end of the eighth capacitor C8, the second end of the second nine resistors R29, and the first end of the third zero resistor R30; the second ends of the three zero resistors R30 are respectively connected to the electrode potential measurement end of the main control circuit and the first end of the first zero capacitor C10, and the second end of the first zero capacitor C10 is grounded.
4. The detection circuit according to claim 1, characterized in that: The electrolysis voltage generating circuit includes a first operational amplifier U1, a second operational amplifier U2, a third analog switch U3A, a fourth analog switch U4A, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6; The non-inverting input terminal of the first operational amplifier U1 is connected to the second end of the first resistor R1, and the first end of the first resistor R1 is connected to the main control circuit to receive the electrolysis voltage setting signal sent by the main control circuit; The inverting input terminal of the first operational amplifier U1 is respectively connected to the second end of the second resistor R2 and the first end of the third resistor R3; the first end of the second resistor R2 is grounded; The output end of the first operational amplifier U1 is respectively connected to the second end of the third resistor R3, the first end of the fifth resistor R5, and the first end of the third analog switch U3A; the second end of the third analog switch U3A is used to connect to the electrolysis anode; The non-inverting input terminal of the second operational amplifier U2 is connected to the first terminal of the fourth resistor R4, and the second terminal of the fourth resistor R4 is grounded; The inverting input terminal of the second operational amplifier U2 is respectively connected to the second end of the fifth resistor R5 and the first end of the sixth resistor R6; The output end of the second operational amplifier U2 is connected to the second end of the sixth resistor R6 and the first end of the fourth analog switch U4A respectively; the second end of the fourth analog switch U4A is used to connect to the electrolysis anode.
5. The detection circuit according to claim 1, characterized in that: The electrolysis current control circuit includes a first zero operational amplifier U10, a first analog switch U11A, a first second analog switch U12A, a first third analog switch U13A, a first MOS tube Q1, a first capacitor C1, a second capacitor C2, a seventh resistor R7, an eighth resistor R8, a third first resistor R31, a second sixth resistor R26, a second seventh resistor R27, and a second eighth resistor R28; The non-inverting input terminal of the first zero operational amplifier U10 is connected to the second end of the seventh resistor R7 and the first end of the first capacitor C1 respectively; the second end of the first capacitor C1 is grounded, and the first end of the seventh resistor R7 is connected to the electrolysis current setting signal of the main control circuit; The inverting input terminal of the first zero operational amplifier U10 is connected to the first end of the third resistor R31; the output terminal of the first zero operational amplifier U10 is connected to the first end of the eighth resistor R8, the second end of the eighth resistor R8 is respectively connected to the gate of the first MOS transistor Q1 and the first end of the second capacitor C2, and the second end of the second capacitor C2 is grounded; The drain of the first MOS transistor Q1 is used to connect to the electrolytic cathode, and the source of the first MOS transistor Q1 is respectively connected to the second end of the third-first resistor R31, the second end of the first-first analog switch U11A, the second end of the first-second analog switch U12A, and the second end of the first-third analog switch U13A; The first end of the first analog switch U11A is connected to the first end of the second sixth resistor R26, the first end of the first second analog switch U12A is connected to the first end of the second seventh resistor R27, and the first end of the first third analog switch U13A is connected to the first end of the second eighth resistor R28; The second end of the second-sixth resistor R26, the second end of the second-seventh resistor R27, and the second end of the second-eighth resistor R28 are respectively connected to the electrolysis current collection circuit.
6. The detection circuit according to claim 5, characterized in that: The electrolysis current acquisition circuit includes a first four operational amplifier U14, a first five operational amplifier U15, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a ninth resistor R9, a first zero resistor R10, a first first resistor R11, a first second resistor R12, a first third resistor R13, and a first fourth resistor R14; The non-inverting input terminal of the first five operational amplifiers U15 is connected to the first end of the first four resistors R14, and the second end of the first four resistors R14 is grounded; The inverting input terminal of the first five operational amplifiers U15 are respectively connected to the second end of the first zero resistor R10, the second end of the fourth capacitor C4, the second end of the second six resistor R26, the second end of the second seven resistor R27, and the second end of the second eight resistor R28; The output end of the first five operational amplifiers U15 are respectively connected to the first end of the fourth capacitor C4, the first end of the first zero resistor R10, and the second end of the first three resistors R13; The non-inverting input terminal of the first quad operational amplifier U14 is respectively connected to the first end of the first quad resistor R13 and the first end of the sixth capacitor C6; the second end of the sixth capacitor C6 is grounded; The inverting input terminals of the first four operational amplifiers U14 are respectively connected to the first terminals of the first two resistors R12, the second terminals of the third capacitor C3, and the second terminals of the ninth resistor R9; the second terminals of the first two resistors R12 are grounded; The output ends of the first four operational amplifiers U14 are respectively connected to the first end of the third capacitor C3, the first end of the ninth resistor R9, and the second end of the first resistor R11; the first end of the first resistor R11 is connected to the electrolysis current collection end of the main control circuit and the first end of the fifth capacitor C5; the second end of the fifth capacitor C5 is grounded.
7. The detection circuit according to claim 1, characterized in that: The electrode potential acquisition circuit includes a fifth input buffer stage U5, an eighth differential amplifier U8, a ninth input buffer stage U9, a first fifth resistor R15, a first sixth resistor R16, a first seventh resistor R17, a first eighth resistor R18, a first ninth resistor R19 and a second zero resistor R20; The positive input terminal of the fifth input buffer stage U5 is used to connect the indicator electrode, and the negative input terminal of the fifth input buffer stage U5 is respectively connected to the output terminal of the fifth input buffer stage U5, the first terminal of the first five resistors R15, and the first terminal of the first seven resistors R17; The second end of the first five resistors R15 are respectively connected to the first end of the first six resistors R16 and the non-inverting input end of the eighth differential amplifier U8; the second end of the first six resistors R16 is grounded; the second end of the first seven resistors R17 is grounded; The non-inverting input terminal of the ninth input buffer stage U9 is used to connect to the reference electrode, and the inverting input terminal of the ninth input buffer stage U9 is respectively connected to the output terminal of the ninth input buffer stage U9, the first terminal of the first nine-resistor R19, and the second terminal of the first eight-resistor R18; the first terminal of the first eight-resistor R18 is grounded; The second end of the first nine resistors R19 are respectively connected to the inverting input end of the eighth differential amplifier U8 and the first end of the second zero resistor R20; the second end of the second zero resistor R20 is respectively connected to the output end of the eighth differential amplifier U8.
8. A detection method for the detection circuit according to any one of claims 1 to 7, characterized in that: The detection method comprises: The electrolysis voltage generating circuit is connected to the electrolysis anode and applies a set voltage to the electrolysis anode, thereby controlling the reaction direction of the electrolysis, so that Ag+ dissolves into the electrolyte or precipitates and adsorbs on the electrode; The electrolysis current control circuit is connected to the electrolysis cathode to control the electrolysis current to meet the electrolysis speed requirements of the liquid to be tested with different concentrations; The electrolysis current collection circuit collects the electrolysis current and sends the collected electrolysis current to the main control circuit; The electrode potential acquisition circuit is connected to the indicator electrode and the reference electrode, acquires the potential signals of the indicator electrode and the reference electrode, and sends the acquired signals to the main control circuit; The main control circuit senses whether the working state of the entire electrolysis system is normal by comparing the set voltage of the electrolysis current and the current collection voltage, thereby realizing closed-loop control of electrolysis; the main control circuit obtains the changes brought about by the dripping of the test solution and the completion progress of the electrolysis reaction through the electrode potential signal sent by the electrode potential collection circuit.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to claim 8 are implemented.
10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to claim 8 are implemented.