毕业设计(论文)-基于AT89C51单片机的自动窗帘控制系统设计 联系客服

发布时间 : 星期六 文章毕业设计(论文)-基于AT89C51单片机的自动窗帘控制系统设计更新完毕开始阅读3d4c16343069a45177232f60ddccda38376be163

题目 自动窗帘控制系统

摘 要

自动控制属于电子及信息科学的一个重要分支,并且在现代家居中有着较好的目前发展前景。目前,家庭居住环境的采光及避光问题主要采用的是手动开闭窗帘,手动开闭不仅费力而且很多方面不够人性化,可能对用户造成一定的困扰,窗帘控制系统可以解决这些问题。本文综述了自动窗帘控制系统的设计与制作过程,介绍了设计制作一个完整的窗帘控制系统需要做的理论分析以及其制作过程。自动窗帘控制系统核心采用的是单片机AT89C51,其次利用了光照传感器、键盘显示接口电路以及信号调理电路等外围电路,整个系统在各模块的配合下可实现半自动控制、自动控制、定时控制等功能。该设计在理论层面上,用程序语言驱动各模块工作,实现系统的内在联系,在应用层面上则采用Protel软件进行原理图设计。

自动窗帘控制系统的构成主要由光照传感电路、系统主控模块电路、电源转换电路、电机控制电路、键盘以及显示电路等组成,重点讨论了窗帘自动控制系统的设计过程、硬件选用和软件调试等问题,通过本系统可实现利用光照强度以及设置时间来控制窗帘自动开闭。

关键字:单片机,自动控制,AT89C51,Protel

I

ABSTRACT

Electronics and automatic control is an important branch of information science, and they now have a better prospect. Now, According to the requirements of living environments, this design made full use of the SCM controlling system of AT89C51,followed by the sensor, keyboard and display interface circuit and the signal conditioning circuit.Based on the different controlling mode, we realize to control the curtain machine by mutual transformation of semiautomatic and automatic controlling and infrared remoter.

Focusing on the curtain during automatic control system design, hardware and software debugging process and other issues, the system can be realized through the illumination intensity in accordancecontrol the curtains down.

KEY WORDS:SCM, automatic control, AT89C51, Protel

II

目录

前 言 ............................................................................................................................ 1 第1章 绪论 .................................................................................................................. 2

1.1 课题研究背景及意义 ...................................................................................... 2 1.2 基本内容安排 .................................................................................................. 2 1.3 设计思想及基本功能 ...................................................................................... 3 第2章 总体电路设计及其原理说明 .......................................................................... 4

2.1 方案选取 .......................................................................................................... 4 2.2 系统总体结构设计 .......................................................................................... 5 2.2.1系统基本功能 ........................................................................................ 5 2.2.2系统总体结构设计 ................................................................................ 6 第3章 硬件分析与设计 .............................................................................................. 7

3.1电源电路设计 ................................................................................................... 7 3.2 89C51单片机及相关电路 ............................................................................... 8

3.2.189C51单片机概述 .................................................................................. 8 3.2.2晶振电路 ................................................................................................. 8 3.2.3复位电路 ................................................................................................. 9 3.2.4时钟电路 ............................................................................................... 10 3.2.5键盘电路 ............................................................................................... 12 3.2.6 显示电路 .............................................................................................. 13 3.2.7 A\\D转换电路 ....................................................................................... 15 3.2.8光敏传感器 ........................................................................................... 17 3.2.9 步进电机 .............................................................................................. 18 3.2.10信号校正电路 ..................................................................................... 19

第4章 程序分析与设计 ............................................................................................ 21

4.1 主程序设计 .................................................................................................... 21 4.2 主要子程序设计 ............................................................................................ 22 4.2.1 键盘程序设计 ..................................................................................... 22 4.2.2定时程序设计 ...................................................................................... 24

4.2.3步进电机程序设计 ............................................................................. 25

总结 .............................................................................................................................. 26 致谢 .............................................................................................................................. 27 参考文献 ...................................................................................................................... 28 附录一 .......................................................................................................................... 29 附录二 .......................................................................................................................... 30

III