【正文】
領(lǐng)域?qū)Τ暡▊鞲衅鲬?yīng)用的比較廣泛 ,未來 玩具 智能化是必然的社會趨勢! 關(guān)鍵詞: STC12C5A60S2;傳感器; 舵機(jī) ;距離感知 II Design and implementation of automatic toy car system based on distance perception ABSTRACT With continuous development and progress of the times, more and more office workers, parents didn39。 本 設(shè)計下位機(jī)系統(tǒng)是一個 52單片機(jī) 作為 控制核心 , 所 使用的 CPU型號為 STC12C5A60S2,配合 傳感器有 一個超聲波傳感器 HCSR04,2 個紅外循跡 傳感器 LM393, 還有 一個結(jié)合 2 路 電機(jī)驅(qū)動和 電源穩(wěn)壓 模塊于一體的模塊,其中 雙電機(jī) 驅(qū)動模塊采用的 是 全新原裝 L298N 驅(qū)動芯片 , 穩(wěn)壓模塊采用的是穩(wěn)壓精度高的 5V 穩(wěn)壓塊 AMS11175V,還有 舵機(jī) Futaba S3003 用來 全方位的距離感知, 小車的控制機(jī)構(gòu)由兩個直流電機(jī)以及 L298N 驅(qū)動芯片組成的兩驅(qū) 四 輪小車,這樣直流電機(jī)的輸入口可由 STC12C5A60S2 的 IO 口直接控制。 合肥學(xué)院 20xx 屆 畢 業(yè) 論 文(設(shè)計) 論文 (設(shè)計 )題目 基于距離感知 的自動 跟蹤玩具 小 車 系 統(tǒng)的設(shè)計與實 現(xiàn) 院系名稱 計算機(jī)科學(xué)與技術(shù)系 專 業(yè) ( 班 級 ) 計算機(jī)科學(xué)與技術(shù) 20xx 級本科 1 班 姓 名 ( 學(xué) 號 ) 俞林峰 ( 1104013013) 指導(dǎo)教師 肖 連 軍 系 負(fù) 責(zé) 人 袁 暋 完 成 時 間 20xx510 I 基于距離感知的自動玩具小車系統(tǒng)的設(shè)計實現(xiàn) 中 文 摘 要 隨著 時代的不斷發(fā)展進(jìn)步, 上班族 越來越多, 家長基本 沒多少時間陪他們的小孩玩耍,買 智能 玩具也許就會 成為 好多家長 送給 小孩的最大安慰, 如今 玩具車的智能化 已經(jīng)越來普遍 ,對于距離感知的玩具也是多不勝數(shù),基于距離感知的自動跟蹤玩具車 由此 誕生。 可以給 那些天真可愛的小孩帶來無窮無盡的樂趣 。 基于以上 傳感器設(shè)計的小車 , 結(jié)構(gòu)簡單 成本較低 , 設(shè)計的 空間巨大, 在 玩具 市場占據(jù)較大份額,所以 相關(guān)設(shè)計 較多 ,取材容易。t much time to acpany their children to play, buy a smart toy might bee a lot of parents to give children the greatest fort, now intelligent toy car has bee widespread, the perceived distance toy is numerous, based on the perceived distance automatic tracking to y car was born. For those lovely child brought inexhaustiblefun. This is perhaps the ultimate purpose why some parents always buy some fun toys for their children!! The design of the lower puter system is a 52 microcontroller as the control core, the use of CPU model for STC12C5A60S2, with the sensor has an ultrasonic sensor HCSR04,2 infrared tracking sensor LM393, and a bination of 2 motor drive and power supply module in one module, the dual motor drive module adopts the new original L298Nthe driver chip, using the 5V voltage regulator module block AMS11175V high precision regulator, and steering Futaba S3003 used to the full range of distance perception, control mechanism of car is posed of two DC motors and L298N driver chip consists of two drive four wheel car, so DC motor can be directly controlled by the STC12C5A60S2 input port IO port. Based sensor design of car, simple structure, low cost, space design great. In the toy market occupies a larger share of, so many related design, drawing is easy. There are other areas of ultrasonic sensors are widely applied, the future of intelligent toys is an inevitable trend of society! KEY WORDS: STC12C5A60S2。 Steering engine; III 目 錄 中文摘要 ............................................................................................................................................... I Abstract ................................................................................................................................................II 目 錄 ............................................................................................................................................ III 第一章 緒論 ........................................................................................................................................ 1 課題的背景和意義 ................................................................................................................. 1 系統(tǒng)的設(shè)計與基本組成 ......................................................................................................... 1 第二章 Android 藍(lán)牙開發(fā)與移動控制的設(shè)計與實現(xiàn) ..................................................................... 4 Android 系統(tǒng)簡介 .................................................................................................................. 4 Android 藍(lán)牙開發(fā) ................................................................................................................ 11 Android 藍(lán)牙編程 ...................................................................................................... 11 藍(lán)牙設(shè)備搜索界面設(shè)計與實現(xiàn) .................................................. 錯誤 !未定義書簽。 第三章 下位機(jī)與控制機(jī)構(gòu)的設(shè)計與實現(xiàn) ...................................................................................... 23 單片機(jī)的簡介 ....................................................................................................................... 23 52 單片機(jī)硬件結(jié)構(gòu) .............................................................................................................. 23 單片機(jī)基本電路設(shè)計 .......................................................................................................... 25 下位機(jī)硬件設(shè)計與連接 ...................................................................................................... 27 環(huán)境感知傳感器的選擇與設(shè)計 ................................................................................ 27 環(huán)境感知傳感器的硬件連接 .................................................................................... 33 小車的運(yùn)動控制機(jī)構(gòu)設(shè)計 ........................................................................................ 33 藍(lán)牙模塊的使用 ........................................................................................................ 34 下位機(jī)程序設(shè)計 .................................................................................................................. 35 程序的主要組成部分 ................................................................................................ 35 程序文件的結(jié)構(gòu) ........................................................................................................ 39 第四章 系統(tǒng)整體調(diào)試 ...................................................................................................................... 39 上位機(jī)程序調(diào)試 .................................................................................................................. 39 下位機(jī)調(diào)試 ......................................................................................