1目录目录.........................................................................2摘要.........................................................................5Abctract.....................................................................61.绪论......................................................................81.1作品设计、发明制作的背景.............................................81.2作品设计、发明制作的现实意义.........................................91.3作品设计、发明制作的理念思路........................................102.研究作品的创新点及其优势分析..............................................72.1作品创新点...........................................................72.2作品优势分析.........................................................73.研究作品的推广前景和市场分析..............................................84.研究作品硬件部分的设计....................................................94.1作品硬件的主要组成模块概括...........................................94.2系统控制模块.........................................................94.3数据采集模块........................................................124.4通信模块的设计......................................................174.5显示模块............................................................184.6电源模块............................................................215.研究作品软件部分的实现...................................................235.1电压、电流有效值测量................................................235.2频率测量............................................................245.3谐波分析............................................................275.4有功功率............................................................305.5无功功率............................................................315.6功率因数............................................................315.7电量检测及分时计费..................................................316.研究作品的技术参数及其应用...............................................336.1作品的关键技术参数..................................................336.2作品的具体应用......................................................33结语.......................................................................35致谢........................................................错误!未定义书签。2参考文献附件1实物照片附件2原件清单附件3测试试验图片附件3授权书3摘要功率因数是电路中的重要参数,是衡量系统是否经济运行的一个重要指标,也是供电线路系统的重要检测量。矿井中电网运行的稳定、用电质量的高低,已成为影响煤矿安全生产的重要因素。煤矿企业使用了大量的异步电机、变压器等设备,电机的启动和控制使电网功率因数降低,谐波增加,甚至出现过电压和过电流等现象,增加了供电系统的不稳定性并降低电网效率。而传统的矿用功率因数检测仪存在功能单一、精度不高、价格昂贵等缺点。针对上述问题,开发了基于STM32F101CBT6单片机的矿用电网智能功率因数检测仪。该矿用电网智能功率因数检测仪由数据采集、系统控制、通信接口、电源管理和人机交互界面这五个模块来构成。数据采集模块采用电压互感器和电流互感器实现对设备信号的采集,信号调理电路采用运算放大器、PT/CT等对信号进行放大和滤波,设计具有抗脉冲干扰能力强,成本低,温度稳定性好等优点;电源模块中K78U12对原信号电源进行转化,能够对各个设备环节独立供电,保证了系统的稳定性;提出了一种改进的软件解析测频方法,能够快速准确的测量频率;另外该矿用电网智能功率因数检测仪还具有丰富的通讯接口和友好的人机界面。矿用电网智能功率因数检测仪的设计,可有效地实现对煤矿电网功率因数变化的监测,具有安全性好、测频方法先进、精度高、接口丰富、人机界面友好、成本低等优点,具有很好的推广应用价值,同时对其行业的电网质量的监控具有借鉴作用,对实现对用电质量的监控对现代人类社会具有重要的意义。关键词:智能控制;数据采集;单片机;功率因数检测;傅里叶变换4AbstractThepowerfactorisanimportantparameterinthecircuit,isameasureofwhetherthesystemeconomicoperationisanimportantindicator,isalsotheimportantmeasureofpowersupplylinesystem.Theminepowergridoperationstability,powerquality,hasbecomeanimportantfactoraffectingcoalminesafetyproduction.Coalmineenterprisestousealargenumberofasynchronousmotors,transformersandotherequipment,motorstartingandcontrolthepowergridpowerfactorandreducetheharmonic,increase,appeareventhephenomenonofovervoltageandovercurrent,increasesthepowersysteminstabilityandreducetheefficiencyoftheelectricnetwork.Butthetraditionalminingpowerfactordetectiondevicehassinglefunction,highprecision,highprice.Intheviewoftheabovequestions,wedevelopedthefactorwhichbasedonSTM32F101CBT6MCUformineelectricnetworkpowerfactorintelligentdetectioninstrument.Themineelectricnetworkpowerfactorintelligentdetectioninstrumentconsistsofdataacquisition,controlsystem,communicationinterface,powermanagementandman-machineinterfaceofthefivemodular.Thedataacquisitionmoduleusesavoltagetransformerandcurrenttransformertorealizeequipmentsignalacquisition,signalconditioningcircuitusingtheoperationalamplifier,PT/CTonsignalamplificationandfiltering,designwithantipulseinterferenceability,lowcost,goodthermalstabilityandotheradvantages;powermoduleK78U12ontheoriginalsignalpowerconversion,abletoeachlinkindependentlypoweredequipment,ensurethestabilityofthesystem;thispaperproposesanimprovedsoftwareanalyticalmethodoffrequencymeasurement,canquicklyandaccuratelymeasurethefrequency;inadditiontothemineelectricnetworkpowerfactorintelligentdetectoralsohasarichcommunicationinterfaceandfriendlyman-machineinterface.Mineelectricnetworkpowerfactorintelligentdetectinginstrumentdesign,caneffectivelyrealizethecoalminepowernetworkpowerfactorchangemonitoring,hasgoodsafety,frequencymeasurementmethodisadvanced,highprecision,richinterface,friendlyman-machineinterface,lowcost,andhasgoodpopularizationandapplicationvalue,andtheindustryofpowerqualitymonitorreference,torealizetopowerqualitymonitoringonmodernhumansocietytohavetheimportantmeaning.Keywords:intelligentcontrol;dataacquisition;singlechipmicrocomputer;powerfactordetection;Fouriertransform.51.绪论电能是目前人类社会使用最广泛的能源,电能的传输载体是电网系统,其供电用电质量是一个国家发展水平的