摘要:本设计是基于AT89C52为核心的单片机温度控制系统。整个系统由温度采集系统、单片机控制系统、显示与报警系统组成。首先温度信号由DS18B20温度传感器进行采集,多个温度传感节点通过单总线与单片机相联形成分布式系统。然后经过转换成数字信号后传入单片机,由单片机对数字信号进行相应的处理,设定温度报警上下限,然后在1602液晶屏上显示实时温度。当温度超出所设定的值时,报警器开始报警,从而实现远程对整个温度的实时管理和控制。这种分布式温度测量系统具有成本低廉、传感精度高、系统稳定、易于管理等特点。5627
关键词: 温度报警;单片机AT89C52 ;温度传感器DS18B20 ;LCD1602显示器
SCM temperature detection and alarm system design
Abstract: The design of temperature control system based on AT89C52 as the core. The whole system consists of temperature acquisition system, SCM control system, display and warning system. First, temperature signal acquisition by DS18B20 temperature sensor, a temperature sensor nodes by single bus connected with the SCM formation of distributed system. Then after converted into digital signal and then into the microcontroller, digital signal corresponding to the processing by the MCU,set temperature alarm limits, and then display the real-time temperature in the 1602 LCD screen. When the temperature exceeds the set value, the alarm alarm, so as to realize the real-time control and management of the whole temperature range. This kind of distributed temperature measurement system has the advantages of low cost, high sensing precision, stability, easy management features.
KeyWords: Temperature alarm;SCM AT89C52 ;Temperature sensor DS18B20 LCD1602 display
目录
1绪论 1
1.1选题的目的 1
1.2选题的背景 1
1.3课题研究内容及要求 1
2设计原理及方案选择 3
2.1温度测量原理 3
2.1.1热电偶的测温原理 3
2.1.2热电阻测温 3
2.1.3非接触式测温仪表 3
2.2本设计方案选择 4
3硬件电路设计 6
3.1 系统方框图 6
3.2单片机的概述 7
3.2.1单片机的研究现状 7
3.3.2MCS-51 单片机简介 8
3.3.3MCS-51 单片机特点及应用 8
3.3单元电路 10
3.3.1核心控制器件AT89C52 10
3.3.2 DS18B20内部结构及工作原理 12
3.3.3 LCD1602内部结构及工作原理 19
3.3.4报警电路 21
4单片机软件设计 22
4.1软件设计总体思想 22
4.2测温模块 22
4.2.1温度的采集 23
4.2.2温度的测量 24
4.3显示报警模块 25
5结论 27
致谢 28
参考文献 29
附录 30