完整版基于单片机的家用电器电话远程控制系统毕业论文.docx
- 文档编号:12783682
- 上传时间:2023-04-22
- 格式:DOCX
- 页数:17
- 大小:129.46KB
完整版基于单片机的家用电器电话远程控制系统毕业论文.docx
《完整版基于单片机的家用电器电话远程控制系统毕业论文.docx》由会员分享,可在线阅读,更多相关《完整版基于单片机的家用电器电话远程控制系统毕业论文.docx(17页珍藏版)》请在冰豆网上搜索。
完整版基于单片机的家用电器电话远程控制系统毕业论文
基于单片机的家用电器电话远程控制系统
现在才将早已过去的毕业设计的的论文放在这里,不是因为这篇论文有多么的了不起,只想把我曾经的一点关于大学最后奋斗的记忆留在这里,以示对那青春岁月的追逝,并以此为证;同时也为那些能够为了整好论文而不停"baidu"的后继者也借鉴,希望只做参考,切不可照搬,因为此文还有不完善的地方,寄望后人斧正。
基于单片机的家用电器电话远程控制系统
本文设计的是一种基于AT89C51单片机的远程电话控制系统。
该系统是以AT89C51为核心、利用现有的个人通信终端,实现基于PLMN(陆基移动通信网)和PSTN(公用电话交换网)的电话远程控制系统。
电话远程控制系统(ITRCS),以CCITT(国际电报电话咨询委员会)及我国标准共同规定的部分标准程控交换信令(DTMF双音多频信号,振铃信号,回铃音信号等)作为系统控制命令,以PLMN与PSTN通信网作为传输介质,使用者可以在远端利用固定电话或移动电话发送DTMF双音多频信号,实现对近端电器设备的实时远程控制。
该电话远程控制系统不需进行专门的布线,不占用无线电频率资源,从而可避免电磁污染;且通过嵌入式的智能语音提示,突出的语音提示功能和密码控制系统,可使操作者根据各种提示音及时了解受控对象的有关信息。
还可通过发出语音命令用电话远程控制多个受控对象,用户可以查询其状态,提供密码处理功能,只有输入正确的密码才能控制家电,从而提高了安全性。
该系统设计实用,功能灵活多样,可靠性高,操作方便,可以广泛地应用于家庭或者其它场所的智能控制。
关键词 AT89C51;远程电话控制;DTMF;智能家电
TheTelephoneRemoteControlSystemforHouseholdElectronicApplianceBaseonTheMicrocontroller
Abstract
ThearticledesignedtheremotetelephonecontrolsystemwhichbasedonmicrocontrollerAT89C51.BasingonthePLMNandPSTN,thesystemwhichusesthecorecontrollerSingle-chipmicrocomputerAT89C51realizeslong-distancecontrolreceivesDTMFcodefromthetelephonenet,andinterpretthecode,thecorecontrollercontrolsthestateof.Longdistancecontroloftelephonedoesnotrequirespecialwiresdistributionanddoesnottakeupwirelessfrequencyresources.Electromagneticpollutioncanthusbeavoided.Thedesigningofasystemoflong-distancecontrolbasedonsoundprocessingtechnologyandDTMFdecodingtechnologyispresentedinthispaper.Byusingsoundcommandsofsoundrecognitiontechnology,thissystemrealizesitscontrolofresidence.Theembeddedandintelligentsoundindication,itsoutstandingsoundfunctionofpromptanditscodecontrolsystemenabletheoperatorstotimelyobtaintherelativeinformationofthecontrolledobjectsthroughindicatedsounds.Thesystemcanusetelephonetocontrolmanylongdistancethroughutteringsoundcommandsandprovidesthecodesafeguardfunction.Onlythroughinputtingthecorrectpasswordtocontrolthem,theuserscancontroltheconditionofbeimproved.Thissystemispractical,andthefunctionisflexible,andtheoperationisconvenientwithbeusedextensiveinvariouskindsofcontrolequipmentto.L.Fike,GeorgeE.FriendTexasInstrumentsInc,2004:
20-35
18BushbyST.AstandardcommunicationinfrastructureforintelligentBuildings.AutomationinConstruction[J].2007.6:
19PersonalComputerXTATsystemTechnicalreferencemanual,IntelCorp.
附录A
PCREMOTECONTROLOFAPPLIANCESBYUSINGTELEPHONELINES
ABSTRACT
TheideaofHomeAutomationusingtelephonelinesandaPCwasshowninthisstudy.ThesystemwasbasedontheDualToneMultifrequency(DTMF)signalsthatcouldbesentthroughaloopofwiretoswitchonoffvariousappliancesviaaPersonalComputer(PC).ThesystemtheTelephoneStandards.TheOffHookdetector,RingdetectorandanInputOutputPCInterfacingcard.Anexampleofcontrollinganappliancewasprovidedinthestudy.ThesoftwarecontrolprogrammingwaswritteninTurboBasicandtheirflowchartsarepresented.
INTRODUCTION
HomeAutomationthatwasintroducedinthisstudywasimplementedbydesigningthe"SmartControlSystemthatControlsAllAppliancesRemotelybyPhone".ThedesignwasbasedontheTelephonyStandardswhichmeantthatthesystemwasqualifiedtobeinstalledonthepublicswitchingsystems.ThesystemdesignwasutilizingtheDualToneMultifrequency(DTMF)signalsthatcouldbeproducedbythetelephoneset.Thesesignalsweresentfromtheuserendthroughtheloopwiretothedestinationend,wherethecontrolsystemwasstationed.Thesystemconsistedofthreemajorparts.ThefirstpartwastheringdetectorandDTMFreceiver.ThesecondpartwastheInputOutputinterfaceunit.ThethirdpartwasthepersonalcomputerwhichwasprogrammedwithTurboBasicSoftwaretoperformtheonlineoperations.Blockdiagramofthesystemwasshowninfigure1.
Figure1:
SmartcontrolsystemtocontrolAppliancesremotelybyphone
BRIEFOPERATIONOFATELEPHONESET:
Asummaryofthetelephonesetoperationwasgiven.Blockdiagramofatelephonesetisshowninfigure2.
(a)Localloop:
Eachsubscribertelephonewasconnectedtoanexchangeofficethatcontainedtheswitchingequipment,signallingequipmentandbatteriesthatsuppliedthedirectcurrenttooperatethetelephone.Eachphonewasconnectedtothecentralofficethroughalocalloopoftwowirescalledawirepair.OneofthewireswascalledT(fortip)andtheotheronewascalledR(forring)whichreferredtotheTIPandRINGpartsoftheswitchusedinmanualswitch-boards.Switchesintheexchangeofficerespondedtothedialpulsesortonesfromthetelephonetoconnectthecallingpartytothecalledparty.Whentheconnectionwasestablished,thetwotelephonescommunicatedovertransformercoupledloopsusingthecurrentsuppliedbytheexchangeofficebatteries.
(b)Initiatingacall:
Thesituationwherethe"receiver".Theoff-address.)
(c)SendingaNumber:
Sometelephonesetssentthetelephonenumbersbydialpulseswhileotherssentitbyaudiotones.Inthisstudy,audiotonetelephonesetswereused.Thesesetskeypadwith12keys.Pressingoneofthekeyscausedanelectroniccircuitinthekeypadtogeneratetwooutputtonesthatrepresentedthenumber.ThesetonesarecalledDualToneMultifrequency(DTMF)signals.
(d)ConnectingthePhones:
Theexchangeofficetheconnectionwasattempted,abusytonewasgeneratedbytheexchangeofficeandwasreturnedtothecallerphone.Otherwise,aringingsignalwassenttothecalledphonetoalertthecalledparty.Atthesametime,aringbacktonewasreturnedtothecallertoindicatethatthefailedphonewasringing.
e)AnsweringtheCall:
Whenthecalledpartyremovedtheresponsetoaring,thelooptothatphonewasclosedandaloopcurrentflowedthroughthecalledtelephone.Theexchangeofficethenremovedtheringingsignalandtheringbacktonefromthecircuit.
f)EndingtheCall:
Intoday'smostswitchingsystems,thecallwasended,theconnectionwasreleased,onlywhenthecallingartywenton-keypadwith12keyswhichrepresentedthenumbers0through9andthesymbol*and#.Seefigure3.PressingoneofthekeyscausedtheDTMFgeneratortogeneratetwotonesinthevoiceband(300-3,000Hz).Therewasalowfrequencytoneforeachrowanda.Pressingkey5,forexample,generateda770Hztoneanda1,336Hztone.Byusingthedualtonemethod,12uniquecombinationswereproducedfromonlyseventoneswhenthe12positionkeypadwasused.
Figure3:
DTMFKeypadandFrequencies
Thefrequenciesandthekeypadlayoutinternationallystandardized,butthetolerancesonindividualfrequenciesvariedindifferentcountries.TheNorthAmericanstandardswere*1.5%forthegeneratorandf2.0%forthereceiver.ThetonesselectedcarefullysothattheDTMFreceiverintheexchangeofficewouldnotconfusethemwiththeothertonesthatmightoccuronth6line.TheseDTMFtonesfromtheexchangeofficeweretransmittedthesameasspeechoverthetelephoneline.ThispermittedustoreceivetheDTMFtonesbyoursystem'sDTMFReceiverifanynumberwaspressedonthekeypad.
a)DTMFReceiverCircuit:
ThetaskoftheDTMFReceiverwastodetectthepresenceofavalidtonepaironatelephonelineorothertransmissionmedium.Thepresenceofavalidtonepairindicatedasingledialleddigit.Inordertogenerateavaliddigitsequence,eachtonepairshouldbeseparatedbyavalidpause.ThefollowingtableshowedtheestablishedBellsystemstandardsforavalidtonepairandavalidpause:
Low-GroupTone:
697or770or852or941Hz
High-GroupTone:
1209or1336or1477or1633Hz
FrequencyTolerance:
for(1.5%+2Hz)
AmplitudeRange:
-24dBm.CA<+6dBm@600Ohm
ToneDuration:
40msorlonger
PauseDuration:
40msorlonger
Figure4showedthecompletecircuitfortheDTMFreceiver.ThecircuitemployedtheRadio-Shack()DTMFReceiverIC.ItwasacompleteDualToneMultifrequency(DTMF)Receivercircuitdetectingaselectablegroupof12or16standarddigits.
Figure4:
DTMFReceiver&TelephoneSourcecontroller
TheblockdiagramoftheDTMFreceiverinternalstructure.Theanaloginputsignalwaspreprocessedbya60-Hzrejectfilter,apreamplifierandalowpassfiltertoemphasizethesignalpart.Theoutputofthepreprocessorstagewasthensplitintotwofrequencybands,eachofwhichcontainedonlyoneDTMFtonegroup.
Theoutputofeachband-splitfilterwasamplifiedandthefollowingzero-crossingdetectorconvertedthesinusoidalsignalstosquarewaves.Thesesquarewaves,passedthroughtonefrequencybandpassfilterstogeneratetheindividualfrequenciesineachtonegroup.Eachbandpassfilteroutputwasdetectedbyanamplitudedetectorandfedtoatimingcircuittodeterminethedetectionvaliditywithin40ms.Thedetectoroutputwasalsofedtoanoutputdecodertodecodethetonestotheirequivalentbinarynumbers.Thetimingcircuitryproducedthecontrolpulses,foranoutputregister.Forexample,thedatastrobefromthetimingcircuitenabledthedecoderoutputstobelatchedattheregisteroutputsD1,D2,D4,D8.Theregisteroutputsbecamevalidafteratonepairavalidpause.WhenHEXB28=1,theoutputwasHEXB28=0,theoutputwasabinarycode.Thefollowingtablesshowedthetwooutputformats.
A,B,CandDwereusedforextendedkeypads.TheDataValid(DV=l)pinindicatedavalidtonepairwassensedanddecodedattheoutputpinsofD1,D2,D4andD8.DVremainedinfigure4,theinputpins9and10ofDTMFreceiverICwereconnectedtoanIsolationtransformerwhichwasusedtoisolatethetelephonelinegroundfromthedigitalground.Pin10wastiedtothedigitalground,whichwastheinputground.TheRingterminalofthetelephoneli
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 完整版 基于 单片机 家用电器 电话 远程 控制系统 毕业论文