基于单片机的电容测量仪设计摘要:本设计详细介绍了一种基于单片机的数字式电容测量仪设计方案及实现方法
设计的主要方法是由LM393组成的LC振荡器,由单片机测量LC振荡回路的频率,根据已知的电容值,通过单片机的运算功能,计算出电容容量,最后,再通过单片机的普通I/O口控制液晶屏显示出电容容量的计算结果
系统的测量范围为1pF~12000μF,具有多个量程,可根据用户需要由用户选择,与用户的交互是通过按键实现,不同量程的实现是通过开关的闭合与断开来选择不同的R值,从而实现不同的量程,系统具有一定的实用价值
关键词:电容;LM393;LC振荡;单片机;LCDDesignofcapacitancemeasuringinstrumentIbasedonsinglechipmicrocomputerAbstract:ThisdesignintroducesadesignschemeofdigitalcapacitancemeasuringinstrumentbasedonMCUandtherealizationmethod.ThedesignmethodoftheLCoscillatoriscomposedbyLM393,measuredbysinglechipmicrocomputerLCoscillatingcircuitfrequency,accordingtotheknowncapacitancevalue,throughthesingle-chipcomputingfunction,calculatecapacity,finally,throughthemicrocontrollerI/OportcontrolLCDscreenshowsthecalculationresultsoftheelectricalcapacitance
Themeasurementrangeof1