CN206096107U - Water quality detecting system based on singlechip - Google Patents
Water quality detecting system based on singlechip Download PDFInfo
- Publication number
- CN206096107U CN206096107U CN201621083650.8U CN201621083650U CN206096107U CN 206096107 U CN206096107 U CN 206096107U CN 201621083650 U CN201621083650 U CN 201621083650U CN 206096107 U CN206096107 U CN 206096107U
- Authority
- CN
- China
- Prior art keywords
- circuit
- water quality
- temperature
- measuring
- measuring electrode
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Abstract
The utility model discloses a water quality detecting system based on singlechip, including single chip microcomputer system and difference connected TDS measuring circuit, temperature measuring circuit and digital tube display circuit. The TDS measuring circuit adopts multi resonant oscillation circuit to detect the conductivity of being surveyed solution, including transistor Q2, measuring electrode and the electric capacity C5 who establishes ties in proper order to and 555 chips, the probe group that measuring electrode goes into to be surveyed solution by two thongs becomes. The utility model discloses a research and analysis TDS measuring principle, conductivity signal's collection is realized as the control core of system to the selection singlechip through the probe in the conductivity measurement circuit to adopt temperature sensor to carry out temperature measurement, reduce the temperature to the influence of conductivity measurement value through the temperature compensating method, thereby improve the water quality measurement precision, at last with the measured value demonstration on the charactron.
Description
Technical field
This utility model is related to environmental protection facility technology field, and in particular to a kind of SCM Based water quality detection system
System.
Background technology
Water is Source of life, and the mankind be unable to do without water in productive life.In earth hydrosphere, the total amount of water resource is
1.37×109km3, wherein sea water accounts for the 97.3% of total amount, fresh water only account for its 2.7%.Fresh water proportion is not only few, and
Major part is distributed in the glacier under earth south poles snow and ice cover, in ice sheet, and available freshwater resources just only have river, light
Water lake and a part for subsoil water, are less than the 1% of total amount.Nowadays with the development of social economy, the progress of science and people
People's growth in the living standard, environmental pollution are increasingly severe, wherein, water environment pollution is the most serious.In water resource worsening shortages
Today, quality problem receives and increasingly focuses on, therefore test is carried out to water quality can make our preferably water conservations, protects
The qualified water quality of card, this has very important significance to normal production, guarantee product quality and health of people.
TDS is the abbreviation of English total dissolved solids, and Chinese is construed to total dissolved solid, also known as always containing
Salt amount, is defined as the total amount containing various dissolubility mineral saltses in water, and it includes the total amount of inorganic salt and Organic substance, and measurement is single
Position is mg/litre (1mg/L=1ppm), and it shows in 1 liter of water dissolved with how many milligrams of total dissolved solids, in other words in 1 liter of water
Total ion concentration.Popular says, TDS values represent solute impurity content in water, and TDS values are bigger, and in water, solute impurity is got over
It is many, illustrate that the impurity content of electrically conductive material in water is big.For tap water, TDS values are more high more show that water is impure and (do not consider
The premise of Organic Pollution).By detecting total dissolved solid (TDS), the total salinity of water can be analyzed.TDS water-quality tests
Instrument is exactly a kind of by measuring electrical conductivity of water reflecting the instrument of water-mineralizing degree.The TDS water-quality tests of the design research
The total solids content that instrument is mainly dissolved in the water to detection carries out detecting the instrument of examination that the instrument is to pass through so as to reach to water quality
Measure electrical conductivity of water indirectly to reflect TDS values.The electric conductivity of water is better, and TDS values are bigger.Identical water quality is different in theory
At a temperature of TDS values be consistent, and electrical conductivity is different with TDS values, and temperature affects the electrical conductivity of solution.Will
At the different temperature of water quality of sample of seeking common ground, the value that determines will be consistent, so wanting under accurate measurement different quality difference water temperature
TDS values, it is necessary to have temperature-compensating, carry out the correction of TDS values by the water temperature of measure.TDS in the market is detected
By the way of probe, by the way of direct current, directly power-up is pressed on probe the two poles of the earth, determines two interelectrode voltages, draws electricity
Conductance, then by calculating the TDS values of water outlet.
Utility model content
This utility model purpose is:A kind of SCM Based Water-quality Monitoring System system is provided, to detection dissolving
The total solids content of Yu Shuizhong is detected to water quality so as to reach.
The technical solution of the utility model is:
A kind of SCM Based water quality detection system, including Single Chip Microcomputer (SCM) system and the connected TDS measurements electricity of difference
Road, temperature measuring circuit and digital pipe display circuit.
Preferably, described Single Chip Microcomputer (SCM) system includes single-chip microcomputer and its power circuit for being connected, clock circuit and reset
Circuit.
Preferably, the TDS measuring circuits detect the electrical conductivity of detected solution, including transistor using multi-resonant oscillating circuit
Q2, measuring electrode, electric capacity C5 and 555 chips, the measuring electrode are made up of the probe of two insertion detected solutions, the crystalline substance
The colelctor electrode of body pipe Q2 connects one end that high level VCC, emitter stage connect measuring electrode, and the measuring electrode other end is connect by electric capacity C5
Ground, the terminals between the measuring electrode and electric capacity C5 connect triggering end TR of 555 chips and threshold value end TH, the crystalline substance respectively
The emitter stage of body pipe Q2 is also connected with the discharge end DIS of 555 chips, and the base stage of transistor Q2 connects the outfan V0 of 555 chips.
Preferably, the distance between two probes of the measuring electrode are L, and it is transversal with probe that probe immerses solution deep
The product of face length is S, and L/S is constant.
Preferably, the DS18B20 digital temperature sensors that described temperature measuring circuit is powered using external power source, the temperature
Degree sensor has three pins, and VCC is external power supply input, and GND is power supply ground, and DQ is digital signal input/output
End.
Preferably, the digital pipe display circuit uses 4 common-anode charactrons, is driven using Dynamic Announce, i.e.,
" A, B, C, D, E, F, G, the DP " of charactron this 8 section route selections of each are connected with a 8 parallel-by-bit I/O mouths.
The utility model has the advantages that:
This utility model selects single-chip microcomputer as the control core of system, by electricity by researching and analysing TDS measuring principles
Probe in conductance measuring circuit realizes the collection of conductivity signal, and carries out temperature survey using temperature sensor, by temperature
Degree compensation method reduces impact of the temperature to conductivity measurements, so as to certainty of measurement of increasing water quality, finally shows measured value
On charactron, specifically:
(1) this utility model helps people to understand water quality situation by detecting water body TDS values, possesses simple structure, soon
The characteristics of fast, sensitive, automatization, good and with low cost practicality, can be used in well people life, production in;
(2) this utility model core devices adopt the STC89C52 single-chip microcomputers of STC Corporation as processor.The chip is continued to use
Classical MCS-51 kernels, and done many improvement on the basis of MCS-51;The completely compatible tradition of chip instruction code
8051 single-chip microcomputers;The chip has 12 clocks/machine cycle and the 6 clocks/machine cycle can be optional, can also compile with 8k bytes
Journey FLash memorizer and 512 bytes RAM;The chip does not need Special programming or dedicated emulated device, can directly use serial ports
Download;
(3) this utility model uses frequency method and surveys electrical conductivity, and the method is the equivalent electric electrode and detected solution
The impedor as a multi-resonant oscillating circuit is hindered, the change of detected solution electrical conductivity is changed into into the defeated of multi-resonant oscillating circuit
Go out frequency.The method low cost, easily realizes.Key circuit is easy to latch measured value;
(4) this utility model is the one-line of DALLAS semiconductor companies production from DS18B20 digital temperature sensors
Intelligent digital temperature sensor, is the temperature sensor of first support " one-wire bus " interface in the world.New digital temperature is passed
Sensor DS18B20 has the advantages that volume is less, precision is higher, it is wider to be suitable for voltage, using one-wire bus, can networking, in reality
Good thermometric effect is achieved in the application of border.
Description of the drawings
Below in conjunction with the accompanying drawings and embodiment is further described to this utility model:
Fig. 1 is the single-chip minimum system of SCM Based Water-quality Monitoring System system described in the utility model
Module electrical schematic diagram;
Fig. 2 is TDS measuring circuits schematic diagram described in the utility model;
Fig. 3 is temperature measuring circuit schematic diagram described in the utility model;
Fig. 4 is digital pipe display circuit schematic diagram described in the utility model;
Fig. 5 is key circuit schematic diagram described in the utility model;
Fig. 6 is overall circuit schematic diagram described in the utility model.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the SCM Based water quality detection system of this utility model is retouched in detail
State, but description of the applicant to embodiment be not the restriction to technical scheme, it is any make form according to this utility model design and
It is immaterial to change the protection domain that be all considered as this utility system.
As shown in figure 1, the minimum system of single-chip microcomputer should include single-chip microcomputer, power circuit, clock circuit and reset circuit etc.,
Comprising pin have VCC, GND, XTAL1, XTAL2, RST,STC89C52 uses the crystal oscillator conduct of 12MHz
Oscillation source, as oscillating circuit is carried inside single-chip microcomputer, as long as so one crystal oscillator of outside connection and two electric capacity, electric capacity
Typically between 15pF to 50pF, the circuit selects the electric capacity of 22pF to capacity.The main task of clock circuit is to single-chip microcomputer
The normal work of STC89C52 provides a stable clock signal, and single-chip microcomputer is one by one held under the rhythm of this clock signal
Row instruction.The producing method of the clock signal of single-chip microcomputer has two kinds, and one kind is external clock mode, and another kind is internal clocking side
Formula.External clock mode is that existing clock signal is sent into single-chip microcomputer from XTAL1 or XTAL2, and which has been generally used for many
The situation of individual single-chip microcomputer, so clock circuit uses internal clocking mode in the design, the crystal oscillator from 12M and two
The electric capacity of 22pF constitutes a self-excited oscillator with the high gain inverting amplifier in piece.
STC89 series monolithics reset for high level, connect an electric capacity to VCC, then connect generally on reset pin RST
A resistance is connect to GND, a RC charging and discharging circuit is consequently formed, so can ensure that single-chip microcomputer has on RST feet when upper electric
The high level of enough time is resetted, and is subsequently revert to low level and is entered normal operating conditions.When Single Chip Microcomputer (SCM) system is in operation
In, it is interfered when there is program fleet, presses the Automatic Program inside SR and start anew to perform.In order to ensure
The reliable and stable work of circuit energy in Single Chip Microcomputer (SCM) system, reset energy reliably working, and reset circuit is an indispensable part, multiple
Position circuit includes hand-reset and electrification reset.Single-chip microcomputer is required for resetting when starting working, and can thus make whole system
Original state of the system in determining, starts working from original state.The reset signal of 89 series monolithics is input into from RST pins
In Schmidt trigger in chip.When working state of system it is normal, after oscillator stabilization, if having one on RST pins
Individual high level and (24 cycles of oscillation) more than is kept for 2 machine cycles, then CPU can just be responded and by system reset.
Schematic diagrams of the Fig. 2 for TDS measuring circuits.The TDS measuring circuits detect detected solution using multi-resonant oscillating circuit
Electrical conductivity, including transistor Q2, measuring electrode DBT1, electric capacity C5 and 555 chips, the measuring electrode is by two insertion quilts
The probe composition of solution is surveyed, the colelctor electrode of the transistor Q2 connects one end that high level VCC, emitter stage connect measuring electrode, measures
The electrode other end is grounded by electric capacity C5, and the terminals between the measuring electrode and electric capacity C5 connect touching for 555 chips respectively
Originator TR and threshold value end TH, the emitter stage of the transistor Q2 are also connected with the discharge end DIS of 555 chips, the base stage of transistor Q2
Connect the outfan V0 of 555 chips.When the two probes insertion detected solutions connect in measuring electrode DBT1, define one it is electric
Pole, the resonance circuit for closing whole circuit composition, and the frequency relevant with detected solution electrical conductivity produced by the resonance circuit
Rate f is exported by 3 pins of 555 chips, is input into single-chip microcomputer P3.5 mouths.
Voltage when TDS measuring circuits just bring into operation on electric capacity C5 is 0, and side circuit is in SM set mode, and pin 3 is defeated
Go out high level.VCC is charged to C5 by electrode, Q2 conductings, and charging process is:VCC-Q2-electrode-C5.When rise to Vc >=
During 2/3VCC, high limit comparator reversion inside 6 feet, 3 feet output low level, Q2 cut-offs, in 7 feet, open collector discharge tube is led
It is logical, discharge process:C5-electrode-7 pin.When Vc≤1/3VCC is discharged to, lower bound comparator reversion in foot 2, pin 3 is again
Secondary output high level, electric capacity are recharged.So above procedure moves in circles to form vibration output frequency f.Jing circuit theories are obtained
Go out below equation:
In formula (2.6):The electric conductivity value that G (t)=1/Rx, G (t) are surveyed for electrode;K0=0.772/C5, K0 are conductance-frequency
Rate conversion coefficient.By formula (2.6) as can be seen that output frequency f is directly proportional to conductance G (t), i.e., frequency and electrical conductivity are linearly closed
System.
In the design process, the size of probe is fixed, i.e. L/S=constants, and L is the spacing between two probes, and S is probe leaching
Enter the product of solution deep and probe cross-section lengths.L=1.5cm, S=4cm*0.15cm=0.6cm2 in this experiment, so
L/S=2.5cm-1=250m-1;C5=0.1uf.Detected solution between two probes is also considered as into resistance, it may be determined that f and K's
Linear relationship, i.e.,:K=3.2410-5f, that is, extrapolate TDS=(0.55~0.70) × 3.24 × 10-5×f。
As shown in figure 3, the DS18B20 digital temperature sensors that described temperature measuring circuit is powered using external power source,
Described DS18B20 digital temperature sensors support " single bus " interface, and the scope of measurement temperature is -55 DEG C~+125 DEG C,
At -10~+85 DEG C, precision is ± 0.5 DEG C;Voltage range width is adapted to, voltage range is 3.0~5.5V, is supplied using external power source
The mode of electricity.The temperature sensor has three pins, and VCC is external power supply input, and GND is power supply ground, and DQ is digital
Signal input/outfan, connects single-chip microcomputer P1.6 mouths.In the circuit, an indirect pull-up resistor of VCC pin and DQ pins,
Resistance is about 4.7K, and high level is in when making circuit not work.The temperature data gathered by DS18B20 is converted into through sensor
Corresponding digital signal, then sends digital signal to single-chip microcomputer, makees corresponding data processing by single-chip microcomputer and obtain temperature
Value, then temperature-compensating is carried out by the program of single-chip microcomputer.
As shown in figure 4, the digital pipe display circuit uses 4 common-anode charactrons, driven using Dynamic Announce,
Will " A, B, C, D, E, F, G, DP " this 8 section route selections of each of charactron be connected with a 8 parallel-by-bit I/O mouths.In electricity
In the application of road, common anode charactron common port COM is met into+5V, when a certain field is shown, the negative electrode of light emitting diode is low electricity
Flat, respective field is just lighted, and when light-emitting diodes tube cathode is high level, corresponding field does not just work.The circuit is aobvious using dynamic
Show driving, will charactron " A, B, C, D, E, F, G, DP " this 8 section route selections of each and a 8 parallel-by-bit I/O mouth phases
Even.When circuit runs, charactron receives the identical graphemic code of single-chip microcomputer output, and single-chip microcomputer para-position gating terminal circuit carries out control
System, opens the gating control of the charactron for needing to show, the position will show font, have the charactron of gating would not
It is bright.The position gating end timesharing wheel flow control of logarithmic code pipe, makes the controlled display in turn of every charactron.During actual displayed,
Every charactron is not that while light, but as the lighting time of bits per inch code pipe is very short, and the speed for scanning is sufficiently fast,
Look to be exactly one group of stable video data.The charactron is common anode charactron, and outside low level can just be lighted corresponding interior
Portion's diode.In described figure, 8 feet A-G and DP of charactron are connected to the P0 mouths of single-chip microcomputer, and position control end 1-4 is connected on respectively
P2.0-P2.3 mouths.Make corresponding charactron selected by P2.0-P2.3 mouths, then show correspondent section Digital sum pipe by P0 mouths
Registration word.In the design, numeral method is TDS values.
As shown in figure 5, which is key circuit, in circuit, when 8 feet are low level, circuit turn-on, button are pressed for the first time
Under, circuit starts measurement, after being measured, presses the button again, and system is preserved and shows measured result.If pressed again
Lower button, program empty measured data.
As shown in fig. 6, which is the overall circuit figure of the new design.The system is by singlechip minimum system circuit, conductance
Rate measuring circuit, temperature measuring circuit, key circuit and digital pipe display circuit composition.In systems, by conductivity measurement electricity
Road measures the electrical conductivity of detected solution using frequency method, by the temperature of temperature sensor measurement detected solution, calculates through software
The electrical conductivity and temperature of measurement are carried out temperature-compensating by method, are calculated TDS values finally by correlation formula, are displayed on charactron,
Measured value is latched and reset by key circuit.
Above-described embodiment only to illustrate technology design of the present utility model and feature, its object is to allow and be familiar with technique
People will appreciate that content of the present utility model and implement according to this, protection domain of the present utility model can not be limited with this.It is all
According to the modification done by the spirit of this utility model main technical schemes, should all cover in protection domain of the present utility model
Within.
Claims (6)
1. a kind of SCM Based water quality detection system, it is characterised in that:It is connected including Single Chip Microcomputer (SCM) system and difference
TDS measuring circuits, temperature measuring circuit and digital pipe display circuit.
2. SCM Based water quality detection system according to claim 1, it is characterised in that:Described Single Chip Microcomputer (SCM) system
Including single-chip microcomputer and its power circuit for being connected, clock circuit and reset circuit.
3. SCM Based water quality detection system according to claim 1, it is characterised in that:The TDS measuring circuits
The electrical conductivity of detected solution, including transistor Q2, measuring electrode, electric capacity C5 and 555 chips are detected using multi-resonant oscillating circuit,
The measuring electrode is made up of the probe of two insertion detected solutions, and the colelctor electrode of the transistor Q2 connects high level VCC, transmitting
Pole connects one end of measuring electrode, and the measuring electrode other end is grounded by electric capacity C5, connecing between the measuring electrode and electric capacity C5
Line end connects triggering end TR of 555 chips and threshold value end TH respectively, and the emitter stage of the transistor Q2 is also connected with putting for 555 chips
The base stage of electric end DIS, transistor Q2 connects the outfan V0 of 555 chips.
4. SCM Based water quality detection system according to claim 3, it is characterised in that:The two of the measuring electrode
The distance between individual probe is L, and probe immersion solution deep is S with the product of probe cross-section lengths, and L/S is constant.
5. SCM Based water quality detection system according to claim 4, it is characterised in that:Described temperature survey electricity
The DS18B20 digital temperature sensors that road is powered using external power source, the temperature sensor have three pins, and VCC is external confession
Electric power input, GND are power supply ground, and DQ is digital signal input/output terminal.
6. SCM Based water quality detection system according to claim 5, it is characterised in that:The numeral method electricity
Road uses 4 common-anode charactrons, using Dynamic Announce drive, will charactron " A, B, C, D, E, F, G, DP " this 8
The position section route selection of each is connected with a 8 parallel-by-bit I/O mouths.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201621083650.8U CN206096107U (en) | 2016-09-27 | 2016-09-27 | Water quality detecting system based on singlechip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201621083650.8U CN206096107U (en) | 2016-09-27 | 2016-09-27 | Water quality detecting system based on singlechip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN206096107U true CN206096107U (en) | 2017-04-12 |
Family
ID=58480618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201621083650.8U Expired - Fee Related CN206096107U (en) | 2016-09-27 | 2016-09-27 | Water quality detecting system based on singlechip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN206096107U (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108152335A (en) * | 2018-02-08 | 2018-06-12 | 李华玮 | TDS test devices and mobile phone back splint |
CN108303450A (en) * | 2018-03-01 | 2018-07-20 | 中国地质调查局南京地质调查中心 | Quick real-time dynamic monitoring degree of mineralization of ground water device and its working method |
CN108490994A (en) * | 2018-02-02 | 2018-09-04 | 上海权宥环保科技有限公司 | A kind of water-saving control circuit of perseverance concentration electrolysis |
CN110501258A (en) * | 2019-09-27 | 2019-11-26 | 深圳职业技术学院 | A kind of solid and fluid density general measuring instrument and density measuring method |
CN112083133A (en) * | 2020-08-18 | 2020-12-15 | 惠州拓邦电气技术有限公司 | Nonlinear water solubility total solid compensation method and detection device |
-
2016
- 2016-09-27 CN CN201621083650.8U patent/CN206096107U/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108490994A (en) * | 2018-02-02 | 2018-09-04 | 上海权宥环保科技有限公司 | A kind of water-saving control circuit of perseverance concentration electrolysis |
CN108152335A (en) * | 2018-02-08 | 2018-06-12 | 李华玮 | TDS test devices and mobile phone back splint |
CN108303450A (en) * | 2018-03-01 | 2018-07-20 | 中国地质调查局南京地质调查中心 | Quick real-time dynamic monitoring degree of mineralization of ground water device and its working method |
CN110501258A (en) * | 2019-09-27 | 2019-11-26 | 深圳职业技术学院 | A kind of solid and fluid density general measuring instrument and density measuring method |
CN112083133A (en) * | 2020-08-18 | 2020-12-15 | 惠州拓邦电气技术有限公司 | Nonlinear water solubility total solid compensation method and detection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206096107U (en) | Water quality detecting system based on singlechip | |
CN101533031B (en) | Dissolved oxygen intelligent transducer | |
CN206710417U (en) | A kind of TDS water quality testing meters | |
CN106841324A (en) | A kind of SCM Based TDS water quality testing meters | |
CN207423952U (en) | One kind is used for Urban Water Environment restoration of the ecosystem real-time monitoring device | |
CN101339151B (en) | Composite sensor for measuring soil moisture characteristic curve | |
CN201378163Y (en) | Instrument for measuring solute transport diffusibity parameters | |
US10955402B2 (en) | Modular sensor architecture for soil and water analysis at various depths from the surface | |
CN102788823B (en) | Frequency domain reflection-type soil humidity sensor | |
CN107044866A (en) | The soil moisture, moisture and conductivity measuring apparatus | |
CN201749101U (en) | Hydrate formation dynamic simulation experiment device | |
CN103207266B (en) | Sediment oxygen demand rate determination device based on electromagnetic dynamic and using method | |
CN201348620Y (en) | Octane number gasoline tester capable of detecting carbinol and ethanol simultaneously | |
CN102042998A (en) | Hydrate formation kinetics simulation experiment device | |
CN206573161U (en) | A kind of soil moisture, moisture and conductivity measuring apparatus | |
CN206248166U (en) | A kind of water-level measuring post of portable type measuring level of ground water | |
CN101256164A (en) | System for layered measuring soil moisture | |
CN108490046A (en) | A method of it being used to quickly detect the electrochemical sensor of unstable substance and utilizes its Quantitative detection ATP | |
CN201449390U (en) | Crude oil water-bearing detection apparatus | |
CN201247216Y (en) | Apparatus for measuring liquid-carrying capability of foam | |
CN101762621A (en) | Gasoline tester capable of detecting octane values of methanol and ethanol simultaneously | |
CN107990941A (en) | A kind of multifunctional water well measurements device | |
CN206756936U (en) | Electrodeless formula conductivity detector for salt water area | |
CN201965112U (en) | High-precision seawater salinity measuring device | |
CN109307752A (en) | It is a kind of for obtaining the sensor and method of the more depth moisture contents of soil |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170412 Termination date: 20190927 |