基于单片机的自动窗帘系统毕业设计 - 图文 下载本文

内容发布更新时间 : 2024/4/29 2:14:03星期一 下面是文章的全部内容请认真阅读。

华科学院本科毕业设计(论文)

基于单片机的自动窗帘系统设计

摘要

目前,家庭居住环境的采光及避光问题主要采用的是手动开闭窗帘,手动开闭不仅费力而

且很多方面不够人性化,会对用户造成一定的困扰,本文设计的自动窗帘控制系统可以解决这些问题。本文主要阐述了自动窗帘控制的设计过程。以AT89C51单片机为控制核心,以光敏电阻和雨滴传感器为传感器件,以步进电机为执行器件。在设计的同时对单片机的理论基础和外围扩展知识进行了比较全面准备。硬件采用分块的模式,对整个系统的电路设计进行分析,分别给出了系统整体框图、显示电路、检测电路、系统总控制模块、等相关电路;随后说明系统软件的编写过程,同样采用的是分块的模式,且每一个模块都给出了相应的流程图。

本设计利用单片机实现了半自动控制、自动控制、定时控制的相互转换,智能的控制窗帘的动作。通过调试,时钟控制、手动开关窗帘、自动开关窗帘等控制方面的设计基本达到了预期效果。具有较强的实用价值。

关键词:单片机,自动窗帘,步进电机,自动控制。

I

路媛:基于单片机的自动窗帘系统设计

II

华科学院本科毕业设计(论文)

System design based on single chip microcomputer automatic

curtain

Abstract

Now,according to the requirements of living environments. This paper describes the process of intelligent curtain controller. This design uses AT89C51 microcontroller as the control,introduce microcontroller-based optical curtain curtain system,the main structural principle of the hardware and software programming to explain.In the design for monolithic integrated circuits,and peripheral to expand the basic the theories of knowledge was fairly comprehensive preparation. Block the model of hardware used,the circuit design of the entire system to analyze the overall block diagram of the system are given,display circuit,photoelectric switch circuit,system control module,power conversion circuits,protection circuits and other related circuit;then describes the software the preparation process,but also by the sub-block pattern,with each module to draw a corresponding flow chart.

In this paper,use the AT89C51 microcontroller,according to their different modes,to achieve semi-automatic control,automatic control,timing control of the conversion and intelligent motion control curtains. Debugging by simulation,clock control,manual switch curtains,the curtains automatically switch the basic design of such control to achieve the desired effect,with a strong practical value.

Key words:SCM 、intelligent curtain、stepping motor、automatic control.

III

路媛:基于单片机的自动窗帘系统设计

IV

华科学院本科毕业设计(论文)

目录

摘要 .......................................................................... I Abstract .................................................................... III 第1章 绪论 ............................................................... - 1 -

1.1 研究目的和意义 ..................................................... - 1 - 1.2 国内外发展状况 ..................................................... - 2 - 1.3 课题的目的任务和要求 ............................................... - 2 - 第2章 系统方案论证 ....................................................... - 5 -

2.1 方案选取 ........................................................... - 5 - 2.2 总体设计方案 ....................................................... - 8 -

2.2.1 系统基本功能 ................................................. - 8 - 2.2.3 系统总体结构设计 ............................................. - 9 -

第3章 系统硬件分析设计 .................................................. - 11 -

3.1 系统硬件总设计 .................................................... - 11 - 3.2 各单元电路设计 .................................................... - 12 -

3.2.1 控制电路设计 ................................................ - 12 - 3.2.2 检测电路设计 ................................................ - 16 - 3.2.3 执行电路设计 ................................................ - 18 - 3.2.4 键盘/显示接口电路 ........................................... - 21 -

第4章 系统软件设计 ...................................................... - 27 -

4.1 系统软件总设计 .................................................... - 27 - 4.2 系统软件子程序设计 ................................................ - 28 -

4.2.1 步进电机程序设计 ............................................ - 28 - 4.2.2 键盘程序设计 ................................................ - 29 - 4.2.3 定时程序设计 ................................................ - 31 -

第5章 测试和调试 ........................................................ - 33 -

5.1 硬件调试 .......................................................... - 33 -

5.1.1 28BYJ-48步进电机: .......................................... - 33 - 5.1.2 1602液晶显示器 .............................................. - 35 -

V