摘 要
现在越来越多的家庭和公共场所都摆上了各种水族箱。但作为大部分小型的家庭水族箱设备,都需要人为的手工操作,这给饲主带来了很大的不便。人们有时会因繁忙的工作,忽视了对观赏鱼的照顾。
本文通过对目前大多数水族箱控制设备应用现状的分析和研究,提出了一种多功能的观赏鱼缸智能控制系统的设计方案。该控制系统基于89系列单片机的家庭水族箱控制系统。整套系统以STC89C51单片机为核心芯片,结合传感器技术、继电器原理、C语言编程等技术,集多种控制功能于一体,包括恒温、自动换水、自动喂食、自动水循环等,并可根据需要增加控制参数,通过选择不同元器件控制成本。本文从功能设计、元器件选择、硬件电路设计和软件设计等几个方面对该控制系统进行阐述。
通过调试期间的运行,表明该控制系统运行稳定可靠、操作简单方便、具有多种节电工作模式。同时该系统设计灵活、结构简单、成本低廉,易于规模化生产,可广泛用于家庭和宾馆等安装观赏鱼缸的场所。
关键词 自动控制;单片机;水族箱;传感器技术
Abstract
Now, more and more families and public places are put on all kinds of aquarium. As most of the small home aquarium equipment need artificial manual, which brought great inconvenience to the owners. It is sometimes due to busy work, ignoring the care of ornamental fish
This article through to the present most aquarium control device application present situation analysis and research, put forward a kind of multifunctional ornamental fish design scheme of intelligent control system. The control system based on the 89 Series MCU family aquarium control system. The entire system to the STC89C51single-chip microcomputer as the core chip, combined with the sensor technology, relay principle, C language programming technology, sets a variety of control functions, including temperature, automatic water, automatic feeding, automatic water circulation and so on, and may need to increase the control parameters, through the selection of different components of cost control. This article from the function design, components selection, hardware circuit design and software design aspects of the control system are described.
Through long time operation test, it shows that the control system is stable and reliable, the operation is simple and convenient, has a variety of energy-saving operation mode. At the same time the system flexible design, simple structure, low cost, easy mass production, can be widely used in families and hotels and other places of installation of ornamental fish.
Keywords: automatic control Series MCU aquarium sensor technology
目 录
摘 要 I
Abstract II
1 绪论 1
1.1选题背景 1
1.2国内外研究现状及发展趋势 1
1.3主要研究内容 2
1.4课题研究的步骤 3
2 系统的总体设计 4
2.1概述 4
2.2系统的设计要求 4
2.3 系统总体方案功能 5
2.3.1 系统的功能组成与控制参数 5
2.3.2 系统的硬件结构框图 5
2.4 本章小结 6
3 系统的硬件设计 7
3.1硬件总体结构 7
3.2主要元器件的选取 7
3.2.1 单片机的选取 7
3.2.2 3-8译码器和LED数码管动态显示的选取 9
3.3 各模块硬件设计 12
3.3.1 时钟电路设计 12
3.3.2 键盘控制与显示模块设计 13
3.3.3 温度控制模块 14
3.3.4 其他模块设计 15
4 系统的软件设计 21
4.1 主程序工作流程 21
4.1.1 主程序工作流程图 21
4.2 时间和温度读取模块 22
4.2.1 读取DS1302的时钟 22
4.2.2 读取DS18B20的温度 23
4.4 E2PROM模块 24
4.5 本章小结 25
5 总体设计的展望 26
5.1 创新点与应用范围 26
5.1.1 设计总结 26
5.1.2 创新点 26
5.1.2 应用范围 26
5.2 展望 27
5.3 本章小结 27
结 论 28
致 谢 29
参考文献 30
附录1 31