水情检测系统设计

水质监测系统主要以8051内核单片机为主要控制单元,采用酸碱度传感器检测水的PH值,分析水的酸碱程度,18B20温度传感器检测水的温度,超声波传感器测量水面高度,整个检测系统由传感器采样电路,信号处理电路,模数转换电路,单片机控制电路,显示电路和电源电路构成。主要研究的几个传感器检测信息经过信号处理电路产生可变电压,经过模数转换电路,到单片机处理后,显示水面高度,酸碱度值和水温。在系统的设计上本文采用了模块化设计,大大减少了故障率的发生,每个模块独立工作,互不影响,提高了整机的效率,本文对各个模块的选材和设计做出了详细的说明,采用系统框图形式简洁易懂,对软硬件设计思想做出了详细的介绍,对在设计期间遇到的问题和解决的方案介绍。
目录
一、引言 5
1.1课题意义和发展 5
1.2本文主要研究内容 5
二、系统设计方案 5
2.1系统框图 6
三、硬件选择与设计 6
3.1单片机芯片选择 6
3.2单片机最小系统的设计 7
3.3温度传感器选择 7
3.4温度传感器电路设计 8
3.5测距传感器的选择 8
3.6测距传感器电路设计 9
3.7水质监测器的选择 9
3.8水质监测器的设计 10
3.9 A/D转换电路的设计 10
3.10液晶显示电路设计 11
3.11电源电路设计 11
四、软件系统设计 13
4.1软件设计 13
4.2主程序流程图 13
4.3 18B20温度测试流程图 14
4.4 超声波测试流程图 14
4.5 酸碱度测试流程图 14
五、系统调试 15
5.1软硬件调试 15
总 结 16
致 谢 17
参考文献 18
附录一:实物图 19
附录二:源代码 21
Abstract
The water quality monitoring system mainly uses the 8051  *好棒文|www.hbsrm.com +Q: &351916072& 
core singlechip microcomputer as the main control unit. It uses the pH sensor to detect the PH value of water, analyzes the acidity and alkali degree of water, the 18b20 temperature sensor detects the water temperature, and the ultrasonic sensor measures the water surface height. The whole detection system consists of sensors. Sampling circuit, signal processing circuit, analogtodigital conversion circuit, singlechip control circuit, display circuit and power supply circuit. The main sensor detection information is generated by the signal processing circuit to generate a variable voltage. After the analogtodigital conversion circuit is processed by the singlechip microcomputer, the water surface height, the pH value and the water temperature are displayed.
In the design of the system, the modular design is adopted, which greatly reduces the occurrence of failure rate. Each module works independently and does not affect each other, which improves the efficiency of the whole machine. This paper has made detailed details on the material selection and design of each module. Explain that the system block diagram is simple and easy to understand. It introduces the software and hardware design ideas in detail, and introduces the problems encountered during the design and the solutions.
Key words: 8051 core single chip microcomputer; pH sensor; 18b20; ultrasonic transducer;
一、引言
1.1课题意义和发展
水是生命之源,万物都离不开水,它造就了生命,是人体必备的物质基础,我们每天都要喝水,水的安全决定着我们健康的身体,酸碱度不合适的水会导致亚健康,长时间引用不好的水源会导致疾病的发生。
我们的健康是重中之重,现在我们越来越关心饮水质量,我开发这套系统就是为了更好得健康的使用安全的水源。水质检测系统采用8051为内核的单片机,这款处理芯片稳定度高,从开发到应用已经经历了半个世纪,价格低、有保障,开发上手快,缩短开发的时间,应用相当广泛,想设计一个好的水质监测系统是不容易的,采用现在市面上流行的酸碱度传感器测量水的酸碱程度,判断是否适合饮用,根据水温的不同,水里的微生物存活种类不同,采用18B20温度传感器测试水温,该传感器结构简单、便于使用,为了测试水库的存储量,利用超声波传感器测试水的高度,采用液晶显示数据更直观的获取信息。水质监测系统功能强大,可以测量水的酸碱程度,水温和水面高度,通过液晶更加直观的显示测试数据。

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/gdxx/85.html

好棒文