{$cfg_webname}
主页 > 电子信息 > 单片机 >

基于单片机的定时插座设计(附程序代码)

来源:56doc.com  资料编号:5D21520 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D21520
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

基于单片机的定时插座设计(附程序代码)(任务书,开题报告,论文13000字,程序代码)
摘  要
随着智能化时代的到来,普通的家庭插座也已经不能满足人们的基本生活需要。普通插座完成的只是单一的功能,不能随时随地的控制家用电器。为了解决这些问题,定时插座的出现可以使人们的生活变得更加智能,同时也会促进家用电器智能化时代的到来。定时插座可以使人们生活变得方便起来,不需要再为了何时关掉电器而费心。整个智能家居系统中插座的智能化也是重要的组成部分。
本次设计主要目的是为了弥补普通家庭插座的不足,从而设计一款可以定时开关的插座。用户可以通过外部的按键设置多组定时和当前日期和时间,也可以通过手机APP设置一组的定时开关。用户可以根据蜂鸣器声音的不同来判断当前插座的开断。用户可以提前设置好家用电器的开启时间和关断时间,这样能够进一步的省电。此次设计主要采用的主控芯片为STC89C52,计时模块采用DS1302芯片,显示模块采用LCD1602芯片以及通信模块采用HC-05蓝牙芯片。

关键词:STC89C52单片机 定时开关 蓝牙APP
 
Design of timing socket based on single chip microcomputer
Abstract
With the advent of the intelligent era, ordinary household outlets can no longer meet people's basic needs. Ordinary sockets are only a single function, and they cannot control home appliances anytime, anywhere. In order to solve these problems, the emergence of timed sockets can make people's lives more intelligent, and at the same time promote the era of intelligent home appliances. Timed outlets can make people's lives easier, and don't bother worrying about when to turn off the appliance. The intelligence of the sockets in the entire smart home system is also an important part.
The main purpose of this design is to make up for the shortage of ordinary household sockets, so as to design a socket that can be timed. The user can set multiple sets of timing and current date and time through external buttons, or set a set of time switches through the mobile APP. The user can judge the breaking of the current socket according to the difference of the sound of the buzzer. The user can set the opening time and the off time of the household appliance in advance, which can further save electricity. The main control chip used in this design is STC89C52, the timing module uses DS1302 chip, the display module uses LCD1602 chip and the communication module uses HC-05 Bluetooth chip.

Key words: STC89C52;The timer socket;Bluetooth APP
 

基于单片机的定时插座设计(附程序代码)
基于单片机的定时插座设计(附程序代码)
基于单片机的定时插座设计(附程序代码)
基于单片机的定时插座设计(附程序代码)


目录
摘  要    I
Abstract    II
第一章.绪论    1
1.1背景    1
1.2设计目标    1
1.3 论文结构    2
第二章.硬件电路设计    3
2.1 系统功能    3
2.2 系统工作原理    3
2.3 单片机模块    5
2.4 时钟模块介绍    5
2.5显示模块介绍    6
2.6 继电器模块    7
2.7 蜂鸣器模块    8
2.8 蓝牙模块    8
第三章.程序设计    10
3.1 程序的总体设计    10
3.2 设置时间函数的设计    11
3.3 模式选择函数的设计    12
3.4 设定时间函数设计    13
3.5 DS1302函数的设计    13
3.6 LCD1602显示函数的设计    14
3.7 手机APP编程    15
3.8 蓝牙通讯的设计    16
3.9 定时的设计    17
第四章.系统实现与调试    18
4.1配置HC-05蓝牙模块    18
4.2手机APP的调试    19
4.3电路仿真和实物调试    21
第五章.总结与展望    24
参考文献    25
致谢    27
附录    28

推荐资料