【正文】
........... 5 第三章 自行車?yán)锍瘫淼挠布O(shè)計 .............................................................................. 7 具體硬件電路及工作原理 ............................................................................... 7 其他外圍硬件電路 ........................................................................................... 8 電源電路 ................................................................................................. 8 位串行靜態(tài)顯示電路 ............................................................................. 8 單片機的選用 ................................................................................................. 11 單片機的選用 ....................................................................................... 11 AT89C52 單片機簡介 .......................................................................... 11 傳感器的選用 ................................................................................................. 12 傳感器的選用原則 ............................................................................... 12 傳感器的選用 ....................................................................................... 13 霍爾傳感器介紹 .................................................................................. 13 系統(tǒng)概述 ......................................................................................................... 16 小結(jié) ................................................................................................................. 16 第 四章 自行車?yán)锍瘫淼能浖O(shè)計 ............................................................................ 17 系統(tǒng)軟件總體設(shè)計 ......................................................................................... 17 系統(tǒng)軟件模塊框圖 ......................................................................................... 18 數(shù)據(jù)處理 ............................................................................................... 19 鍵盤控制 ............................................................................................... 19 中斷 ................................................................................................................. 20 中斷優(yōu)先級的設(shè)定 ............................................................................... 20 數(shù)據(jù)處理子程序 ............................................................................................. 21 IV 處理車速子程序 ................................................................................... 21 顯示子程序 ........................................................................................... 22 軟件開發(fā)環(huán)境 ................................................................................................. 22 小結(jié) ................................................................................................................. 23 第五章 設(shè)計結(jié)果分析 ................................................................................................ 24 信號采集及處理結(jié)果 ..................................................................................... 24 運行調(diào)試結(jié)果 ................................................................................................. 25 數(shù)據(jù)結(jié)果誤差測試結(jié)果 ................................................................................ 26 小結(jié) ................................................................................................................ 27 第六章 總結(jié)與展望 .................................................................................................... 28 參考文獻 ...................................................................................................................... 29 致謝 ................................................................................................ 錯誤 !未定義書簽。 then the work requirements under the odometer choose the right of the sensor, microcontroller Deng ponents。 using Keil C51 programming software tools software part of the design. This article first introduces the odometer that speed the development of the trends and the future status。 本文介紹的速度與里程表設(shè)計以單片機和霍爾傳感器為核心,傳感器將不同車速轉(zhuǎn)變成的不同頻率的脈沖信號輸入到單片機進行控制與計算再采用 LED 模塊進行顯示使得電動自行車的速度與里 程數(shù)據(jù)能直觀的顯示給使用者 。 本設(shè)計所介紹的自行車?yán)锍瘫硎腔?AT89C52 單片機和霍爾傳感器的車速和里程測量系統(tǒng)。使車輛使用者不能及時的準(zhǔn)確的收集到車輛的實時信息,從而無法掌握車輛的行駛狀態(tài),容易造成交通 事故和威脅到人身安全。 ( 2020 屆) 畢業(yè)設(shè)計 題 目: 自行車?yán)锍瘫碓O(shè)計 姓 名: 專 業(yè): 電子信息工程 班 級: 學(xué) 號: 指導(dǎo)教師: 導(dǎo)師職稱: 年 月 日 I 自行車?yán)锍瘫淼脑O(shè)計 摘 要 在自行車行駛的過程當(dāng)中,自行車?yán)锍瘫硎菫槭褂谜呒皶r的提供動態(tài)駕駛信息的重要儀表,它的性能好壞直接的影響了交通和人身安全。傳統(tǒng)機械式里程表由于受裝置元件的影響,使得在車輛高速行駛的時候,造成里程表指示的不穩(wěn)定,反映遲鈍甚至失效。在電動自行車越來越多的同時,避免因車速原因而所造成事故的需要性越來越迫切,所以對里程表進行更有效的設(shè)計是很重要的。同時,本設(shè)計還采用了 4 位數(shù)碼管顯示模塊以及按鍵切換顯示模塊;運用 Keil C51 編程軟件工具進行軟件部分的設(shè)計。 關(guān)鍵詞: 單片機 ,霍爾傳感器,數(shù)碼管顯示,里程表 II The Design of Bicycle Odometer Abstract In the process of moving bicycles, bicycle odometer is for users to provide timely information on important dynamic driving instrument, its performance has a direct impact on traffic and personal safety. Traditional mechanical odometer due to the impact of flexible shaft makes highspeed driving, causing instability odometer directions, reflecting the slow or even fail. The vehicle user can not be timely and accurate realtime information collected from vehicles, which can not grasp the state of the vehicle, could easily lead to accidents and threats to personal safety. At the same time more and more electric bicycle, to avoid accidents caused by speed because of more pressing needs, so the odometer for more effective design is very important. The design presented is based on AT89C52 microcontroller bicycle odometer and Hall sensor speed and mileage measurement system. At the same time, this design also features four digital display and key switch module display module。 Secondly, introduced the outstanding advantages of t