【正文】
畢業(yè)設(shè)計(jì)(論文) 題 目 : 基于單片機(jī)的高精度電子秤設(shè)計(jì) 學(xué) 院: 專 業(yè): 班 級(jí): 姓 名: 學(xué) 號(hào): 指導(dǎo)教師: 20xx 年 6 月 上海海洋大學(xué) 20xx 屆畢業(yè)設(shè)計(jì)(論文) 基于單片機(jī) 的高精度電子秤設(shè)計(jì) I 目 錄 緒論 ..................................................................... 3 稱重技術(shù)和稱重儀器的歷史發(fā)展 ...................................... 3 電子秤的組成 ...................................................... 4 電子秤的基本結(jié)構(gòu) ............................................ 4 電子秤的工作原理 ............................................ 4 電子秤的計(jì)量性能 ............................................ 5 本論文研究主要內(nèi)容 ................................................ 5 基本內(nèi)容 .................................................... 5 具體要求 .................................................... 5 2 高精度電子秤系統(tǒng)方案設(shè)計(jì) .............................................. 6 系統(tǒng)方案設(shè)計(jì) ...................................................... 6 控制器選型 ........................................................ 7 AT89S52 管腳說(shuō)明 ............................................. 7 數(shù)據(jù)采集模塊選型 ................................................. 10 壓力傳感器原理 ............................................. 10 壓力傳感器選型 ............................................. 11 調(diào)理電路選型 ..................................................... 13 顯示器選型 ....................................................... 14 3 硬件設(shè)計(jì) ............................................................. 15 電源電路設(shè)計(jì) ..................................................... 15 單片機(jī)控制電路設(shè)計(jì) ............................................... 15 顯示部分電路設(shè)計(jì) ................................................. 17 系統(tǒng)超重報(bào)警指示電路設(shè)計(jì) ......................................... 17 系統(tǒng)按鍵輸入電路設(shè)計(jì) ............................................. 18 系統(tǒng)總電路原理圖 ................................................. 19 4 軟件設(shè)計(jì) ............................................................. 21 主程序流程圖 ..................................................... 21 系統(tǒng)顯示部分流程圖 ............................................... 21 系統(tǒng)按鍵調(diào)整部分流程圖 ........................................... 22 上海海洋大學(xué) 20xx 屆畢業(yè)設(shè)計(jì)(論文) 基于單片機(jī)的高精度電子秤設(shè)計(jì) II 系統(tǒng)程序 .......................................... 錯(cuò)誤 !未定義書簽。 結(jié)論 .................................................................... 23 謝辭 .................................................................... 24 參考文獻(xiàn) ................................................................ 25 上海海洋大學(xué) 20xx 屆畢業(yè)設(shè)計(jì)(論文) 基于單片機(jī)的高精度電子秤設(shè)計(jì) 第 1 頁(yè) 共 33 頁(yè) 基于單片機(jī)的高精度電子秤設(shè)計(jì) 摘要 : 稱重技術(shù)自古以來(lái)就和人們的生活息息相關(guān), 其被 廣泛應(yīng)用于 工業(yè)、 農(nóng)業(yè)、交通、科研、內(nèi)外貿(mào)易等各個(gè)領(lǐng)域,因此也成為了人們生活中不可缺少的一部分。隨著科學(xué)技術(shù) 的發(fā)展與人類生產(chǎn)力的 不斷 提高,人們對(duì)計(jì)量準(zhǔn)確度的要求也越來(lái)越高。因此,擔(dān)任絕大多數(shù)稱重任務(wù)的電子秤 , 現(xiàn)在也受到越來(lái)越多的重視。 稱重技術(shù) 的 技術(shù)水平 直接影響著現(xiàn)代化和專業(yè)水平,以及 社會(huì)經(jīng)濟(jì)效益 的提高 。近年來(lái),電子稱重技術(shù)取得了突飛猛進(jìn)的發(fā)展,電子稱重 技術(shù) 也發(fā)揮著越來(lái)越重要的 作用 ,其應(yīng)用領(lǐng)域也在不斷 地?cái)U(kuò)大。特別是 由于 商業(yè) 用 電子 稱 具有精度高,反應(yīng)靈敏,結(jié)構(gòu)簡(jiǎn)單等 特點(diǎn),已經(jīng)被 廣泛應(yīng)用于工業(yè)和商業(yè)貿(mào)易,輕工食品,醫(yī)藥和衛(wèi)生等 各個(gè) 方面 。現(xiàn)如今,電子稱 正在逐步取代目前 較常使用的 機(jī)械秤 。 這就促使電子秤的研究需 要進(jìn)一步的深入 。 本系統(tǒng)的設(shè)計(jì)主要從硬件電路設(shè)計(jì),軟件編程調(diào)試,實(shí)物焊接調(diào)試三部分進(jìn)行詳細(xì)闡述。硬件電路主要是基于單片機(jī) AT89S52 為核心的控制單元實(shí)現(xiàn)數(shù)據(jù)的處理,采用壓力傳感器對(duì)數(shù)據(jù)進(jìn)行采集,電子秤專用 24 位 AD 轉(zhuǎn)換芯片 HX711 對(duì)傳感器采集到的模擬量進(jìn)行 AD 轉(zhuǎn)換,轉(zhuǎn)換后的數(shù)據(jù)送到單片機(jī)進(jìn)行處理顯示,數(shù)據(jù)顯示由 LCD1602液晶實(shí)現(xiàn)。 關(guān)鍵詞 : 電子稱;單片機(jī);稱重傳感器 ; HX711 High precision electronic scale design based on MCU Abstract: Since ancient times, the weighing technology is closely related with people39。s lives. It is widely used in various fields of industry, agriculture, transportation, scientific research, internal and external trade. So it has also bee an indispensable part of people39。s lives. With the development of science and technology and the continuous improvement of human productivity, measurement accuracy requirements are also increasing. Therefore, the electronic scales which takes the vast majority of weighing tasks, has also got more and more attention. The accuracy of weighing technology requirements are increasingly high, electronic products, technology level, directly influences the level of modernization and professions to improve the economic benefits of the society. In recent years, the electronic weighing technology achieved rapid development, electronic weighing in the metrology area also plays more and more important position, and its applications are constantly expanding. Especially, because of its mercial electronic with high accuracy, senstive reaction, simple structure, etc, have been widely applied in industry and merce trade, light food, medicine and health, etc. At present, mechanical scales are gradually replaced by electronic, this has led to the further study of electronic. Electronic scales are one of the electronic weighing instruments. The design of this system gives it’s elaboration from 3 parts: Hardware circuit design, software program debugging and entity weld debugging. Hardware circuit reaches data processing by the control unit which based on AT89S52, and gathers data by weighting sensor ,then makes AD transform by HX711 to the data gathered, and the transformed data then transferred to AT89S52 for display processing, at last LCD1602 would show it out steadily without twinkling 上海海洋大學(xué) 20xx 屆畢業(yè)設(shè)計(jì)(論文) 基于單片機(jī)的高精度電子秤設(shè)計(jì) 第 2 頁(yè) 共 33 頁(yè) Key words: electronic s