本科毕业设计(论文)题目基于单片机的时控插座设计专业班级学号学生姓名指导教师设计所在单位基于单片机的时控插座设计摘要:随着家用电器的越来越普及和人们生活节奏的加快,人们对电器的依赖性进一步提高,对电器的定时需求也进一步增大。定时开关插座可用于电饭煲、饮水机、电视机、电脑等需要定时供电的场合。定时开关插座的使用能够做到节能、安全、方便等。本文介绍了一种基于STC89C51RC单片机的定时开关插座设计方案。本文首先介绍定时开关插座设计要实现的功能,接着阐述系统电路的设计及原理说明,包括设计方案选择、关键元器件介绍、电路设计说明(包括电源电路、键盘、单片机控制电路、液晶1602显示、继电器工作电路)软件设计流程以及系统的测试。最后总结了定时开关插座设计完成的任务,分析系统的不足并提出了系统的应用展望。关键词:STC89C51RC;定时插座;1602液晶;键盘DesignofControlOutletBasedonSCMAbstract:WiththeincreasingpopularityofhomeappliancesandthePeoplelivingrhythmspeedingup,thedependenceofpeopleonelectricalappliancesfurthertoimprove,thedemandoftimingalsobecomefurtherincreasing.Sockettimerswitchcanbeusedintheoccasionswhereneedforregularsupplysuchasricecookers,waterdispenser,TV,computer,timerswitchelectricblankets.Theuseofsockettimerswitchcanbeenergysaving,safe,healthy,andconvenientandsoon.ThisarticlepresentsatimerswitchsocketdesignwhichisbasedontheAT89S52microcontroller.Thispaperintroducesthefunctionwhatthetimerswitchsocketdesignshouldachievefirstofall,andthendescribesthecircuitdesignandprinciplesofthesystemdescription,includingdesignchoices,concerningcomponentdescription,circuitdesigndescription(includingthepowercircuit,keyboard,singlechipcontrolcircuit,LCD1602display,therelayoperatingcircuit),softwaredesignandtestingofthesystem.Finally,itwillsumupthetimerswitchsocketdesignthetasksshouldbecompleted,analyzesystem’sdeficienciesandproposethesystem’sapplicationprospect.Keywords:STC89C51RC,Timerswitch,LCD1602,Keyboard目录第1页目录第一章绪论........................................................................................................................11.1选题的目的与意义...............................................................................................11.2本课题在国内外的发展现状及趋势....................................................................11.3本课题要解决的主要问题...................................................................................2第二章系统设计方案........................................................................................................32.1系统结构与功能...................................................................................................32.2方案框图...............................................................................................................32.2.1方案1.........................................................................................................32.2.2方案2.........................................................................................................32.3开关的选择...........................................................................................................42.4显示方式选择.......................................................................................................42.5时钟的实现及单片机的选择...............................................................................52.6按键控制部分的实现...........................................................................................5第三章主要元器件原理及其应用....................................................................................73.1单片机STC89C51简介.........................................................................................73.1.1主要特性....................................................................................................73.1.2引脚功能说明............................................................................................83.21602工业字符型液晶简介................................................................................103.2.1主要特性..................................................................................................103.3继电器介绍.........................................................................................................113.3.1继电器的继电特性..................................................................................113.3.2继电器工作原理及特性..........................................................................113.3.3继电器主要产品技术参数......................................................................123.3.4继电器的选用..........................................................................................13第四章硬件电路的设计..................................................................................................144.1电源电路.............................................................................................................144.2单片机最小系统.................................................................................................154.3液晶显示.............................................................................................................174.4继电器驱动电路.................................................................................................184.5键盘电路.............................................................................................................194.6插座电源控制电路.............................................................................................19目录第2页4.7报警电路.............................................................................................................20第五章系统软件设计................................................................................