基于单片机的智能宠物小屋设计

 2022-10-25 02:10

论文总字数:18781字

摘 要

近年来我国居民饲养宠物的数量逐年递增,种类繁多,宠物所面临的在人类家庭中的生活方式得到了我们的重视,不同类型的宠物的需求也不尽相同。为饲养动物提供卫生舒适庇护所关系着它们的健康,这对于饲养主来说也很重要,是与家庭健康生活紧扣的一环。本设计可分为温湿度检测与光强检测部分以及温控部分。温湿度检测部分,是通过利用DHT11温湿度传感器模块,将它和51单片机联合起来处理收集的信号,并做出及时的反馈,该系统中的数据流和数据处理较为稳定和细致,以实现宠物小屋智能化的要求。同时,在温度过高时,通过电路激活电扇,实现降温。光强检测电路,利用光敏电阻与ADC0832模数转换器实现基本功能。通过这些传感器和芯片,当环境中光强和温湿度发生变化时系统会发出相应的灯光报警信号和声音报警信号。温湿度和光强检测是两种最基本的环境参数,其测量方法和装置对现在的生活、生产具有重要的意义。本课题基本完成预期设想,设计并实现了系统的硬件电路,完成了系统软件的编写和调试。测试结果证明,达到了设计要求。

关键词: 温湿度检测;温度控制;光敏电阻

Intelligent Environmental Controlling System Design for Animals

Abstract

In recent years, the number of pets raised by Chinese residents has been increasing year by year, and there are many kinds of pets. The way of life that pets face in human families has attracted our attention, and different types of pets have different needs. Providing safe and comfortable shelters for animals is important for their health, and for their owners, as a link to a healthy family life. The design can be divided into temperature and humidity detection and light intensity detection and temperature control part. In the temperature and humidity detection part, DHT11 temperature and humidity sensor module is combined with 51 single-chip microcomputer to process the collected signals and make timely feedback. The data flow and data processing in this system are relatively stable and meticulous, so as to realize the requirements of intelligent pet cabin. At the same time, when the temperature is too high, the fan is activated through the circuit to achieve cooling. Light intensity detection circuit, the use of photosensitive resistors and ADC0832 AD converter to achieve basic functions. Through these sensors and chips, when the light intensity and temperature and humidity in the environment change, the system will issue corresponding light alarm signal and sound alarm signal. Temperature and humidity and light intensity detection are two of the most basic environmental parameters. This subject has basically completed the expected assumption, designed and realized the hardware circuit of the system, and completed the preparation and debugging of the system software. The test results show that the design requirements are met.

Keywords: Temperature and humidity detection, temperature control, light intensity detection

目 录

摘要 I

Abstract II

第一章 引 言 2

1.1 课题背景 2

1.2 概述及功能介绍 2

1.2.1 功能概述 2

1.2.2 功能介绍 2

第二章 系统方案设计 4

2.1 系统构成 4

2.2 方案设计 4

2.2.1温湿度传感器选择 4

2.2.2光强检测传感器选择 5

第三章 硬件的设计 6

3.1主控电路 6

3.1.1 STC89C51主要功能和性能参数 6

3.1.2 STC89C51单片机最小系统 7

3.2 温湿度检测 8

3.3 A/D转换电路 9

3.4 报警电路 9

3.4.1 灯光报警电路 9

3.4.2 声音报警电路 10

3.5 LCD1602液晶显示电路 11

3.6 按键电路 12

3.7 控制电路 12

3.8 光强检测电路 13

第四章 系统流程图 15

4.1软件介绍 15

4.2设计流程图 16

第五章 测试结果及结论 18

5.1调试 18

5.1.1 按键显示部分的调试 18

5.1.2 风扇调速电路部分调试 18

5.1.3 完整设计电路调试 18

5.2 结论 19

第六章 结束语 20

致 谢 21

参考文献 22

附 录 23

第一章 引 言

1.1 课题背景

近年来我国居民饲养宠物的数量逐年递增,种类繁多,宠物所面临的在人类家庭中的生活方式得到了我们的重视,不同类型的宠物的需求也不尽同。我们将目光抛向了在饲养宠物中占绝大多数的中小型动物,这类动物体型偏小,生活作息与人类相近似,易于饲养,对生活环境的要求也不那么苛刻,因此,为这些小动物提供温暖的庇护所也正是符合时代要求的。

剩余内容已隐藏,请支付后下载全文,论文总字数:18781字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;