单片机为处理器的自动浇灌系统的硬件、软件设计
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
摘要
本论文主要说明了以单片机为处理器的自动浇灌系统的硬件、软件设计、系统编程等方面的问题。本浇灌系统采用ATMEL公司的AT89S51单片机作为核心处理器控制整个系统的工作,系统由湿度传感器,信号采集电路、键盘、显示电路、输出控制电路、串行通信电路、E2PROM读写电路、灌溉设备等构成。本系统可以实现自动检测土壤周围空气湿度,自动控制浇灌设备;同时,系统的参考湿度值可修改,并有断电保存功能;采集到的湿度值和参考湿度值可以通过串行通信电路传给上位机,上位机可以通过串行通信去修改浇灌系统的参考湿度值,从而实现对整个系统的管理。
[资料来源:http://www.THINK58.com]
硬件方面,土壤周围湿度的测量采用先进的S302H5V5电容式湿度传感器,信号采集的A/D转换模块采用了ADC0809芯片;键盘、显示分别采用了点触式按键和LCD显示;输出控制电路由三极管、或非门、继电器、发光二极管等组成。软件设计采取了流行的模块化编程方法和模块调试,软件程序的开发全部采用了汇编语言。其主要包含的程序有:主程序、键盘扫描子程序、A/D采样子程序、串行接收和发送子程序、LCD显示子程序等。
经过实验室的连续调试证明:该控制器具有可靠性高、功能强、自动化控制、操作简单等特点。另外,本文对整个自动浇灌控制系统今后的进一步发展和完善提出了几点建议。
关键词:智能,浇灌,单片机
Abstract
The hardware layout and software development for single chip microprocessor intelligent micro-irrigation system and system programming are presented in detail in this paper. Based on the AT89S51 single chip microcomputer, the micro-irrigation system consists of humidity moisture sensors, signal gathering circuit, keyboard and monitor display circuit, out port control circuit, serial communication circuit,E2PROM reading-writing circuit and irrigating equipments and so on. The system is able to automatically detect the humidity of environment and control the irrigating equipment. Thus, the setting humidity can be modified. The humidity modified will be saved to prevent from that the data is lost when the power is cut off .Then, the gathering humidity of environment and setting humidity will be sent serially to the computer . On the other hand, the computer can modify the setting humidity of the micro-irrigation system by the serial communication. So we can use the computer to manage the micro-irrigation system.
As far as the design of the hardware is concerned, here chose the S302H5V5 capacitive humidity sensor as the humidity sensor, ADC0809 as the A/D conversion, the touching style key as the keyboard, LCD as the monitor display. The out port circuit is consists of triode, NOR gate, relay, light-emitting diode and so on. The development of software adopts the popular modularized structure and the modularized debug facilities. The design of software adopts assembly language entirely. The primary program is composed of main program, keyboard scanning subroutine, A/D sampling subroutine, serial transmit and receive subroutine, displaying subroutine of LCD and so on.
The successive debug experiments prove that the system is characterized by high reliability, capable control function, controlling by automation and simple operations. In addition, there are some suggestions about the further development and improvement of the micro-irrigation system in this paper.
Key words: intelligence, micro-irrigation, single chip microcomputer