水行业智能多功能综合测试仪
论文编号:DZXX149 论文字数:12046,页数:49摘 要
基于Atmega16单片机为检测和控制核心,并同NTC温度传感器KG-C-103F-3950K及霍尔流量传感器构成温度与流量的测控系统。给出了系统的总体设计方案、硬件设计及软件框图。设计的精良测控系统具有优良的性价比,通过系统软硬件的联合调试说明该系统可以满足对温度及流量进行监控的需要,可以对系统测控时间、流量等进行设置,可以将测试的各部分信息通过LCD显示,并且有声光报警提示,可以提高测试的效率、节约水资源、节省劳动力,对该行业有很好的应用价值。
关键词:Atmega16,NTC温度传感器, 霍尔流量传感器
ABSTRACT
The design uses the microcomputer Atmega16 as a control center of the temperature and flow monitoring system. A center of temperature and flow monitoring system is composed of Atmega16,NTC temperature sensors and Hall-flow sensors .The system design and its hardware and software are given. Its design has an excellent function and a cheap price. Through joint software and hardware debugging system it can control the real-time temperature and flow. Its design has an excellent function and a cheap price. Through joint software and hardware debugging system it can control the real-time temperature and flow. It can set the test time and flow. It is test the various parts of information through the LCD display. And a sound and light alarm tips,it can raise test efficiency,conservation of water resources,labor- saving, labor the industry has good value.
Keywords: Atmega16 , NTC temperature sensors , Hall-flow sensors
目录
摘 要 I
ABSTRACT II
第1章 引言 1
1.1本系统设计的背景 1
1.2本系统设计任务和主要内容 1
第2章 系统设计原理与方案论证 3
2.1本系统设计总体框图 3
2.2本系统设计的总体方案论证 3
2.2.1测试系统测控终端以ATmega16单片机为核心 3
2.2.2该系统温度检测采用NTC负温度系数的热敏电阻 5
2.2.3该系统水流检测采用霍尔旋转传感器 5
2.2.4该系统水路控制采用SLC水用电磁阀 6
第3章 硬件电路设计与计算 7
3.1电源部分电路设计 7
3.1.1 +5V电源电路的设计 7
3.1.2 +24V电源电路的设计 8
3.1.3 -5V电源电路的设计 9
3.2单片机外围扩展电路设计 9
3.3温度测试电路设计 9
3.4液晶显示部分电路设计 11
3.5报警信号电路设计 12
3.6 按键控制部分电路设计 12
3.7水流量测试电路设计 13
3.8单片机烧录口电路设计 13
3.9电磁阀驱动部分电路设计 14
3.10单片机控制部分设计 14
第4章 软件部分设计 15
4.1软件整体设计方案 15
4.2主程序设计 15
4.3程序头文件说明 16
4.4初始化程序设计 16
4.5中断程序设计 17
4.6 A/D 转换程序设计 18
4.7液晶读写程序设计 19
4.8延时程序设计 20
第5章 实验测试 22
5.1 电源部分测试与检测 22
5.2开机检测 22
5.3温度检测和液晶显示测试 22
5.4水流量检测和液晶显示测试 22
5.5蜂鸣器报警电路测试 22
5.6按键功能设置测试 23
5.7电磁阀驱动电路测试 23
5.8系统联调 23
第6章 结束语 24
致 谢 25
参考文献 27
附录I SCH原理图 28
附录II PCB原理图 29
附录III 实物图 30
附录IV 原代码 31
附录V 电子元器件清单 45
页:
[1]