摘 要:由于自动控制技术的快速成长,这项技术已成长为 21 世纪最重要的高新技术中 的其中一项,而应用该项技术,可以使家居环境变得更为现代化,智能化,人性化。该篇 文章将针对我们居住的环境的接受光线及避开光线的问题,经过设计,并且制作出了一个 可以自动开关的窗帘控制系统。本系统的核心部件是采用 AT89C51 这个型号的单片机来 控制控制,接着由光线强弱检测电路,红外发射及接收控制电路,直流正反转电机电路等 系统硬件电路相互连接构成。通过 C 语言编程来驱动几个模块工作,进而来实现半自动 控制、全自动控制等各个功能。该设计主要讨论了自动窗帘系统总体设计过程、各个硬件 电路的设计过程以及程序软件之间的调试过程。通过这个系统我们能够实现根据光线强弱 的不同使得窗帘开关自动控制,还通过红外遥控系统实现了半自动控制,为我们提供一个 方便、舒适的居家环境。91491
毕业论文关键词:自动窗帘,AT89C51 单片机,直流电机,红外遥控
Abstract: Due to the rapid growth of automatic control technology, this technology has grown into one of the most important high-tech in the 21st century。 The application of this technology can make the home environment more modern, intelligent and humane。 The article will be designed for the acceptance of light and the avoidance of light in the environment in which we live, and we have created a curtain control system that can be automatically switched。 The core components of the system is the use of AT89C51 this type of microcontroller to control the control, and then by the light intensity detection circuit, infrared transmitter and receiver control circuit, DC positive and negative motor circuit and other hardware circuit connected to each other。 Through the C language programming to drive several modules work, and then to achieve semi- automatic control, automatic control and other functions。 The design mainly discusses the overall design process of the automatic curtain system, the design process of each hardware circuit and the debugging process between the program software。 Through this system we can achieve according to the different light intensity makes the curtain switch automatic control, but also through the infrared remote control system to achieve a semi-automatic control, to provide us with a convenient and comfortable home environment。
Key words: Automatic curtains, AT89C51 microcontroller, DC motor circuit, infrared remote control
目 录
1 系统总体设计方案 4
1。1 系统设计的背景及意义 4
1。2 设计的基本内容 4
1。3 实现的基本功能 5
1。4 系统框图 5
2 硬件设计 5
2。1 主控芯片 5
2。2 遥控发射与红外接收模块 7
2。3 光线检测模块 8
2。4 正反转控制模块 8
2。5 整体硬件源G于J优L尔V论N文M网WwW.youeRw.com 原文+QQ75201`8766 电路图 10
3 系统软件设计 11
3。1 程序设计 11
3。2 系统程序流程图 12
4 系统测试与分析 13
4。1 系统硬件测试