【正文】
畢業(yè) 論文 I 畢業(yè) 論文 基于單片機(jī) 的 遙控小車設(shè)計 摘 要 隨著電子業(yè)的發(fā)展,自動化已不再是一個新鮮的話題,無人駕駛 的遙控 小汽車也必將進(jìn)入實用階段, 智能作為現(xiàn)代的新發(fā)明,是以后的發(fā)展方向,他可以按照預(yù)先設(shè)定的模式在一個環(huán)境里自動的運(yùn)作,不需要人為的管理,可應(yīng)用于科學(xué)勘探等等的用途。智能電動車就是其中的一個體現(xiàn)。 本系統(tǒng)模擬 基于 51 單片機(jī)的遙控小車的設(shè)計。 89C51 單片機(jī)是一款八位單片機(jī),他的易用性和多功能性受到了廣大使用者的好評。這里介紹的是如何用89C51 單片機(jī)來實現(xiàn)無線遙控小車的畢業(yè)設(shè)計,該設(shè)計是結(jié)合實際應(yīng)用而確定 的設(shè)計類課題。本系統(tǒng)以設(shè)計題目的要求為目的,采用 89C51 單片機(jī)為控制核心,采用 L298N 對小車電機(jī)的控制,利用以 PT2262/PT2272 芯片的無線遙控模塊裝置,本次設(shè)計基于完備的軟硬件系統(tǒng),很好的實現(xiàn)了電動小汽車的前后行進(jìn),特定路徑的行駛,以及停車。整個系統(tǒng)的電路結(jié)構(gòu)簡單,可靠性能高。實驗測試結(jié)果滿足要求,本文著重介紹了該系統(tǒng)的硬件設(shè)計方法及測試結(jié)果分析 關(guān)鍵詞 :單片機(jī);無線控制技術(shù); PWM 調(diào)速; L298N; PT2262/2272。 畢業(yè) 論文 II The Design of Remote Control Car Based On MCU Abstract Along with the development of electronic, automation is not a fresh word any more, and noman controlled cars will be realized. The new invention of modern intelligence, is a future of development, he can follow the pattern set in advance in an environment where automatic operation, no human39。s management, used in scientific exploration and so on. Smart electric car is one of expression. That system is based on the design of 51 MCU controlled car. 89C51 MCU is eightfigure microcontroller, which receives high praise from the users because of its easy use and versatility. This graduation design introduces how 89C51 MCU realize the remote control of the car, a bination of the practical application and design. This system designs for the purpose of the topic request, using 89C51 MCU as control core, the car motor control by L298N,and wireless remote control which chip PT2262/2272 device, with the electric car, driving, and the particular path park. The whole system of the circuit structure is simple and reliable. This paper introduces the hardware design method of the system and the analysis of the test results. Keyword: MCU。 Wireless Remote Control。 PWM speed adjusting。L298N; PT2262/2272 畢業(yè) 論文 III 目 錄 1 前 言 .................................................................... 4 2 方案設(shè)計與論證 ............................................................ 6 直流調(diào)速系統(tǒng) .......................................................... 6 無線控制系統(tǒng) .......................................................... 7 系統(tǒng)原理圖 ............................................................ 8 3 硬件設(shè)計與實現(xiàn) ........................................................... 10 89C51 單片機(jī)硬件結(jié)構(gòu) .................................................. 10 一個 8位的微處理器( CPU) ........................................ 10 存儲器 ........................................................... 10 I/O 接口 .......................................................... 11 定時器 /計數(shù)器 .................................................... 11 五個中斷源的中斷控制系統(tǒng) ......................................... 11 振蕩器及定時電路 .................................................. 12 89C51 單片機(jī)引腳及其功能 .............................................. 12 電源引腳 Vcc 和 Vss ................................................ 13 時鐘電路引腳 XTAL1 和 XTAL2 ........................................ 13 控制信 號引腳 RST, ALE, /PSEN 和 /EA ................................ 14 輸入 /輸出端口 P0, P1, P2 和 P3 ..................................... 14 系統(tǒng)運(yùn)動控制部分設(shè)計 ................................................. 15 電機(jī)選型 ......................................................... 15 L298N 驅(qū)動電機(jī) ................................................... 16 無線電發(fā)射接收模塊介紹 ............................................... 19 51 單片機(jī)的最小應(yīng)用系統(tǒng)設(shè)計 ........................................... 23 PWM 調(diào)速系統(tǒng) .......................................................... 25 4 軟件設(shè)計 ................................................................. 28 5 測試數(shù)據(jù)、測試結(jié)果分析及結(jié)論 ............................................. 30 致 謝 ...................................................... 錯誤 !未定義書簽。 參考文獻(xiàn) ................................................................... 31 附錄 1 程序清單 ............................................................ 32 附錄 2 系統(tǒng)電路圖 .......................................................... 33 1 前 言 近年來,隨著電子技術(shù)的飛速發(fā)展,無線遙控已被廣泛應(yīng)用到日常生活及工業(yè)控制當(dāng)中,電視機(jī),電冰箱,視頻監(jiān)控系統(tǒng),電視演播系統(tǒng),電視會議系統(tǒng),微格教學(xué)系統(tǒng),多媒體教學(xué)系統(tǒng),工業(yè)智能可能控制等多種領(lǐng)域都有應(yīng)用。本文基于單片機(jī)控制的設(shè)計思想,選用廉價的遙控編碼解碼集成電路( PT2262/PT2272),采用 L298N 專用電機(jī)驅(qū)動芯片驅(qū)動電機(jī),通過 PWM 脈沖調(diào)速,外圍安裝無線遙控集成模塊,實現(xiàn)了小車的無線智能遙控。 隨著 汽車工業(yè)的迅速發(fā)展,關(guān)于汽車的研究也就越來越受人關(guān)注。全國電子大賽和省內(nèi)電子大賽幾乎每次都有智能小車這方面的題目,全國各高校也都很重視該題目的研究??梢娖溲芯恳饬x很大。本設(shè)計就是在這樣的背景下提出的,指導(dǎo)教師已經(jīng)有充分的準(zhǔn)備。本題目是結(jié)合科研項目而確定的設(shè)計類課題。 根據(jù)題目的要求,確定如下方案:在現(xiàn)有電動車模型的基礎(chǔ)上,加裝無線控制模塊,電機(jī)驅(qū)動模塊,實現(xiàn)對電動車的無線遙控,并將數(shù)據(jù)傳送至單片機(jī)進(jìn)行處理,然后由單片機(jī)根據(jù)所接收到檢測的