Probe detection circuit with variable range and electronic equipment
By designing a variable-range probe detection circuit, using microcontrollers and operational amplifiers for signal processing, and combining feedback resistors and filter circuits, the problem of high misjudgment rates in probe detection circuits in the existing technology has been solved, and conductivity control has been achieved. Accurate measurement and improved sensitivity.
Patent Information
- Application Number
- CN202323542568.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-12-25
AI Technical Summary
It is difficult for existing probe detection circuits to accurately measure the conductivity of mixtures of different feeds and water through voltage division or optocoupler methods, resulting in a high misjudgment rate.
A variable-range probe detection circuit is designed, including a microcontroller, an operational amplifier, a PNP transistor and a probe. The digital-to-analog converter and operational amplifier of the microcontroller achieve accurate measurement and conversion of the probe output signal, and use feedback Resistors, capacitors and resistors form a filter circuit to improve signal stability and accuracy.
It achieves a more linear detection of conductivity, improves the accuracy and sensitivity of measurement, can more accurately distinguish between materials and materials, and adapts to measurement needs in different scenarios.
Smart Images

Figure CN221803887U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of electronic circuit design, in particular to a probe detection circuit with a variable range and an electronic device. Background Art
[0002] The probe is a device that detects whether there is a mixture of feed and water. The probe determines whether there is residual feed by detecting the conductivity of the mixture of water and feed. The current probe detection circuit is realized by voltage division or optical coupling on and off. However, the feed type, particle size, solubility and other properties of different farms are different, and the mineral content and other dissolved solids content of water are also different. These will affect the conductivity, making it difficult to accurately measure the residual feed situation by resistance division or optical coupling, and the misjudgment rate is high. Summary of the invention
[0003] The utility model provides a probe detection circuit with a variable range and an electronic device, the main purpose of which is to solve the technical problem that it is difficult to accurately measure the residual feed situation by means of resistor voltage division or optical coupling, and the misjudgment rate is high.
[0004] To achieve the above object, the utility model provides a probe detection circuit with a variable range, comprising: a single chip microcomputer, an operational amplifier, a PNP type transistor, a probe and a first power supply terminal;
[0005] The digital-to-analog converter of the single-chip microcomputer is connected to the non-inverting input terminal of the operational amplifier, a reference voltage is input to the operational amplifier, and the inverting input terminal of the operational amplifier is connected to the first power supply terminal;
[0006] The base of the PNP transistor is connected to the output end of the operational amplifier, and the emitter of the PNP transistor is connected to the first power supply end;
[0007] After the collector of the PNP transistor is connected to the positive electrode of the probe, it is connected to the analog-to-digital converter of the single-chip microcomputer. The probe outputs a voltage signal to the analog-to-digital converter to convert it into a digital signal and input it into the single-chip microcomputer.
[0008] In one embodiment of the utility model, optionally, the circuit further includes: a feedback resistor;
[0009] The first end of the feedback resistor is connected to the first power supply end;
[0010] The second end of the feedback resistor is connected to the inverting input end of the operational amplifier and the emitter of the PNP transistor respectively.
[0011] In an embodiment of the present utility model, optionally, the positive power supply terminal of the operational amplifier is connected to the second power supply terminal, and the negative power supply terminal of the operational amplifier is connected to the ground terminal.
[0012] In one embodiment of the utility model, optionally, the circuit further includes: a first capacitor;
[0013] The first end of the first capacitor is connected to the second power supply end, and the second end of the first capacitor is connected to the ground end.
[0014] In one embodiment of the present utility model, optionally, the circuit further includes: a first resistor and a second capacitor;
[0015] The first end of the first resistor is connected to the digital-to-analog converter of the single-chip microcomputer, and the second end of the first resistor is connected to the non-inverting input end of the operational amplifier;
[0016] The first end of the second capacitor is connected to the second end of the first resistor, and the second end of the second capacitor is connected to the ground.
[0017] In one embodiment of the utility model, optionally, the circuit further includes: a second resistor;
[0018] The first end of the second resistor is connected to the output end of the operational amplifier;
[0019] The second end of the second resistor is connected to the base of the PNP transistor.
[0020] In one embodiment of the present invention, optionally, the single chip microcomputer includes: a calculation unit, wherein the calculation unit is used to receive the digital signal transmitted by the analog-to-digital converter and calculate the conductivity according to the digital signal.
[0021] In addition, to achieve the above-mentioned purpose, the utility model also proposes an electronic device, comprising the variable-range probe detection circuit described in any one of the above items.
[0022] The utility model provides a probe detection circuit with a variable range. Through the control of a single-chip microcomputer, the detection range can be adjusted to meet the measurement requirements in different scenarios. The operational amplifier and the digital-to-analog converter of the single-chip microcomputer can be used to accurately measure and convert the output signal of the probe, thereby improving the accuracy of the measurement. The conductivity can be detected in a more linear range, thereby improving the sensitivity and distinguishing between situations where there is material and no material. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the structure of a probe detection circuit with a variable range provided by an embodiment of the utility model is shown;
[0024] Figure 2 A schematic diagram of the structure of a probe detection circuit with a variable range provided by an embodiment of the utility model is shown;
[0025] In the figure:
[0026] R1, feedback resistor; R2, first resistor; R3, second resistor; C1, first capacitor; C2, second capacitor; DAC, digital-to-analog converter; ADC, analog-to-digital converter; Q1, PNP transistor;
[0027] U1, operational amplifier; 1, output terminal of operational amplifier; 2, negative power supply terminal of operational amplifier; 3, non-inverting input terminal of operational amplifier; 4, inverting input terminal of operational amplifier; 5, positive power supply terminal of operational amplifier. DETAILED DESCRIPTION
[0028] The technical solution of the utility model is described in detail below with reference to the drawings.
[0029] like Figure 1 As shown, a variable range probe detection circuit proposed by an embodiment of the utility model includes a single-chip microcomputer, an operational amplifier, a PNP-type triode, a probe and a first power supply terminal. Among them, the digital-to-analog converter of the single-chip microcomputer is connected to the non-inverting input terminal of the operational amplifier, a reference voltage is input to the operational amplifier, and the inverting input terminal of the operational amplifier is connected to the first power supply terminal. It should be noted that the digital-to-analog converter is a part of the single-chip microcomputer, which converts the digital signal generated by the single-chip microcomputer into a corresponding analog voltage signal. This analog signal is used to provide a reference voltage to the downstream operational amplifier. The base of the PNP-type triode is connected to the output terminal of the operational amplifier, and the emitter of the PNP-type triode is connected to the first power supply terminal. After the collector of the PNP-type triode is connected to the positive electrode of the probe, it is connected to the analog-to-digital converter of the single-chip microcomputer, and the probe outputs a voltage signal to the analog-to-digital converter to convert it into a digital signal and input it into the single-chip microcomputer. Among them, the first power supply terminal provides a 5V DC power supply for the variable range probe detection circuit. The electrode of the probe is immersed in the conductive medium to be tested (such as a solution). When a constant current flows through the conductive medium, the difference in conductivity causes different voltages at both ends of the probe. This voltage signal changes with the conductivity, and the microcontroller can then determine the conductivity based on the voltage signal.
[0030] The variable range probe detection circuit proposed in the embodiment of the utility model can adjust the detection range through the control of the single chip microcomputer, so as to meet the measurement requirements in different scenarios. The operational amplifier and the digital analog converter of the single chip microcomputer can be used to accurately measure and convert the output signal of the probe, thereby improving the accuracy of the measurement. The conductivity can be detected in a more linear range, thereby improving the sensitivity and distinguishing the situation where the material is close to the absence of the material.
[0031] In one embodiment of the present invention, Figure 2 As shown, optionally, the variable range probe detection circuit further includes a feedback resistor R1.
[0032] In the above embodiment, the first end of the feedback resistor R1 is connected to the first power supply terminal. The second end of the feedback resistor R1 is connected to the inverting input terminal 4 of the operational amplifier and the emitter of the PNP transistor Q1 respectively. The resistance of the feedback resistor is 2kΩ. The feedback resistor R1 can improve the stability of the circuit. Negative feedback can reduce the nonlinearity and resistivity of the amplifier and improve the linearity and stability of the entire circuit by feeding back a part of the amplifier output signal to the input terminal. Especially in the case of high gain, the feedback resistor R1 can suppress the instability of the amplifier and ensure the accuracy and reliability of the output signal.
[0033] In an embodiment of the present invention, optionally, the positive power supply terminal of the operational amplifier U1 is connected to the second power supply terminal, and the negative power supply terminal of the operational amplifier U1 is connected to the ground terminal.
[0034] In the above embodiment, the second power supply end is connected to the positive power supply end and the negative power supply end of the operational amplifier U1 to provide the operational amplifier U1 with the 5V DC power required for operation, so that the operational amplifier U1 can work normally and ensure that the output signal can be amplified and processed completely according to the input signal.
[0035] In an embodiment of the present invention, optionally, the variable-range probe detection circuit further includes a first capacitor C1.
[0036] In the above embodiment, the first end of the first capacitor C1 is connected to the second power supply end, and the second end of the first capacitor C1 is connected to the ground end. The rated capacitance of the first capacitor C1 is 100nF and the rated voltage is 50V. The introduction of the first capacitor C1 can play a role in filtering the probe output signal. The probe may be interfered by the external environment, such as electromagnetic interference or stray signals, and these interference signals will affect the voltage signal output by the probe. By introducing the capacitor C1, the high-frequency interference signal can be short-circuited, thereby reducing the impact on the normal signal and improving the stability and accuracy of the signal. In addition, the first capacitor C1 can also play a role in isolating DC, removing the DC component in the probe output signal, so that the signal input to the analog-to-digital converter is more in line with the requirements.
[0037] In one embodiment of the present invention, optionally, the variable-range probe detection circuit further includes a first resistor R2 and a second capacitor C2.
[0038] In the above embodiment, the first end of the first resistor R2 is connected to the digital-to-analog converter of the single-chip microcomputer, and the second end of the first resistor R2 is connected to the non-inverting input terminal of the operational amplifier. The first end of the second capacitor C2 is connected to the second end of the first resistor R2, and the second end of the second capacitor C2 is connected to the ground terminal. The rated capacitance of the second capacitor C1 is 100nF, the rated voltage is 50V, and the resistance of the first resistor is 2kΩ. The first resistor R2 and the second capacitor C2 together form an RC filter circuit. This circuit can help filter, reduce interference, and ensure the stability of the signal input to the operational amplifier. At the same time, it can also control the rise time and fall time of the signal to a certain extent, which helps to prevent the influence of rapidly changing signals on the system.
[0039] In an embodiment of the present invention, optionally, the variable-range probe detection circuit further includes a second resistor R3.
[0040] In the above embodiment, the first end of the second resistor R3 is connected to the output end of the operational amplifier, and the second end of the second resistor R3 is connected to the base of the PNP transistor. The resistance value of the second resistor is 100 kΩ. The second resistor R3 is connected to the output end of the operational amplifier and the base of the PNP transistor to form a feedback circuit. By adjusting the resistance value of the second resistor R3, the amplification factor of the operational amplifier to the input signal can be controlled, so that the output signal can better adapt to different measurement ranges.
[0041] In one embodiment of the utility model, the single chip microcomputer optionally includes a computing unit, which is used to receive a digital signal transmitted by an analog-to-digital converter ADC and calculate the conductivity according to the digital signal. The variable range probe detection circuit can accurately measure the conductivity in different ranges, thereby improving the flexibility and scope of application of the detection. And through the computing unit of the single chip microcomputer, digital data processing and calculation can be realized, thereby improving the accuracy and stability of the detection results.
[0042] On the other hand, an embodiment of the present invention provides an electronic device, comprising the above-mentioned variable-range probe detection circuit.
[0043] The above description is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure made using the contents of the specification and drawings of the present invention, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present invention.
Claims
1. A probe detection circuit with a variable range, characterized in that: The circuit comprises: a single chip microcomputer, an operational amplifier, a PNP type transistor, a probe and a first power supply terminal; The digital-to-analog converter of the single-chip microcomputer is connected to the non-inverting input terminal of the operational amplifier, a reference voltage is input to the operational amplifier, and the inverting input terminal of the operational amplifier is connected to the first power supply terminal; The base of the PNP transistor is connected to the output end of the operational amplifier, and the emitter of the PNP transistor is connected to the first power supply end; After the collector of the PNP transistor is connected to the positive electrode of the probe, it is connected to the analog-to-digital converter of the single-chip microcomputer. The probe outputs a voltage signal to the analog-to-digital converter to convert it into a digital signal and input it into the single-chip microcomputer.
2. The variable range probe detection circuit according to claim 1, characterized in that: The circuit further comprises: a feedback resistor; The first end of the feedback resistor is connected to the first power supply end; The second end of the feedback resistor is connected to the inverting input end of the operational amplifier and the emitter of the PNP transistor respectively.
3. The variable range probe detection circuit according to claim 1, characterized in that: The positive power supply terminal of the operational amplifier is connected to the second power supply terminal, and the negative power supply terminal of the operational amplifier is connected to the ground terminal.
4. The variable range probe detection circuit according to claim 1, characterized in that: The circuit further includes: a first capacitor; The first end of the first capacitor is connected to the second power supply end, and the second end of the first capacitor is connected to the ground end.
5. The variable range probe detection circuit according to claim 1, characterized in that: The circuit further includes: a first resistor and a second capacitor; The first end of the first resistor is connected to the digital-to-analog converter of the single-chip microcomputer, and the second end of the first resistor is connected to the non-inverting input end of the operational amplifier; The first end of the second capacitor is connected to the second end of the first resistor, and the second end of the second capacitor is connected to the ground.
6. The variable range probe detection circuit according to claim 1, characterized in that: The circuit further includes: a second resistor; The first end of the second resistor is connected to the output end of the operational amplifier; The second end of the second resistor is connected to the base of the PNP transistor.
7. The variable range probe detection circuit according to claim 1, characterized in that: The single chip microcomputer comprises: a calculation unit, which is used to receive the digital signal transmitted by the analog-to-digital converter and calculate the conductivity according to the digital signal.
8. An electronic device, characterized in that: A probe detection circuit with a variable range comprising the variable range probe detection circuit according to any one of claims 1 to 7.
