ABSTRACT
The testing of water resources is the important foundation of management and protection of
detection. It is also one of the most important means of protecting water environment. Aiming at
problems of water quality inspection system, this paper designs the real-time detection based on single-
chip water system. In the circuit design, it can test five parameters.
The design uses C language on system programming in AT89S52 single-chip microcomputer. This
system mainly realize the display circuit design, the keyboard circuit design and so on. Sensors for
temperature, PH value, conductivity, turbidity and oxygen are used in this design. Except for
temperature sensor is easy to buy, the other four sensors are too expensive to get, so it used a simulated
test in this design. The whole system is divided into reset circuit, single-chip microcomputer control
circuit, A/D circuit, input/output circuit, LED display circuit and the power circuit. The main design is
to deal with signal comes from several kinds of sensors, and then transfer it to A/D converter to teleport
to chip in. When turning on the power, this system can display the various parameters and quality
inspection as well as alarm circuit abnormalities in alarm.
Key Words:
AT89S52; DS18B20; Led display; C language