基于STC89C52的智能窗帘设计

 2022-01-19 11:01

论文总字数:33938字

目 录

1 引言 1

1.1 研究目的和意义  1

1.2 国内外发展现状  1

1.3 本设计研究的主要内容 2

2 系统硬件方案选择 2

2.1 硬件方案的选择 3

2.1.1 主控芯片的选择 3

2.1.2 显示器件的选择 3

2.1.3 时钟器件的选择 4

2.1.4 步进电机驱动的选择 4

2.2 系统总体方案 5

3 系统硬件电路设计 6

3.1 STC89C52单片机系统设计 6

3.1.1 STC89C52的概述 6

3.1.2 STC89C52单片机的最小系统 6

3.2 光敏传感器 8

3.2.1 光敏传感器的概述 8

3.2.2 工作原理及特点 8

3.3 DS1302时钟电路设计 9

3.4 ADC0832电路设计 11

3.4.1 ADC0832的概述 11

3.4.2 ADC0832的工作原理 11

3.5 步进电机及其驱动芯片 13

3.5.1 步进电机概述 13

3.5.2 步进电机驱动芯片ULN2003 13

3.5.3 ULN2003与单片机的连接 14

3.6 独立按键电路的设计 14

3.7 LCD1602液晶显示电路设计 15

3.8 蓝牙模块cc2541 17

3.8.1 cc2541概述 17

3.8.2 器件特性 17

3.9 语音模块 18

3.9.1 MP3-TF-16P概述 18

3.9.2 MP3-TF-16P功能 18

3.10 原理图绘制软件的介绍 19

4 系统软件部分设计 19

4.1 软件开发环境的介绍 19

4.2 系统重要函数的介绍 19

4.2.1 主函数的设计 19

4.2.2 LCD1602显示函数的设计 20

4.2.3 DS1302读时函数的设计 21

4.2.4 ADC0832转换函数的设计 22

4.2.5 步进电机控制函数的设计 23

5 系统仿真 25

5.1 仿真电路图绘制 25

5.2 程序编译 27

5.3 仿真 28

6 调试和故障分析 31

6.1 系统硬件测试 31

6.2 系统软件测试 32

7 总结与展望 34

参考文献 35

致谢 36

附录A 原理图 37

附录B 源程序 38

基于STC89C52的智能窗帘设计

张伟

, China

Abstract:In the context of the general improvement of the national economy, households using smart homes to replace traditional home furnishings are growing. Many smart home designs came into being. This article aims to design a smart curtain based on single-chip microcomputer. The design of the control core is the STC89C52 microcontroller, also includes a photosensitive sensor module, button circuit module, Bluetooth module, voice module. The intelligent curtain has three different control modes: manual control, Bluetooth control, and light control. The light control mode allows the curtains to be turned on and off according to the preset light intensity threshold. The Bluetooth control mode is the smart curtains. Connected to Bluetooth, and then establish a connection with the curtain through the phone, send control commands to control the state of the curtain switch; manual control is to set the switch between the same hand. This design is designed in consideration of practical use needs. The designed product can be used in various environments and has a certain use value.

Key words:Intelligent curtain; STC89C52 single-chip microcomputer; Light intensity detection; Blueteeth control

1 引言

1.1 研究目的和意义 

为了省去人们在早上起床和晚上睡觉前需要手动开关窗帘的麻烦,避免夏天中午房间被强烈的阳光照射使得温度太高而需人去主动关窗帘,所以有必要设计出的一款基于单片机智能的窗帘控制器。此窗帘控制器将蓝牙控制、光照控制、液晶显示、手动控制合为一体,达到了智能控制的目的。在传统的窗帘上加上另外三种功能让传统窗帘的开关变得更加的智能。 

在改善了用户使用体验度的基础上凸显了现如今国民经济水平的提高。这个设计最大的亮点是,窗帘具备了感应光照强度的功能,所以能够达到调整室内光线的目的,这就是智能家居为人们带来的人性化体验。除此之外,这个设计不仅仅可以适用于普通市民住宅,还可以在饭店、KTV等经营场所投入使用。本设计主要是通过三种方式实现窗帘的智能化,契合了如今智能家居的理念,并且制作成本低,可以很轻易地打开市场。

剩余内容已隐藏,请支付后下载全文,论文总字数:33938字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;