【正文】
遼寧石油化工大學(xué)繼續(xù)教育學(xué)院論文 I 基于單片機的電動自行車設(shè)計 摘 要 由于微電子、計算機和通訊技術(shù)的發(fā)展,微型計算機的應(yīng)用已經(jīng)深入到國民經(jīng)濟的各個領(lǐng)域,從家用電器、機電一體化產(chǎn)品到航空航天技術(shù)、人工智能、生物工程以及現(xiàn)代通信技術(shù)等各個領(lǐng)域,微型計算機的應(yīng)用都取得了巨大的社會效益和經(jīng)濟效益。當(dāng)今,計算機的應(yīng)用水平已在很大程度上決定了生產(chǎn)力的水平。微型單片機系統(tǒng)以其體積小、性能價格比高,指令豐富、提供多種外圍接口部件、控制靈活等優(yōu)點,廣泛應(yīng)用于各種家電產(chǎn)品和工業(yè)控制系統(tǒng)中 。 單片機控制的永磁無刷直流電動機調(diào)速系統(tǒng)適用于電動自行車等小功率的工作 情況 ,并能將多余的電能回潰。該系統(tǒng)具有調(diào)速性能好、功率因數(shù)高、節(jié)能、體積小、重量輕等優(yōu)點。本文從系統(tǒng)要求分析入手,將整個系統(tǒng)分成五個部分,分析和討論了各個部分的電路原理、控制策略、實現(xiàn)方法。詳細討論了系統(tǒng)的各種工況及信號的傳遞情況,并得到了系統(tǒng)各個部分在不同工況的工作狀態(tài)。系統(tǒng)各部分的控制電路基于 LPC933 單片機。根據(jù)永磁無刷直流電動機的特性實施脈寬 PWM 控制,并通過轉(zhuǎn)速傳感器測量轉(zhuǎn)速通過八段數(shù)碼管動態(tài)顯示轉(zhuǎn)速,通過軟硬件的配合,實現(xiàn)了整個系統(tǒng)的設(shè)計要求。 關(guān)鍵詞: 單片機;無刷直流電動機 ; 動態(tài)顯示 遼寧石油化工大學(xué)繼續(xù)教育學(xué)院論文 II Abstract Due to the development of microelectronics, puter and munication technology, application of the microputer has indepth to all fields of national economy, from the home appliance, mechanical and electrical integration products to aerospace technology, artificial intelligence, biological engineering and modern munications technology and other fields, and microputer applications have achieved great social benefits and economic benefits. Today, the puter application level has been largely determines the level of productivity. Miniature single chip microputer system with its small volume, high cost performance, instruction is rich, offers a variety of peripheral interface ponents, flexible control, etc, are widely used in various kinds of home appliances and industrial control system. The of the single a machine control has no to brush the direct current motive adjusts soon the system is applicable to the work circumstance that electricity move small power in etc. in bicycle. Combining can return the superfluous electric power This system possesses the advantage of good experimental characteristic, high power factor,energysaving ,small volume、 paper debates the circuit principle, control method and realization method of into four parts. At the same time, the work condition of every part and the energy transmission direction are discussed .The control circuits of the system are based on LPC933 control chip microcontroller .The system by cooperating the hardware and software harmoniously, according to the feature of the experimental motor. Keywords: SCM。 brushless DC motor。 dynamic display 遼寧石油化工大學(xué)繼續(xù)教育學(xué)院論文 III 目 錄 摘 要 ............................................................... I Abstract ............................................................ II 1 緒 言 ............................................................... 1 能源與 環(huán) 境 問題 ................................................ 1 電動 自行 車 的 發(fā) 展?fàn)顩r .......................................... 1 電動 自行 車 的 前景展望 .......................................... 2 2 系 統(tǒng)總 體方案 設(shè)計 ................................................... 4 設(shè)計 思路 ...................................................... 4 電動 自行 車 工作原理 ............................................ 4 功能分析 ...................................................... 5 電 源 電 路 ................................................ 5 控制 電 路 ................................................ 5 驅(qū)動電 路 ................................................ 5 測 速 電 路 ................................................ 5 顯 示 電 路 ................................................ 6 電動車對電動 機的基本要求 ...................................... 6 3 硬件系 統(tǒng)設(shè)計 ....................................................... 7 電 源 電 路 ...................................................... 7 電 源 電 路 設(shè)計 ............................................ 7 三端式 穩(wěn)壓 器 78LS05 ...................................... 7 控制 電 路 ...................................................... 8 控制 電 路 設(shè)計 ............................................ 8 單 片機 .................................................. 9 驅(qū)動電 路 ..................................................... 12 驅(qū)動電 路 設(shè)計 ........................................... 12 無刷直流 電動 機 ......................................... 13 PWM 調(diào) 速原理 ............................................ 15 測 速 電 路 ..................................................... 17 測 速 電 路 設(shè)計 ........................................... 17 遼寧石油化工大學(xué)繼續(xù)教育學(xué)院論文 IV 速度 傳 感器 ............................................. 18 顯 示 電 路 ..................................................... 20 顯 示 電 路 設(shè)計 ........................................... 20 八段 LED數(shù) 碼顯 示器 ..................................... 21 4 軟 件系 統(tǒng)設(shè)計 ...................................................... 23 主程序 設(shè)計 ................................................... 23 INT0 中斷服 務(wù)設(shè)計 ............................................ 23 T0 中斷服 務(wù) 程序 設(shè)計 .......................................... 24 5 結(jié)論 .............................................................. 26 參考文獻 ............................................................ 27 謝 辭 ............................................................ 28 附 錄 ............................................................ 29 遼寧石油化工大學(xué)繼續(xù)教育學(xué)院論文 1 1 緒言 能源與