為提高電容測(cè)量精度,針對(duì)電容式傳感器的工作原理設(shè)計(jì)了基于PIC16LF874單片機(jī)電容測(cè)量模塊。簡(jiǎn)單闡述了電容測(cè)量電路的應(yīng)用背景和國(guó)內(nèi)外研究現(xiàn)狀,介紹了美國(guó)Microchip公司PIC16LF874單片機(jī)的特性。電容式傳感器輸出的動(dòng)態(tài)微弱電容信號(hào)通過(guò)PS021型電容數(shù)字轉(zhuǎn)換器把模擬量數(shù)據(jù)轉(zhuǎn)換成數(shù)字量數(shù)據(jù),所測(cè)數(shù)據(jù)由PIC16LF874單片機(jī)應(yīng)用程序進(jìn)行處理、顯示和保存。實(shí)驗(yàn)結(jié)果表明,固定電容標(biāo)稱(chēng)值為10~20 pF 的測(cè)量值相對(duì)誤差在1%以?xún)?nèi),同時(shí)也可知被測(cè)電容容值越大,測(cè)量值和標(biāo)稱(chēng)值相對(duì)誤差越小。
Abstract:
To improve the accuracy of capacitance measurement,aimed at the principle of work of mercury capacitance acceleration transducer,the design of micro capacitance measurement circuit is based on the key PIC16LF874 chip. Briefly discusses the application of the capacitance measuring circuit for the background and status of foreign researchers,focusing on the United States PIC16LF874 microcontroller features. Capacitive sensor outputed signal through the dynamics of weak PS021-chip capacitors (capacitancedigital converter) to convert analog data into digital data,the measured data from the PIC16LF874 microcontroller application process, display and preservation. Experimental results show that the fixed capacitor 10pF ~ 20pF nominal value of the measured value of relative error is within 1%,but also it canbe seen the value of the measured capacitance larger,measuring value and the nominal value of relative error smaller.