1、 摘要 : 本文提出的 粮仓 温、湿度测控系统采用 AT89S52 单片机为测控核心 ,以“一线式”数字温度传感器 DS18B20 和电容式湿敏传感器 HS1100/HS1101 为温、湿度数据采集部件,通过 PC 机作为人机接口,实现了远程数据采集与测控指令参数的设置。具有界面友好、控制灵活、硬件系统集成度高、电路简单、功能强、性能可靠、成本低等特点。本系统解决了传统温、湿度测试器材及人工去湿、降温的诸多弊端。并可实现多点温、湿度参数的测量与控制。 关键词 : AT89S52;DS18B20;HS1100/HS1101;PC 机 ;人机接口 Abstract : The paper deve
2、lops a temperature and humidity controlling system for grain depot .The system is based on a chip microprocessor AT89S52,uses one-line type digitaltemperature sensor DS18B20 and the capacitance humidity sensor HS1100/HS1101 to collect humiture data,realizes the collecting of remote data as well as t
3、he setting of measuring and controlling order parameter.The system has the following advantages:its interface is friendly,it is controlled easily,its hardware system is integrated highly,the circuitry is simple,its function is strong,it has good performance,the cost is lower and so on.The system set
4、tles many defects of traditional humiture testing equipments as well as manual dewetting and cooling.Meanwhile,the system realizes the measuring and controlling of multiple-point humiture parameters. Keywords: AT89S52;DS18B20;HS1100/HS1101;PC; personal digital assistant(PDA) 目录 1.系统功能说明 . 1 2.系统总体设计
5、 . 1 2.1.系统硬件结构设计 . 1 2.2.通信方案选择 . 1 3.系统硬件设计 . 2 3.1.数据采集电路设计 . 2 3.1.1.温度采集接口电路 . 2 3.1.1.1.DS18B20 介绍: . 2 3.1.1.2.接口电路 . 4 3.1.2.湿度 采集电路 . 5 3.1.2.1.HS1100/HS1101 湿度传感器介绍: . 5 3.1.2.3多路湿度检测信号的实现 . 5 3.1.3.多路开关介绍 . 6 3.2.单片机系统设计 . 7 3.3.其它外围接口电路设计 . 8 3.3.1.RS-485 串口电路 . 8 3.3.2.控制参数存储器 . 8 3.3.3.键盘及显示电路 . 8 3.3.3.1.键盘电路 . 8 3.3.3.2显示电路 . 8 3.3.4.控制设备驱动电路 . 10 3.3.4.1风机、空调机、加湿机驱动电路 . 10 3.3.4.2报警接口电路 . 11 3.4.RS485-RS232 电平转换电路 . 11 4.系统软件设计 . 12 4.1.粮仓温、湿度测控系统软件 . 12 4.1.1.湿度检测子程序 . 12 4.1.2.温度检测子程序 . 13 4.2.上位 PC 机接口软件 . 13 5.结束语 . 14