摘 要:本文主要介绍了基于STC89C52单片机的智能窗控制系统设计。系统设计一个集防雨、室内温度测量及显示、以及可实现手动控制与自动控制的切换三项功能于一体的基于单片机的智能窗户。为了达到智能化产品的需求,智能窗户控制系统采用了多种传感器技术,以雨滴传感器和温度传感器为主体。系统采用STC89C52单片机为微控制器。STC89C52负责采集室内温度、自动防雨以及手动调节功能。通过温度传感器组成的测控系统,间隔的测量室内的温度,并将温度和日期时间经LCD液晶显示出来。雨天时,单片机控制系统通过雨滴传感器的信号,自动的进行关窗动作。同时为了人性化的设计,本系统还设有手动控制按钮,可以通过手动按钮控制窗子的开与关。本多功能窗的设计本着安全、方便、节能、人性化的原则进行,可使现代生活显著提高。
毕业论文关键词:STC89C52单片机,智能窗,防雨,温度采集
Abstract: This article mainly introduced the STC89C52 microcontroller based intelligent window control system design. System means to design a set of rain, indoor temperature measurement and display, and can realize manual control and automatic control of switching three functions in one of the based on single chip microcomputer intelligent window. In order to achieve intelligent product demand, intelligent window control system USES a variety of sensor technology, with the rain sensor and temperature sensor as the main body. System USES STC89C52 single-chip microcomputer for micro controller. STC89C52 is responsible for the collection and indoor temperature, automatic rainproof and manual adjustment function. Through the measurement and control system of temperature sensor, interval of measuring indoor temperature, and temperature, and the date/time by the LCD display. When rainy days, single-chip microcomputer control system by the rain sensor signals, automatic action to close the window. To humanized design, this system also has the manual control button, can control the window switch by manual button. This multifunctional window design in line with safe, convenient, energy saving, humanized principle, can make modern life improved significantly.
Keyword: STC89C52 microcontroller;Intelligent window;Anti-rain;Temperature collecting
目 录
1 引言 5
1.1选题背景及意义 5
1.2主要任务和内容 5
2系统的硬件设计 5
2.1 系统框图 5
2.2各模块的功能简介 6
2.3 DS18B20温度传感器芯片的介绍 6
2.4 DS1302芯片的介绍 9
3系统电路的设计与连接 12
3.1 STC89C52单片机控制模块 12
3.1.1单片机最小应用系统——时钟电路 12
3.1.2单片机最小应用系统——复位电路 13
3.2 DS18B20温度采集电路 14
3.3 DS1302时钟电路 15
3.4 LCD1602液晶显示电路 16
3.5按键电路 17
3.6电机驱动 18
4 系统的软件设计 18
5 电路的焊接与调试 19
5.1电路的焊接 19
5.2系统的调试