基于单片机的IC卡门禁系统

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

2013届本科生毕业设计题目:基于单片机IC卡门禁系统的设计与实现院(系):机械与电子信息工程学院专业年级:2013级电信专升本姓名:陈诚学号:2013080102指导教师:唐永刚教授2015年03月20日Title:microcontroller-basedtemperaturecontrolsystemfountainsDepartment:CollegeofthesystemofenergysavingandsafetyMajor:ElectronicandInformationEngineeringAuthor:ChenchengStudentID:2013080102Instructor:TangYonggangProfessorMarch20th,2015摘要随着科学技术的进步,IC卡门禁系统在日常生活中的应用越来越普及。比如公司、写字楼出入口门禁制系统采取以感应卡来取代用钥匙开门的方式。使用者用一张卡可以打开多把门锁,对门锁的开启也可以有一定的时间限制。如果卡丢失了,不必更换门锁,只需将其从控制主机中注销。出入口门禁控制系统是通过对出入口的准入情况进行控制、管理和记录的设备,对何人何时在何地进行详细跟踪,以实现中心对出入口的24小时控制、监视及管理等。本系统以89C51系列单片机STC89C52为控制核心,利用非接触式高频MifareIC卡模块读取用户手中的IC卡信息,识别成功后与系统存储的IC卡库数据进行比对校验,如果IC卡数据库中有IC卡则证明IC卡合法,单片机通过控制继电器控制电子锁门禁开启和关闭。同时系统采用4X4矩阵键盘作为输入,LCD1602液晶作为人机交互显示,让系统具备更大的实用价值。关键词:STC89C52;4X4键盘;IC卡;LCD1602;MifareAbstractWiththeprogressofscienceandtechnology,accesscontrolsystemsusedindailylifeismoreandmorepopular.Thegateentrancecontrolsystemtoreplaceopenadoorwithakeywaytoinductioncard.Auserwithacardcanopenthelockonthedoorlock,theopeningcanalsohaveacertaintimelimit.Ifthecardislost,donothavetochangethelocks,thecancellationofitscontrolfromthehost.Thegateentrancecontrolsystemthroughcontrol,equipmentmanagementandrecordsoftheadmittanceofentrancetowhom,whenandwheretodetailedtracking,toachievethecenterontheentrance24hourscontrol,monitoringandmanagement.Thissystemuses89C51SeriesMCUSTC89C52asthecontrolcore,theuseofcontactlessICcardinformationofhighfrequencyMifareICcardmoduletoreadtheuser'shands,ratioofICarecheckingdatarecognitionaftersuccessfulandstoragesystem,ifthereisevidencethattheICcardICcardICcarddatabaselegal,chipbycontrollingtherelaycontrolelectroniclockopeningandclosing.Atthesametimethesystemusesthe4X4matrixkeyboardasinput,LCD1602liquidcrystaldisplayashuman-computerinteraction,cancompletetheICcardinformationthroughthekeyboardtoadd,deleteandothertasks,tomakethesystemmorepracticalvalue.Keywords:STC89C52;4X4keybord;ICcard;LCD1602;Mifare目录1系统总体方案设计.................................................................................................11.1系统设计原理.................................................................................................11.2硬件方案的选择.............................................................................................11.2.1主控制芯片的选择.................................................................................11.2.2显示模块的选择.....................................................................................21.2.3电源电路的比较与选择.........................................................................21.2.4键盘输入电路的选泽.............................................................................31.2.5电子锁门禁驱动电路的选择.................................................................31.2.6数据存储芯片的选泽.............................................................................42系统的硬件设计.....................................................................................................52.1单片机最小系统设计.....................................................................................52.1.1STC89C52单片机介绍..........................................................................52.2IC卡原理及驱动电路设计............................................................................72.2.1Mifare射频卡技术参数.........................................................................72.2.2IC卡内部结构介绍................................................................................72.2.3IC卡读写过程........................................................................................92.2.4单片机与IC卡读卡模块接口电路设计.............................................102.3键盘电路设计...............................................................................................102.3.1键盘识别原理.......................................................................................102.3.2键盘电路及键盘按键定义...................................................................112.4电子锁门禁继电器驱动电路设计...............................................................112.4.1继电器介绍...........................................................................................112.4.2继电器驱动电路设计...........................................................................122.5LCD1602液晶显示电路设计......................................................................122.5.1LCD1602液晶介绍..............................................................................122.5.2单片机与LCD1602液晶接口介绍.....................................................123系统的软件设计...................................................................................................143.1系统总程序设计...........................................................................................143.2IC卡读写子程序设计..................................................................................143.3键盘扫描程序的设计...................................................................................153.4LCD1602液晶显示子程序..........................................................................173.5电子锁门禁开关子程序设计.......................................................................183.6报警子程序设计..........................................................

1 / 60
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功