毕 业 设 计 (论 文)
题 目:院 系:专 业:班 级:姓 名:学 号:指导教师:
无线温度湿度采集系统的设计
II
无线温度湿度采集系统的设计
【摘要】随着工业农业等相关产业的不断发展,温度和湿度的测量在实际生活中的应用越来越广泛。如现代温室大棚,酿造酒类,微生物发酵,药物制造等方面均对温度湿度的要求严格。本设计为一个无线温湿度采集系统。以STC89S52为主要芯片,利用数字式温湿度传感器DHT11采集温湿度,把收集到的数据传给单片机STC89S52,再用无线发射模块Nrf24l01将经过处理的数据发射出去。单片机通过模拟SPI口跟NRF24L01之间传送数据。同时,NRF24L01具有接收功能,接收模块的NRF24L01将接收到的数据传给STC89S52,最后用数字显示屏LCD1602将经过单片机处理后的数据显示出来。
【关键词】STC89S52 数据处理 温度 湿度
I
Design of wireless temperature humidity acquisition system
【Abstract】With the continuous development of industry and agriculture and related industries, the temperature and humidity measurement used more and more widely in the practical life. Such as modern greenhouses, brewing wine, microbial fermentation, so on drugs manufacture of temperature humidity requirements strictly. Therefore, to design a wireless temperature and humidity acquisition system. STC89S52 as the main chip, using digital temperature and humidity sensor DHT11 to collect temperature and humidity. Pass the collected data to MCU STC89S52, reoccupy NRF24L01 wireless transmitting module data will be processed. Single chip microcomputer simulation SPI mouth to transmit data between NRF24L01, meanwhile, has the function of receiving, receiving modules NRF24L01 will receives the data to STC89S52 devices, with digital display LCD1602 will finally after dealing with the single chip microcomputer of data displayed. 【Key word】STC89S52 data processing Temperature humidity
II
目 录
1 绪论 ................................................................ 1 1.1 引言 .............................................................. 1 1.2 选题背景及意义 .................................................... 1 1.3 国内外现状及发展趋势 .............................................. 1 1.4 研究内容 .......................................................... 2 2 系统总体设计方案 .................................................... 3 2.1 温湿度传感器的选择 ................................................ 3 2.2 无线发射模块的元器件选择 .......................................... 3 2.2.2 NRF24L01的工作模式 .............................................. 4 2.3 单片机的选择 ...................................................... 5 2.4显示模块的选择 ..................................................... 6 3 硬件电路设计 ........................................................ 8 3.1 温湿度采集模块的设计 .............................................. 8 3.2 无线发射接收模块设计 .............................................. 8 3.2.1 温湿度数据的控制发送 ............................................ 9 3.2.2 温湿度数据的接收 ................................................ 9 3.2.3 模拟SPI口的实现 ............................................... 10 3.3 LCD1602液晶显示模块设计 .......................................... 10 3.4 电源模块设计 ..................................................... 11 4 软件设计 ........................................................... 11 4.1 采集模块软件设计 ................................................. 11 4.2 发送接收模块软件设计 ............................................. 13 4.3显示模块软件设计 .................................................. 17 4.4 调试 ............................................................. 17 结论 ................................................................. 18 附录A 系统总体电路图 ................................. 错误!未定义书签。 附录B 部分程序 ....................................... 错误!未定义书签。
III