本科毕业论文(设计)(2014届)电感电容测量仪器的设计院系电子信息工程学院专业电子信息工程姓名韩永奇指导教师陆俊峰陈兵兵高工助教2014年4月学号:1008421103合肥师范学院2014届本科毕业论文(设计)I摘要近年来,电子行业的飞速发展,用户大多数使用万用表来测量一些元件参数或者电路中的电压电流。但是万用表却有一定的局限性,它只能测量有限种类的元器件的参数,却不能测量电感电容这部分元器件。所以制作一种简便的电容电感测量仪显得尤为重要,方便用户测量电路中需要用到的电容及电感的具体值。在测量电感电容值时,传统的测量大都采用交流电桥法和谐振法,然后通过磁性指针刻度读数,然而这些方法读数不够直观准确。通过改进,结合LRC振荡电路原理,结合以STC89C52单片机为控制核心,搭配必要的外围电路对电阻、电容和电感参数进行测量。基本原理是将电阻阻值、电容容值、电感感值的变化均转换成方波脉冲频率的变化,通过单片机做运算,计算出待测元件的各个参数并通过1602液晶屏显示出来。通过按键选择被测元件类型,测量时,只需将待测元件引脚放在测试仪的输入端即可。实验结果表明,该系统性能稳定,精度高。关键词:STC89C52单片机;电阻测量;电容测量;电感测量合肥师范学院2014届本科毕业论文(设计)IIAbstractInrecentyears,therapiddevelopmentoftheelectronicsindustry,mostusersuseamultimetertomeasuretheparametersofsomecomponentsorthecircuitvoltageandcurrent.However,therearesomelimitationsmultimeter,itcanonlymeasuretheparametersoflimitedtypesofcomponents,butnotinthispartoftheinductanceandcapacitancemeasurementcomponents.Somakingasimplecapacitanceandinductancemeasuringinstrumentisparticularlyimportant,user-specificvaluemeasurementcircuitsneedtousecapacitorsandinductors.Whenmeasuringtheinductanceandcapacitancevalues,mostlyusingtraditionalmeasurementmethodandACbridgeresonantmethod.However,thesemethodsusuallyscalereading,readingisnotintuitive.Byimproving,basedontheprincipleofLCoscillatorcircuit,combinedwithSTC89C52microcontrollercore,withthenecessaryperipheralcircuitresistance,capacitanceandinductanceparametersweremeasured.Thebasicprincipleisthattheresistor,capacitorcapacitancechangestheinductancevaluesareconvertedtoasquarewavepulsefrequencychangesbythemicrocontrollertodoarithmetictocalculatethevariousparametersoftheDUTandthrough1602LCDscreendisplay.Bybuttontoselectthetypeoftestelements,measurement,simplyputtheDUTpintotheinputofthetester.Experimentalresultsshowthatthesystemperformance,stability,highaccuracy.Keywords:STC89C52SCM;Resistancemeasurement;Capacitancemeasurement;Inductancemeasurement合肥师范学院2014届本科毕业论文(设计)III目录摘要.............................................................................................................IABSTRACT..................................................................................................II目录..........................................................................................................III1绪论............................................................................................................12电路方案的设计........................................................................................12.1电阻测量方案.............................................................................................12.2电容测量方案.............................................................................................22.3电感测量方案.............................................................................................23核心元器件介绍........................................................................................33.1NE555的介绍.............................................................................................33.2NE5532的介绍...........................................................................................53.3STC89C52的介绍......................................................................................63.41602液晶的介绍........................................................................................74单元电路设计..........................................................................................104.1电阻测量电路的设计..............................................................................104.2电容测量电路的设计..............................................................................114.3电感测量电路的设计..............................................................................114.4电阻、电容、电感显示电路的设计......................................................125程序设计..................................................................................................135.1中断程序流程图......................................................................................135.2主程序流程图..........................................................................................146设计结果..................................................................................................146.1系统测试...................................................................................................146.2系统总结...................................................................................................16心得体会......................................................................................................17参考文献......................................................................................................18附件..........................................................................................................19合肥师范学院2014届本科毕业论文(设计)11绪论我们生活在一个科学技术比较发达的现代化社会,而在现代化学习、实验、生产过程当中,往往都要对某一个元器件的具体参数进行测量,经常要对很多电感和电容进行测量,这就要用很多仪器和仪表,在这之中万用表以其简单易用,功耗低等优点被大多数人所选择使用。然而万用表却有很多局限性,比如不能测量电容,有时对电感也有不能用的时候,所以制作一个简单易用的电感电容测量仪是很有必要的。如今国内很多生产厂家都致力于新型电感、电容测量仪器的研究,都向着高精度、低功耗的方向不断努力,他们使用的原理就是利用LRC振荡电路把电感、电容的数据转化为电压或者频率信号,再通过频率检测用单片机进行运算二得到的,这种方法简单高效,精度高,具有很好的研究前景。2电路方案的设计电阻、电容、电感的设计采用分块