Design and Implementation of a Na~+ Ion Concentration Testing Instrument
- Author
- YangXue
- Advisor
- LiBaoHua
- School
- Jilin University
- Major
- Circuits and Systems
- Classification
- TH89 Other instrumentation
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 115
- Citations
- 1
Abstract
With the continuous improvement of living standards, more and more ion content problems come out. People pay more attention to the ion content problems. ion content will be seriously affected industrial production, food security, environment, people’s health and so on. Ion concentration control has been more and more attentioned. However, the current water quality monitoring equipment has also adopted the basic laboratory analysis equipment, heavy workload, low sampling frequency, complex operation, high cost and very expensive, which can not satisfy the total quantity control of water quality testing requirements. Therefore, this study developed a sodium ion concentration detector which is cost-effective, simple operation, easy to carry .This Na+ ion concentration testing instrument’s function is real-time detection of sodium ion concentration in the water and display the result. This detector takes ion exchange method,it can detect Mg2+、K+、F+ with the same hardware conditions,only by change the corresponding ion electrodes.In this paper, designed a sodium ion concentration detector based on the Nernst equation, given the concentration of the principle of detection and temperature compensation, and the relevant formula is derived. From both hardware side and software side to describe the design process in detail. Finally, through experiments to verify the relevance and reliability of the detector.Now to introduce the detector from hardware side and software side:1, Hardware.The detector is composed of voltage conversion circuit, amplifier circuit, AD circuit, single-chip and its subsidiary circuit,temperature sensor, keyboard, LCD and so on. The concentration of Na+ ion will be turn to voltage. The voltage is transferred to STC89C58RD+ to deal after dealed by the amplifier circuit and analog-to-digital conversion circuit.Then the ruslut will be display on the LCD.In the part of hardware design, take STC89C58RD+ as the control core, This single-chip has more resources, and with E2PROM internal, and has a relatively large storage space. In addition, it’s instructions is fully compatible with the traditional code of the MCS-51, as a result of the high-speed core, its processing speed is faster. At the same time, it is a single-chip which is super low power consumption and anti-interference, it is suitable for the needs of the system. In addition,the auxiliary circuit is also carried out a special deal, in order to enhance the stability and reliability of system.Amplifier circuit uses INA116. INA116’s input bias current is very low, typically 3fA. Great resistance value for the level M?, and much greater than the electrode’s resistance. In addition, it has a very low drift voltage (<2mV) and high (> 84dB) of the common mode rejection ratio. Magnification can be directly adjustment in a wide range with an external resistor, it suits the application of high-precision measuring ion concentration measuring instruments.AD circuit uses ADS1100. Its greatest advantage is for the I2C interface,it has a simple form, you can save a great deal hardware resources of the interface.In addition it can simplify the hardware design.Human-Computer Interaction module using the four buttons to complete the functions of measurement, storage, switching,return and so on. With reasonable design, the four keys can complete all data input and order entry.In addition,use 12864 to show each interface. In general, human-computer interaction module is simple,clear,and easy to operate.This system selects 18B20 as the temperature sensor which is produced by DALLAS U.S. company , this device does not require an external circuit, which can transmit data with one line, the hardware circuit is simple.AC 220V is the power of power supply part, this power supply part can supply voltage like +9 V,-9V, +5 V,through the reasonable design. This part is security, stability, working to meet the requirement of equipment.2, software.The software of this detector uses KeilC51 to develop. Uses C language which is better readability, portability and reliability to programe. through the serial port to write procedures to single-chip microcomputer. Made the entire implementation process,the measurement of ion concentration measurement, display, file storage and other operations come true.Software is composed with main program and subprogram. The various subprogram is controled by the main program according to a predetermined way, it can finish its function when the trigger conditions are ripe. Different function has different subprogram is necessary.It plays a good role to make software be rigorous logic and context clearly. In addition, new features to increase it’s easy to add new features. This is the basic principles to be followed when design project.Subprogram include: choice of key functional subroutine, display subroutine, measurement subroutines, calibration subroutine, E2PROM subroutine, storage subroutines and so on.The part of software can finish this main function: Read the conversion value of ADS1100 through the I2C interface, and restore their terms, have been amplified voltage values, And restore its terms,then get the amplified voltage values. Read DS18B20 conversion value through the single bus interface, and restore their calculation, get the temperature of test solution. According to the principle of temperature compensation read the needs value from the E2PROM memory, according to the temperature compensation to Calculate the ion concentration of testing solution, and displayed on the LCD screen.At the end of hardware and software design,through the test solution to verify the detector’s accuracy and reliability. Finally, an analysis of error sources and proposes ways to reduce the error are given.The key technology of the Na+ ion concentration testing instrument is to deal with the signal which is collected by electrode and derive the temperature compensation formula.1, Deal with the signal which is collected by electrodeThe signal which is collected back by the electrode is very sick, for the class mV, so the early work of signal processing is very important, it’s necessary to avoid interference of orther signal. First of all, because of the high resistance of the electrode, so we need to select a high-input impedance amplification chip to support. In addition, the lead electrode signal using coaxial cable and the outer shield of coaxial cable need to connected with the earth, so that electromagnetic interference can be effectively inhibited. Finally, the sick signal sent to the amplifier directly,the pin connected to the input pin and not pass through the PCB board, however, which is the same role in order to reduce the interference.The above job can not be omitted for the accuracy of the results .2, Derive the temperature compensation formulaIn the process of measurement of Na+ ion concentration, the temperature impacts the result,. Without a certain degree of temperature compensation will be affected the Na+ ion concentration measurement accuracy and stability.In the actual measurement of Na~+ ion concentration always design like this: express a certain concentration of sodium ion as a voltage value. But, the result of electrode system of the potential at the same concentration, is different when the temperature is different. Therefore, it is necessary to make a certain temperature as a standard. However, the measured temperature of the solution are usually deviate from this standard, thus eliminating the effect of temperature on the measurement improve the accuracy is the premise. The equipment will use the temperature compensation formula to eliminate the impact of temperature.Low-cost, reliability and stability is emphasised when the equipment was designed.The whole system has been successful.At the same time,because of the detector can be used as other ion concentration replacement only by a different plasma electrode and change the magnification of amplifier circuit.it can achieve a wide range of ion concentration detected, At the same time it has a portable and multi-functional characteristics. therefore the entire system has enormous application.
Table of contents
Summary 5-9
first chapter 9-16
1.1 subject background and significance 9-10
120 domestic and foreign research and development status 10-11
1.3 features, design specifications and 11-15
1.3.1 function 11-12
1.3.2 design specifications 12-13
1.3.3 design 13-15
1.4 Summary 15-16
detector measuring principle, the principle of temperature compensation, and impact factor analysis 16-24
2.1 sodium ion concentration determination principle 16-19
2.1.1 electrode introduced 16-18
2.1.2 Principle of Measurement 18-19
2.2 temperature compensation formula of 19-20
2.3 of factors affect the accuracy of the instrument 20-23
2.3.1 instrument input impedance measurements, and the elimination of 20-21
2.3.2 Temperature measured and the elimination of 21
2.3.3 of other ions on the measurement of low levels of sodium ion concentration and the elimination of 21-23
2.4 Summary 23-24
Chapter III system hardware architecture 24-40
3.1 MCU and its peripherals basic circuit 24-26
3.1.1 STC89C58RD About 24-26
3.1.2 MCU peripheral circuit 26
3.2 signal acquisition and processing circuit 26-31
3.2.1 amplifier 26-29
3.2.2 modulus The conversion circuit 29-31
3.3 keyboard control circuit, display driver circuit and the temperature measurement circuit 31-37
3.3.1 keyboard control circuit 31-32
3.3.2 LCD display driver circuit 32-35
3.3.3 Temperature measurement circuit 35-37
3.4 power supply circuit 37-38
3.5 circuit reliability design 38-39
3.6 Summary 39-40
the fourth chapter of the software part 40-56
4.1 software control program design, basic principles and ideas 40
4.2 system, the main design 40-41
4.3 module driver design 41-46
4.3.1 key functions to select the program designed 41-42
4.3.2 E, ~~ 2PROM data storage function 42-46
4.4 measurement and data processing procedures designed 46-51
4.4.1 measurement procedures designed 46-48
4.4.2 The data processing procedures 48-51
4.5 interface and operating procedures designed 51-55
4.6 Summary 55-56
Chapter experiments and error analysis of the
56-63
5.1 Reagents introduced 56
5.2 detector of the performance test 56-59
5.2.1 Instrument precision performance testing 57
5.2.2 stability of the instrument performance testing 57-58
5.2.3 electrode response performance testing 58-59
5.3 Error Analysis 59-61
5.3.1 error sources 59-60
5.3.2 Reduce Errors in the way 60-61
5.4 instrument operation instructions and precautions 61-62
5.4.1 Instrument operating instructions 61-62
5.4.2 Note 62
5.5 Summary 62-63
Chapter VI analyzes and summarizes 63-65
References 65-68
Appendix 68-69
published papers and scientific research 69-70
thank 70-71
Chinese Abstract 71-74
ABSTRACT 74-77
Related dissertations
- The Foam Insulation Greenhouse Monitoring System Design
- Research of a System Integrated Rotational Speed and Temperature Measurement Based on MCU
- The Wireless Temperature and Humidity Monitoring System Design
- The Design for Wireless Multiple Measuring System of Small Area Crop Growth Environment
- Development of Intelligent Control System for Precise Wheat Seeder with Suction and Stepless Speed Regulation
- The Design of PCR Temperature Control System in STC
- Design of Temperature and Humidity Control System Based on Micro-controller
- The Design and Implementation of Automatic Nail System for Greenhouses Heat Preservation Quilt
- Research and Design of Transfer Robot Using Competition
- The Design of Kerosene Vapor Concentration Detector
- Research on Detector Optimization and Multi-shape Detection in Immunity-based Intrusion Detection System
- Research of Detector Gerneration Based on Information Gain in Immune Intrusion Detection System
- Research on Detector Generation and Distribution Algorithm under Neighborhood Space
- Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
- Research on System of Digital Image Proccessing and Recognition of Instruments
- Application Research of Wireless Anti-theft System Based on GSM/GPRS
- The Design of W Band Millimeter Wave Detector
- The design and Realization of DDS technology of high precision signal source based on
- On the Design of Digital Synthesizer Based on Phase-Locked Loop
- Design and Implementation of a MCS-51-instruction-set-compatible High Speed MCU