Analog front-end circuit for water quality photoelectric detection sensor and chip of analog front-end circuit

By designing analog front-end circuits and chips for water quality detection, integrating high-voltage, switch, constant current and conductivity driving circuits, the limitations of sensor drive and signal conditioning technology are solved, simplified and popularized water quality detection is achieved, and the detection is improved. Sensitivity and accuracy, suitable for consumer electronics applications.

CN118883643APending Publication Date: 2024-11-01ATOMBIT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411074794.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The application of consumer electronic products in the field of water quality detection is limited by sensor drive and signal conditioning technology, which makes it difficult to widely use advanced sensor technology. Especially for non-professional enterprises, rich experience and professional experimental testing methods are required.

Method used

An analog front-end circuit for water quality photoelectric detection sensors is designed, including high-voltage generation circuit, high-side switching circuit, constant current source circuit, conductivity probe bipolar driving circuit and differential photoelectric signal acquisition circuit, which is integrated in an analog front-end In the chip, it is possible to drive photoelectric and conductivity sensors to simplify signal processing and user operations.

Benefits of technology

It has achieved simplification and popularization of water quality testing, reduced production costs, improved detection sensitivity and accuracy, is suitable for the application of civil and consumer electronic products, and provides portable and compact equipment that can work stably in a changing environment. , and display the detection results in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118883643A_ABST
    Figure CN118883643A_ABST
Patent Text Reader

Abstract

The invention discloses an analog front-end circuit for a water quality photoelectric detection sensor, a chip of the analog front-end circuit and a water quality detection method using the analog front-end chip. The analog front-end circuit comprises a high-voltage generation circuit, a high-side switching circuit, a constant-current source circuit, a conductivity probe bipolar driving circuit, a differential photoelectric signal acquisition circuit, a conductivity probe, a photoelectric detector and an LED signal light source. The high-voltage generation circuit is used for generating high voltage required for driving the LED signal light source, and the high-side switching circuit is used for controlling the on-off of the LED signal light source; the constant current source circuit is used for generating a constant current signal for driving the LED signal light source; the corresponding end of the differential photoelectric signal acquisition circuit is connected with the photoelectric detector, and the differential photoelectric signal acquisition circuit is used for amplifying an analog current signal output by the photoelectric detector; and the corresponding end of the conductivity probe bipolar driving circuit is connected with the conductivity probe and is used for realizing bipolar signal driving and signal acquisition of the conductivity probe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water quality photoelectric detection, and in particular to an analog front-end circuit and a chip thereof for a water quality photoelectric detection sensor, and a water quality detection method using the analog front-end chip. Background Art

[0002] Consumer electronics products are developing rapidly, and product functions are becoming more and more abundant. A large number of concepts and technologies in the fields of industry and scientific research are increasingly appearing in consumer electronics products. For example, in terms of water quality testing, water quality indicators that could only be tested in laboratories of professional testing institutions in the past have now appeared on household water quality testing instruments, which are very convenient to use. The application of such rapid detection sensors has also brought great social value. On the other hand, the rapid development of consumer electronics has also put forward higher requirements for product research and development, production, and supply chain. Including rapid development of product prototypes, lower and lower cost requirements, etc.

[0003] However, the driving and signal conditioning of sensors involves processing analog signals from the physical world, which requires extensive experience and professional experimental testing methods. General consumer electronics R&D companies often do not have such conditions, which greatly limits the application of advanced sensor technology. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention provides an analog front-end circuit and a chip thereof for a water quality photoelectric detection sensor, and a water quality detection method using the analog front-end chip.

[0005] In order to achieve the above object, the present invention provides an analog front-end circuit for a water quality photoelectric detection sensor, comprising:

[0006] High voltage generation circuit, high-side switch circuit, constant current source circuit, conductivity probe bipolar drive circuit and differential photoelectric signal acquisition circuit, conductivity probe, photoelectric detector, LED signal light source;

[0007] The high voltage generating circuit is used to generate the high voltage required to drive the LED signal light source.

[0008] The high-side switch circuit is used to control the on-off control of the LED signal light source;

[0009] The constant current source circuit is used to generate a constant current signal for driving the LED signal light source;

[0010] The corresponding end of the differential photoelectric signal acquisition circuit is connected to the photoelectric detector to amplify the analog current signal output by the photoelectric detector;

[0011] The corresponding end of the conductivity probe bipolar driving circuit is connected to the conductivity probe to realize bipolar signal driving and signal acquisition of the conductivity probe.

[0012] Preferably, the high-voltage generating circuit includes a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, an inductor L1, a MOS tube Q0, and a rectifier diode D2; the first end of the inductor L1 is electrically connected to the first end of the capacitor C2 and the first end of the capacitor C1, respectively, the second end of the inductor L1 is electrically connected to the drain of the MOS tube Q0 and the first end of the rectifier diode D2, respectively, the gate of the MOS tube Q0 is electrically connected to the corresponding end of the microcontroller, the source of the MOS tube Q0 is electrically connected to the second end of the capacitor C2, the second end of the capacitor C1, the first end of the capacitor C3, and the first end of the capacitor C4, respectively, and the second end of the rectifier diode D2 is electrically connected to the second end of the capacitor C3, the second end of the capacitor C4, and the corresponding end of the high-side switch circuit.

[0013] Preferably, the high-side switch circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a MOS tube Q1, a MOS tube Q2, a MOS tube Q3, a MOS tube Q4, a MOS tube Q5, a MOS tube Q6, a light-emitting diode LED1, a light-emitting diode LED2, and a light-emitting diode LED3; the gate of the MOS tube Q1 is electrically connected to the first end of the resistor R1 and the corresponding end of the external microcontroller, respectively, the drain of the MOS tube Q1 is electrically connected to the first end of the resistor R2 and the gate of the MOS tube Q2, respectively, the source of the MOS tube Q1 is electrically connected to the second end of the resistor R1 and is grounded; the source of the MOS tube Q2 is electrically connected to the second end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6, respectively, and the drain of the MOS tube Q2 is electrically connected to the first end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6, and the drain of the MOS tube Q2 is electrically connected to the first end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6. The diode LED1 is electrically connected to the corresponding end of the constant current source circuit, the first end of the light emitting diode LED2, and the first end of the light emitting diode LED3 respectively; the gate of the MOS tube Q3 is electrically connected to the first end of the resistor R3 and the corresponding end of the microcontroller respectively, the drain of the MOS tube Q3 is electrically connected to the second end of the resistor R4 and the gate of the MOS tube Q4 respectively, the source of the MOS tube Q3 is electrically connected to the second end of the resistor R3 and is grounded; the drain of the MOS tube Q4 is electrically connected to the second end of the light emitting diode LED2; the gate of the MOS tube Q5 is electrically connected to the first end of the resistor R5 and the corresponding end of the microcontroller respectively, the drain of the MOS tube Q5 is electrically connected to the second end of the resistor R6 and the gate of the MOS tube Q6 respectively, the source of the MOS tube Q5 is electrically connected to the second end of the resistor R5 and is grounded; the drain of the MOS tube Q6 is electrically connected to the second end of the light emitting diode LED3.

[0014] Preferably, the constant current source circuit includes a negative feedback circuit consisting of a resistor R7, a resistor R8, a resistor R9, a capacitor C5, and an operational amplifier U6A and a MOS tube Q7; the first end of the resistor R8 is electrically connected to the corresponding end of the external microcontroller, the second end of the resistor R8 is electrically connected to the first end of the capacitor C5 and the in-phase input end of the operational amplifier U6A, respectively, and the second end of the capacitor C5 is grounded; the inverting input end of the operational amplifier U6A is electrically connected to the source of the MOS tube Q7 and the first end of the resistor R7, respectively, and the output end of the operational amplifier U6A is electrically connected to the gate of the MOS tube Q7 via the resistor R9; the drain of the MOS tube Q7 is electrically connected to the light-emitting diode LED1 accordingly.

[0015] Preferably, the differential photoelectric signal acquisition circuit includes a resistor R17, a resistor R18, a resistor R19, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C23, an operational amplifier U5A, and an operational amplifier U5B;

[0016] The operational amplifier U5B, the resistor R17 and the capacitor C6 form a first-stage amplifier circuit;

[0017] The operational amplifier U5A and the resistors R18, R19, R20 and R21 form a second stage differential amplifier circuit;

[0018] The in-phase input terminal of the operational amplifier U5B is electrically connected to the first end of the photoelectric detection chip PD0 of the photodetector and the first end of the resistor R19, respectively; the in-phase input terminal of the operational amplifier U5B is electrically connected to the first end of the resistor R17, the first end of the capacitor C6, and the second end of the photoelectric detection chip PD0 of the photodetector, respectively; the output terminal of the operational amplifier U5B is electrically connected to the second end of the resistor R17, the second end of the capacitor C6, and the first end of the resistor R18, respectively; the in-phase input terminal of the operational amplifier U5A is electrically connected to the first end of the resistor R20, the second end of the resistor R18, respectively. The operational amplifier U5A is electrically connected, the inverting input terminal of the operational amplifier U5A is electrically connected to the second end of the resistor R19, the output terminal of the operational amplifier U5A, and the first end of the resistor R22 respectively; the second end of the resistor R20 is grounded; the 4th pin of the operational amplifier U5A is grounded, and the 8th pin of the operational amplifier U5A is electrically connected to the first end of the capacitor C8 and the first end of the capacitor C7 respectively; the second end of the capacitor C7 is electrically connected to the second end of the capacitor C8 and is grounded; the second end of the resistor R22 is electrically connected to the first end of the capacitor C23 and the input terminal of the external analog signal converter respectively.

[0019] Preferably, the conductivity probe bipolar drive circuit comprises

[0020] High-side switch circuit 1 composed of MOS tube Q8 and MOS tube Q9, high-side switch circuit 2 composed of MOS tube Q10 and MOS tube Q11, switch circuit 3 composed of MOS tube Q12, switch circuit 4 composed of MOS tube Q13, resistor R10, resistor R11, resistor R12, resistor R13, resistor R14, resistor R15, resistor R16, operational amplifier U6B, switch S;

[0021] The source of the mos Q8 is electrically connected to the first end of the resistor R10 and is grounded, the gate of the mos Q8 is electrically connected to the second end of the resistor R10 and the corresponding end of H_SW1 of the external microcontroller, the drain of the mos Q8 is electrically connected to the first end of the resistor R11 and the gate of the mos Q9, the source of the mos Q9 is electrically connected to the second end of the resistor R11 and the corresponding end of HIGH_V, the drain of the mos Q9 is electrically connected to the first end of the switch S and the drain of the mos Q12, the gate of the mos Q12 is electrically connected to the first end of the resistor R15 and the corresponding end of H_SW4 of the external microcontroller, and the source of the mos Q12 is electrically connected to the second end of the resistor R15 and is grounded;

[0022] The gate of the mos Q11 is electrically connected to the corresponding end of H_SW2 of the external microcontroller and the source of the mos Q11 through the resistor R13 and is grounded. The drain of the mos Q11 is electrically connected to the first end of the resistor R12 and the gate of the mos Q10. The source of the mos Q10 is electrically connected to the second end of the resistor R12 and the corresponding end of HIGH_V. The drain of the mos Q10 is electrically connected to the first end of the resistor R16 and the drain of the mos Q13. The gate of the mos Q13 is electrically connected to the first end of the resistor R14 and the corresponding end of H_SW3 of the external microcontroller. The source of the mos Q13 is electrically connected to the second end of the resistor R14 and is grounded.

[0023] The non-inverting input terminal of the operational amplifier U6B is electrically connected to the second end of the switch S and the second end of the resistor R16 respectively, and the inverting input terminal of the operational amplifier U6B is electrically connected to the output terminal of the operational amplifier U6B and the output analog signal TDS_S terminal respectively.

[0024] Preferably, the analog front-end circuit adopts different chip packaging forms according to needs, and the chip packaging forms include SOP, SOT23, and QFN packaging forms, and each packaging form is suitable for different application scenarios.

[0025] Preferably, the analog front-end circuit forms an independent integrated circuit IP, and can be packaged into a SOC chip together with an external microcontroller IP.

[0026] The present invention also provides an analog front-end chip for water quality detection equipment, including an analog front-end circuit;

[0027] The water quality testing equipment comprises:

[0028] Analog front-end chip, used to convert the photoelectric signal of water quality into electrical signal;

[0029] A microcontroller for receiving and processing electrical signals from the analog front-end chip;

[0030] Display and input unit, used for user interaction and display of detection results.

[0031] The present invention also provides a water quality detection method using the analog front-end chip, comprising the following steps:

[0032] Step S1: starting the high voltage generating circuit of the analog front-end chip;

[0033] Step S2: controlling the switch of the LED signal light source through the high-side switch circuit;

[0034] Step S3: using a constant current source circuit to provide a stable current for the LED signal light source;

[0035] Step S4: collecting and amplifying the output signal of the photodetector through a differential photoelectric signal collection circuit;

[0036] Step S5: using the conductivity probe bipolar driving circuit to drive the conductivity probe and collect signals;

[0037] Step S6: Output the collected and processed signals to the microcontroller for analysis.

[0038] The technical solution of the present invention has the following beneficial effects:

[0039] The photoelectric detection sensor analog front-end signal detection and drive circuit proposed by the present invention is a special circuit system specially used for water quality detection, which can drive different types of sensors such as photoelectric and conductivity, can be packaged into an independent chip, has a simple interface and is easy to use. It can greatly promote the application of water quality detection in civilian household appliances and consumer electronic products; the circuit can realize the modulation drive of the LED signal light source and the bipolar drive of the conductivity detection probe. At the same time, the output signal of the photoelectron detector and the analog signal of the conductivity probe can be collected, and after amplification and filtering, they are given to the back-end microcontroller circuit for further processing. The circuit can be formed in different chip packaging forms as needed, such as SOP / SOT23 / QFN and other packaging forms. The chip peripheral circuit is simple and easy to use. The circuit can form an independent integrated circuit IP, which can be packaged into a complete SOC chip together with the microcontroller IP.

[0040] The present invention integrates multiple key circuits on one chip, which simplifies system design and reduces the need for external components and connections; integration reduces production costs, making water quality testing equipment more economical and helping to promote its application in a wider range of scenarios; miniaturized chip packaging makes the overall device more compact, easy to carry and deploy, and suitable for on-site rapid testing needs.

[0041] The present invention improves the efficiency of signal collection and processing and enhances the sensitivity and accuracy of detection by optimizing circuit design; the integrated microcontroller and user interface design make the device easy to operate and water quality detection can be performed without the need for professional personnel; the device can display the detection results in real time and provide instant data support for water quality monitoring and management; the optimized circuit design improves the stability of the device and enables it to adapt to various environmental conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a control block diagram of the analog front-end circuit of the present invention;

[0043] Figure 2 is a schematic diagram of a high voltage generating circuit of the present invention;

[0044] Figure 3 It is a schematic diagram of a high-side switch circuit and a constant current source circuit of the present invention;

[0045] Figure 4 It is a schematic diagram of the differential photoelectric signal acquisition circuit of the present invention;

[0046] Figure 5 It is a schematic diagram of the bipolar driving circuit of the conductivity probe of the present invention;

[0047] Figure 6 A schematic diagram of the chip packaging pins of the analog front-end circuit of the present invention;

[0048] Figure 7 This is a schematic diagram of the chip packaging pin form of the present invention that integrates the microcontroller IP;

[0049] Figure 8 The present invention is a schematic diagram of the chip pin form integrating a microcontroller IP and an analog signal processing chip ADC. DETAILED DESCRIPTION

[0050] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0051] Reference Figures 1 to 8 The present invention provides an analog front-end circuit for a water quality photoelectric detection sensor, characterized in that it includes:

[0052] High voltage generating circuit 100, high side switch circuit 200, constant current source circuit 400, conductivity probe bipolar drive circuit 300 and differential photoelectric signal acquisition circuit 500, conductivity probe 800, photoelectric detector, LED signal light source 600;

[0053] The high voltage generating circuit 100 is used to generate the high voltage required to drive the LED signal light source 600.

[0054] The high-side switch circuit 200 is used to control the on-off control of the LED signal light source 600;

[0055] The constant current source circuit 400 is used to generate a constant current signal for driving the LED signal light source 600;

[0056] The corresponding end of the differential photoelectric signal acquisition circuit 500 is connected to the external photoelectric detector 700 to amplify the analog current signal output by the photoelectric detector 700;

[0057] The corresponding end of the conductivity probe bipolar driving circuit 300 is connected to the external conductivity probe 800 to realize bipolar signal driving and signal acquisition of the conductivity probe 800 .

[0058] The analog front-end circuit of the present invention has the following beneficial effects:

[0059] High integration: By integrating the high voltage generating circuit 100, the high side switch circuit 200, the constant current source circuit 400, the differential photoelectric signal acquisition circuit 500 and the conductivity probe bipolar drive circuit 300 into an analog front-end circuit, the present invention provides a compact solution, which helps to reduce the size of the final product and reduce the system cost.

[0060] High-efficiency driving: The high-voltage generating circuit 100 is designed to efficiently generate the high voltage required by the LED signal light source 600, ensuring that the LED light source works stably and provides continuous light output, thereby improving the efficiency and accuracy of photoelectric detection.

[0061] Precise control: The high-side switch circuit 200 provides precise control over the on and off of the LED signal light source 300, allowing for fast response and high levels of regulation, thereby enhancing the flexibility and controllability of the system.

[0062] Stable light source drive: The constant current source circuit ensures that the LED signal light source receives a stable current, avoids signal interference caused by current fluctuations, and improves the stability and reliability of the detection signal.

[0063] High-sensitivity signal acquisition: The differential photoelectric signal acquisition circuit 500 is connected to an external photoelectric detector to amplify the output analog current signal. Due to the use of differential amplification technology, the signal-to-noise ratio of the signal is effectively improved, and the detection capability of weak signals is enhanced.

[0064] Bipolar signal drive: The conductivity probe bipolar drive circuit 300 realizes bipolar signal drive for the conductivity probe 800. This design helps to reduce probe polarization and improve measurement accuracy and repeatability. And through the H-bridge circuit form, it avoids the use of negative voltage, reduces the complexity of the circuit system, and thus improves stability.

[0065] Easy to integrate: The analog front-end circuit design of the present invention allows the formation of an independent integrated circuit IP, and can be packaged into a SOC chip together with a microcontroller IP, thereby simplifying the system design and shortening the product development cycle.

[0066] Broad application prospects: Since the analog front-end circuit of the present invention has the characteristics of high integration and modularization, it can be widely used in various water quality detection equipment, including portable and fixed systems, to meet the needs of different users.

[0067] Cost-effectiveness: By integrating multiple functions onto a single chip, the present invention reduces the need for external components, lowers material and manufacturing costs, and makes the final product more cost-effective.

[0068] Reference Figure 2, the high voltage generating circuit 100 includes capacitor C1, capacitor C2, capacitor C3, capacitor C4, inductor L1, MOS tube Q0, and rectifier diode D2; the first end of the inductor L1 is electrically connected to the first end of the capacitor C2 and the first end of the capacitor C1 respectively, the second end of the inductor L1 is electrically connected to the drain of the MOS tube Q0 and the first end of the rectifier diode D2 respectively, the gate of the MOS tube Q0 is electrically connected to the corresponding end of the microcontroller, the source of the MOS tube Q0 is electrically connected to the second end of the capacitor C2, the second end of the capacitor C1, the first end of the capacitor C3, and the first end of the capacitor C4 respectively, and the second end of the rectifier diode D2 is electrically connected to the second end of the capacitor C3, the second end of the capacitor C4, and the corresponding end of the high-side switch circuit 200. The principle of the high voltage generating circuit in the present invention is: the high voltage generating circuit 100 is used to generate the high voltage required to drive the LED light-emitting chip. Since light-emitting LED chips of different wavelengths have different working voltages, when constant current driving is adopted, the power supply voltage may need to be higher than the system power supply voltage. Since the working voltage of a general embedded system is often 3-5V. In order to match the power supply voltage of this circuit system with the working voltage of the general embedded system, an internal boost voltage is designed to drive the LED light-emitting chip. This boost voltage is based on a boost circuit of BOOST structure composed of capacitor (C1C2), inductor (L1), switch MOS tube (Q0) and single-phase conduction rectifier diode (D2). C1C2 is used for filtering the output high voltage. Its connection method is shown in the figure below. PWM_IN is the pulse width modulation signal input, which is used to control the on and off of Q0. This signal is connected to the pulse width modulation signal output of the external microcontroller when used. The output voltage of the boost circuit is controlled by adjusting the pulse width duty cycle.

[0069] Reference Figure 3The high-side switch circuit 200 includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a MOS tube Q1, a MOS tube Q2, a MOS tube Q3, a MOS tube Q4, a MOS tube Q5, a MOS tube Q6, a light-emitting diode LED1, a light-emitting diode LED2, and a light-emitting diode LED3; the gate of the MOS tube Q1 is electrically connected to the first end of the resistor R1 and the corresponding end of the external microcontroller 900, respectively; the drain of the MOS tube Q1 is electrically connected to the first end of the resistor R2 and the gate of the MOS tube Q2, respectively; the source of the MOS tube Q1 is electrically connected to the second end of the resistor R1 and is grounded; the source of the MOS tube Q2 is electrically connected to the second end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6, respectively; the drain of the MOS tube Q2 is electrically connected to the first end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6, and the drain of the MOS tube Q2 is electrically connected to the first end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6. The diode LED1 is electrically connected to the corresponding end of the constant current source circuit 400, the first end of the light emitting diode LED2, and the first end of the light emitting diode LED3 respectively; the gate of the MOS tube Q3 is electrically connected to the first end of the resistor R3 and the corresponding end of the microcontroller respectively, the drain of the MOS tube Q3 is electrically connected to the second end of the resistor R4 and the gate of the MOS tube Q4 respectively, the source of the MOS tube Q3 is electrically connected to the second end of the resistor R3 and is grounded; the drain of the MOS tube Q4 is electrically connected to the second end of the light emitting diode LED2; the gate of the MOS tube Q5 is electrically connected to the first end of the resistor R5 and the corresponding end of the microcontroller respectively, the drain of the MOS tube Q5 is electrically connected to the second end of the resistor R6 and the gate of the MOS tube Q6 respectively, the source of the MOS tube Q5 is electrically connected to the second end of the resistor R5 and is grounded; the drain of the MOS tube Q6 is electrically connected to the second end of the light emitting diode LED3. The principle of the high-side switch circuit 200 of the present invention is: the high-side switch circuit 200 is used to realize the on-off control of the light source LED on the power supply side. Since the voltage of the HIGH_V terminal is higher than the digital port signal level of the microcontroller 900, it is difficult to use a P-channel MOS tube for switch control. This design uses an N-MOS and a P-MOS in combination to form a high-side switch circuit.CH1_SW, CH2_SW, and CH3_SW are respectively connected to the digital signal IO of the external microcontroller 900. Taking the control of LED1 as an example, when CH1_SW is at a low level, N-MOS Q1 is in an off state. At this time, the gate of P-MOS Q2 is connected to the high voltage HIGH_V through the resistor R2, and the gate and source voltages of Q2 are equal and in a closed state; conversely, when CH1_SW is at a high level, N-MOS Q1 is in an on state. At this time, the gate of P-MOS Q2 is connected to the ground GND through Q1, and the gate and source voltage difference of Q2 is HIGH_V, and Q2 is turned on; thereby, the switch control of LED1 is realized, and the corresponding control principles of LED2 and LED3 are the same, which will not be repeated again.

[0070] Reference Figure 3 The constant current source circuit 400 includes a resistor R7, a resistor R8, a resistor R9, a capacitor C5, and a negative feedback circuit composed of an operational amplifier U6A and a MOS tube Q7; the first end of the resistor R8 is electrically connected to the corresponding end of the external microcontroller 900, the second end of the resistor R8 is electrically connected to the first end of the capacitor C5 and the in-phase input end of the operational amplifier U6A, and the second end of the capacitor C5 is grounded; the inverting input end of the operational amplifier U6A is electrically connected to the source of the MOS tube Q7 and the first end of the resistor R7, and the output end of the operational amplifier U6A is electrically connected to the gate of the MOS tube Q7 through the resistor R9; the drain of the MOS tube Q7 is electrically connected to the light emitting diode LED1; the working principle of the constant current source circuit 400 of the present invention is: the constant current source circuit 400 is used to generate a constant current signal for driving the LED light source. It is composed of a negative feedback circuit composed of a single operational amplifier U6A and an N-channel MOS tube Q7. V_REF is input by an external constant voltage signal source, and is connected to the non-inverting input terminal of the operational amplifier after passing through a filter circuit composed of resistor R8 and capacitor C5; the output terminal of the operational amplifier is connected to the gate of the MOS tube Q7 through resistor R9; the inverting input terminal of the operational amplifier is connected to the source of the MOS tube Q7 and grounded through the load resistor R7; the current generated by Q7 is calculated as follows: I=V_REF / R7.

[0071] Reference Figure 4The differential photoelectric signal acquisition circuit 500 includes a resistor R17, a resistor R18, a resistor R19, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C23, an operational amplifier U5A, and an operational amplifier U5B; the operational amplifier U5B and the resistor R17 and the capacitor C6 constitute a first-stage differential amplifier circuit; the operational amplifier U5A and the resistor R18, the resistor R19, the resistor R20, and the resistor R21 constitute a second-stage differential amplifier circuit; the in-phase input terminal of the operational amplifier U5B is electrically connected to the first end of the photoelectric detection chip PD0 of the photodetector and the first end of the resistor R19, respectively, and the inverting input terminal of the operational amplifier U5B is electrically connected to the first end of the resistor R17, the first end of the capacitor C6, and the second end of the photoelectric detection chip PD0 of the photodetector, respectively. The output end of the operational amplifier U5B is electrically connected to the second end of the resistor R17, the second end of the capacitor C6, and the first end of the resistor R18 respectively; the non-inverting input end of the operational amplifier U5A is electrically connected to the first end of the resistor R20 and the second end of the resistor R18 respectively, and the inverting input end of the operational amplifier U5A is electrically connected to the second end of the resistor R19, the output end of the operational amplifier U5A, and the first end of the resistor R22 respectively; the second end of the resistor R20 is grounded; the 4th pin of the operational amplifier U5A is grounded, and the 8th pin of the operational amplifier U5A is electrically connected to the first end of the capacitor C8 and the first end of the capacitor C7 respectively; the second end of the capacitor C7 is electrically connected to the second end of the capacitor C8 and is grounded; the second end of the resistor R22 is electrically connected to the first end of the capacitor C23 and the input end of the external analog signal converter respectively. The working principle of the differential photoelectric signal acquisition circuit 500 of the present invention is: the differential photoelectric signal acquisition circuit 500 is used to amplify the analog current signal output by the photodetector 700, and the output end is connected to the input end of the external analog-to-digital converter. PD1_NPD1_P are connected to the negative and positive electrodes of the photodetection chip PD0 respectively; the detector PD0 is connected to the circuit in a photovoltaic manner (the external node voltage is 0), and the generated photocurrent is amplified and output to TP1 through the crossover; the operational amplifier U5B, the resistor R17, and the capacitor C6 form the first-stage quasi-conductor amplifier circuit; then the signal enters the second-stage differential amplifier circuit, and the resistors R18R19R20R21 and the operational amplifier U5A form a differential amplifier circuit; the amplification factor is determined by R20 / R18. The output signal is output to PD_S (the input end of the analog-to-digital converter) through the filter circuit composed of R22 and the capacitor C23. The differential photoelectric signal acquisition circuit 500 uses a two-stage combination of quasi-conductor and differential amplifier circuits to achieve the amplification output of weak photocurrent signals, effectively eliminating common-mode signal interference and having good stability.

[0072] Reference Figure 5The conductivity probe bipolar drive circuit 300 includes a high-side switch circuit 1 composed of MOS tubes Q8 and MOS tubes Q9, a high-side switch circuit 2 composed of MOS tubes Q10 and MOS tubes Q11, a switch circuit 3 composed of MOS tubes Q12, a switch circuit 4 composed of MOS tubes Q13, a resistor R10, a resistor R11, a resistor R12, a resistor R13, a resistor R14, a resistor R15, a resistor R16, an operational amplifier U6B, and a switch S; the source of the MOS tube Q8 is electrically connected to the first end of the resistor R10 and is grounded, and the gate of the MOS tube Q8 is respectively connected to the second end of the resistor R10 , the H_SW1 corresponding end of the external microcontroller 900 is electrically connected, the drain of the mos Q8 is electrically connected to the first end of the resistor R11 and the gate of the mos Q9 respectively, the source of the mos Q9 is electrically connected to the second end of the resistor R11 and the HIGH_V corresponding end respectively, the drain of the mos Q9 is electrically connected to the first end of the switch S and the drain of the mos Q12 respectively, the gate of the mos Q12 is electrically connected to the first end of the resistor R15 and the H_SW4 corresponding end of the external microcontroller 900 respectively, the source of the mos Q12 is electrically connected to the second end of the resistor R15 and grounded;

[0073] The gate of the mos transistor Q11 is electrically connected to the corresponding end of H_SW2 of the external microcontroller 900 and the source of the mos transistor Q11 through the resistor R13 and is grounded. The drain of the mos transistor Q11 is electrically connected to the first end of the resistor R12 and the gate of the mos transistor Q10. The source of the mos transistor Q10 is electrically connected to the second end of the resistor R12 and the corresponding end of HIGH_V. The drain of the mos transistor Q10 is electrically connected to the first end of the resistor R16 and the drain of the mos transistor Q13. The gate of the MOS tube Q13 is electrically connected to the first end of the resistor R14 and the corresponding end of H_SW3 of the external microcontroller 900, respectively, and the source of the MOS tube Q13 is electrically connected to the second end of the resistor R14 and grounded; the non-inverting input end of the operational amplifier U6B is electrically connected to the second end of the switch S and the second end of the resistor R16, respectively, and the inverting input end of the operational amplifier U6B is electrically connected to the output end of the operational amplifier U6B and the output analog signal TDS_S end.

[0074] The working principle of the conductivity probe bipolar drive circuit 300 of the present invention is as follows: the conductivity probe bipolar drive circuit 300 includes an H-bridge circuit composed of MOS tube Q8, MOS tube Q9, MOS tube Q10, MOS tube Q11, MOS tube Q12, and MOS tube Q13. Working mode: When MOS tube Q8, MOS tube Q9, and MOS tube Q13 are turned on and MOS tube Q10, MOS tube Q11, and MOS tube Q12 are turned off, the current flows in the direction of arrow 1; otherwise, it flows in the direction of arrow 2. The conductivity signal formed on the resistor R16 is output by the voltage follower circuit formed by the operational amplifier U6B. MOSFET Q8 and MOSFET Q9 constitute a high-side switch circuit, which is directly connected to H_SW1 by the digital port of the external microcontroller 900 for switch control; MOSFET Q10 and MOSFET Q11 constitute another high-side switch circuit, which is directly connected to H_SW2 by the digital port of the external microcontroller 900 for switch control; MOSFET Q12 and MOSFET Q13 respectively constitute a switch circuit, which is connected to H_SW4 and H_SW3 by the digital port of the external microcontroller 900 for control; this conductivity probe bipolar drive circuit solves the problem of realizing bipolar signal drive of the conductivity probe without using a negative voltage circuit, and can prevent polarization of the probe to a limited extent.

[0075] Furthermore, the analog front-end circuit adopts different chip packaging forms as needed, and the chip packaging forms include SOP, SOT23, and QFN packaging forms, and each packaging form is suitable for different application scenarios. : According to different application scenarios, the optimal packaging form can be selected to achieve better performance, such as signal integrity, electromagnetic compatibility or thermal management. Packaging technologies such as SOT23 and QFN help to achieve more miniaturized product designs, which are suitable for portable or space-constrained applications. Packaging forms such as QFN usually have good thermal conductivity, which is helpful for high-power applications or scenarios that require effective heat dissipation. Among them, the packaging form of the chip, when packaging, the circuit system of this scheme can delete each circuit module as needed. For example, if only conductivity detection is required, it is only necessary to package the high-voltage generation circuit and the conductivity bipolar drive circuit. The same is true for the photoelectric detection circuit for detecting organic matter in water quality.

[0076] The present invention also provides an analog front-end chip for water quality detection equipment. The characteristic of the analog front-end chip is that it integrates an analog front-end circuit. By adopting this integrated analog front-end circuit, the analog front-end chip can achieve efficient signal processing and meet specific requirements in water quality detection applications. This design not only improves the stability and reliability of the system, but also helps to reduce the size of the equipment and reduce production costs, thereby providing users with a more economical, compact and efficient water quality detection solution. The water quality detection equipment includes: an analog front-end chip, a microcontroller 900, and a display and input unit, wherein the analog front-end chip is used to convert the photoelectric signal of water quality into an electrical signal; high-efficiency signal conversion: the analog front-end chip is specially designed to efficiently convert the photoelectric signal of water quality into an electrical signal, which improves the speed and accuracy of signal processing; the microcontroller 900 is used to receive and process the electrical signal from the analog front-end chip; the addition of the microcontroller 900 provides the device with intelligent processing capabilities, which can perform complex analysis and calculation on the signal and improve the accuracy of the detection. The display and input unit is used for user interaction and display of the detection results. The display and input unit provides an intuitive user interface, which makes the operation easier, and the user can easily set parameters and read the results. The device can display the test results in real time, providing users with instant feedback and facilitating quick decision-making. Users can start the test process with simple operations through the input unit, which greatly reduces the threshold for use. Portability and flexibility of water quality testing equipment: The compact design of the equipment makes it easy to carry and deploy, suitable for a variety of different testing environments. The microcontroller can record the test data for subsequent data analysis and historical record tracing. The high signal-to-noise ratio and stability of the analog front-end chip enable the device to work stably under changing environmental conditions. The hardware and software design of the device allows for the addition of more functions in the future, such as wireless communication modules, to meet changing market needs.

[0077] The present invention also provides a water quality detection method using the analog front-end chip, comprising the following steps:

[0078] Step S1: starting the high voltage generating circuit 100 of the analog front-end chip; the high voltage generating circuit 100 in step S1 can be started quickly to provide the required high voltage for the LED signal light source 600, thereby speeding up the initialization of the detection process;

[0079] Step S2: controlling the switch of the LED signal light source 600 through the high-side switch circuit 200; Step S2 implements precise switch control of the LED signal light source 600 through the high-side switch circuit 200, ensuring that the light source works only when needed, thereby improving the response speed and control accuracy of the system;

[0080] Step S3: using the constant current source circuit 400 to provide a stable current for the LED signal light source 600; in step S3, the constant current source circuit 400 provides a stable current for the LED, thereby ensuring the stability of the light source and avoiding the influence of current fluctuation on the detection result;

[0081] Step S4: The output signal of the photodetector 700 is collected and amplified by the differential photoelectric signal collection circuit 500; the differential photoelectric signal collection circuit 500 of step S4 can effectively collect and amplify the signal from the photodetector 700, thereby improving the sensitivity and accuracy of the detection method.

[0082] Step S5: using the conductivity probe bipolar driving circuit 300 to drive the conductivity probe 800 and collect signals; the application of the conductivity probe bipolar driving circuit 300 in step S5 provides stable driving for the conductivity probe 800 and enhances the reliability of signal collection.

[0083] Step S6: Output the collected and processed signals to the microcontroller 900 for analysis; the use of the microcontroller in step S6 enables the collected signals to be intelligently processed and analyzed, thereby improving the efficiency and accuracy of data processing.

[0084] The whole detection method has a high degree of automation, which reduces the need for manual operation and the possibility of operational errors. This method can realize real-time monitoring of water quality and provide instant data support for water quality management; according to different application requirements, users can customize certain steps in the detection process to adapt to specific detection conditions; through precise control and efficient signal processing, this method helps to reduce energy consumption and environmental impact. The comprehensive use of various functions of the analog front-end chip ensures the accuracy and reliability of the test results; the standardized process of this method simplifies the maintenance and calibration of the equipment and reduces maintenance costs.

[0085] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. An analog front-end circuit for a water quality photoelectric detection sensor, characterized in that: include: High voltage generation circuit, high-side switch circuit, constant current source circuit, conductivity probe bipolar drive circuit and differential photoelectric signal acquisition circuit, conductivity probe, photoelectric detector, LED signal light source; The high voltage generating circuit is used to generate the high voltage required to drive the LED signal light source. The high-side switch circuit is used to control the on-off control of the LED signal light source; The constant current source circuit is used to generate a constant current signal for driving the LED signal light source; The corresponding end of the differential photoelectric signal acquisition circuit is connected to the photoelectric detector to amplify the analog current signal output by the photoelectric detector; The corresponding end of the conductivity probe bipolar driving circuit is connected to the conductivity probe to realize bipolar signal driving and signal acquisition of the conductivity probe.

2. The analog front-end circuit for a water quality photoelectric detection sensor according to claim 1, characterized in that: The high-voltage generating circuit includes a capacitor C1, a capacitor C2, a capacitor C3, a capacitor C4, an inductor L1, a MOS tube Q0, and a rectifier diode D2; the first end of the inductor L1 is electrically connected to the first end of the capacitor C2 and the first end of the capacitor C1, respectively, the second end of the inductor L1 is electrically connected to the drain of the MOS tube Q0 and the first end of the rectifier diode D2, respectively, the gate of the MOS tube Q0 is electrically connected to the corresponding end of the external microcontroller, the source of the MOS tube Q0 is electrically connected to the second end of the capacitor C2, the second end of the capacitor C1, the first end of the capacitor C3, and the first end of the capacitor C4, respectively, the second end of the rectifier diode D2 is electrically connected to the second end of the capacitor C3, the second end of the capacitor C4, and the corresponding end of the high-side switch circuit.

3. The analog front-end circuit for a water quality photoelectric detection sensor according to claim 2, wherein the high-side switch circuit comprises a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a MOS tube Q1, a MOS tube Q2, a MOS tube Q3, a MOS tube Q4, a MOS tube Q5, a MOS tube Q6, a light-emitting diode LED1, a light-emitting diode LED2, and a light-emitting diode LED3; the gate of the MOS tube Q1 is electrically connected to the first end of the resistor R1 and the corresponding end of the external microcontroller, the drain of the MOS tube Q1 is electrically connected to the first end of the resistor R2 and the gate of the MOS tube Q2, the source of the MOS tube Q1 is electrically connected to the second end of the resistor R1 and is grounded; the source of the MOS tube Q2 is electrically connected to the second end of the resistor R2, the second end of the rectifier diode D2, the first end of the resistor R4, the source of the MOS tube Q4, the first end of the resistor R6, and the source of the MOS tube Q6, respectively. The drain of the MOS tube Q2 is electrically connected to the corresponding end of the constant current source circuit, the first end of the light emitting diode LED2, and the first end of the light emitting diode LED3 through the light emitting diode LED1; the gate of the MOS tube Q3 is electrically connected to the first end of the resistor R3 and the corresponding end of the microcontroller, the drain of the MOS tube Q3 is electrically connected to the second end of the resistor R4 and the gate of the MOS tube Q4, the source of the MOS tube Q3 is electrically connected to the second end of the resistor R3 and is grounded; the drain of the MOS tube Q4 is electrically connected to the second end of the light emitting diode LED2; the gate of the MOS tube Q5 is electrically connected to the first end of the resistor R5 and the corresponding end of the external microcontroller, the drain of the MOS tube Q5 is electrically connected to the second end of the resistor R6 and the gate of the MOS tube Q6, the source of the MOS tube Q5 is electrically connected to the second end of the resistor R5 and is grounded; the drain of the MOS tube Q6 is electrically connected to the second end of the light emitting diode LED3.

4. According to the analog front-end circuit for the water quality photoelectric detection sensor described in claim 3, the constant current source circuit includes a resistor R7, a resistor R8, a resistor R9, a capacitor C5, and a negative feedback circuit composed of an operational amplifier U6A and a MOS tube Q7; the first end of the resistor R8 is electrically connected to the corresponding end of the external microcontroller, the second end of the resistor R8 is electrically connected to the first end of the capacitor C5 and the in-phase input end of the operational amplifier U6A, respectively, and the second end of the capacitor C5 is grounded; the inverting input end of the operational amplifier U6A is electrically connected to the source of the MOS tube Q7 and the first end of the resistor R7, respectively, and the output end of the operational amplifier U6A is electrically connected to the gate of the MOS tube Q7 via the resistor R9; the drain of the MOS tube Q7 is electrically connected to the light-emitting diode LED1 accordingly.

5. According to the analog front-end circuit for the water quality photoelectric detection sensor of claim 4, the differential photoelectric signal acquisition circuit comprises a resistor R17, a resistor R18, a resistor R19, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C23, an operational amplifier U5A, and an operational amplifier U5B; The operational amplifier U5B, the resistor R17 and the capacitor C6 form a first-stage amplifier circuit; The operational amplifier U5A and the resistors R18, R19, R20 and R21 form a second stage differential amplifier circuit; The in-phase input terminal of the operational amplifier U5B is electrically connected to the first end of the photoelectric detection chip PD0 of the photodetector and the first end of the resistor R19, respectively; the in-phase input terminal of the operational amplifier U5B is electrically connected to the first end of the resistor R17, the first end of the capacitor C6, and the second end of the photoelectric detection chip PD0 of the photodetector, respectively; the output terminal of the operational amplifier U5B is electrically connected to the second end of the resistor R17, the second end of the capacitor C6, and the first end of the resistor R18, respectively; the in-phase input terminal of the operational amplifier U5A is electrically connected to the first end of the resistor R20, the second end of the resistor R18, respectively. The operational amplifier U5A is electrically connected, the inverting input terminal of the operational amplifier U5A is electrically connected to the second end of the resistor R19, the output terminal of the operational amplifier U5A, and the first end of the resistor R22 respectively; the second end of the resistor R20 is grounded; the 4th pin of the operational amplifier U5A is grounded, and the 8th pin of the operational amplifier U5A is electrically connected to the first end of the capacitor C8 and the first end of the capacitor C7 respectively; the second end of the capacitor C7 is electrically connected to the second end of the capacitor C8 and is grounded; the second end of the resistor R22 is electrically connected to the first end of the capacitor C23 and the input terminal of the external analog signal converter respectively.

6. The analog front-end circuit for a water quality photoelectric detection sensor according to claim 5, wherein the conductivity probe bipolar drive circuit comprises: High-side switch circuit 1 composed of MOS tube Q8 and MOS tube Q9, high-side switch circuit 2 composed of MOS tube Q10 and MOS tube Q11, switch circuit 3 composed of MOS tube Q12, switch circuit 4 composed of MOS tube Q13, resistor R10, resistor R11, resistor R12, resistor R13, resistor R14, resistor R15, resistor R16, operational amplifier U6B, switch S; The source of the mos Q8 is electrically connected to the first end of the resistor R10 and is grounded, the gate of the mos Q8 is electrically connected to the second end of the resistor R10 and the corresponding end of H_SW1 of the external microcontroller, the drain of the mos Q8 is electrically connected to the first end of the resistor R11 and the gate of the mos Q9, the source of the mos Q9 is electrically connected to the second end of the resistor R11 and the corresponding end of HIGH_V, the drain of the mos Q9 is electrically connected to the first end of the switch S and the drain of the mos Q12, the gate of the mos Q12 is electrically connected to the first end of the resistor R15 and the corresponding end of H_SW4 of the external microcontroller, and the source of the mos Q12 is electrically connected to the second end of the resistor R15 and is grounded; The gate of the mos Q11 is electrically connected to the corresponding end of H_SW2 of the external microcontroller and the source of the mos Q11 through the resistor R13 and is grounded. The drain of the mos Q11 is electrically connected to the first end of the resistor R12 and the gate of the mos Q10. The source of the mos Q10 is electrically connected to the second end of the resistor R12 and the corresponding end of HIGH_V. The drain of the mos Q10 is electrically connected to the first end of the resistor R16 and the drain of the mos Q13. The gate of the mos Q13 is electrically connected to the first end of the resistor R14 and the corresponding end of H_SW3 of the external microcontroller. The source of the mos Q13 is electrically connected to the second end of the resistor R14 and is grounded. The non-inverting input terminal of the operational amplifier U6B is electrically connected to the second end of the switch S and the second end of the resistor R16 respectively, and the inverting input terminal of the operational amplifier U6B is electrically connected to the output terminal of the operational amplifier U6B and the output analog signal TDS_S terminal respectively.

7. According to claim 6, the analog front-end circuit for the water quality photoelectric detection sensor adopts different chip packaging forms as needed, and the chip packaging forms include SOP, SOT23, and QFN packaging forms, and each packaging form is adapted to different application scenarios.

8. The analog front-end circuit for a water quality photoelectric detection sensor according to claim 1, wherein the analog front-end circuit forms an independent integrated circuit IP and can be packaged into a SOC chip together with an external microcontroller IP.

9. An analog front-end chip for water quality testing equipment, characterized in that: comprising an analog front-end circuit as claimed in any one of claims 1 to 8; The water quality testing equipment comprises: Analog front-end chip, used to convert the photoelectric signal of water quality into electrical signal; A microcontroller for receiving and processing electrical signals from the analog front-end chip; Display and input unit, used for user interaction and display of detection results.

10. A water quality detection method using the analog front-end chip as claimed in claim 9, characterized in that: The following steps are involved: Step S1: starting the high voltage generating circuit of the analog front-end chip; Step S2: controlling the switch of the LED signal light source through the high-side switch circuit; Step S3: using a constant current source circuit to provide a stable current for the LED signal light source; Step S4: collecting and amplifying the output signal of the photodetector through a differential photoelectric signal collection circuit; Step S5: using the conductivity probe bipolar driving circuit to drive the conductivity probe and collect signals; Step S6: Output the collected and processed signals to the microcontroller for analysis.

Citation Information

Cited By

  • Constant current and PWM dual-drive circuit suitable for IP module

    CN121508526A

  • Constant current and PWM dual drive circuit suitable for IP module

    CN121508526B