基于单片机的无线多路温度数据采集系统设计() 下载本文

摘 要本课题设计的是一套无线多

路温度数据采集系统,主要用于对环境温度的采集与监控。系统采用基于无线网络的设计思想和温度采集技术。无线传输避免了远距离布线所带来的施工困难,成本高的缺点。本设计用AT89C51单片机为主要硬件,设计了包括温度采集,温度显示,系统控制,串口通信等外围电路。单片机AT89C51作为主单片机完成测量和控制以及与通信单片机的数据通信、无线收发控制等功能。无线温度数据采集系统是利用下位机设置温度上下限和实时温度的采集,并将结果传输到上位机,以达到对温度的比较、控制。

关键词 : AT89C51 温度采集 温度传感器DS18B20 RS-232 MAX813 无线收发模块PTR2000

Abstract

This paper introduces a kind of wireless monitoring system which is used to control temperature condition. The system adopts wireless network and temperature collect technique. The wireless communication can avoid the shortcoming of remote wire transmission, such as large wastage, high cost etc. This design uses AT89C51,The monolithic integrated circuit is the main hardware, In order to realize design goal this design including temperature gathering, the temperature demonstrated that, the systems control, strung together periphery electric circuit and so on mouth correspondence.The main MCU (AT89C51> takes charge of measurement,control and communication with the communication MCU. The communication MCU (AT89C51> is used to control receiving and sending data in the wireless

communication. The system wireless temperature control system is uses in the lower position machine establishment temperature the lower limit, with real-time temperature gathering, transmits to on position machine,by achieves to the temperature comparison, the control.

Key words:AT89C51Temperature gatheringDS18B20RS-232MAX813PTR2000wireless communication

2 / 34

目 录

第一章绪论.................................................................4

第二章方案论证5 第三章系统总体设计7 3.1系统总体分析7 3.2设计原理8

第四章各个元器件及芯片简介10 4.1 AT89C51单片机介绍10 4.2 DS18B20温度传感器简介11 4.3 PTR2000模块介绍12 4.4 MAX813芯片介绍13 4.5 MAX7219芯片介绍15 4.6 1602液晶显示屏介绍16 第五章各部分电路设计17 5.1 看门狗电路17 5.2 温度采集电路18 5.3 串口电路18 5.4 显示电路19 5.5 键盘电路20

第六章 系统总体软件设计...........................................21

6.1 系统工作流程................................................. 21 6.2

计..............................................21

6.3 软件设计流程图......................................................22 结论28 致谢词29 参考文献30 附录1:硬件总图31

3 / 34