Real-time water quality detection system
By designing a real-time water quality detection system with integrated sensor technology, the problems of low efficiency and inability to monitor in real time in traditional water quality detection methods are solved, and timely and accurate monitoring and convenient maintenance of water quality parameters are achieved, reducing costs.
Patent Information
- Application Number
- CN202422545611.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2034-10-22
AI Technical Summary
Traditional manual water quality detection methods are costly, inefficient and cannot achieve real-time monitoring, making it difficult to meet the new requirements of modern society for water quality monitoring.
A real-time water quality detection system was designed, integrating the main control module, temperature detection module, pH detection module, turbidity detection module, conductivity detection module and display module, and using advanced sensor technology and data acquisition system for real-time monitoring, and The buzzer alarm reminds water quality changes, and adopts a modular design for easy maintenance.
It realizes timely and accurate monitoring of water quality parameters, reduces human error, is stable and cheap to operate, can collect and process data within seconds, simplifies equipment maintenance, and provides intuitive real-time data display.
Smart Images

Figure CN222105460U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to a real-time water quality detection system, belonging to the field of detection equipment. Background Art
[0002] With the rapid advancement of industrialization and urbanization, water pollution is becoming increasingly serious, posing a huge threat to the ecological environment and human health. Traditional manual water quality testing methods have encountered bottlenecks due to high costs, low efficiency, and the inability to detect in real time. Therefore, the design and application of automated water quality testing instruments has become an important way to solve this problem.
[0003] An important task in controlling water pollution is to conduct water quality testing. Specifically, it is to monitor many parameters in the water resources environment to achieve timely, accurate and comprehensive feedback on the current water quality status, so as to achieve the purpose of preventing and controlling water pollution.
[0004] Traditional water quality testing methods mainly rely on manual sampling and laboratory analysis. Although these methods can provide accurate data to a certain extent, they have significant limitations. First, manual sampling methods require a lot of manpower and material resources, are costly and inefficient. Second, the sampling frequency and time are limited, and real-time monitoring cannot be achieved, which easily misses the key moments of water quality changes. These limitations make it difficult for traditional methods to meet the new requirements of modern society for water quality monitoring. Utility Model Content
[0005] The purpose of the utility model is to overcome the shortcomings and deficiencies of the prior art and to provide a real-time water quality detection system.
[0006] A real-time water quality detection system includes a main control module, a power module, a temperature detection module, a pH detection module, a turbidity detection module, a conductivity detection module, a display module, a keyboard module and a buzzer circuit, wherein the main control module is connected to the power module. The system integrates advanced sensor technology and data acquisition system, and mainly monitors and displays four physical parameters of the water quality system, namely, temperature, pH value, conductivity and turbidity in real time. When the measured value exceeds the threshold, the system will use a buzzer alarm to remind the water quality change. After testing, the system is stable in operation, easy to operate, and low in cost, and can effectively reduce human errors. A variety of high-precision sensors are integrated, and through real-time monitoring, these data can be collected and processed within seconds to ensure timely response to water quality changes. The water quality detector adopts a modular design, and each functional module can be replaced and upgraded independently, which greatly simplifies the maintenance of the equipment. At the same time, the system is equipped with a display screen, which can intuitively display the real-time data and analysis results of water quality parameters.
[0007] Preferably, the main control module is a single-chip microcomputer minimum system, which uses an STC89C52RC single-chip microcomputer as the control core, and also includes a clock circuit, a reset circuit, and a power supply circuit. The single-chip microcomputer minimum system has a timing circuit, a reset circuit, and control system data collection, processing, and display functions. The STC89C52RC single-chip microcomputer, as the control core, provides a highly integrated solution that can realize functions such as data processing, logic control, and timing. The use of a single-chip microcomputer makes the system design simple, reduces the demand for external devices, and reduces the overall cost.
[0008] Furthermore, the temperature detection module is composed of a DS18B20 temperature sensor and a 4.7K resistor, and the temperature detection module is connected to the 3.2 port on the STC89C52RC microcontroller for communication. The DS18B20 temperature sensor returns a 16-bit binary number, representing the temperature value detected at the moment, the first 5 bits of data represent the positive and negative values of the temperature value, and the following 11 bits of data represent the absolute value of the value. After converting the returned binary value to a decimal value, multiply it by 0.0625 to obtain the temperature value at this moment.
[0009] Furthermore, the pH detection module performs A / D conversion through an A / D acquisition chip to detect the real-time pH value of the environment. The A / D acquisition chip uses an ADC0832 chip, and the I / O port of the pH detection module is connected to the P1.5 port on the STC89C52RC single-chip computer. Using the ADC0832 chip for A / D conversion can provide higher conversion accuracy. This is particularly important for parameters such as pH values that require high-precision measurement to ensure the accuracy of the test results.
[0010] Further, the turbidity detection module includes a turbidity sensor module and an A / D acquisition chip. The turbidity detection module performs A / D conversion on the data collected by the turbidity sensor module through the A / D acquisition chip to detect the real-time turbidity of the environment. The A / D acquisition chip uses an ADC0832 chip. The I / O port of the turbidity detection module is connected to P1.2 on the STC89C52RC single-chip computer. The turbidity detection module includes an analog output interface AO and a digital output interface DO, and the digital output interface DO is suspended. The current signal output by the turbidity sensor is converted into a voltage signal within 0-5V, and then the voltage analog quantity is sampled through the A / D acquisition chip ADC0832 to perform data conversion processing.
[0011] Preferably, the conductivity detection module includes a TDS probe and a TDS sensor module for detecting the voltage and current between electrodes. The TDS sensor module is connected to the TDS probe via a 2PinXH-2.54 connector and is extended with a DS18B20 temperature sensor interface. The TDS sensor module performs A / D conversion via an A / D acquisition chip in the turbidity detection module. The integration of the DS18B20 temperature sensor allows real-time acquisition of temperature data of the working environment, and the conductivity measurement result can be automatically temperature compensated, thereby improving the accuracy and reliability of the measurement result.
[0012] Preferably, the display module includes an LCD1602 liquid crystal display screen, a 10K resistor and an adjustable resistor, and the display module is used to display ambient temperature, turbidity, pH value and conductivity information. In general, the screen displays time and ambient temperature, and when the upper and lower limits are set, the screen will display the corresponding interface.
[0013] Furthermore, the buzzer circuit is composed of an electromagnetic buzzer, a transistor and a 2.2K resistor, and is controlled by the P1.1 port on the STC89C52RC single-chip computer. When the P2.0 port sends a low level, the transistor is turned on and the buzzer works; when the P2.0 port sends a high level, the transistor is turned off and the buzzer does not work. After the electromagnetic buzzer is powered on, the audio signal current generated by the oscillator passes through the electromagnetic coil, causing the electromagnetic coil to generate a magnetic field, and the vibrating diaphragm vibrates periodically to make sounds under the interaction between the electromagnetic coil and the magnet. By changing the input voltage, frequency or trigger signal, the sound frequency and intensity of the buzzer can be controlled to achieve different tones and volume effects.
[0014] The beneficial effects of the utility model are as follows: the system integrates advanced sensor technology and data acquisition system, mainly for real-time monitoring and display of four physical parameters of the water quality system, namely temperature, pH value, conductivity, turbidity, etc. When the measured value exceeds the threshold, the system will use a buzzer alarm to remind the water quality change. After testing, the system is stable in operation, easy to operate, and low in cost, which can effectively reduce human errors. It integrates a variety of high-precision sensors, and through real-time monitoring, these data can be collected and processed within seconds to ensure timely response to water quality changes. The water quality detector adopts a modular design, and each functional module can be replaced and upgraded independently, which greatly simplifies the maintenance of the equipment. At the same time, the system is equipped with a display screen, which can intuitively display the real-time data and analysis results of water quality parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the utility model.
[0016] Figure 1 Design a block diagram for the overall hardware design;
[0017] Figure 2 Design flow charts for system software;
[0018] Figure 3 It is the minimum system of single chip microcomputer;
[0019] Figure 4 This is the schematic diagram of the temperature detection module;
[0020] Figure 5 This is the schematic diagram of the pH detection module;
[0021] Figure 6 This is the principle diagram of turbidity and conductivity testing;
[0022] Figure 7 This is the schematic diagram of the buzzer circuit;
[0023] Figure 8 is the circuit schematic;
[0024] Fig. 9 This is the structural diagram of the turbidity sensor probe;
[0025] Fig.10 Schematic diagram of the pH sensor structure. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the utility model clearer, the utility model will be further described in detail below with reference to the accompanying drawings.
[0027] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0028] The directions and positions mentioned in the present invention, such as "upper", "lower", "front", "back", "left", "right", "inside", "outside", "top", "bottom", "side", etc., are only for reference to the directions or positions of the drawings. Therefore, the directions and positions used are used to explain and understand the present invention, but not to limit the scope of protection of the present invention.
[0029] like Figure 1-10 As shown, it is an embodiment of a real-time water quality detection system of the utility model, including a main control module, a power module, a temperature detection module, a pH detection module, a turbidity detection module, a conductivity detection module, a display module, a keyboard module and a buzzer circuit, and the main control module is connected to the power module. This system integrates advanced sensor technology and data acquisition system, mainly for the temperature, pH value, conductivity, turbidity and other four physical parameters of the water quality system for real-time monitoring and display, when the measured value exceeds the threshold, the system will remind the water quality change through the buzzer alarm. After testing, the system runs stably, is easy to operate, and has low cost, which can effectively reduce human errors. A variety of high-precision sensors are integrated, and through real-time monitoring, these data can be collected and processed within seconds to ensure timely response to water quality changes. The water quality detector adopts a modular design, and each functional module can be replaced and upgraded independently, which greatly simplifies the maintenance of the equipment. At the same time, the system is equipped with a display screen, which can intuitively display the real-time data and analysis results of water quality parameters.
[0030] The main control module is a single-chip minimum system, which uses the STC89C52RC single-chip microcomputer as the control core, and also includes a clock circuit, a reset circuit, and a power supply circuit. The single-chip minimum system has a timing circuit, a reset circuit, and control system data collection, processing, and display functions. The STC89C52RC single-chip microcomputer as the control core provides a highly integrated solution that can realize functions such as data processing, logic control, and timing. The use of a single-chip microcomputer makes the system design simple, reduces the demand for external devices, and reduces the overall cost.
[0031] After power-on, each module of the system will be initialized. After completion, the corresponding function will be called to make the corresponding sensor work. Except for the temperature sensor, other sensors need to perform data conversion processing on the analog quantity sampling through the A / D conversion chip ADC0832. The collected data will be processed by the microcontroller and displayed on the LCD screen in real time, and compared with the alarm value read from the EEPROM. If any value exceeds the set threshold, the microcontroller will control the buzzer to enable and issue a warning sound. The preset values of temperature, pH, turbidity, and conductivity can be selected, viewed, and freely changed using three buttons. If changed, they will be rewritten to the EEPROM of the microcontroller for storage.
[0032] The temperature detection module is composed of a DS18B20 temperature sensor and a 4.7K resistor. The temperature detection module is connected to the 3.2 port on the STC89C52RC microcontroller for communication. The DS18B20 temperature sensor returns a 16-bit binary number, representing the temperature value detected at the moment. The first 5 bits represent the positive and negative values of the temperature value, and the following 11 bits represent the absolute value of the value. After converting the returned binary value to a decimal value, multiply it by 0.0625 to obtain the temperature value at the moment.
[0033] The DS18B20 temperature sensor is essentially a thermistor with a waterproof shell. When the temperature changes, the resistance value inside the sensor changes accordingly. By measuring the corresponding resistance value, the water environment temperature can be calculated. Its specific temperature measurement range is -55℃ to +125℃, and the error does not exceed 0.4°C in the range of -10℃ to +85℃, which is sufficient to meet the needs of water temperature detection.
[0034] The pH detection module performs A / D conversion through an A / D acquisition chip to detect the real-time pH value of the environment. The A / D acquisition chip uses an ADC0832 chip, and the I / O port of the pH detection module is connected to the P1.5 port on the STC89C52RC single-chip computer. Using the ADC0832 chip for A / D conversion can provide higher conversion accuracy. This is especially important for parameters such as pH values that require high-precision measurement to ensure the accuracy of the test results.
[0035] The voltage value is linearly correlated with pH with a coefficient of -5.9647. The pH value is directly displayed through the program and can be adjusted to zero (pH=7) using a rheostat.
[0036] The pH sensor uses the chemical reaction between the composite electrode and the liquid to be tested to measure the pH value of the liquid. Its core components are the glass membrane electrode and the reference electrode. The glass membrane electrode is made of special glass and is filled with a 3 mol / L KCl solution. The reference electrode provides a stable voltage as a reference to ensure the accuracy and stability of the measurement. After the pH composite electrode is immersed in the solution to be tested, the surface of the glass membrane electrode will react chemically with the hydrogen ions in the solution, generating a potential difference with the reference electrode. As long as the potential difference between the two electrodes is measured and then converted through an algorithm, the pH value of the solution can be obtained.
[0037] The turbidity detection module includes a turbidity sensor module and an A / D acquisition chip. The turbidity detection module performs A / D conversion on the data collected by the turbidity sensor module through the A / D acquisition chip, which is used to detect the real-time turbidity of the environment. The A / D acquisition chip adopts an ADC0832 chip. The I / O port of the turbidity detection module is connected to P1.2 on the STC89C52RC single-chip microcomputer. The turbidity detection module includes an analog output interface AO and a digital output interface DO, and the digital output interface DO is suspended. The current signal output by the turbidity sensor is converted into a voltage signal within 0-5V, and then the voltage analog quantity is sampled by the A / D acquisition chip ADC0832 for data conversion processing. The single-chip microcomputer receives the signal sent by ADC0832, obtains the voltage value corresponding to the current liquid turbidity, and converts it into a turbidity value through software processing, which is displayed in real time on a 1602 LCD screen. When the measured turbidity value exceeds the maximum threshold set by the program, the single-chip microcomputer controls the buzzer to emit a warning sound.
[0038] The turbidity sensor uses optical principles to comprehensively judge the turbidity situation based on the transmittance and scattering rate of the solution. The lower part of the probe of the turbidity sensor is a cylindrical joint with a gap in the middle of the cylindrical joint. The infrared light source and the photoelectric collection device are built into the cylindrical joint. After the sensor is placed in the liquid to be tested, the liquid to be tested fills the gap, and the photoelectric device measures the liquid to be tested in the gap. When infrared light passes through a certain amount of water, the amount of light transmitted depends on the degree of turbidity of the water. The dirtier the water, the less light is transmitted. The light receiving end converts the intensity of the transmitted light into the corresponding current size. The more light is transmitted, the larger the current is. Conversely, the less light is transmitted, the smaller the current is.
[0039] The turbidity and module output voltage roughly satisfy the linear relationship: TU=-865.68×U+K. Due to the poor accuracy of turbidity, the turbidity level can be determined by manually reading the data signal value.
[0040] The conductivity detection module includes a TDS probe and a TDS sensor module for detecting the voltage and current between electrodes. The TDS sensor module is connected to the TDS probe via a 2PinXH-2.54 connector and is extended with a DS18B20 temperature sensor interface. The TDS sensor module performs A / D conversion via the A / D acquisition chip in the turbidity detection module. The integration of the DS18B20 temperature sensor allows real-time acquisition of temperature data of the working environment, and the conductivity measurement result can be automatically temperature compensated, thereby improving the accuracy and reliability of the measurement result.
[0041] The conductivity module uses the TDS probe to measure the voltage and current between electrodes and deduce the conductivity. The basic working principle of the TDS probe is to apply an alternating voltage to the two test electrodes on the probe, so that a small current is generated in the test solution, and then the conductivity of the water body is calculated through the voltage and current. The conductivity of the water body is expressed by the TDS value, and the relevant formula is as follows (where K is the correction constant, measured by a standard TDS detector).
[0042] TDS =(66.71*V³–127.93*V²+428.7*V) * K
[0043] The display module includes an LCD1602 liquid crystal display, a 10K resistor and an adjustable resistor. The display module is used to display ambient temperature, turbidity, pH value and conductivity information. In general, the screen displays time and ambient temperature. When entering the upper and lower limit settings, the screen will display the corresponding interface.
[0044] The buzzer circuit is composed of an electromagnetic buzzer, a transistor and a 2.2K resistor, and is controlled by the P1.1 port on the STC89C52RC microcontroller. When the P2.0 port sends a low level, the transistor is turned on and the buzzer works; when the P2.0 port sends a high level, the transistor is turned off and the buzzer does not work. After the electromagnetic buzzer is powered on, the audio signal current generated by the oscillator passes through the electromagnetic coil, causing the electromagnetic coil to generate a magnetic field, and the vibrating diaphragm vibrates periodically to make sounds under the interaction between the electromagnetic coil and the magnet. By changing the input voltage, frequency or trigger signal, the sound frequency and intensity of the buzzer can be controlled to achieve different tones and volume effects.
[0045] The test indicators of this application include the four parameters of pH, conductivity, turbidity, and temperature in the conventional parameters of water quality monitoring, which is conducive to the comprehensive evaluation of water quality from multiple aspects and avoids single and one-sided judgment. Traditional water quality testing instruments are relatively bulky and inconvenient to use due to their large size. The water quality testing instrument designed in this article is small in size and light in weight, and is a portable instrument. The system is powered by 5V voltage, has low energy consumption, strong endurance, and is easy to carry outdoors. The system interface is simple, intuitive and clear. The method of setting parameter values through buttons is very convenient, and the response is fast and the detection time is short. The measured data is displayed on the screen in real time, which is convenient for users to obtain real-time data. It has certain reference significance for future water quality system detection, helping to effectively manage and reduce water pollution, and improving the quality of life of residents.
[0046] The above disclosure is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope covered by the present invention.
[0047] Although the present invention has been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the specific embodiments disclosed. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A real-time water quality detection system, characterized in that: It comprises a main control module, a power module, a temperature detection module, a pH detection module, a turbidity detection module, a conductivity detection module, a display module, a keyboard module and a buzzer circuit, wherein the main control module is connected to the power module.
2. The real-time water quality detection system according to claim 1, characterized in that: The main control module is a single-chip microcomputer minimum system, which uses the STC89C52RC single-chip microcomputer as the control core and also includes a clock circuit, a reset circuit, and a power supply circuit. The single-chip microcomputer minimum system has a timing circuit, a reset circuit, and control system data collection, processing, and display functions.
3. The real-time water quality detection system according to claim 2, characterized in that: The temperature detection module is composed of a DS18B20 temperature sensor and a 4.7K resistor. The temperature detection module is connected to the 3.2 port on the STC89C52RC microcontroller for communication.
4. The real-time water quality detection system according to claim 2, characterized in that: The pH detection module performs A / D conversion through an A / D acquisition chip to detect the real-time pH value of the environment. The A / D acquisition chip adopts an ADC0832 chip. The I / O port of the pH detection module is connected to the P1.5 port on the STC89C52RC microcontroller.
5. The real-time water quality detection system according to claim 2, characterized in that: The turbidity detection module includes a turbidity sensor module and an A / D acquisition chip. The turbidity detection module performs A / D conversion on the data collected by the turbidity sensor module through the A / D acquisition chip to detect the real-time turbidity of the environment. The A / D acquisition chip adopts an ADC0832 chip. The I / O port of the turbidity detection module is connected to P1.2 on the STC89C52RC single-chip computer. The turbidity detection module includes an analog output interface AO and a digital output interface DO, and the digital output interface DO is suspended.
6. The real-time water quality detection system according to claim 1, characterized in that: The conductivity detection module includes a TDS probe and a TDS sensor module for detecting the voltage and current between electrodes. The TDS sensor module is connected to the TDS probe through a 2PinXH-2.54 connector and is extended with a DS18B20 temperature sensor interface. The TDS sensor module performs A / D conversion through an A / D acquisition chip in the turbidity detection module.
7. The real-time water quality detection system according to claim 1, characterized in that: The display module includes an LCD1602 liquid crystal display screen, a 10K resistor and an adjustable resistor, and is used to display ambient temperature, turbidity, pH value and conductivity information.
8. The real-time water quality detection system according to claim 2, characterized in that: The buzzer circuit is composed of an electromagnetic buzzer, a transistor and a 2.2K resistor, and is controlled by the P1.1 port on the STC89C52RC microcontroller. When the P2.0 port sends a low level, the transistor is turned on and the buzzer works; when the P2.0 port sends a high level, the transistor is turned off and the buzzer does not work.
Citation Information
Cited By
Secondary water supply quality remote monitoring system
CN120971524A
