摘要随着信息技术的发展与快速应用,用电管理也快速步入了信息化的轨道。为弥补现有公寓用电管理系统在功能上、结构上的缺陷,着重考虑用电管理系统在安全监控等功能以及系统结构上的改进,强化系统终端功能。本文分析国内宿舍集体用电管理的发展趋势,结合现有条件,针对目前宿舍供电网络中自动化水平低,故障率高等现状而设计。提出一种智能电网下的宿舍用电监控解决方案。该系统以单片机AT89S52为控制核心,把得到的数字量送入单片机进行数据处理,然后通过LCD液晶显示电压和电流,功率等的实时值。集成了SPI串行总线和模拟、数字功能模块,简化了外围电路设计。能够实现对电网运行状态实时监测、远程控制高压熔断器的断开与闭合、电能计量以及对历史用电状况进行分析等。与传统设计相比,系统避免了布线的烦恼,使宿舍看起来更加整洁干净。同时模块化的设计,系统的维护更加方便,扩展性加强,适用于管理集体化的宿舍。关键词:安全用电;单片机;用电监控AbstractWiththedevelopmentandrapidapplicationofinformationtechnology,powermanagementhasalsosteppedintotheinformationtrackrapidly.Inordertomakeupforthefunctionalandstructuraldefectsofthecurrentapartmentelectricmanagementsystem,itemphasizestheimprovementofthepowermanagementsysteminsecuritymonitoringandsoonandthestructureofthesystem,andstrengthenstheterminalfunctionofthesystem.Thispaperanalyzesthedevelopmenttrendofcollectiveelectricitymanagementindomesticdormitories,andcombinestheexistingconditionstodesignthecurrentsituationoflowautomationlevelandhighfailurerateinthecurrentdormitorypowersupplynetwork.Amonitoringsolutionfordormitorypowerconsumptionundersmartgridisproposed.ThesystemtakestheMCUAT89S52asthecontrolcore,andsendsthedigitalamounttothesinglechipcomputerfordataprocessing,andthendisplaystherealtimevalueofthevoltageandcurrent,thepowerandsoonthroughtheLCDliquidcrystal.SPIserialbusandanaloganddigitalfunctionmodulesareintegrated,whichsimplifiesthedesignofperipheralcircuits.Itcanrealizereal-timemonitoringoftheoperationstateofthepowergrid,remotecontrolthedisconnectionandclosureofhighvoltagefuse,electricenergymeasurementandtheanalysisofthehistoricalelectricityuse.Comparedwithtraditionaldesign,thesystemavoidsthetroubleofwiringandmakesthedormitorieslookmoreneatandclean.Atthesametime,modulardesign,systemmaintenanceismoreconvenient,expansibilityisenhanced,andissuitableformanagingcollectivizeddormitories.Keywords:safepowerconsumption,singlechipmicrocomputer,powerconsumptionmonitoring.目录摘要...............................................................................................................................IAbstract.......................................................................................................................II第一章前言..............................................................................................................11.1研究背景...........................................................................................................11.2研究意义...........................................................................................................11.3智能用电系统的总体方案...............................................................................1第二章电量监控系统的硬件设计..................................................................12.1硬件电路...........................................................................................................12.1.1单片机最小系统模块...................................................