現(xiàn)代社會(huì)的發(fā)展,對(duì)稱重系統(tǒng)提出了更高的要求。目前,臺(tái)式電子秤在商業(yè)貿(mào)易中的使用已相當(dāng)普遍,但存在一定的局限性,雖然在體積,成本控制方面有所改進(jìn),但需要工頻交流電源供應(yīng)、攜帶不便、應(yīng)用場(chǎng)所受到制約,且隨著信息技術(shù)的發(fā)展,某些領(lǐng)域人們需要對(duì)所得數(shù)據(jù)進(jìn)行處理,期待測(cè)量更準(zhǔn)確、價(jià)格更低廉且具有與PC機(jī)相連功能的電子秤投放市場(chǎng)。
本文設(shè)計(jì)的電子秤以STC單片機(jī)為主要部件 ,用C語(yǔ)言進(jìn)行軟件設(shè)計(jì),硬件則以全橋傳感器FAB-80 為主,量程為0~10kg,隨時(shí)可改變上限閾值,并達(dá)到閾值報(bào)警的功能。在文中論述了稱重系統(tǒng)的工作原理,給出了系統(tǒng)電路設(shè)計(jì)與軟件流程,進(jìn)行實(shí)物制作并調(diào)試。
本文設(shè)計(jì)的基于單片機(jī)的電子稱重系統(tǒng)主要由電源、稱重傳感器、單片機(jī)、鍵盤/開關(guān)、LED顯示器,串口通信等構(gòu)成智能稱重系統(tǒng)電路板,從而實(shí)現(xiàn)自動(dòng)稱重系統(tǒng)的各種控制功能。可以說,此設(shè)計(jì)所完成的電子秤很大程度上滿足了應(yīng)用需求。
關(guān)鍵詞: 串口通信; 稱重傳感器;STC 單片機(jī); LED顯示器;FAB-80
The development of the modern society has put forward higher request on weighing technology. The desk-top electronic scales have been great application in commercial trade, but they have many shortcomings such as large volume, high cost, AC supplypower and not covenience to carry, so they are restricted to use. And with the development of information technology, some areas that people need to process the data So they have been expecting cheap portable electronic scales which can measure accurately and nd has the function of PC-linked electronic scale on the market.
This electronic scale designed to take STC microcontroller as the main components, with using C language to Compile software in the thesis. And the hardware is based by full-bridge sensors FAB-80, its range is 0 ~ 10 Kilogram. Limited threshold value can be changed at any time to reach the alarm threshold function. The thesis discusses the working principle of weighing system, giving circuit design and software process and making physical production with debugging.
The microcontroller-based electronic weighing system consists of power supply, load cell, microcontroller, keyboard / switch, LED display, serial communications. All of them constitue an intelligent weighing systems board to achieve a variety of control functions of automatic weighing system. It can be said that the completion of the design of electronic scale meets the application requirements to a large extent.
Keywords: serial communication; load cell; STC microcontroller; LED display; FAB-80