毕业设计(论文)外文资料翻译学生姓名:朱德涛学号:1402100129所在学院:电子与信息工程学院专业:电子信息工程指导教师:毛钱萍2014年03月15日Proceedingsof20094thInternationalConferenceonComputerScience&EducationTheDesignofElectronicLocksBasedonInfraredRemote-ControlwithMCUZhangChengXueShunXiangWuDepartmentofAutomationDepartmentofAutomationXiamenUniversityXiamenUniversityXiamen,ChinaXiamen,Chinaxuezhangcheng@126.comwsx1009@163.comAbstract-Atpresent,key-padelectroniclockwithalarmingfuntionistograduallyreplacethetraditionalmechanicallocks,overcomingtheshortcomingsofthetraditionalmechanicallockswhichcontainfewpasswordandlackofreliabiIty,butkeypadelectroniclockmakesagreatprogressintermsoftechnologyandperformance.Thispaperrepresentsatypeofremote-controlledelectroniclockdevelopedwiththechipofAT89S51.Thistypeoflockhavetwoinputdevices,oneofthemisa4*3matrixkeyboardmountedonthelock,theotheroneisaremotecontrollerwhichalsohave4*3matixkeyboard.wecanuseeitherofthemtoopenthelockorchangethepasswordwehaveset.Inthedesign,weadopttheinfraredrayasthemedium,becauseofthestronganti-interferenceability,reliabletransmissionofinformation.IndexTerms-MCUElectroniclocksInfraredRemote-controlLCD1602I.INTRODUCTIONThedesignisbasedonsinglechip,makesuseof4*3keyboardandinfraredremotecontrollerasinput,LCD1602coulddisplaytheinformationofthestepswhenyouareoperating.Thisdesignmentcouldalsorealizemodifyingthepasswordandalarming.Whenarequirementtoresetthepassword,itisnecessarytomakesurethepasswordiscorrect,otherwiseitwillmakenoisetowarnyouthepasswordiswrong.Inthisdesignment,1limitthelengthofthepasswordatsix,JustliketheATMofbank.youmustenterrightpasswordifyouwanttogetthrough.II.THEFRAMEWORKOFTHEDESIGNMENTThedesignmentconsistsofsixmodules:themaincontrollermodule,LCD1602module,4*3keyboardmodule,infraredremotecontrolmodule,thealarmmodule,theunlockingsimulationmodule.MainControllerModule:alow-power,high-performanceCMOS8-bitsinglechip,thedeviceusedATMEL'shighdensity,non-volatilememorytechnology,compatiblewithstandardcommandsystemofMCS-51.An8-bitcommoncentralprocessingunitandISPFlashmemorycellareintegratedinthischip.LCDmodules:LCD1602isacharacterliquidcrystaldisplaymodules,isatypeofdot-matrixLCDdedicatingtodisplayletters,numbers,symbolsandsoon.Consideringeconomyandpracticeinthisregard,adoptingLCDl602isenoughtomeettherequirementsofcharacterdisplayingontheLCD.4*3keyboardmodule:BecauseofI/OportofMCUislimited,accordingtomatrixkeyboardtorealizecircuit.Inthisway,wecandesignenoughbuttonsonthekeyboardbutnottakeuptoomanyportsoftheMCU.Infraredremotecontrolmodule:thedesignusedauniversalTVremotecontrollerasinputdevice,thedevicecanprovideawiderangeofinfraredencodingformat,sowemakeuseofthecodingformatofthepulsewidthmodulation.Alarmmodules:Inthisdesign,selectthebuzzertosoundawarning.Thesingle-chipthroughtheportP3.2outputsasquarewavepulse-drivenaudioloudspeakers.Unlockinginstructions:Inthisdesign,1choosetouseLEDlightstosimulatethesituationofthelock.whenweenterpassword,LEDlightswillflashonbehalfoftheunlockingissuccessful.Figure1.TheframeworkofthedesignmentA.ThedesignofMatrixkeyboardMatrixkeyboardworkingprinciple:verticallinesthroughtheresistanceconnected+5Vpower.whennokeysarepresseddown,theverticallinesisinhighlevelsituation,otherwise,thesituationisthesamewiththehorizontalline'swhichiscrossedonthebutton.Originally,thehorizonallinesareinlow-level,whenwecheckthevaryingsituationoftheverticalIines,thatmeansbuttonispresseddown,atthistimewesavethesituationofportp2.4-p2.6,thenweprogramtomaketheportp2.0-p2.3inhighlevelsituationlinebyline,atthemeantimecheckingthevaryingofthesituationoftheportp2.4-p2.6,whenitchanges,wesavethesituationoftheportp2.0-p2.3.Inthisway,wehaveknownwhichbuttonhadbeenpressdown,becausewehaverecordedsituationoftheportp2.0~p2.6.Differentkeyshavedifferentcodingformat,thekeyboardprocessingtasksare:Firstly,todeterminewhetherornotpressthebutton,thencheckwhichbuttonhavepressed,throughtheprogramming,gettheformationofkeycoding.Allofthekeycodeshowninthefollowingtable:TABLE1.THEVALUEOFKEYCODING4*3keyboardInfraredremotecontrolmoduleLCD1602AT89S51SinglechipAlarmcircuitUnlockingsimulationEEDEBEEDDDBDEBDBBBE7D7B7Figure2.The4•3keyboardcircuitB.Thedesignofinfraredremote–control1)TheintroductionoftheLC7461Atpresent,therearelotsofchipsdedicatingtotransmittheinfraredray,intermsoftheencodingformatthatcanbedividedintotwomajorcategories:PWMandPPM.Herewehaveadoptedarelativelyeasytomodulate,thePWM's,LC7461chip.Whentheinfraredcontroller'buttonispressed,itwillsendoutsomesignalwhichcontainstheinformationaboutthecodingformat.Thesignalhasthefollowingcharacteristics:thePWMpulsewidthlastfor0.56ms,interval0.56msasaperiodof1.12msrepresentingthebinary0;thePWMpulsewidthlastfor0.56ms,interval1.68msasaperiodof2.24msrepresentingthebinary1.Theabove-mentioned0and1composedof42bitsbinarycode,ascontainedinthe38kHzfrequencymodulationforthesecondlaunchinordertoenhanceefficiencyandreducelowerpowerconsumption,andthenthroughtheinfrareddiodetosendout.“0”“1”0.56ms0.56ms1.125ms2.25msFigure3.Theformationofthesignal.2)TheinfraredreceiversInfraredreceiverisanintegratedcircuiti