【正文】
行了設(shè)計,并未附加其他功能。 單片機以及外圍芯片的不斷發(fā)展 也進一步 促進了里程計的發(fā)展。 國內(nèi)自行車?yán)锍逃嬕呀?jīng)經(jīng)歷了四個階段的發(fā)展 ,從傳統(tǒng)的全部由機械元器件組成的機械式 ,到半電子式即用電子線路代替部分機械元器件的自行車?yán)锍逃?,再從集成電路式到目前的單片機系統(tǒng)設(shè)計的自行車?yán)锍逃?。騎自行車時 ,希望看到的不僅僅只是速度。 LCD1602 華科學(xué)院本科畢業(yè)設(shè)計(論文) III 目 錄 摘要 ........................................................................ I ABSTRACT ................................................................... II 目 錄 ..................................................................... III 第 1 章 緒論 ............................................................. 1 選題的意義 ....................................................... 1 課題任務(wù) ......................................................... 1 設(shè)計思想 ......................................................... 2 主要問題 ......................................................... 2 第 2 章 系統(tǒng)方案設(shè)計 ..................................................... 5 總體方案比較 ..................................................... 5 總體方案選擇 ..................................................... 6 系統(tǒng)總體框圖 ............................................... 6 實現(xiàn)原理 ................................................... 6 分支方案選擇 ..................................................... 7 單片機的選擇 ............................................... 7 顯示模塊的選擇 ............................................. 8 傳感器的選擇 ............................................... 8 第 3 章 系統(tǒng)硬件設(shè)計 .................................................... 11 總體設(shè)計 ........................................................ 11 各單元設(shè)計 ...................................................... 12 控制單元設(shè)計 .............................................. 12 檢測單元設(shè)計 .............................................. 17 顯示單元設(shè)計 .............................................. 17 第 4 章 系統(tǒng)軟件設(shè)計 .................................................... 27 總體設(shè)計 ........................................................ 27 子程序設(shè)計 ...................................................... 29 定時子程序 ................................................ 29 算法流程 .................................................. 30 宋丹: 基于單片機的自行車?yán)锍?速度計設(shè)計 IV 按鍵掃描子程序 ............................................ 30 LCD1602 程序 .............................................. 31 第 5 章 系統(tǒng)調(diào)試 ........................................................ 33 系統(tǒng)硬件調(diào)試 .................................................... 33 常見的硬件故障 ............................................ 33 硬件調(diào)試方法 .............................................. 33 系統(tǒng)軟件調(diào)試 .................................................... 34 系統(tǒng)仿真調(diào)試 .............................................. 34 protel99 的介紹 ........................................... 34 系統(tǒng)調(diào)試方法 .............................................. 34 系統(tǒng)整體調(diào)試 .................................................... 36 結(jié)論 ................................................................... 41 參考文獻 ............................................................... 43 致謝 ................................................................... 45 附錄 ................................................................... 47 華科學(xué)院本科畢業(yè)設(shè)計(論文) 1 第 1 章 緒論 選題的意義 隨著自行車的產(chǎn)生,里程計也就 伴隨著時代 應(yīng)運而生。 The design of this multifunction window will be in line with the principles of safe, convenient, energy saving, userfriendly, and it will make modern life significantly improved. Keywords: Bicycle。s principle of work, the hardware constitution, various part of major functions as well as software39。 自行車?yán)锍趟俣扔嫷脑O(shè)計本著安全、方便、節(jié)能、人性化的原則進行,可使現(xiàn)代生活顯著提高 。采用 STC89C52 單片機為主要控制芯片,運用自行車車輪上的傳感器進行計數(shù), 通過一定時間間隔對信號的采集,結(jié)合自行車本身 車輪參數(shù), 經(jīng)過單片機對采集信號進行分析計算, 最終在液晶顯示器 LCD上顯示車輛行駛的里程和速度, 同時運用其他按鍵分別自行車單里程計數(shù),瞬時速度、最大 速度和平均速度顯示, 具有超速報警 。華科學(xué)院本科畢業(yè)設(shè)計(論文) I 基于單片機的自行車?yán)锍趟俣扔?設(shè)計 摘要 隨著自行車行業(yè)和 電子技術(shù)的發(fā)展 , 自行車?yán)锍?速度 計技術(shù)也在不斷進步和提高,用戶 對自行車?yán)锍趟俣扔嫷囊笠苍絹碓礁?,因此設(shè)計了 自行車?yán)锍趟俣扔?。 本文主要研究了以單片機為基礎(chǔ)的自行車?yán)锍?速度 器的設(shè)計。 該設(shè)計 重點闡述了系統(tǒng)的工作原理、硬件構(gòu)成、各部分的主要功能以及軟件的結(jié)構(gòu)和實現(xiàn)。 關(guān)鍵詞 : 自行車 ,STC89C52, LCD1602 宋丹: 基于單片機的自行車?yán)锍?速度計設(shè)計 II Bicycle mileage velocity meter based on MCU ABSTRACT Along with the development of the bicycle industry and electronic technology, bicycle speedometer technology is also in constant progress and improve, user demand for bicycle mileage is more and more is also high, so I chose bicycle mileage speedometer This article mainly introduced take the monolithic integrated circuit as the foundation rental car fare register design. Uses the 89C52 monolithic integrated circuit for the primary control chip, using the pressed key signal imitation rental car wheel counting signal, simultaneously utilizes other pressed keys to control the rental car movement to carry passengers separately/the spatial vehicle condition, the kilometer idea regulation/waiting time and the traveling schedule expense amount to the demonstration. The system used three groups of nixietubes, the utilization dynamic display technology has demonstrated the distance in kilometer, the standby period and the expense separately. Meanwhile carries on the design using the software programming to the monolithic integrated circuit timer, produces the waiting timed pulse signal. this article elaborated with emphasis system39。s structure and realizes. The mileage log system with STC89C52 as control core, using sensors to detect signals, by a certain time interval signal collection, in bination with itself, bicycle wheel parameters through single chip microputer for the analysis of the collected signal, finally displayed on the LCD screen LCD vehicle mileage and speed, overspeed alarm。 STC89C52。 隨著自行車行業(yè)和 電子技術(shù)的發(fā)展 , 自行車?yán)锍逃嫾夹g(shù)也在不斷進步和提高, 對自行車?yán)锍唐鞯囊笠苍絹碓礁?,用戶不僅要求速度顯示性能穩(wěn)定。安裝在與自行車輪相連接的傳感器在自行車行進