摘要:随着人们生活水平的不断提高,电子技术向着数字化、智能化控制方向发展。单片机控制技术为现代人提供了更便利的生活设施,其中数字温度计就是一个典型的例子。本文以AT89C51单片机为核心控制器,设计一种智能温度上下限报警器。该报警器电路包括彩屏显示电路、温度检测电路、报警电路,可以实现温度值的显示、读取和自动控制。根据设置温度的上下限,当测量值超出预设值范围则发出警报。硬件部分由单片机、上拉电阻、数码管、温度传感器DS18B20、蜂鸣器、LED组成。软件部分采用C语言编程并利用Proteus软件仿真,验证电路原理的正确性。最后,通过电路板的焊接、程序的烧录和调试,制作智能温度上下限报警器电路板,完成对系统功能设计。65428
毕业论文关键词: AT89C51,DS18B20,数字温度计,编程
Abstract: As people living standard unceasing enhancement, electronic technology towards digital and intelligent control direction. Single-chip microcomputer control technology to provide more convenient living facilities, modern people including digital thermometer is a typical example. Based on AT89C51 single chip microcomputer as the core controller, this paper designed a kind of intelligent alarm temperature upper and lower limits. The alarm circuit includes color screen display circuit, temperature detection circuit, alarm circuit, can realize the temperature display, read and automatic control. According to the setting temperature of upper and lower limits when the measured values than the preset value range has sounded the alarm. Hardware part, pull-up resistors by single-chip microcomputer, digital tube, the temperature sensor DS18B20, buzzer, LED.Software part using C language programming and use of Proteus simulation software, to verify the correctness of the circuit principle. Finally, through the buffer circuit board welding, program and debug, make intelligent temperature upper and lower alarm circuit boards, completed on the system function design.
Keywords: AT89C51,DS18B20,Digital thermometer, Programming
目 录
1 绪论 4
1.1 选题的背景与意义 4
1.2 单片机的发展和现状 4
1.3 温度传感器简单介绍 5
2 智能温度上下限报警器的总体方案设计 5
2.1 智能温度上下限报警器的设计要求 5
2.2 智能温度上下限报警器的方案论证 5
2.3 智能温度上下限报警器的结构框图 7
3 智能温度上下限报警器的硬件设计 7
3.1 单片机最小系统 7
3.2 数码管显示 9
3.3 温度传感器DS18B20 11
3.4 报警电路 13
3.5 按键电路 13
3.6 系统总体电路原理图 13
4 智能温度上下限报警器的软件设计 15
4.1 主程序流程图 15
4.2 按键电路 15
4.3 数码管显示 18
4.4 温度传感器 20
5 仿真与实验 22
5.1 仿真与结果