【正文】
基于單片機(jī)的多功能電子秤的設(shè)計(jì)與實(shí)現(xiàn)目錄摘要 21本設(shè)計(jì)的任務(wù)和主要內(nèi)容 3 4 傳感器的選擇 4 4 5 放大電路的設(shè)計(jì) 5 6 6 7 A/D轉(zhuǎn)換器 8 顯示電路的設(shè)計(jì) 9 鍵盤(pán)電路的設(shè)計(jì) 10 報(bào)警電路的設(shè)計(jì) 10 12 12 數(shù)據(jù)處理子程序的設(shè)計(jì) 123.2.1系數(shù)調(diào)整 133.2.2數(shù)制轉(zhuǎn)換 13 數(shù)據(jù)采集子程序的設(shè)計(jì) 14 15 鍵盤(pán)掃描子程序的設(shè)計(jì) 16 17 18參考文獻(xiàn) 19附錄 20摘要隨著時(shí)代科技的迅猛發(fā)展,微電子學(xué)和計(jì)算機(jī)等現(xiàn)代電子技術(shù)的成就給傳統(tǒng)的電子測(cè)量與儀器帶來(lái)了巨大的沖擊和革命性的影響。常規(guī)的測(cè)試儀器儀表和控制裝置被更先進(jìn)的智能儀器所取代,使得傳統(tǒng)的電子測(cè)量?jī)x器在遠(yuǎn)離、功能、精度及自動(dòng)化水平定方面發(fā)生了巨大變化,并相應(yīng)的出現(xiàn)了各種各樣的智能儀器控制系統(tǒng),使得科學(xué)實(shí)驗(yàn)和應(yīng)用工程的自動(dòng)化程度得以顯著提高。做為重量測(cè)量?jī)x器,智能電子秤在各行各業(yè)開(kāi)始顯現(xiàn)其測(cè)量準(zhǔn)確,測(cè)量速度快,易于實(shí)時(shí)測(cè)量和監(jiān)控的巨大優(yōu)點(diǎn),并開(kāi)始逐漸取代傳統(tǒng)型的機(jī)械杠桿測(cè)量稱,成為測(cè)量領(lǐng)域的主流產(chǎn)品。本文設(shè)計(jì)的電子秤以單片機(jī)為主要部件,用匯編語(yǔ)言進(jìn)行軟件設(shè)計(jì),硬件則以半橋傳感器為主,測(cè)量0~500g電子秤,隨時(shí)可改變上限閾值,并達(dá)到閾值報(bào)警的功能。稱重傳感器輸出的電量是模擬量,數(shù)值比較小達(dá)不到A/D轉(zhuǎn)換接收的電壓范圍。所以送A/D轉(zhuǎn)換之前要對(duì)其進(jìn)行前端放大、整形濾波等處理。然后,A/D轉(zhuǎn)換的結(jié)果才能送單片機(jī)進(jìn)行數(shù)據(jù)處理并顯示。其數(shù)據(jù)顯示部分采用LCD顯示,成本低且能很好地實(shí)現(xiàn)所要求的功能。關(guān)鍵詞:?jiǎn)纹瑱C(jī),電子秤,A/D, LCD Abstract With the era of rapid development of science and technology, microelectronics and puters and other achievements of modern electronic technology to the traditional electronic measurement and instrument tremendous impact and revolutionary test instrumentation and control devices were more advanced intelligent instruments replaced the traditional electronic measuring instruments far away from, function, determined the level of precision and automation tremendous changes have taken place, and the corresponding emergence of a variety ofintelligent instrument control system, making scientific experiments and applications engineering to significantly improve the degree of automation. As a weight measurement apparatus, intelligent electronic scale industries began to appear in the measurement accuracy, high speed, easytorealtime measurement and monitoring of the great advantages, and began to gradually replace the traditional mechanical measurement of said lever to bee a mainstream product measurement. This electronic scale designed to MCU as the main parts, assembly language for software design, hardwarebased Zeyi halfbridge sensors, electronic scales measuring 0 ~ 500g, upper threshold value can be changed at any time and to reach the threshold a