WO2018068185A1 - Water quality detection device and detection method therefor - Google Patents

Water quality detection device and detection method therefor Download PDF

Info

Publication number
WO2018068185A1
WO2018068185A1 PCT/CN2016/101698 CN2016101698W WO2018068185A1 WO 2018068185 A1 WO2018068185 A1 WO 2018068185A1 CN 2016101698 W CN2016101698 W CN 2016101698W WO 2018068185 A1 WO2018068185 A1 WO 2018068185A1
Authority
WO
WIPO (PCT)
Prior art keywords
mcu
absorbance
spectrum
light
water sample
Prior art date
Application number
PCT/CN2016/101698
Other languages
French (fr)
Chinese (zh)
Inventor
付庆波
孙东
董旭毅
Original Assignee
深圳市比特原子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市比特原子科技有限公司 filed Critical 深圳市比特原子科技有限公司
Priority to PCT/CN2016/101698 priority Critical patent/WO2018068185A1/en
Publication of WO2018068185A1 publication Critical patent/WO2018068185A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry

Definitions

  • the invention belongs to the technical field of multi-spectral detection, and particularly relates to a water quality detecting device and a detecting method thereof.
  • Water is the source of life. As the problem of water pollution becomes more and more serious, people's attention to daily drinking water safety is gradually increasing. As a result, more and more homes have installed home reverse osmosis water purifiers. However, there is currently no effective method for evaluating the purification effect of water purifiers. This poses a problem in that the consumer cannot effectively evaluate the purification effect of the water purifier and cannot accurately determine the time required to replace the filter element.
  • TDS Total dissolved Solids, dissolved total solids
  • the TDS indicator reflects the concentration of ions ionized in water, and the number of these anions and cations does not directly reflect the quality of water.
  • the TDS of pure water is lower than that of mineral water, but it does not mean that the water quality of mineral water is Poor.
  • TOC total organic carbon
  • COD chemical oxygen demand
  • UV-Vis spectroscopy for water quality testing is mainly for TOC, COD, TURB (turbidity) And NO3-N
  • UV-visible spectroscopy for water quality testing is mainly for TOC, COD, TURB (turbidity) And NO3-N
  • the water quality parameters are monitored, and according to the specific detection methods, the parameters of the UV-visible spectrum water quality analysis include continuous spectrum analysis, multi-wavelength analysis, dual-wavelength analysis and single-wavelength analysis.
  • ultraviolet spectroscopy method can achieve fast, multi-parameter water quality testing; however, the method is costly (tens of thousands of yuan), large in size, high in power consumption, and the equipment needs to be strictly corrected before being shipped. It cannot be installed in a household water purifier. .
  • the technical problem to be solved by the present invention is to provide a water quality detecting device and a detecting method thereof, aiming to provide a water pipe which can be conveniently connected with a water purifier, and can directly detect and analyze the water purifying device for purifying drinking water in real time. Degree of water quality testing device.
  • the invention provides a water quality detecting device, comprising: a plurality of monochromatic LED light sources, a photodetector, an MCU and a temperature sensor corresponding to each of the monochromatic LED light sources; the photodetector and the temperature sensor Connected to the MCU respectively, the MCU is connected to the plurality of monochromatic LED light sources;
  • the photodetector is configured to detect a corresponding original light intensity signal emitted by each of the single-color LED light sources and transmitted through the detected water sample, and send the original light intensity signal to the MCU;
  • the temperature sensor is configured to detect a temperature of the detected water sample, and send the temperature of the detected water sample to the MCU;
  • the MCU is configured to process the received raw light intensity signal and the temperature of the detected water sample to obtain a water quality parameter detection index of the detected water sample.
  • the plurality of monochromatic LED light sources comprise an infrared light LED light source, a visible light LED light source and an ultraviolet light LED light source, the photodetector comprising a first silicon based photodiode, a second silicon based photodiode and a gallium nitride material And a photodiode of the process; the infrared light LED light source, the visible light LED light source and the ultraviolet light LED light source and the first silicon-based photodiode, the second silicon-based photodiode, and a gallium nitride material and a photodiode of the process
  • an original light intensity signal for sensing a corresponding monochrome LED light source the first silicon-based photodiode and the second silicon-based photodiode are used for sensing a light intensity signal of a visible light to a near-infrared wavelength range,
  • the gallium nitride material and process photodiode are used to sense light intensity signals
  • the water quality detecting device further includes a current voltage conversion circuit, a filter amplification circuit, and an analog to digital conversion circuit, wherein the current voltage conversion circuit is connected to the photodetector at one end, and the filter amplifier circuit is connected to the other end.
  • One end of the analog-to-digital conversion circuit is connected to the filter amplifying circuit, and the other end is connected to the MCU;
  • the current voltage conversion circuit is configured to convert a photocurrent signal detected by the photodetector into a voltage signal
  • the filter amplifying circuit is configured to perform low pass filtering and amplification processing on the voltage signal, the analog to digital conversion
  • the circuit is configured to perform analog-to-digital conversion of the processed signal to obtain an original infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum, and send the signal to the MCU.
  • the water quality detecting device further includes: a constant current source circuit and a boosting circuit, wherein one end of the constant current source circuit is connected to the plurality of monochromatic LED light sources, and the other end is connected to the MCU, and the boosting circuit Connected to the constant current source circuit;
  • the constant current source circuit is configured to provide a specific constant current power source for the plurality of monochromatic LED light sources according to an instruction of the MCU, wherein the constant current power source is used to drive the plurality of monochromatic LED light sources to operate;
  • a circuit is used to provide the voltage required to drive the plurality of monochromatic LED sources.
  • the water quality detecting device further includes: a serial communication interface, the serial communication interface is connected to the MCU, and configured to receive a control command sent by the outside world to the MCU and send a detection result of the MCU.
  • the original light intensity signal includes an acquired infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum transmitted through the current water sample
  • the water quality parameter detection indicators include turbidity, chromaticity, TOC, COD, and temperature.
  • I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the current water sample
  • I0 is Pre-stored background spectrum corresponding to each channel; temperature correction of the infrared light absorbance by using the temperature of the detected water sample to obtain corrected infrared light absorbance; according to the corrected infrared light absorbance, combined with the pre-calibrated turbidity standard Working curve, calculating the turbidity of the detected water sample; correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, the corrected external light absorbance, and combining the pre-calibrated chromaticity a standard working curve, calculating the chromaticity of the detected water sample; correcting the ultraviolet light absorbance by using the corrected infrared light absorbance, obtaining the corrected ultraviolet light absorbance, and adjusting the ultraviolet light absorbance, combined
  • the invention also provides a detection method of the above water quality detecting device, comprising:
  • Step S1 the photodetector detects the original light intensity signal emitted by each of the corresponding single-color LED light sources and transmitted through the detected water sample, and transmits the original light intensity signal to the MCU;
  • Step S2 the MCU receives the original light intensity signal sent by the photodetector, and receives the temperature of the detected water sample detected by the temperature sensor;
  • Step S3 the MCU obtains a water quality parameter detection index of the detected water sample according to the original light intensity signal and the temperature of the detected water sample, and combined with a correlation algorithm.
  • the step S1 is specifically: the photodetector detects the original light intensity signal emitted by the corresponding infrared light LED light source, the visible light LED light source and the ultraviolet light LED light source and transmitted through the detected water sample, and passes through the After processing by the voltage conversion circuit, the filter amplification circuit and the analog-to-digital conversion circuit, the original infrared light spectrum, visible light spectrum and ultraviolet light spectrum are obtained, and the original infrared light spectrum, visible light spectrum and ultraviolet light spectrum are sent to the MCU .
  • step S1 the method further includes: step S0, correcting and calibrating the water quality detecting device;
  • the step of correcting is to set a target output voltage value of 2400 mV for each channel composed of each monochromatic LED light source and its corresponding photodetector, and set a default operating current of 20 mA for each channel, the detected water
  • the pure water for configuring the standard solution is used, and the temperature of the purified water is 25 degrees Celsius; the voltage value under the default working current of each channel is collected, and the voltage values of the collected channels and the target output voltage values are respectively compared. Size; by changing the drive current value until the voltage value of the channel is closest to the target output voltage value; setting the current drive current value to the new operating current of the channel; collecting the new operating current for each channel a voltage value as a background spectrum of the channel, and storing the background spectrum in the MCU;
  • the voltage value of the default operating current of each channel is the actual AD sampling voltage of each channel minus the dark voltage value of the monochromatic LED light source corresponding to the channel;
  • the step of calibrating is to respectively configure four standard solutions of different concentrations of the concentration in the target detection range, and separately collect the original spectral values of the four standard solutions, and obtain corresponding four standard solutions according to the original spectral values.
  • the standard working curve of the TOC, the standard working curve of the COD, the standard working curve of the chromaticity, and the standard working curve of the turbidity are stored in the flash of the MCU.
  • step S3 specifically includes:
  • I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the currently tested water sample, and I0 is the background spectrum corresponding to each channel;
  • Step S32 performing temperature correction on the infrared light absorbance by using the temperature of the detected water sample to obtain the corrected infrared light absorbance
  • Step S33 calculating the turbidity of the detected water sample according to the corrected infrared light absorbance and combining the standard working curve of the turbidity;
  • Step S34 correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, and calculating the detected water sample by using the corrected external light absorbance and combining the standard working curve of the chroma.
  • the corrected ultraviolet light absorbance is obtained, and the corrected ultraviolet light absorbance is combined with the TOC standard working curve and the COD standard working curve to calculate the Detect the TOC and COD of the water sample.
  • the invention has the beneficial effects that the water quality detecting device and the detecting method thereof provided by the invention adopts a multi-spectral analysis method, and can quickly and automatically detect multiple parameter indexes of water online, thereby analyzing The water quality solves the problems of long time of inspection and high cost of traditional methods.
  • the water quality detecting device uses a low-cost monochrome LED as a light source, and adopts multi-wavelength spectroscopy technology combined with the above-mentioned calibration method to eliminate the detection precision caused by poor LED consistency, thereby realizing the low cost of the device manufacturing; and the water quality
  • the detection device can be conveniently connected with the water pipeline of the water purifier, realizing on-line online detection and analysis of the purifying degree of the water purifier for drinking water, and providing each household with a drinking water safety guarantee.
  • FIG. 1 is a schematic diagram of a water quality detecting device according to an embodiment of the present invention.
  • FIG. 2 is a flow chart showing a method of detecting the water quality detecting device provided in FIG. 1.
  • the main implementation idea of the present invention is: correcting and calibrating the water quality detecting device before detecting by using the water quality detecting device; and then detecting the water quality, specifically detecting the original light through the photodetector and the temperature sensor when detecting the water quality
  • the strong signal and the water temperature of the detected water sample, and then the MCU analyzes the original light intensity signal and the water temperature according to the detected algorithm to obtain the TOC, COD, chromaticity and turbidity detection results of the detected water sample;
  • the test results are sent out.
  • the water quality detecting device is first introduced as shown in FIG. 1 , and includes: a plurality of monochrome LED light sources 1 , a photodetector 2 , an MCU 3 , and a temperature sensor 4 corresponding to each of the single-color LED light sources; Photodetector 2 and said temperature sensor 4 are respectively connected to said MCU 3, said MCU 3 is connected to said plurality of monochromatic LED light sources 1; said photodetector 2 is for detecting each of said corresponding monochromatic LED light sources a raw light intensity signal emitted by the detected water sample and transmitted to the MCU 3; the temperature sensor 4 is configured to detect the temperature of the detected water sample, and The temperature of the detected water sample is sent to the MCU 3; the MCU 3 is configured to process the received raw light intensity signal and the temperature of the detected water sample to obtain a water quality parameter of the detected water sample. Detection Indicator.
  • the LED light source circuit is in the form of a multi-wavelength combined LED, which is composed of LED light sources of different wavelengths such as deep ultraviolet, visible, near infrared, and infrared.
  • a plurality of monochromatic LED light sources 1 are used to form an LED light source circuit.
  • the plurality of monochromatic LED light sources 1 include an infrared light LED light source, a visible light LED light source, and an ultraviolet light LED light source.
  • LED light sources of different wavelengths can be added according to the needs of function expansion; in addition, laser diodes can be used instead of LED light sources to form laser light sources with better monochromatic performance to meet the detection of other water quality parameters.
  • the photodetector uses two different semiconductor materials and process technologies, including a conventional first silicon-based photodiode, a second silicon-based photodiode, and a novel gallium nitride material and a photodiode of the process.
  • other photodetector components can be used for subsequent function expansion, including photodetectors such as infrared detectors, pyroelectric sensors, infrared thermopiles, CCDs, and CMOS image sensors.
  • the first silicon-based photodiode and the second silicon-based photodiode are used to sense a light intensity signal of a visible to near-infrared wavelength, and the gallium nitride material and the photodiode of the process are used for sensing The light intensity signal of the ultraviolet to deep ultraviolet range wavelength; in the present invention, the first silicon-based photodiode is used to sense the original light intensity signal emitted by the infrared light LED light source, and the second silicon-based photodiode is used The raw light intensity signal emitted by the visible light LED light source is sensed, and the gallium nitride material and the photodiode of the process are used to sense the original light intensity signal emitted by the ultraviolet light LED light source.
  • the water quality detecting device further includes: a current voltage conversion circuit 5, a filter amplifying circuit 6 and an analog to digital conversion circuit 7, one end of the current voltage conversion circuit 5 is connected to the photodetector 2, and the other end is
  • the filter amplifying circuit 6 is connected, one end of the analog-to-digital conversion circuit 7 is connected to the filter amplifying circuit 6, and the other end is connected to the MCU 3;
  • the current-voltage converting circuit 5 is used to detect the photodetector 2
  • the photocurrent signal is converted into a voltage signal required by the back-end analog-to-digital conversion circuit 7;
  • the filter amplifying circuit 6 is configured to low-pass filter and amplify the voltage signal, and further process the analog signal to satisfy noise and
  • the amplitude conversion circuit 6 is configured to perform analog-to-digital conversion on the processed signal to obtain an original infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum, and send the same to the MCU 3.
  • the water quality detecting device further includes: a constant current source circuit 8 and a boosting circuit 9, the one end of the constant current source circuit 8 is connected to the plurality of monochromatic LED light sources 1, and the other end is connected to the MCU3.
  • the booster circuit 9 is connected to the constant current source circuit 8.
  • the constant current source circuit 8 is configured to provide a stable constant current power source for driving the operation of the plurality of monochromatic LED light sources 1 according to an instruction of the MCU 3. Due to the difference of the detection parameters and the requirements of the correction algorithm, the current requirement for driving the plurality of monochromatic LED light sources 1 is controllable, so the part of the circuit is an adjustable constant current source circuit, and the output current can be programmed and adjusted by the MCU3. Moreover, the stepping accuracy of the current adjustment is high.
  • the system uses a DC 3-5V supply, and the boost circuit is used to boost the higher voltage required to drive the plurality of monochromatic LED sources 1.
  • This boost circuit can also be controlled to turn on and off through the MCU3 to achieve lower current consumption when the system is idle.
  • the water quality detecting device further includes: a serial communication interface 10, the serial communication interface 10 is connected to the MCU, and configured to receive a control command sent by the outside world to the MCU3 and send the detection result of the MCU3. .
  • the serial communication interface 10 is a serial communication interface 10 of the MCU 3, such as IIC/UART/SPI, etc., and communicates with an external circuit for receiving control commands and transmitting detection results.
  • the Bluetooth module can be used instead of the serial communication interface 10, and the mobile phone APP can realize real-time viewing of the detection result on the user's mobile phone; again, by sending water quality and user data (ie, the registration information of the user on the APP, Such as mobile phone number, regional positioning, operation time, etc. to the cloud back-end system, you can record the water quality of users in different regions, and then draw a water quality map to provide more derivative services.
  • water quality and user data ie, the registration information of the user on the APP, Such as mobile phone number, regional positioning, operation time, etc.
  • the temperature sensor 4 is implemented by using an NTC thermistor for detecting the temperature of the detected water sample and performing temperature correction on the absorbance of the infrared spectrum.
  • the MCU 3 undertakes processing of data, control of a circuit system, and collection of analog signals.
  • the preferred choice of the microcontroller is ARM
  • the 32-bit MCU of the Cortex-M0 core depending on the amount of resources required by the internal algorithm, it can also be replaced by an 8-bit 51 MCU or a higher series of MCUs such as the ARM Cortex-M4.
  • the processing process of the data is specifically:
  • the system adopts a low power consumption design.
  • the MCU 3 turns off the peripheral circuit by controlling the voltage switch of the boosting circuit 9 and the analog circuit part, that is, the current voltage conversion circuit 5, and enters the low power sleep mode. This mode allows the external control circuit to wake up the MCU3 through the serial communication interface.
  • Step S0 correcting and calibrating the water quality detecting device
  • the water quality detecting device needs to perform factory calibration (hardware correction) and calibration two processes before the user application.
  • the factory calibration is necessary for each instrument to be shipped from the factory.
  • a calibration process must be performed; the purpose of calibration is to ensure the maximum consistency of the batch hardware and reduce the original spectral data.
  • the difference between the stations improves the precision of detection in mass production quality control.
  • the purified water for the standard solution is added, and the water temperature of the purified water is room temperature (the room temperature is 25 degrees Celsius).
  • the target output voltage value of each channel composed of each monochromatic LED light source and its corresponding photodetector is set to 2400mV, and the default operating current of each channel is set to 20mA.
  • the specific correction step is to collect the voltage values under the default working current of each channel, and compare the voltage values of the collected channels and the target output voltage values respectively; increase or decrease the driving current value by the minimum step.
  • the voltage value of the default operating current of each channel is the actual AD sampling voltage of each channel minus the dark voltage value of the monochromatic LED light source corresponding to the channel;
  • the calibration process is performed in the laboratory after the water quality detecting device completes the factory calibration, and the purpose is to obtain a standard working curve of different detection parameters, and the work only needs to be performed once in the entire product development.
  • the obtained work curve parameters are solidified in the FLASH of the detector MCU by the firmware program.
  • the step of calibrating is specifically, for the four detection indexes of TOC, COD, chromaticity and turbidity, respectively configuring four standard solutions of different concentrations in the target detection range, and then separately collecting the four standard solutions.
  • the original spectral value is finally obtained, and the standard working curve of the TOC corresponding to the four standard solutions, the standard working curve of the COD, the standard working curve of the chromaticity, and the standard working curve of the turbidity are obtained and stored in the FLASH of the MCU.
  • Step S1 the photodetector detects the original light intensity signal emitted by each of the corresponding single-color LED light sources and transmitted through the detected water sample, and transmits the original light intensity signal to the MCU;
  • the MCU controls the constant current source circuit to provide a stable constant current power source for driving the plurality of monochromatic LED light sources; the plurality of monochromatic LED light sources emit a series of different wavelengths of infrared light, visible light, and ultraviolet light.
  • the photodetector corresponding to each monochromatic LED light source detects the original light intensity signal, and after processing by the current voltage conversion circuit, the filter amplification circuit and the analog to digital conversion circuit, the original infrared light is processed. Spectral, visible, and ultraviolet spectra are sent to the MCU.
  • Step S2 the MCU receives the original light intensity signal sent by the photodetector, and receives the temperature of the detected water sample detected by the temperature sensor;
  • Step S3 the MCU obtains a water quality parameter detection index of the detected water sample according to the original light intensity signal and the temperature of the detected water sample, and combined with a correlation algorithm.
  • the step S3 includes:
  • I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the currently tested water sample, and I0 is the background spectrum corresponding to each channel;
  • Step S32 performing temperature correction on the infrared light absorbance by using the temperature of the detected water sample to obtain the corrected infrared light absorbance
  • Step S33 calculating the turbidity of the detected water sample according to the corrected infrared light absorbance and combining the standard working curve of the turbidity;
  • Step S34 correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, and calculating the detected water sample by using the corrected external light absorbance and combining the standard working curve of the chroma.
  • the corrected ultraviolet light absorbance is obtained, and the corrected ultraviolet light absorbance is combined with the TOC standard working curve and the COD standard working curve to calculate the Detect the TOC and COD of the water sample.
  • the invention provides a water quality detecting device and a detecting method thereof, which adopts a multi-spectral analysis method, can quickly and accurately detect the TOC, COD, TURB (turbidity) and chromaticity parameter indexes of water, thereby analyzing water quality. It solves the problems of long-time inspection and high cost of the traditional method.
  • the water quality detecting device uses a low-cost monochrome LED as a light source, and adopts multi-wavelength spectroscopy technology to realize the low cost of the device, and the water quality detecting device can be conveniently connected with the water pipe of the water purifier, realizing online in real time. To detect and analyze the purifier's purpose of purifying drinking water, and provide each household with a safe drinking water.

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

A water quality detection device and detection method therefor, the water quality detection device comprising: a plurality of monochromatic LED light sources (1) as well as a photodetector (2), a microcontroller (MCU) (3) and a temperature sensor (4), all having a one-to-one correspondence to each monochromatic LED light source (1); the photodetector (2) and the temperature sensor (4) are respectively connected to the MCU (3), and the MCU (3) is connected to the plurality of monochromatic LED light sources (1); the photodetector (2) is used for detecting original light intensity signals emitted by each corresponding monochromatic LED light source (1) which pass through a detected water sample, and sending the original light intensity signals to the MCU (3); the temperature sensor (4) is used for detecting the temperature of a detected water sample and sending the temperature of the detected water sample to the MCU (3); the MCU (3) is used for processing the received original light intensity signals and the temperature of the detected water sample so as to obtain a water quality parameter detection index of the detected water sample.

Description

一种水质检测装置及其检测方法 Water quality detecting device and detecting method thereof 技术领域Technical field
本发明属于多光谱检测技术领域,尤其涉及一种水质检测装置及其检测方法。 The invention belongs to the technical field of multi-spectral detection, and particularly relates to a water quality detecting device and a detecting method thereof.
背景技术Background technique
水是生命之源,随着水污染问题的越来越严重,人们对日常的饮水安全关注度也逐渐升高。因此越来越多的家庭安装了家用反渗透式净水器。但是目前尚没有一种有效的方法评估净水器出水的净化效果。这带来一个问题是消费者无法有效评估净水器的净化效果,以及无法准确判断需要更换滤芯的时间。Water is the source of life. As the problem of water pollution becomes more and more serious, people's attention to daily drinking water safety is gradually increasing. As a result, more and more homes have installed home reverse osmosis water purifiers. However, there is currently no effective method for evaluating the purification effect of water purifiers. This poses a problem in that the consumer cannot effectively evaluate the purification effect of the water purifier and cannot accurately determine the time required to replace the filter element.
目前,某些高端定位的净水器加装了水质TDS(Total dissolved solids,溶解性总固体)检测器用来评估水质的净化效果。然而TDS指标反映的是水中电离的离子的浓度,而这些阴阳离子的多少并不能直接反映水质优劣,比如,纯净水的TDS相对于矿泉水是低的,但并不代表矿泉水的水质就是差的。 At present, some high-end positioning water purifiers are equipped with water quality TDS (Total dissolved Solids, dissolved total solids) detectors are used to assess the purification effect of water quality. However, the TDS indicator reflects the concentration of ions ionized in water, and the number of these anions and cations does not directly reflect the quality of water. For example, the TDS of pure water is lower than that of mineral water, but it does not mean that the water quality of mineral water is Poor.
而国家标准中对于水质检测有106项指标,其中有30多项指标是与水体的有机物污染相关。因此通过判断水质有机物指标去评价水质优劣更有现实意义。 TOC(总有机碳)和COD(化学需氧量)是反映水体有机物污染的两项重要指标。然而,过去在水质检测过程中采用电化学分析水质监测技术测量,这种方法周期长、测量复杂,所需化学原料多。There are 106 indicators for water quality testing in the national standards, of which more than 30 are related to organic pollution in water bodies. Therefore, it is more practical to judge the quality of water quality by judging the indicators of water quality organic matter. TOC (total organic carbon) and COD (chemical oxygen demand) are two important indicators that reflect organic pollution in water. However, in the past, the electrochemical water quality monitoring technology was used in the water quality testing process. This method has a long cycle, complicated measurement, and requires a large amount of chemical raw materials.
近几年来,紫外-可见光谱分析技术在水质监测中的应用,具有无二次污染、无需化学试剂及可实现多参数测量等众多优点。随着信息技术的进一步发展,水质光谱数据处理得到了进一步发展。就当前来说,紫外-可见光谱分析法进行水质检测主要是对TOC、COD、TURB(浊度) 及NO3-N 等水质参数进行监测,而根据具体检测方法的不同,紫外-可见光谱水质分析参数主要有连续光谱分析、多波长分析、双波长分析及单波长分析等方法。目前,有采用紫外光谱方法,能实现快速、多参数的水质检测;但是该方法成本高(几万元)、体积大、功耗高,设备出厂需要严格校正,不能安装在家用净水器中。In recent years, the application of UV-Vis spectroscopy in water quality monitoring has many advantages such as no secondary pollution, no chemical reagents and multi-parameter measurement. With the further development of information technology, water quality spectral data processing has been further developed. For the time being, UV-visible spectroscopy for water quality testing is mainly for TOC, COD, TURB (turbidity) And NO3-N The water quality parameters are monitored, and according to the specific detection methods, the parameters of the UV-visible spectrum water quality analysis include continuous spectrum analysis, multi-wavelength analysis, dual-wavelength analysis and single-wavelength analysis. At present, the use of ultraviolet spectroscopy method can achieve fast, multi-parameter water quality testing; however, the method is costly (tens of thousands of yuan), large in size, high in power consumption, and the equipment needs to be strictly corrected before being shipped. It cannot be installed in a household water purifier. .
技术问题technical problem
本发明所要解决的技术问题在于提供一种水质检测装置及其检测方法,旨在提供一种能方便地与净水器的水路管道连接,并能实时在线检测和分析净水器对饮用水净化程度的水质检测装置。 The technical problem to be solved by the present invention is to provide a water quality detecting device and a detecting method thereof, aiming to provide a water pipe which can be conveniently connected with a water purifier, and can directly detect and analyze the water purifying device for purifying drinking water in real time. Degree of water quality testing device.
技术解决方案Technical solution
本发明提供了一种水质检测装置,包括:若干单色LED光源、与每个所述单色LED光源一一对应的光电探测器、MCU、温度传感器;所述光电探测器和所述温度传感器分别与所述MCU连接,所述MCU与所述若干单色LED光源连接;The invention provides a water quality detecting device, comprising: a plurality of monochromatic LED light sources, a photodetector, an MCU and a temperature sensor corresponding to each of the monochromatic LED light sources; the photodetector and the temperature sensor Connected to the MCU respectively, the MCU is connected to the plurality of monochromatic LED light sources;
所述光电探测器用于探测对应的每个所述单色LED光源发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU;The photodetector is configured to detect a corresponding original light intensity signal emitted by each of the single-color LED light sources and transmitted through the detected water sample, and send the original light intensity signal to the MCU;
所述温度传感器用于检测所述被检测水样的温度,并将所述被检测水样的温度发送给所述MCU;The temperature sensor is configured to detect a temperature of the detected water sample, and send the temperature of the detected water sample to the MCU;
所述MCU用于对接收到的所述原始光强信号和所述被检测水样的温度进行处理,得到所述被检测水样的水质参数检测指标。The MCU is configured to process the received raw light intensity signal and the temperature of the detected water sample to obtain a water quality parameter detection index of the detected water sample.
进一步地,所述若干单色LED光源包括红外光LED光源、可见光LED光源和紫外光LED光源,所述光电探测器包括第一硅基光电二极管、第二硅基光电二极管和一个氮化镓材料及工艺的光电二极管;所述红外光LED光源、可见光LED光源和紫外光LED光源与所述第一硅基光电二极管、第二硅基光电二极管和一个氮化镓材料及工艺的光电二极管一一对应,用于感测对应的单色LED光源的原始光强信号;所述第一硅基光电二极管和所述第二硅基光电二极管用于感测可见光到近红外范围波长的光强信号,所述氮化镓材料及工艺的光电二极管用于感测紫外到深紫外范围波长的光强信号。Further, the plurality of monochromatic LED light sources comprise an infrared light LED light source, a visible light LED light source and an ultraviolet light LED light source, the photodetector comprising a first silicon based photodiode, a second silicon based photodiode and a gallium nitride material And a photodiode of the process; the infrared light LED light source, the visible light LED light source and the ultraviolet light LED light source and the first silicon-based photodiode, the second silicon-based photodiode, and a gallium nitride material and a photodiode of the process Correspondingly, an original light intensity signal for sensing a corresponding monochrome LED light source; the first silicon-based photodiode and the second silicon-based photodiode are used for sensing a light intensity signal of a visible light to a near-infrared wavelength range, The gallium nitride material and process photodiode are used to sense light intensity signals in the ultraviolet to deep ultraviolet range.
进一步地,所述水质检测装置还包括电流电压转换电路、滤波放大电路和模数转换电路,所述电流电压转换电路一端与所述光电探测器连接,另一端与所述滤波放大电路连接,所述模数转换电路一端与所述滤波放大电路连接,另一端与所述MCU连接;Further, the water quality detecting device further includes a current voltage conversion circuit, a filter amplification circuit, and an analog to digital conversion circuit, wherein the current voltage conversion circuit is connected to the photodetector at one end, and the filter amplifier circuit is connected to the other end. One end of the analog-to-digital conversion circuit is connected to the filter amplifying circuit, and the other end is connected to the MCU;
所述电流电压转换电路用于将所述光电探测器探测到的光电流信号转换为电压信号,所述滤波放大电路用于将所述电压信号进行低通滤波和放大处理,所述模数转换电路用于将处理后的信号进行模数转换得到原始的红外光光谱、可见光光谱和紫外光光谱,并发送给所述MCU。The current voltage conversion circuit is configured to convert a photocurrent signal detected by the photodetector into a voltage signal, and the filter amplifying circuit is configured to perform low pass filtering and amplification processing on the voltage signal, the analog to digital conversion The circuit is configured to perform analog-to-digital conversion of the processed signal to obtain an original infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum, and send the signal to the MCU.
进一步地,所述水质检测装置还包括:恒流源电路、升压电路,所述恒流源电路一端与所述若干单色LED光源连接,另一端与所述MCU连接,所述升压电路与所述恒流源电路连接;Further, the water quality detecting device further includes: a constant current source circuit and a boosting circuit, wherein one end of the constant current source circuit is connected to the plurality of monochromatic LED light sources, and the other end is connected to the MCU, and the boosting circuit Connected to the constant current source circuit;
所述恒流源电路用于根据所述MCU的指令为所述若干单色LED光源提供特定的恒流电源,所述恒流电源用于驱动所述若干单色LED光源工作;所述升压电路用于提供驱动所述若干单色LED光源所需要的电压。The constant current source circuit is configured to provide a specific constant current power source for the plurality of monochromatic LED light sources according to an instruction of the MCU, wherein the constant current power source is used to drive the plurality of monochromatic LED light sources to operate; A circuit is used to provide the voltage required to drive the plurality of monochromatic LED sources.
进一步地,所述水质检测装置还包括:串行通信接口,所述串行通信接口与所述MCU连接,用于接收外界发送的控制指令给所述MCU和发送所述MCU的检测结果。Further, the water quality detecting device further includes: a serial communication interface, the serial communication interface is connected to the MCU, and configured to receive a control command sent by the outside world to the MCU and send a detection result of the MCU.
进一步地,所述原始光强信号包括采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,所述水质参数检测指标包括浊度、色度、TOC、COD和温度;所述MCU对接收到的所述原始光强信号和所述被检测水样的温度进行处理的过程具体为:Further, the original light intensity signal includes an acquired infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum transmitted through the current water sample, and the water quality parameter detection indicators include turbidity, chromaticity, TOC, COD, and temperature. The process of processing, by the MCU, the received raw light intensity signal and the temperature of the detected water sample is:
利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱,其中,I为采集到的透过当前水样的红外光光谱、可见光光谱和紫外光光谱,I0为预存的各个通道对应的背景光谱;利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;根据校正后的红外光吸光度,并结合预先标定的浊度的标准工作曲线,计算所述被检测水样的浊度;利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合预先标定的色度的标准工作曲线,计算所述被检测水样的色度;利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合预先标定的TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。The infrared absorbance spectrum, the visible light absorbance spectrum and the ultraviolet absorbance spectrum were calculated by the absorbance formula A=logI0/I. Among them, I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the current water sample, I0 is Pre-stored background spectrum corresponding to each channel; temperature correction of the infrared light absorbance by using the temperature of the detected water sample to obtain corrected infrared light absorbance; according to the corrected infrared light absorbance, combined with the pre-calibrated turbidity standard Working curve, calculating the turbidity of the detected water sample; correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, the corrected external light absorbance, and combining the pre-calibrated chromaticity a standard working curve, calculating the chromaticity of the detected water sample; correcting the ultraviolet light absorbance by using the corrected infrared light absorbance, obtaining the corrected ultraviolet light absorbance, and adjusting the ultraviolet light absorbance, combined with pre-calibration The standard working curve of the TOC, the standard working curve of the COD, and the calculated Kind of TOC, COD.
本发明还提供了上述水质检测装置的检测方法,包括:The invention also provides a detection method of the above water quality detecting device, comprising:
步骤S1,光电探测器一一探测对应的每个所述单色LED光源发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU;Step S1, the photodetector detects the original light intensity signal emitted by each of the corresponding single-color LED light sources and transmitted through the detected water sample, and transmits the original light intensity signal to the MCU;
步骤S2,所述MCU接收所述光电探测器发送的原始光强信号,并接收所述温度传感器检测到的被检测水样的温度;Step S2, the MCU receives the original light intensity signal sent by the photodetector, and receives the temperature of the detected water sample detected by the temperature sensor;
步骤S3,所述MCU根据所述原始光强信号和所述被检测水样的温度,并结合相关算法得到所述被检测水样的水质参数检测指标。Step S3, the MCU obtains a water quality parameter detection index of the detected water sample according to the original light intensity signal and the temperature of the detected water sample, and combined with a correlation algorithm.
进一步地,所述步骤S1具体为:光电探测器一一探测对应的红外光LED光源、可见光LED光源和紫外光LED光源发出的并透过被检测水样的原始光强信号,并经过所述电压转换电路、滤波放大电路和模数转换电路处理后,得到原始的红外光光谱、可见光光谱和紫外光光谱,并将所述原始的红外光光谱、可见光光谱和紫外光光谱发送给所述MCU。Further, the step S1 is specifically: the photodetector detects the original light intensity signal emitted by the corresponding infrared light LED light source, the visible light LED light source and the ultraviolet light LED light source and transmitted through the detected water sample, and passes through the After processing by the voltage conversion circuit, the filter amplification circuit and the analog-to-digital conversion circuit, the original infrared light spectrum, visible light spectrum and ultraviolet light spectrum are obtained, and the original infrared light spectrum, visible light spectrum and ultraviolet light spectrum are sent to the MCU .
进一步地,所述步骤S1之前还包括:步骤S0,对所述水质检测装置进行校正和标定;Further, before the step S1, the method further includes: step S0, correcting and calibrating the water quality detecting device;
所述校正的步骤为,设定由每一路单色LED光源和与其对应的光电探测器组成的每一个通道的目标输出电压值为2400mV,设定各通道的默认工作电流为20mA,被检测水样采用配置标准溶液用的纯净水,所述纯净水的温度为25摄氏度;采集各通道的默认工作电流下的电压值,并分别比较采集的各个通道的电压值与所述目标输出电压值的大小;通过改变驱动电流值,直至该通道的电压值与所述目标输出电压值最接近;设定当前的驱动电流值为该通道的新的工作电流;采集该新的工作电流下各通道的电压值作为该通道的背景光谱,并将所述背景光谱存储于所述MCU;The step of correcting is to set a target output voltage value of 2400 mV for each channel composed of each monochromatic LED light source and its corresponding photodetector, and set a default operating current of 20 mA for each channel, the detected water The pure water for configuring the standard solution is used, and the temperature of the purified water is 25 degrees Celsius; the voltage value under the default working current of each channel is collected, and the voltage values of the collected channels and the target output voltage values are respectively compared. Size; by changing the drive current value until the voltage value of the channel is closest to the target output voltage value; setting the current drive current value to the new operating current of the channel; collecting the new operating current for each channel a voltage value as a background spectrum of the channel, and storing the background spectrum in the MCU;
所述各通道的默认工作电流下的电压值为各通道的实际AD采样电压减去该通道对应的单色LED光源不亮情况下的黑暗电压值;The voltage value of the default operating current of each channel is the actual AD sampling voltage of each channel minus the dark voltage value of the monochromatic LED light source corresponding to the channel;
所述标定的步骤为,分别配置浓度在目标检测范围的不同浓度的四种标准溶液,并分别采集所述四种标准溶液的原始光谱值,根据所述原始光谱值获得四种标准溶液对应的TOC的标准工作曲线、COD的标准工作曲线、色度的标准工作曲线和浊度的标准工作曲线,并保存于所述MCU的flash中。The step of calibrating is to respectively configure four standard solutions of different concentrations of the concentration in the target detection range, and separately collect the original spectral values of the four standard solutions, and obtain corresponding four standard solutions according to the original spectral values. The standard working curve of the TOC, the standard working curve of the COD, the standard working curve of the chromaticity, and the standard working curve of the turbidity are stored in the flash of the MCU.
进一步地,所述步骤S3具体包括:Further, the step S3 specifically includes:
步骤S31,利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱,In step S31, the infrared light absorbance spectrum, the visible light absorbance spectrum, and the ultraviolet absorbance spectrum are calculated by using the absorbance formula A=logI0/I.
其中,I为采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,I0为各个通道对应的背景光谱;Wherein, I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the currently tested water sample, and I0 is the background spectrum corresponding to each channel;
步骤S32,利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;Step S32, performing temperature correction on the infrared light absorbance by using the temperature of the detected water sample to obtain the corrected infrared light absorbance;
步骤S33,根据校正后的红外光吸光度,并结合所述浊度的标准工作曲线,计算所述被检测水样的浊度;Step S33, calculating the turbidity of the detected water sample according to the corrected infrared light absorbance and combining the standard working curve of the turbidity;
步骤S34,利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合所述色度的标准工作曲线,计算所述被检测水样的色度;Step S34, correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, and calculating the detected water sample by using the corrected external light absorbance and combining the standard working curve of the chroma. Chromaticity
利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合所述TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。Using the corrected infrared light absorbance to correct the ultraviolet light absorbance, the corrected ultraviolet light absorbance is obtained, and the corrected ultraviolet light absorbance is combined with the TOC standard working curve and the COD standard working curve to calculate the Detect the TOC and COD of the water sample.
本发明与现有技术相比,有益效果在于:本发明提供的一种水质检测装置及其检测方法,采用多光谱的分析方法,可快速、实时在线地检测水的多个参数指标,从而分析水质,解决了传统方法的送检时间久,成本高等问题。Compared with the prior art, the invention has the beneficial effects that the water quality detecting device and the detecting method thereof provided by the invention adopts a multi-spectral analysis method, and can quickly and automatically detect multiple parameter indexes of water online, thereby analyzing The water quality solves the problems of long time of inspection and high cost of traditional methods.
有益效果Beneficial effect
该水质检测装置使用成本低廉的单色LED做光源,并采用多波长光谱技术结合所述的校正方法消除了LED一致性差带来的检测精度问题,实现了该装置制作的低成本;并且该水质检测装置可以方便地与净水器的水路管道连接,实现了实时在线检测和分析净水器对饮用水净化程度的目的,为每个家庭提供一个饮水安全保障。 The water quality detecting device uses a low-cost monochrome LED as a light source, and adopts multi-wavelength spectroscopy technology combined with the above-mentioned calibration method to eliminate the detection precision caused by poor LED consistency, thereby realizing the low cost of the device manufacturing; and the water quality The detection device can be conveniently connected with the water pipeline of the water purifier, realizing on-line online detection and analysis of the purifying degree of the water purifier for drinking water, and providing each household with a drinking water safety guarantee.
附图说明DRAWINGS
图1是本发明实施例提供的水质检测装置的示意图;1 is a schematic diagram of a water quality detecting device according to an embodiment of the present invention;
图2是图1提供的水质检测装置的检测方法的流程示意图。2 is a flow chart showing a method of detecting the water quality detecting device provided in FIG. 1.
本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明的主要实现思想为:在利用水质检测装置检测之前,先对所述水质检测装置进行校正、标定;然后检测水质,具体在检测水质的时候,通过光电探测器和温度传感器来检测原始光强信号和被检测水样的水温,然后MCU根据检测到的原始光强信号和水温,利用相关算法进行分析,得到被检测水样的TOC、COD、色度和浊度的检测结果;最后将检测结果发送出去。The main implementation idea of the present invention is: correcting and calibrating the water quality detecting device before detecting by using the water quality detecting device; and then detecting the water quality, specifically detecting the original light through the photodetector and the temperature sensor when detecting the water quality The strong signal and the water temperature of the detected water sample, and then the MCU analyzes the original light intensity signal and the water temperature according to the detected algorithm to obtain the TOC, COD, chromaticity and turbidity detection results of the detected water sample; The test results are sent out.
下面先介绍这种水质检测装置,如图1所示,包括:若干单色LED光源1、与每个所述单色LED光源一一对应的光电探测器2、MCU3、温度传感器4;所述光电探测器2和所述温度传感器4分别与所述MCU3连接,所述MCU3与所述若干单色LED光源1连接;所述光电探测器2用于探测对应的每个所述单色LED光源1发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU3;所述温度传感器4用于检测所述被检测水样的温度,并将所述被检测水样的温度发送给所述MCU3;所述MCU3用于对接收到的所述原始光强信号和所述被检测水样的温度进行处理,得到所述被检测水样的水质参数检测指标。The water quality detecting device is first introduced as shown in FIG. 1 , and includes: a plurality of monochrome LED light sources 1 , a photodetector 2 , an MCU 3 , and a temperature sensor 4 corresponding to each of the single-color LED light sources; Photodetector 2 and said temperature sensor 4 are respectively connected to said MCU 3, said MCU 3 is connected to said plurality of monochromatic LED light sources 1; said photodetector 2 is for detecting each of said corresponding monochromatic LED light sources a raw light intensity signal emitted by the detected water sample and transmitted to the MCU 3; the temperature sensor 4 is configured to detect the temperature of the detected water sample, and The temperature of the detected water sample is sent to the MCU 3; the MCU 3 is configured to process the received raw light intensity signal and the temperature of the detected water sample to obtain a water quality parameter of the detected water sample. Detection Indicator.
具体地,LED光源电路采用多波长组合LED的形式,分别有深紫外、可见、近红外、红外等不同波长的LED发光光源组成。本发明实施例采用若干单色LED光源1组成LED光源电路,具体地,所述若干单色LED光源1包括红外光LED光源、可见光LED光源和紫外光LED光源。未来跟据功能扩展的需要可以增加不同波长的LED光源;此外,也可以用激光二极管代替LED光源形成单色性能更好的激光光源来满足其他水质参数的检测。Specifically, the LED light source circuit is in the form of a multi-wavelength combined LED, which is composed of LED light sources of different wavelengths such as deep ultraviolet, visible, near infrared, and infrared. In the embodiment of the present invention, a plurality of monochromatic LED light sources 1 are used to form an LED light source circuit. Specifically, the plurality of monochromatic LED light sources 1 include an infrared light LED light source, a visible light LED light source, and an ultraviolet light LED light source. In the future, LED light sources of different wavelengths can be added according to the needs of function expansion; in addition, laser diodes can be used instead of LED light sources to form laser light sources with better monochromatic performance to meet the detection of other water quality parameters.
具体地,所述光电探测器采用两种不同半导体材料和制程工艺的器件,具体包括传统的第一硅基光电二极管、第二硅基光电二极管和一个新型的氮化镓材料及工艺的光电二极管。此外,后续功能扩展也可以采用其他光电探测器件,包括红外探测器、热释电传感器、红外热电堆、CCD、CMOS图像传感器等光电探测器件。Specifically, the photodetector uses two different semiconductor materials and process technologies, including a conventional first silicon-based photodiode, a second silicon-based photodiode, and a novel gallium nitride material and a photodiode of the process. . In addition, other photodetector components can be used for subsequent function expansion, including photodetectors such as infrared detectors, pyroelectric sensors, infrared thermopiles, CCDs, and CMOS image sensors.
具体地,所述第一硅基光电二极管和所述第二硅基光电二极管用于感测可见光到近红外范围波长的光强信号,所述氮化镓材料及工艺的光电二极管用于感测紫外到深紫外范围波长的光强信号;在本发明中,所述第一硅基光电二极管用于感测所述红外光LED光源发出的原始光强信号,所述第二硅基光电二极管用于感测可见光LED光源发出的原始光强信号,所述氮化镓材料及工艺的光电二极管用于感测紫外光LED光源发出的原始光强信号。Specifically, the first silicon-based photodiode and the second silicon-based photodiode are used to sense a light intensity signal of a visible to near-infrared wavelength, and the gallium nitride material and the photodiode of the process are used for sensing The light intensity signal of the ultraviolet to deep ultraviolet range wavelength; in the present invention, the first silicon-based photodiode is used to sense the original light intensity signal emitted by the infrared light LED light source, and the second silicon-based photodiode is used The raw light intensity signal emitted by the visible light LED light source is sensed, and the gallium nitride material and the photodiode of the process are used to sense the original light intensity signal emitted by the ultraviolet light LED light source.
进一步地,所述水质检测装置还包括:电流电压转换电路5、滤波放大电路6和模数转换电路7,所述电流电压转换电路5一端与所述光电探测器2连接,另一端与所述滤波放大电路6连接,所述模数转换电路7一端与所述滤波放大电路6连接,另一端与所述MCU3连接;所述电流电压转换电路5用于将所述光电探测器2探测到的光电流信号转换为满足后端模数转换电路7要求的电压信号;所述滤波放大电路6用于将所述电压信号进行低通滤波和放大,进一步对模拟信号进行处理,使其满足噪声和幅值的要求;所述模数转换电路6用于将处理后的信号进行模数转换得到原始的红外光光谱、可见光光谱和紫外光光谱,并发送给所述MCU3。Further, the water quality detecting device further includes: a current voltage conversion circuit 5, a filter amplifying circuit 6 and an analog to digital conversion circuit 7, one end of the current voltage conversion circuit 5 is connected to the photodetector 2, and the other end is The filter amplifying circuit 6 is connected, one end of the analog-to-digital conversion circuit 7 is connected to the filter amplifying circuit 6, and the other end is connected to the MCU 3; the current-voltage converting circuit 5 is used to detect the photodetector 2 The photocurrent signal is converted into a voltage signal required by the back-end analog-to-digital conversion circuit 7; the filter amplifying circuit 6 is configured to low-pass filter and amplify the voltage signal, and further process the analog signal to satisfy noise and The amplitude conversion circuit 6 is configured to perform analog-to-digital conversion on the processed signal to obtain an original infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum, and send the same to the MCU 3.
进一步地,所述水质检测装置还包括:恒流源电路8、升压电路9,所述恒流源电路8一端与所述若干单色LED光源1连接,另一端与所述MCU3连接,所述升压电路9与所述恒流源电路8连接。Further, the water quality detecting device further includes: a constant current source circuit 8 and a boosting circuit 9, the one end of the constant current source circuit 8 is connected to the plurality of monochromatic LED light sources 1, and the other end is connected to the MCU3. The booster circuit 9 is connected to the constant current source circuit 8.
具体地,恒流源电路8用于根据所述MCU3的指令,提供驱动所述若干单色LED光源1工作的稳定的恒流电源。由于检测参数的不同和校正算法的要求,驱动所述若干单色LED光源1的电流要求是可控的,因此该部分电路是一种可调恒流源电路,输出电流可以通过MCU3编程调节,而且电流调节的步进精度较高。Specifically, the constant current source circuit 8 is configured to provide a stable constant current power source for driving the operation of the plurality of monochromatic LED light sources 1 according to an instruction of the MCU 3. Due to the difference of the detection parameters and the requirements of the correction algorithm, the current requirement for driving the plurality of monochromatic LED light sources 1 is controllable, so the part of the circuit is an adjustable constant current source circuit, and the output current can be programmed and adjusted by the MCU3. Moreover, the stepping accuracy of the current adjustment is high.
具体地,系统采用直流3-5V供电,所述升压电路用于升压得到驱动所述若干单色LED光源1所需要的较高电压。此升压电路也可以通过MCU3控制通断,从而在系统空闲的时候实现较低的电流消耗。Specifically, the system uses a DC 3-5V supply, and the boost circuit is used to boost the higher voltage required to drive the plurality of monochromatic LED sources 1. This boost circuit can also be controlled to turn on and off through the MCU3 to achieve lower current consumption when the system is idle.
具体地,所述水质检测装置还包括:串行通信接口10,所述串行通信接口10与所述MCU连接,用于接收外界发送的控制指令给所述MCU3和发送所述MCU3的检测结果。Specifically, the water quality detecting device further includes: a serial communication interface 10, the serial communication interface 10 is connected to the MCU, and configured to receive a control command sent by the outside world to the MCU3 and send the detection result of the MCU3. .
更具体地,所述串行通信接口10为所述MCU3自带的串行通信接口10,如IIC/UART/SPI等,与外部电路通信,用于接收控制指令和发送检测结果。More specifically, the serial communication interface 10 is a serial communication interface 10 of the MCU 3, such as IIC/UART/SPI, etc., and communicates with an external circuit for receiving control commands and transmitting detection results.
更具体地,可以采用蓝牙模块代替上述串行通信接口10,结合手机APP,可以实现检测结果在用户手机上的实时查看;再次,通过发送水质和用户数据(即用户在APP上的注册信息,如手机号、区域定位、操作时间等)到云端的后台系统,就可以记录不同区域用户的水质情况,进而绘制水质地图,来提供更多的衍生服务。More specifically, the Bluetooth module can be used instead of the serial communication interface 10, and the mobile phone APP can realize real-time viewing of the detection result on the user's mobile phone; again, by sending water quality and user data (ie, the registration information of the user on the APP, Such as mobile phone number, regional positioning, operation time, etc. to the cloud back-end system, you can record the water quality of users in different regions, and then draw a water quality map to provide more derivative services.
具体地,所述温度传感器4采用NTC热敏电阻实现,用于检测所述被检测水样的温度,并对红外光谱的吸光度进行温度校正。Specifically, the temperature sensor 4 is implemented by using an NTC thermistor for detecting the temperature of the detected water sample and performing temperature correction on the absorbance of the infrared spectrum.
具体地,所述MCU3承担数据的处理、电路系统的控制和模拟信号的采集工作。该微控制器优先的选择方案为ARM Cortex-M0内核的32位MCU;根据内部算法需要的资源多少,亦可以用8位的51单片机或者更高的ARM Cortex-M4等系列MCU代替。Specifically, the MCU 3 undertakes processing of data, control of a circuit system, and collection of analog signals. The preferred choice of the microcontroller is ARM The 32-bit MCU of the Cortex-M0 core; depending on the amount of resources required by the internal algorithm, it can also be replaced by an 8-bit 51 MCU or a higher series of MCUs such as the ARM Cortex-M4.
具体地,MCU3在接收到所述原始光强信号和所述被检测水样的温度时,对数据的处理过程具体为:Specifically, when the MCU3 receives the original light intensity signal and the temperature of the detected water sample, the processing process of the data is specifically:
利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱;其中,I为采集到的透过当前被测水样的原始光强信号,所述原始光强信号包括红外光光谱、可见光光谱和紫外光光谱,I0为预存的各个通道对应的背景光谱;利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;根据校正后的红外光吸光度,并结合预先标定的浊度的标准工作曲线,计算所述被检测水样的浊度;利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合预先标定的色度的标准工作曲线,计算所述被检测水样的色度;利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合预先标定的TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。The infrared light absorbance spectrum, the visible light absorbance spectrum, and the ultraviolet absorbance spectrum are calculated by using the absorbance formula A=logI0/I; wherein, I is the collected original light intensity signal passing through the current water sample, the original light intensity signal Including infrared light spectrum, visible light spectrum and ultraviolet light spectrum, I0 is a pre-stored background spectrum corresponding to each channel; using the temperature of the detected water sample to perform temperature correction on the infrared light absorbance to obtain corrected infrared light absorbance; Infrared light absorbance, combined with a standard working curve of pre-calibrated turbidity, calculating the turbidity of the detected water sample; correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, corrected by The remaining external light absorbance, combined with the standard working curve of the pre-calibrated chromaticity, calculates the chromaticity of the detected water sample; corrects the ultraviolet light absorbance by using the corrected infrared light absorbance to obtain the corrected ultraviolet light Absorbance, corrected by UV absorbance, combined with pre-calibrated TOC standards Line, COD of the standard curve, calculating the detected water sample TOC, COD.
系统采用低功耗设计,当检测进入空闲状态时,MCU3通过控制切断所述升压电路9和模拟电路部分即电流电压转换电路5的电压开关来关闭外围电路,同时自身进入低功耗休眠模式,此模式允许外部控制电路通过串行通信接口唤醒所述MCU3。The system adopts a low power consumption design. When the detection enters the idle state, the MCU 3 turns off the peripheral circuit by controlling the voltage switch of the boosting circuit 9 and the analog circuit part, that is, the current voltage conversion circuit 5, and enters the low power sleep mode. This mode allows the external control circuit to wake up the MCU3 through the serial communication interface.
下面再介绍基于上述水质检测装置的检测方法,如图2所示,包括:The following describes the detection method based on the above water quality detecting device, as shown in FIG. 2, including:
步骤S0,对所述水质检测装置进行校正和标定;Step S0, correcting and calibrating the water quality detecting device;
具体地,该水质检测装置在用户应用之前需进行出厂校正(硬件校正)、标定两个过程。Specifically, the water quality detecting device needs to perform factory calibration (hardware correction) and calibration two processes before the user application.
其中,出厂校正是每一台仪器在出厂时必须进行的,出厂时(硬件安装完毕)必须经过一次校正过程;校正的目的是确保批量的硬件保持最大限度的一致性,减小原始光谱数据的台间差,在批量生产品质控制方面提高检测的精密度。Among them, the factory calibration is necessary for each instrument to be shipped from the factory. At the time of shipment (hardware installation), a calibration process must be performed; the purpose of calibration is to ensure the maximum consistency of the batch hardware and reduce the original spectral data. The difference between the stations improves the precision of detection in mass production quality control.
具体地,在校正之前,在所述水质检测装置首次组装完毕,并且管道内部干净情况下,加入配置标准溶液用的纯净水,所述纯净水的水温为室温(该处室温指25摄氏度),且无气泡;设定由每一路单色LED光源和与其对应的光电探测器组成的每一个通道的目标输出电压值为2400mV,设定各通道的默认工作电流为20mA。具体校正的步骤为,采集各通道的默认工作电流下的电压值,并分别比较采集的各个通道的电压值与所述目标输出电压值的大小;通过按最小步进增加或者减小驱动电流值,直到该通道的电压值与所述目标输出电压值最接近;设定和保存当前的驱动电流值为该通道的新的工作电流,即完成各个通道的工作电流的设定;采集该新的工作电流下各通道的电压值作为该通道的背景光谱,并将所述背景光谱存储于所述MCU的NVM(Non Volatile Memory,固定存储器,非易失存储器)。Specifically, before the calibration, after the water quality detecting device is assembled for the first time, and the inside of the pipeline is clean, the purified water for the standard solution is added, and the water temperature of the purified water is room temperature (the room temperature is 25 degrees Celsius). There is no bubble; the target output voltage value of each channel composed of each monochromatic LED light source and its corresponding photodetector is set to 2400mV, and the default operating current of each channel is set to 20mA. The specific correction step is to collect the voltage values under the default working current of each channel, and compare the voltage values of the collected channels and the target output voltage values respectively; increase or decrease the driving current value by the minimum step. Until the voltage value of the channel is closest to the target output voltage value; setting and saving the current driving current value as the new working current of the channel, that is, completing the setting of the working current of each channel; collecting the new The voltage value of each channel under the operating current is used as the background spectrum of the channel, and the background spectrum is stored in the NVM of the MCU (Non Volatile Memory, fixed memory, non-volatile memory).
具体地,所述各通道的默认工作电流下的电压值为各通道的实际AD采样电压减去该通道对应的单色LED光源不亮情况下的黑暗电压值;Specifically, the voltage value of the default operating current of each channel is the actual AD sampling voltage of each channel minus the dark voltage value of the monochromatic LED light source corresponding to the channel;
具体地,所述定标的过程是本水质检测装置完成出厂校正后在实验室进行,目的是获得不同检测参数的标准工作曲线,此工作只需在整个产品开发中进行一次。获得的工作曲线参数通过固件程序固化在检测器MCU的FLASH中。Specifically, the calibration process is performed in the laboratory after the water quality detecting device completes the factory calibration, and the purpose is to obtain a standard working curve of different detection parameters, and the work only needs to be performed once in the entire product development. The obtained work curve parameters are solidified in the FLASH of the detector MCU by the firmware program.
所述标定的步骤具体为,针对TOC、COD、色度和浊度这四种检测指标,分别配置浓度在目标检测范围的不同浓度的四种标准溶液,然后分别采集所述四种标准溶液的原始光谱值,最后获得四种标准溶液对应的TOC的标准工作曲线、COD的标准工作曲线、色度的标准工作曲线和浊度的标准工作曲线,并存储于所述MCU的FLASH。The step of calibrating is specifically, for the four detection indexes of TOC, COD, chromaticity and turbidity, respectively configuring four standard solutions of different concentrations in the target detection range, and then separately collecting the four standard solutions. The original spectral value is finally obtained, and the standard working curve of the TOC corresponding to the four standard solutions, the standard working curve of the COD, the standard working curve of the chromaticity, and the standard working curve of the turbidity are obtained and stored in the FLASH of the MCU.
步骤S1,所述光电探测器一一探测对应的每个所述单色LED光源发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU;Step S1, the photodetector detects the original light intensity signal emitted by each of the corresponding single-color LED light sources and transmitted through the detected water sample, and transmits the original light intensity signal to the MCU;
具体地,所述MCU控制所述恒流源电路提供驱动所述若干单色LED光源工作的稳定的恒流电源;所述若干单色LED光源发出一系列不同波长的红外光、可见光和紫外光;所述与每个单色LED光源一一对应的光电探测器探测到上述原始光强信号,并经过所述电流电压转换电路、滤波放大电路和模数转换电路处理后,将原始的红外光光谱、可见光光谱和紫外光光谱发送给所述MCU。Specifically, the MCU controls the constant current source circuit to provide a stable constant current power source for driving the plurality of monochromatic LED light sources; the plurality of monochromatic LED light sources emit a series of different wavelengths of infrared light, visible light, and ultraviolet light. The photodetector corresponding to each monochromatic LED light source detects the original light intensity signal, and after processing by the current voltage conversion circuit, the filter amplification circuit and the analog to digital conversion circuit, the original infrared light is processed. Spectral, visible, and ultraviolet spectra are sent to the MCU.
步骤S2,所述MCU接收所述光电探测器发送的原始光强信号,并接收所述温度传感器检测到的被检测水样的温度;Step S2, the MCU receives the original light intensity signal sent by the photodetector, and receives the temperature of the detected water sample detected by the temperature sensor;
步骤S3,所述MCU根据所述原始光强信号和所述被检测水样的温度,并结合相关算法得到所述被检测水样的水质参数检测指标。Step S3, the MCU obtains a water quality parameter detection index of the detected water sample according to the original light intensity signal and the temperature of the detected water sample, and combined with a correlation algorithm.
具体地,所述步骤S3包括:Specifically, the step S3 includes:
步骤S31,利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱,In step S31, the infrared light absorbance spectrum, the visible light absorbance spectrum, and the ultraviolet absorbance spectrum are calculated by using the absorbance formula A=logI0/I.
其中,I为采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,I0为各个通道对应的背景光谱;Wherein, I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the currently tested water sample, and I0 is the background spectrum corresponding to each channel;
步骤S32,利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;Step S32, performing temperature correction on the infrared light absorbance by using the temperature of the detected water sample to obtain the corrected infrared light absorbance;
步骤S33,根据校正后的红外光吸光度,并结合所述浊度的标准工作曲线,计算所述被检测水样的浊度;Step S33, calculating the turbidity of the detected water sample according to the corrected infrared light absorbance and combining the standard working curve of the turbidity;
步骤S34,利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合所述色度的标准工作曲线,计算所述被检测水样的色度;Step S34, correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, and calculating the detected water sample by using the corrected external light absorbance and combining the standard working curve of the chroma. Chromaticity
利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合所述TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。Using the corrected infrared light absorbance to correct the ultraviolet light absorbance, the corrected ultraviolet light absorbance is obtained, and the corrected ultraviolet light absorbance is combined with the TOC standard working curve and the COD standard working curve to calculate the Detect the TOC and COD of the water sample.
本发明提供的一种水质检测装置及其检测方法,采用多光谱的分析方法,可快速、实时在线地检测水的TOC、COD、TURB(浊度)、色度的参数指标,从而分析水质,解决了传统方法的送检时间久,成本高等问题。该水质检测装置使用成本低廉的单色LED做光源,并采用多波长光谱技术实现了该装置制作的低成本,并且该水质检测装置可以方便地与净水器的水路管道连接,实现了实时在线检测和分析净水器对饮用水净化程度的目的,为每个家庭提供一个饮水安全保障。 The invention provides a water quality detecting device and a detecting method thereof, which adopts a multi-spectral analysis method, can quickly and accurately detect the TOC, COD, TURB (turbidity) and chromaticity parameter indexes of water, thereby analyzing water quality. It solves the problems of long-time inspection and high cost of the traditional method. The water quality detecting device uses a low-cost monochrome LED as a light source, and adopts multi-wavelength spectroscopy technology to realize the low cost of the device, and the water quality detecting device can be conveniently connected with the water pipe of the water purifier, realizing online in real time. To detect and analyze the purifier's purpose of purifying drinking water, and provide each household with a safe drinking water.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (10)

  1. 一种水质检测装置,其特征在于,包括:若干单色LED光源、与每个所述单色LED光源一一对应的光电探测器、MCU、温度传感器;所述光电探测器和所述温度传感器分别与所述MCU连接,所述MCU与所述若干单色LED光源连接;A water quality detecting device, comprising: a plurality of monochromatic LED light sources, a photodetector, an MCU, a temperature sensor corresponding to each of the monochromatic LED light sources; the photodetector and the temperature sensor Connected to the MCU respectively, the MCU is connected to the plurality of monochromatic LED light sources;
    所述光电探测器用于探测对应的每个所述单色LED光源发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU;The photodetector is configured to detect a corresponding original light intensity signal emitted by each of the single-color LED light sources and transmitted through the detected water sample, and send the original light intensity signal to the MCU;
    所述温度传感器用于检测所述被检测水样的温度,并将所述被检测水样的温度发送给所述MCU;The temperature sensor is configured to detect a temperature of the detected water sample, and send the temperature of the detected water sample to the MCU;
    所述MCU用于对接收到的所述原始光强信号和所述被检测水样的温度进行处理,得到所述被检测水样的水质参数检测指标。The MCU is configured to process the received raw light intensity signal and the temperature of the detected water sample to obtain a water quality parameter detection index of the detected water sample.
  2. 如权利要求1所述的水质检测装置,其特征在于,所述若干单色LED光源包括红外光LED光源、可见光LED光源和紫外光LED光源,所述光电探测器包括第一硅基光电二极管、第二硅基光电二极管和一个氮化镓材料及工艺的光电二极管;所述红外光LED光源、可见光LED光源和紫外光LED光源与所述第一硅基光电二极管、第二硅基光电二极管和一个氮化镓材料及工艺的光电二极管一一对应,用于感测对应的单色LED光源的原始光强信号;所述第一硅基光电二极管和所述第二硅基光电二极管用于感测可见光到近红外范围波长的光强信号,所述氮化镓材料及工艺的光电二极管用于感测紫外到深紫外范围波长的光强信号。 The water quality detecting device according to claim 1, wherein the plurality of monochromatic LED light sources comprise an infrared light LED light source, a visible light LED light source, and an ultraviolet light LED light source, wherein the photodetector comprises a first silicon-based photodiode, a second silicon-based photodiode and a gallium nitride material and a photodiode of the process; the infrared light LED light source, the visible light LED light source, and the ultraviolet light LED light source and the first silicon-based photodiode, the second silicon-based photodiode, and a gallium nitride material and a photodiode of the process are in one-to-one correspondence for sensing an original light intensity signal of a corresponding monochromatic LED light source; the first silicon-based photodiode and the second silicon-based photodiode are used for sensing A light intensity signal of visible light to a near-infrared wavelength is measured, and the gallium nitride material and the photodiode of the process are used to sense a light intensity signal in the ultraviolet to deep ultraviolet range.
  3. 如权利要求2所述的水质检测装置,其特征在于,所述水质检测装置还包括电流电压转换电路、滤波放大电路和模数转换电路,所述电流电压转换电路一端与所述光电探测器连接,另一端与所述滤波放大电路连接,所述模数转换电路一端与所述滤波放大电路连接,另一端与所述MCU连接;The water quality detecting device according to claim 2, wherein the water quality detecting device further comprises a current voltage converting circuit, a filter amplifying circuit and an analog to digital converting circuit, wherein one end of the current voltage converting circuit is connected to the photodetector The other end is connected to the filter amplifying circuit, one end of the analog-to-digital conversion circuit is connected to the filter amplifying circuit, and the other end is connected to the MCU;
    所述电流电压转换电路用于将所述光电探测器探测到的光电流信号转换为电压信号,所述滤波放大电路用于将所述电压信号进行低通滤波和放大处理,所述模数转换电路用于将处理后的信号进行模数转换得到原始的红外光光谱、可见光光谱和紫外光光谱,并发送给所述MCU。The current voltage conversion circuit is configured to convert a photocurrent signal detected by the photodetector into a voltage signal, and the filter amplifying circuit is configured to perform low pass filtering and amplification processing on the voltage signal, the analog to digital conversion The circuit is configured to perform analog-to-digital conversion of the processed signal to obtain an original infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum, and send the signal to the MCU.
  4. 如权利要求3所述的水质检测装置,其特征在于,所述水质检测装置还包括:恒流源电路、升压电路,所述恒流源电路一端与所述若干单色LED光源连接,另一端与所述MCU连接,所述升压电路与所述恒流源电路连接;The water quality detecting device according to claim 3, wherein the water quality detecting device further comprises: a constant current source circuit and a boosting circuit, wherein one end of the constant current source circuit is connected to the plurality of monochromatic LED light sources, and One end is connected to the MCU, and the boosting circuit is connected to the constant current source circuit;
    所述恒流源电路用于根据所述MCU的指令为所述若干单色LED光源提供特定的恒流电源,所述恒流电源用于驱动所述若干单色LED光源工作;所述升压电路用于提供驱动所述若干单色LED光源所需要的电压。The constant current source circuit is configured to provide a specific constant current power source for the plurality of monochromatic LED light sources according to an instruction of the MCU, wherein the constant current power source is used to drive the plurality of monochromatic LED light sources to operate; A circuit is used to provide the voltage required to drive the plurality of monochromatic LED sources.
  5. 如权利要求4所述的水质检测装置,其特征在于,所述水质检测装置还包括:串行通信接口,所述串行通信接口与所述MCU连接,用于接收外界发送的控制指令给所述MCU和发送所述MCU的检测结果。The water quality detecting device according to claim 4, wherein the water quality detecting device further comprises: a serial communication interface, wherein the serial communication interface is connected to the MCU, and is configured to receive a control command sent by the outside world Describe the MCU and the detection result of transmitting the MCU.
  6. 如权利要求5所述的检测装置,其特征在于,所述原始光强信号包括采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,所述水质参数检测指标包括浊度、色度、TOC、COD和温度;所述MCU对接收到的所述原始光强信号和所述被检测水样的温度进行处理的过程具体为:The detecting device according to claim 5, wherein the original light intensity signal comprises an acquired infrared light spectrum, a visible light spectrum, and an ultraviolet light spectrum of the current water sample to be tested, wherein the water quality parameter detection index comprises Turbidity, chromaticity, TOC, COD and temperature; the process by which the MCU processes the received raw light intensity signal and the temperature of the detected water sample is specifically:
    利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱,其中,I为采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,I0为预存的各个通道对应的背景光谱;利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;根据校正后的红外光吸光度,并结合预先标定的浊度的标准工作曲线,计算所述被检测水样的浊度;利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合预先标定的色度的标准工作曲线,计算所述被检测水样的色度;利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合预先标定的TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。The infrared absorbance spectrum, the visible light absorbance spectrum, and the ultraviolet absorbance spectrum are calculated by the absorbance formula A=logI0/I, where I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the current water sample. I0 is a background spectrum corresponding to each pre-stored channel; temperature correction of the infrared light absorbance is performed by using the temperature of the detected water sample to obtain a corrected infrared light absorbance; and according to the corrected infrared light absorbance, combined with the pre-calibrated turbidity a standard working curve for calculating the turbidity of the water sample to be tested; correcting the visible light absorbance by using the corrected infrared light absorbance, obtaining the corrected visible light absorbance, and adjusting the absorbable external light absorbance, combined with the pre-calibrated a standard working curve of chromaticity, calculating the chromaticity of the detected water sample; correcting the ultraviolet light absorbance by using the corrected infrared light absorbance, obtaining the corrected ultraviolet light absorbance, and adjusting the absorbance of the ultraviolet light, and combining Pre-calibrated TOC standard working curve, COD standard working curve, calculate the Of water measured TOC, COD.
  7. 一种如权利要求1-6任一项所述的水质检测装置的检测方法,其特征在于,包括:A method for detecting a water quality detecting device according to any one of claims 1 to 6, comprising:
    步骤S1,光电探测器一一探测对应的每个所述单色LED光源发出的并透过被检测水样的原始光强信号,并将所述原始光强信号发送给所述MCU;Step S1, the photodetector detects the original light intensity signal emitted by each of the corresponding single-color LED light sources and transmitted through the detected water sample, and transmits the original light intensity signal to the MCU;
    步骤S2,所述MCU接收所述光电探测器发送的原始光强信号,并接收所述温度传感器检测到的被检测水样的温度;Step S2, the MCU receives the original light intensity signal sent by the photodetector, and receives the temperature of the detected water sample detected by the temperature sensor;
    步骤S3,所述MCU根据所述原始光强信号和所述被检测水样的温度,并结合相关算法得到所述被检测水样的水质参数检测指标。Step S3, the MCU obtains a water quality parameter detection index of the detected water sample according to the original light intensity signal and the temperature of the detected water sample, and combined with a correlation algorithm.
  8. 如权利要求7所述的检测方法,其特征在于,所述步骤S1具体为:光电探测器一一探测对应的红外光LED光源、可见光LED光源和紫外光LED光源发出的并透过被检测水样的原始光强信号,并经过所述电压转换电路、滤波放大电路和模数转换电路处理后,得到原始的红外光光谱、可见光光谱和紫外光光谱,并将所述原始的红外光光谱、可见光光谱和紫外光光谱发送给所述MCU。The detecting method according to claim 7, wherein the step S1 is specifically: the photodetector detects the corresponding infrared light LED light source, the visible light LED light source and the ultraviolet light LED light source and transmits the detected water. The original light intensity signal is processed by the voltage conversion circuit, the filter amplification circuit and the analog-to-digital conversion circuit to obtain the original infrared light spectrum, visible light spectrum and ultraviolet light spectrum, and the original infrared light spectrum, The visible light spectrum and the ultraviolet light spectrum are sent to the MCU.
  9. 如权利要求8所述的检测方法,其特征在于,所述步骤S1之前还包括:步骤S0,对所述水质检测装置进行校正和标定;The detecting method according to claim 8, wherein the step S1 further comprises: step S0, correcting and calibrating the water quality detecting device;
    所述校正的步骤为,设定由每一路单色LED光源和与其对应的光电探测器组成的每一个通道的目标输出电压值为2400mV,设定各通道的默认工作电流为20mA,被检测水样采用配置标准溶液用的纯净水,所述纯净水的温度为25摄氏度;采集各通道的默认工作电流下的电压值,并分别比较采集的各个通道的电压值与所述目标输出电压值的大小;通过改变驱动电流值,直至该通道的电压值与所述目标输出电压值最接近;设定当前的驱动电流值为该通道的新的工作电流;采集该新的工作电流下各通道的电压值作为该通道的背景光谱,并将所述背景光谱存储于所述MCU;The step of correcting is to set a target output voltage value of 2400 mV for each channel composed of each monochromatic LED light source and its corresponding photodetector, and set a default operating current of 20 mA for each channel, the detected water The pure water for configuring the standard solution is used, and the temperature of the purified water is 25 degrees Celsius; the voltage value under the default working current of each channel is collected, and the voltage values of the collected channels and the target output voltage values are respectively compared. Size; by changing the drive current value until the voltage value of the channel is closest to the target output voltage value; setting the current drive current value to the new operating current of the channel; collecting the new operating current for each channel a voltage value as a background spectrum of the channel, and storing the background spectrum in the MCU;
    所述各通道的默认工作电流下的电压值为各通道的实际AD采样电压减去该通道对应的单色LED光源不亮情况下的黑暗电压值;The voltage value of the default operating current of each channel is the actual AD sampling voltage of each channel minus the dark voltage value of the monochromatic LED light source corresponding to the channel;
    所述标定的步骤为,分别配置浓度在目标检测范围的不同浓度的四种标准溶液,并分别采集所述四种标准溶液的原始光谱值,根据所述原始光谱值获得四种标准溶液对应的TOC的标准工作曲线、COD的标准工作曲线、色度的标准工作曲线和浊度的标准工作曲线,并保存于所述MCU的flash中。The step of calibrating is to respectively configure four standard solutions of different concentrations of the concentration in the target detection range, and separately collect the original spectral values of the four standard solutions, and obtain corresponding four standard solutions according to the original spectral values. The standard working curve of the TOC, the standard working curve of the COD, the standard working curve of the chromaticity, and the standard working curve of the turbidity are stored in the flash of the MCU.
  10. 如权利要求9所述的检测方法,其特征在于,所述步骤S3具体包括:The detecting method according to claim 9, wherein the step S3 specifically comprises:
    步骤S31,利用吸光度公式A=logI0/I计算得到红外光吸光度光谱、可见光吸光度光谱、紫外光吸光度光谱,In step S31, the infrared light absorbance spectrum, the visible light absorbance spectrum, and the ultraviolet absorbance spectrum are calculated by using the absorbance formula A=logI0/I.
    其中,I为采集到的透过当前被测水样的红外光光谱、可见光光谱和紫外光光谱,I0为各个通道对应的背景光谱;Wherein, I is the collected infrared light spectrum, visible light spectrum and ultraviolet light spectrum of the currently tested water sample, and I0 is the background spectrum corresponding to each channel;
    步骤S32,利用所述被检测水样的温度对红外光吸光度进行温度校正得到校正后的红外光吸光度;Step S32, performing temperature correction on the infrared light absorbance by using the temperature of the detected water sample to obtain the corrected infrared light absorbance;
    步骤S33,根据校正后的红外光吸光度,并结合所述浊度的标准工作曲线,计算所述被检测水样的浊度;Step S33, calculating the turbidity of the detected water sample according to the corrected infrared light absorbance and combining the standard working curve of the turbidity;
    步骤S34,利用所述校正后的红外光吸光度校正可见光吸光度,得到校正后的可见光吸光度,由校正后的可外光吸光度,并结合所述色度的标准工作曲线,计算所述被检测水样的色度;Step S34, correcting the visible light absorbance by using the corrected infrared light absorbance to obtain the corrected visible light absorbance, and calculating the detected water sample by using the corrected external light absorbance and combining the standard working curve of the chroma. Chromaticity
    利用所述校正后的红外光吸光度校正紫外光吸光度,得到校正后的紫外光吸光度,由校正后的紫外光吸光度,并结合所述TOC的标准工作曲线、COD的标准工作曲线,计算所述被检测水样的TOC、COD。Using the corrected infrared light absorbance to correct the ultraviolet light absorbance, the corrected ultraviolet light absorbance is obtained, and the corrected ultraviolet light absorbance is combined with the TOC standard working curve and the COD standard working curve to calculate the Detect the TOC and COD of the water sample.
PCT/CN2016/101698 2016-10-10 2016-10-10 Water quality detection device and detection method therefor WO2018068185A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/101698 WO2018068185A1 (en) 2016-10-10 2016-10-10 Water quality detection device and detection method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/101698 WO2018068185A1 (en) 2016-10-10 2016-10-10 Water quality detection device and detection method therefor

Publications (1)

Publication Number Publication Date
WO2018068185A1 true WO2018068185A1 (en) 2018-04-19

Family

ID=61905013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101698 WO2018068185A1 (en) 2016-10-10 2016-10-10 Water quality detection device and detection method therefor

Country Status (1)

Country Link
WO (1) WO2018068185A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070239367A1 (en) * 2004-02-05 2007-10-11 Medpro Holdings, Llc On-site method of providing analysis of potency and purity of pharmaceutical compounds
US20120174655A1 (en) * 2011-01-12 2012-07-12 Eberhard Essich Contaminated water detecting and monitoring and warning device and system and method using single sensors in tandem or cascade
CN103499539A (en) * 2013-09-25 2014-01-08 中国农业大学 Aquaculture turbidity detector and aquaculture turbidity detection method based on optical theory
CN105259128A (en) * 2015-11-12 2016-01-20 浙江微兰环境科技有限公司 COD and ammonia nitrogen multiparameter online monitoring device and system
CN205388568U (en) * 2015-11-27 2016-07-20 珠江流域水环境监测中心 Organic pollutant's of survey aquatic device
CN106644974A (en) * 2016-10-10 2017-05-10 深圳市比特原子科技有限公司 Water quality detection device and water quality detection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070239367A1 (en) * 2004-02-05 2007-10-11 Medpro Holdings, Llc On-site method of providing analysis of potency and purity of pharmaceutical compounds
US20120174655A1 (en) * 2011-01-12 2012-07-12 Eberhard Essich Contaminated water detecting and monitoring and warning device and system and method using single sensors in tandem or cascade
CN103499539A (en) * 2013-09-25 2014-01-08 中国农业大学 Aquaculture turbidity detector and aquaculture turbidity detection method based on optical theory
CN105259128A (en) * 2015-11-12 2016-01-20 浙江微兰环境科技有限公司 COD and ammonia nitrogen multiparameter online monitoring device and system
CN205388568U (en) * 2015-11-27 2016-07-20 珠江流域水环境监测中心 Organic pollutant's of survey aquatic device
CN106644974A (en) * 2016-10-10 2017-05-10 深圳市比特原子科技有限公司 Water quality detection device and water quality detection method

Similar Documents

Publication Publication Date Title
CN106644974B (en) Water quality detection device and detection method thereof
CN106198424B (en) Full-spectrum-based water quality online monitoring device and monitoring method thereof
US10048242B2 (en) Inline water contaminant detector
CN101839733B (en) Integral multi-parameter water quality on-line monitoring device and control method thereof
CN102128679B (en) Light sensing circuit and method thereof
WO2016035975A1 (en) Filter pollution measurement device and filter pollution measurement method
Somov et al. Circuit design and power consumption analysis of wireless gas sensor nodes: one-sensor versus two-sensor approach
CN205506110U (en) Environmental monitoring system of textile enterprise
CN107449749A (en) Water quality detection equipment and its water quality detection system
WO2014071691A1 (en) Vcsel-based low-power-consumption gas detection method and device
CN103969206A (en) Multi-index water quality sensing probe based on ultraviolet visible absorption spectrum
CN203929622U (en) Many indexs of water quality sensing probe based on uv-visible absorption spectra
CN113092435A (en) Fluorescence method dissolved oxygen measuring circuit and dissolved oxygen measuring device
CN100510728C (en) Meter for on-line detecting water solution ozone density and the detection method
WO2018068185A1 (en) Water quality detection device and detection method therefor
CN104360692A (en) Feedback control device of low-concentration standard ozonator
CN113834789A (en) Multi-channel heavy metal detection device and detection method
CN210626589U (en) Multi-path high-precision direct-current power parameter sampling circuit based on ADS131E04 chip
CN205175954U (en) Quality of water multi -parameter on -line monitoring device
CN209858408U (en) Water quality detection equipment
CN116087179A (en) Water quality monitoring circuit and water quality analyzer
CN111965127A (en) Multi-parameter water quality detector
CN105334178A (en) Harmful gas monitoring system based on detection rectifying circuit
CN201259489Y (en) Laser powder detection instrument having humidity continuous self-correction
CN206602699U (en) Electric ballast with UV intensity detections

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16918839

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 04/09/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16918839

Country of ref document: EP

Kind code of ref document: A1