1、 1 毕业教学环节成果毕业教学环节成果 (2013 届) 题 目 智能测温仪的设计与制作 学 院 信息工程学院 专 业 应用电子技术专业 班 级 应电 101 学 号 姓 名 指导教师 2013 年 5 月 25 日 1 目目 录录 摘要 3 引言 5 1 控制方案选择. 6 1.1 智能测温仪的功能 6 1.2 系统方案简介 6 1.3 系统控制方案: 6 2 智能测温仪的基本结构与工作原理. 6 2.1 硬件结构 6 2.2 工作原理 7 3 硬件电路设计. 7 3.1 单片机最小系统的设计 7 3.1.1 主要性能参数 8 3.1.2 AT89C52 管脚说明 9 3.2 数码管显示电路
2、设计 11 3.3 数据采集电路设计 11 3.3.1 DS18B20 的内部结构与外形. 12 3.3.2 技术性能描述 . 12 3.3.3 DS18B20 工作原理 12 3.3.4 DS18B20 温度传感器使用中注意事项 . 13 3.4 按键显示电路的设计 . 14 3.4.1 键盘电路 14 3.5 报警电路 14 4 软件电路设计. 15 4.1 系统软件介绍 . 15 4.2 温度程序 . 15 4.2.1 读出温度子程序 15 4.2.2 计算温度子程序 16 4.2.3 显示程序 . 17 4.3 按键程序 . 17 5 系统调试及性能分析. 19 结论. 19 谢辞.
3、20 参考文献. 21 附件 1:仿真电路图 . 23 2 附件 2:元器件清单. 24 附件 3:PCB 图 . 25 附件 4:实物图. 26 3 智能测温仪的设计与制作智能测温仪的设计与制作 摘要摘要:本设计以 AT89S51 单片机为核心来设计温度控制系统和报警系统。温度信 号由温度芯片 DS18B20 采集,并以数字信号的方式传送给单片机。这个智能测温 仪主要的功能是能测量当前环境的温度如果温度高于或低于设定值则蜂鸣器会 报警;其他则是可以自己设定报警温度的上限和下限。此设计采用模块化结构, 主要模块有:数码管显示程序、键盘扫描及按键处理程序、温度信号处理程序、 超温报警程序。 关键
4、词:关键词:温度传感器 STC89C52 测量 报警 4 Intelligent thermometer design and Intelligent thermometer design and productionproduction AbstractAbstract:This design with AT89S51 as the core to design the temperature control system and alarm system. Temperature signal by the temperature chip DS18B20 acquisition, and
5、 digital signals by means of transfer to the single chip microcomputer. The intelligent thermometer main function is to measure the current environmental temperature if the temperature above or below the set value, buzzer will alarm; The other is can set up your alarm temperature upper limit and low
6、er limit. This design USES a modular structure, main modules: digital tube display program, keyboard scanning and key processing program, temperature signal processing procedures, over temperature alarming program. K Key wordsey words:The temperature sensor STC89C52 measurement alarm 5 引言引言 随着我国社会科技和经济的不断发展,对温度的测量与控制在现代工业、农 业、生活中也是运用的越来越广泛。智能化的仪器仪表通常都有自动零点调整和 仪表满度的校正,因此可以减小测量误差,同时可实现一表多用。智能型温度测 量仪可配不同类型、不同分度号的温度传感器,故又称为