【正文】
基于 單片機的稱重控制系統(tǒng)設計 I 屆畢業(yè)生 畢業(yè) 設計 說明書 題 目 : 基于單片機的稱重控制系統(tǒng)設計 院系名稱: 專業(yè)班級: 學生姓名: 學 號: 指導教師: 教師職稱: 基于 單片機的稱重控制系統(tǒng)設計 II 摘要 由 于 稱重 器具 在商業(yè)貿易中的重要作用, 稱重技術的 發(fā)展一直都受到人們的關注 。本文設計 實現(xiàn) 了一種新型的 多功能電子 稱重系統(tǒng) , 該系統(tǒng) 采用 了 最為常見的 C51 系列單片機STC89C52 作為 主控芯片 , 系統(tǒng) 可以 準確 稱量待測 物 的質量, 使用者設置 好 單價 后,系統(tǒng) 還能 自動 地 計算 總價 并 可以 把 測量結果 直觀 地顯示 在液晶屏幕上,同時 本 系統(tǒng)還具有超量程自動 報警功能。 另外 本系統(tǒng) 還擴展 了 電子 萬年歷 和 電子溫度計的 功能 ,使得系統(tǒng)更加 實用 。本文 論述了課題提出的背景,系統(tǒng)方案確定的依據(jù)以及 系統(tǒng)具體 硬件 電路的 設計 方案 和軟件編程 的 基本思路, 最后針對 系統(tǒng)的測試結 果進行了分析。 關鍵詞: 電子 稱重系統(tǒng) ;單片機; 稱重傳感器 ; A/D轉換 ; 時間 和 溫 度 ;人機 交互基于 單片機的稱重控制系統(tǒng)設計 III Title Design of weighing control System Based On MCU ABSTRACT Due to the important role of weighing apparatus in the trade, development of weighing technology has been paid close attention to by people. This paper presents a new type of multifunctional electronic weighing system .This design is based on the most mon C51 series microcontroller STC89C52 as a control core, it realized the basic functions of electronic scales. This design can acquisition quality accurately, display test data intuitively, set the price for diffident things and automatic alarm when it is over range. At the same time, the system also extends the function of electronic calendar and the thermometer, making the system more intelligent and practical. This paper discusses the background of the subject, how the system scheme is determined, design of the hardware circuit system and software programming. At the end of the paper, the system test results were analyzed. Key Words Electronic scale。 single chip microputer。 sensor。 A/D conversion。 humanputer interaction。 time and temperature 基于 單片機的稱重控制系統(tǒng)設計 IV 目錄 摘要 ........................................................................................................................................................ II ABSTRACT ............................................................................................................................................. III 第 1 章 前言 ....................................................................................................................................... 1 選擇課題的背景和意義 ............................................................................................................ 1 電子秤的現(xiàn)狀及未來的發(fā)展趨勢 ............................................................................................ 1 設計的主要任務 ........................................................................................................................ 2 第 2 章 系統(tǒng)方案設計 ....................................................................................................................... 3 系統(tǒng)總體構想及其工作原理 .................................................................................................... 3 系統(tǒng)方案的確定 ........................................................................................................................ 4 各 個模塊選型的分析 ................................................................................................................ 5 第 3 章 系統(tǒng)硬件電路的設計 ......................................................................................................... 16 MCU的最小系統(tǒng)電路設計 ....................................................................................................... 16 稱重傳感器和 A/D 轉換 芯片 HX711 的電路設計 .................................................................. 16 數(shù)據(jù)輸入模塊的電路設計 ...................................................................................................... 17 液晶顯示模塊的電路設計 ....................................................................................................... 17 報警模塊的電路設 計 ............................................................................................................... 18 時鐘模塊和溫度模塊的電路設計 ........................................................................................... 18 第 4 章 系統(tǒng)軟件部分的設計 ......................................................................................................... 19 編程語言和開發(fā)工具的選擇 .................................................................................................. 19 編程語言的選擇 ............................................................................................................... 19 軟件開發(fā)環(huán)境的選擇 ........................................................................................................ 19 程序設計的總體思路 ............................................................................................................... 19 各個模塊程序設計 說 明 ........................................................................................................... 21 鍵盤掃描程序 ................................................................................................................... 21 A/D 轉換程序設計 ............................................................................................................ 21 LCD 顯示程序設計 ........................................................................................................... 22 報警模塊程序設計 ........................................................................................................... 23 時鐘模塊程序設計 ........................................................................................................... 23 溫度模塊程序設計 ............................................................................................................ 23 小結 .......................................................................................................................................... 24 第 5 章 系統(tǒng)整體校調 .............................................................