摘要近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正 在不断地走向深入,由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使 用方便等特点,因此特别适合于与控制有关的系统,越来越广泛地应用于自动控制, 智能化仪器,仪表,数据采集,军工产品以及家用电器等各个领域,单片机往往是作 为一个核心部件来使用,根据具体硬件结构,以及针对具体应用对象特点的软件结合, 以作完善。79797
本文以 AVR 单片机为控制器,以 SE2470 红外传感器为传感器,初步设计了一个 具备感应、遥控、定时、手动/自动等多种功能的智能开关技术方案,在 Proteus 实 验平台上搭建了原理样机,并在 AVR Stdudio 上编写控制程序。本文设计了四种情况 检验开关的功能,如下:
情况一:客厅,既可以手动开灯,又可以遥控开灯。 情况二:楼道走廊,楼道里发出声响,自动开灯。 情况三:房间里光线暗淡,灯自动打开。 情况四:卧室半夜起床,发出声音,灯自动打开。 经过检验,本文设计的智能开关使用良好。
毕业论文关键词:智能开关;AVR 单片机;遥控
ABSTRACT In recent years, with computers in the infiltration and the development of large-scale integrated circuits。 SCM application is steadily deepening, as it has strong function, small size, low power dissipation, low prices, reliable, easy to use features, it is particularly suited to and control of the system, increasingly widely used in automatic control, intelligent instruments, gauges, data acquisition, military products and household appliances, and other areas, is often microcontroller as a core component to use, In light of specific hardware architecture, and application-specific software features object combine to make perfect。
This article choose the AVR microcontroller as the controller, it uses SE2470 infrared sensor, it design a tentative programme about the intelligent switch which has induction, remote control, timing, manual/automatic control, set the principle prototype on the Proteus experimental platform, and write the control program on the AVR Studio。 This article designed the four kinds of circumstances to test the function of the switch, as the follow。
Case 1: it can manually turn on the light, or turns on the light by remote control in the sitting room。
Case 2: if hear the noise, it can automatically turn on the light in the corridor Case 3: the light dimmed, the light automatically open。
Case 4: haif night, it hear the noise in the bedroom, light automatically open。 After inspection, the intelligent switch is in good use。
Keywords: intelligent switch; AVR microcontroller;remote control
目 录
第一章 绪论 1
1。1 研究背景 1
1。2 智能家居现状 1
1。2。1 国外现状 1
1。2。2 国内现状 2
1。3 智能家居的发展给我们的生活带来的影响 3
1。4 智能家居的发展前景 5
1。5 智能开关的工作原理 5
1。6 智能开关的特点和意义 6
1。7 本文的整体设计思路 6
第二章 开关的硬件设计 8
2。1 开关总体设计 8
2。2 开关的硬件使用 9