毕业设计论文基于单片机的定时开关插座设计 .pdf
毕业设计(论文)-基于单片机
的定时开关插座设计
毕业设计(论文)
题目:基于单片机的定时开关插座设计
学院:电子与信息工程
专业:电子信息工程
班级:电子1103
姓名:
指导老师:
起讫日期:2015-3~2015-6
2015年06月
II
摘要
随着生活节奏的加快,生活水平的提高,节能、智能的观念深入人心,出于节能的
目的设计出一款定时开关插座。本次毕业设计设计出一款定时开关插座,插座可通过按
键或遥控器进行定时开关。本次设计由220vAC转5vDC电源模块,DS1302计时模块,
STC89C52单片机模块,LCD1602显示模块,继电器模块,蜂鸣器模块,按键模块和红外
遥控模块组成。本次设计使用STC89C52单片机作为驱动芯片,使用DS1302计时模块提
供精确的计时,通过LCD1602显示模块显示年月日时分秒和操作界面,使用继电器控制
插座电流的通断,本设计还可以通过遥控器进行定时设置。本文从硬件设计,软件流程
的设计和电路的仿真与调试等方面介绍了定时开关插座的设计过程,实现了定时插座的
功能。最后介绍了设计过程中出现的问题和总结。
关键词:STC89C52单片机;定时开关;红外遥控
I
Abstract
Theperceptionofenergyconservationandintelligentgoes
deepintofamilies,withthelifeincreasingandimprovingquickly,Andwedesign
timersocketforenergyconservation.Thedesignisthetimersocket,Andthemain
functionoftimersocketisthatwetimebykeyorIRRemote.Thedesignconsists
ofSTC89C52,DS1302,LCD1602,220VACto5VDCpowersupply,buzzer,key,relay.The
design’sdrivermicrochipisSTC89C52,ThedesignusestheDS1302tosupplymore
accuratetime,AndthedesignusesLCD1602todisplaytheyear,themonth,the
day,thehour,theminute,thesecond,andtheoperationinterface.Thedesignalso
usestherelaytocontroltheonandoff,Andthetimersocketcantimebythe
remotecontrol.Inthispaper,thedesignofthesystemwasintroducedthrough
threeaspectsincludingthehardwaremodules,softwareflowpatternandcircuit
designanddebugging.Attheendofthispaper,theproblemshappenedduringthe
processofdesigningthesystemwassummar