天津职业技术师范大学TianjinUniversityofTechnologyandEducation毕业设计专业:电气技术技术教育班级学号:电气0912-40学生姓名:郑德志指导教师:陈东升实验师二〇一四年六月天津职业技术师范大学本科生毕业设计基于16单片机智能刷卡门禁系统设计Intelligentcardentranceguardsystembasedon16专业班级:电气0912学生姓名:郑德志指导教师:陈东升实验师学院:自动化与电气工程学院2014年06月摘要门禁系统是智能大厦自动化系统不可缺少的重要组成部分,作为一种新的现代安全管理全面的系统,其访问控制系统和自动识别技术在现代社会的安全措施中是极其重要的。因此这就需要相应的技术的发展,毕竟社会是不断的更新换代的,就像达尔文的进化论一样,适者生存,对于现在的电子产品一样,日益的更新,对此智能门禁系统同样也得跟上时代的发展。现在大多数的公司都需要这样门禁系统的高智能化。本文介绍了AVR16单片机作为主控芯片,通过专门的读写模块用于读取射频IC卡的信息时,当卡有进入到读卡的范围呢,读卡器就会读到相应的卡号,并通过卡的序列号做出于此相对应的动作。如果正确的操作刷卡,则门开启并且显示正确。若是非法卡,则报警系统会触发,并且显示错误的信息。设计采用的是全自动、准确的识别卡的序列号来访问系统,系统中用的AT24C04EEPROM芯片中起着重要的作用,掉电后可以存储密码,从而保证了系统的安全性。人机交互界面用到的是4×4矩阵键盘输入和标准字符液晶显示LCD12864模块。使用按键输入密码按照正确的密码或没有进行相应的操作。对于用户用按键输入密码,根据密码的正确还是错误来做出相应的操作,管理员可以自行设定和修改密码,防止密码被盗;若是有非法卡或者是密码输入错误,则系统输出部分报警电路工作。关键词:AVR16单片机;射频IC卡;AT24C04芯片;液晶显示;报警电路。ABSTRACTEntranceguardsystemisanimportantandindispensablepartofintelligentbuildingautomationsystem,asanewcomprehensivemodernsafetymanagementsystem,theaccesscontrolsystemandautomaticidentificationtechnologyinthemodernsocialsecurityisextremelyimportant.Sothisrequiresthedevelopmentofcorrespondingtechnology,afterall,societyiscontinuouslyupdated,likeDarwin'stheoryofevolution,thesurvivalofthefittest,fortoday'selectronicproducts,increasinglyupdate,theintelligententranceguardsystemalsohavetokeepupwiththedevelopmentofTheTimes.NowmostofthecompaniesneedsuchhighintelligententranceguardsystemAVR16singlechipasthemastercontrolchiphasbeenintroducedinthispaper,throughspecializedrfICcardread/writemoduleusedtoreadtheinformation,whenthecardhasintothescopeofreadingcard,cardreaderwillreadthecorrespondingcardnumber,andthroughtheserialnumberofthecardtomakethecorrespondingaction.Ifthecorrectcreditcardoperation,thedooropensandshowsthecorrect.Ifillegalcard,alarmsystemwilltrigger,anddisplayanerrormessage.DesignUSESisfullyautomatic,accurateidentificationcardserialnumbertoaccessthesystem,thesystemusedintheblockAT24C04EEPROMchipplaysanimportantrole,afterpoweroffcanbestoredpassword,toensurethesecurityofthesystemThehuman-computerinteractioninterfaceusedis4*4matrixkeyboardinputandstandardcharactersLCDdisplayLCD12864module.Usekeyinputpasswordoperationiscarriedoutinaccordancewiththecorrectpasswordornot.Enterthepasswordforusertousebuttons,accordingtotherightorwrongpasswordtomakecorrespondingoperation,theadministratorcansetandchangethepassword,topreventpasswordtheft;Ifthereareillegalcardorpasswordinputerror,thesystemoutputpartofthealarmcircuitKeyWords:AVR16SCM;RFICcard;AT24C04chip;liquidcrystaldisplay;thealarmcircuit.I目录1绪论.............................................................................................................................