基于单片机的门禁系统的设计.docx
《基于单片机的门禁系统的设计.docx》由会员分享,可在线阅读,更多相关《基于单片机的门禁系统的设计.docx(78页珍藏版)》请在冰豆网上搜索。
基于单片机的门禁系统的设计
基于单片机的门禁系统的设计
基于单片机门禁系统的设计
学号:
B11040926
姓名:
宁志杰
日期:
2014.12.31
Colorimetrictube10mLglass.4,theanalysissteppreparationofthesamplesolution:
precisionweighingapproximately0.01g~1.0gsample(accurateto0.0001g)in1...V2--determinationofsamplingvolume.Unitml(mI.);M--qualityofthesample,expressedingrams(g);Theatomicweightof55.84--Fe;2--conversionfactors.6,precisionunderrepeatabilityconditionstoobtaintheabsolutevalueofthedifferenceoftwoindependenttestresultsshallnotexceedthearithmeticalaverageofthe10%.Foodadditivessweetagent[saccharinsodium,andsweetpigment,andacetylsulfaacidpotassium(Anngamehoney],andcoloringagentoftestaccordingtofocusintroducedanti-oxidantofdetection(BHA,andBHT,andPG,andTBHQ),]GB2760GB/T5009.30,andGB/T5009.32,andGB/T5009.35,andfoodintheoftenusingofanti-oxidantmainhasBHA,andBHT,andPG,andTBHQtert-butylhydroxyfennelether(BHA)2,6-IItert-butyloncresol(BHT)Oftert-butylhydroxyanisole(BHA)2,6-di-tert-butyl-p-cresol(BHT)testinginaccordancewithGB/T5009.30vaporphasechromatographyandthin-layerchromatography,thissectionfocusesonColorimetry.Principle1,obtainedbysteamdistillationofthesample.separatetheBHT,methanolabsorption,o-anisidineandsodiumnitritesolutionorange-red,extractedwithchloroform,comparedwithstandardsizing.2,anhydrouscalciumchloridereagent.Methanol.Chloroform.Methanol(50%).Sodiumnitritesolution(3g/l):
keepindarkplace.O-anisidinesolution;weighing125mgo-anisidinein50mLthesecondBrownvolumetricflask,add25mLmethanolandshaketodissolve,and50mgactivatedcarbon,shake
基于单片机的门禁系统的设计
摘要
门禁系统采用89C52单片机作为控制核心,外围加蜂鸣器控制电路、开门指示灯电路、电控锁控制电路以及LCD液晶显示电路等。
门禁系统主要由CPU、工作指示电路、振荡电路、蜂鸣器电路、门控锁电路、矩阵键盘、读卡模块、显示模块等组成。
该门禁系统采用射频卡完成刷卡进门,按刷卡出门等功能。
其工作原理为:
当刷卡时,蜂鸣器响一下,如卡权限获得允许,显示模块显示卡号,同时继电器动作将门锁打开,指示灯点亮,延时一段时间后继电器再次动作将门锁锁闭,指示灯熄灭。
当按下出门按钮时,继电器动作将门锁打开,指示灯点亮,延时一段时间后继电器再次动作将门锁锁闭,指示灯熄灭。
当输入初始密码时,若输入正确,继电器动作将门锁打开,指示灯点亮,延时一段时间后继电器再次动作将门锁锁闭。
此外,程序中还增加了射频卡权限判断的功能,当遇到合法卡时显示卡号,门锁打开,延时10s自动关闭,当遇到非法卡时不显示卡号门锁不开。
本系统设计简单、性能优良,具有一定的实用性。
关键词:
门禁,射频卡,电控锁,液晶显示,单片机控制
Colorimetrictube10mLglass.4,theanalysissteppreparationofthesamplesolution:
precisionweighingapproximately0.01g~1.0gsample(accurateto0.0001g)in1...V2--determinationofsamplingvolume.Unitml(mI.);M--qualityofthesample,expressedingrams(g);Theatomicweightof55.84--Fe;2--conversionfactors.6,precisionunderrepeatabilityconditionstoobtaintheabsolutevalueofthedifferenceoftwoindependenttestresultsshallnotexceedthearithmeticalaverageofthe10%.Foodadditivessweetagent[saccharinsodium,andsweetpigment,andacetylsulfaacidpotassium(Anngamehoney],andcoloringagentoftestaccordingtofocusintroducedanti-oxidantofdetection(BHA,andBHT,andPG,andTBHQ),]GB2760GB/T5009.30,andGB/T5009.32,andGB/T5009.35,andfoodintheoftenusingofanti-oxidantmainhasBHA,andBHT,andPG,andTBHQtert-butylhydroxyfennelether(BHA)2,6-IItert-butyloncresol(BHT)Oftert-butylhydroxyanisole(BHA)2,6-di-tert-butyl-p-cresol(BHT)testinginaccordancewithGB/T5009.30vaporphasechromatographyandthin-layerchromatography,thissectionfocusesonColorimetry.Principle1,obtainedbysteamdistillationofthesample.separatetheBHT,methanolabsorption,o-anisidineandsodiumnitritesolutionorange-red,extractedwithchloroform,comparedwithstandardsizing.2,anhydrouscalciumchloridereagent.Methanol.Chloroform.Methanol(50%).Sodiumnitritesolution(3g/l):
keepindarkplace.O-anisidinesolution;weighing125mgo-anisidinein50mLthesecondBrownvolumetricflask,add25mLmethanolandshaketodissolve,and50mgactivatedcarbon,shake
洛阳理工学院毕业设计(论
文)
AccessControlSystemDesign
ABSTRACT
Entranceguardsystemuses89C52singlechipmicrocomputerascontrolcoreandperipheryaddabuzzercontrolcircuit,openthedoorindicatorlightcircuit,controlcircuitandcontrollockLCDdisplaycircuit,etc.EntranceguardsystemmainlybytheCPUandresetcircuit,thepowerindicativecircuit,workinstructionscircuit,oscillatingcircuit,abuzzercircuit,doorcontrolcircuit,gooutandlockbuttonreadingcardmodule,displaymodule.Theentranceguardsystemusesrfcardcompletechargetakethedoor,accordingtocredittogoout,andotherfunctions.Itsworkingprincipleis:
whencredit,abuzzerrang,suchascardtobeallowedtoaccess,displaymoduledisplaycardnumber,andatthesametimerelayactionwillopenthedoorlock,indicatorlight,delayafterperiodoftimerelayactionwillagainonlydoorlock,lightsgoout.Whenthepressoutbutton,therelayactionwillopenthedoorlock,indicatorlight,delayafterperiodoftimerelayactionwillagainonlydoorlock,lightsgoout.Whentheinputpassword,ifyouinputthecorrect,relayactionwillopenthedoorlock,indicatorlight,delayafterperiodoftimerelayactionwilllockdoorlockagain.Inaddition,theprogramwillalsoincreasetherfcardauthorityjudgmentfunction,whenfacinglegalcardshowedthecardnumber,dooropen,delay10sautomaticallyshutoff,whenmeetingtheillegalCARDSdon'tshowthecardnumberlocksdon'topen.Thesystemissimpleindesign,goodperformance,andhaspracticalvalue!
KEYWORDS:
AccessControl,RadioFrequencyCard,ElectronicallyControlled
Lock,LCD,MCU
Colorimetrictube10mLglass.4,theanalysissteppreparationofthesamplesolution:
precisionweighingapproximately0.01g~1.0gsample(accurateto0.0001g)in1...V2--determinationofsamplingvolume.Unitml(mI.);M--qualityofthesample,expressedingrams(g);Theatomicweightof55.84--Fe;2--conversionfactors.6,precisionunderrepeatabilityconditionstoobtaintheabsolutevalueofthedifferenceoftwoindependenttestresultsshallnotexceedthearithmeticalaverageofthe10%.Foodadditivessweetagent[saccharinsodium,andsweetpigment,andacetylsulfaacidpotassium(Anngamehoney],andcoloringagentoftestaccordingtofocusintroducedanti-oxidantofdetection(BHA,andBHT,andPG,andTBHQ),]GB2760GB/T5009.30,andGB/T5009.32,andGB/T5009.35,andfoodintheoftenusingofanti-oxidantmainhasBHA,andBHT,andPG,andTBHQtert-butylhydroxyfennelether(BHA)2,6-IItert-butyloncresol(BHT)Oftert-butylhydroxyanisole(BHA)2,6-di-tert-butyl-p-cresol(BHT)testinginaccordancewithGB/T5009.30vaporphasechromatographyandthin-layerchromatography,thissectionfocusesonColorimetry.Principle1,obtainedbysteamdistillationofthesample.separatetheBHT,methanolabsorption,o-anisidineandsodiumnitritesolutionorange-red,extractedwithchloroform,comparedwithstandardsizing.2,anhydrouscalciumchloridereagent.Methanol.Chloroform.Methanol(50%).Sodiumnitritesolution(3g/l):
keepindarkplace.O-anisidinesolution;weighing125mgo-anisidinein50mLthesecondBrownvolumetricflask,add25mLmethanolandshaketodissolve,and50mgactivatedcarbon,shake
I
前言
基于单片机的门禁系统的设计.............................................................前言.....................................................................................................0第1章概述.........................................................................................1
1.1系统方案的比较.....................................................................1
1.1.1选题论证.......................................................................1
1.1.2方案选择.......................................................................1
1.1.3CPU的选择...................................................................2
1.1.4射频卡的选择...............................................................3
1.1.5液晶显示的选择...........................................................3第2章硬件电路的设计.....................................................................4
2.1电路原理.................................................................................4
2.1.1门禁系统主要组成.......................................................4
2.1.2门禁系统工作原理.......................................................4
2.2资源分配.................................................................................5
2.3最小系统设计.........................................................................5
2.3.189C52的简述................................................................6
2.4最小系统的设计.....................................................................8第3章硬件电路原理.........................................................................9
3.1门控锁电路.............................................................................9
3.2蜂鸣器电路.............................................................................9
3.3控制指示灯...........................................................................10
3.44×4矩阵键盘.........................................................................10
3.5读卡模块...............................................................................11
3.6显示模块...............................................................................13
3.6.1LCD1602主要技术参数............................................13
3.6.2引脚功能说明..............................................................13
3.6.31602指令集.................................................................15
3.6.4与HD44780相兼容的芯片时序表...........................16Colorimetrictube10mLglass.4,theanalysissteppreparationofthesamplesolution:
precisionweighingapproximately0.01g~1.0gsample(accurateto0.0001g)in1...V2--determinationofsamplingvolume.Unitml(mI.);M--qualityofthesample,expressedingrams(g);Theatomicweightof55.84--Fe;2--conversionfactors.6,precisionunderrepeatabil