8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車

上傳人:仙*** 文檔編號:27617663 上傳時間:2021-08-19 格式:DOC 頁數(shù):8 大小:58.53KB
收藏 版權(quán)申訴 舉報 下載
8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車_第1頁
第1頁 / 共8頁
8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車_第2頁
第2頁 / 共8頁
8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車_第3頁
第3頁 / 共8頁

下載文檔到電腦,查找使用更方便

15 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車》由會員分享,可在線閱讀,更多相關(guān)《8單片機(jī) 外文翻譯 外文文獻(xiàn) 英文文獻(xiàn) 基于單片機(jī)的電動智能小車(8頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、基于單片機(jī)的電動智能小車通過研發(fā)實現(xiàn)了一種以光電傳感器為敏感元件,以 AT89C51 單片機(jī)為控制核心的電動循跡小車的智能控,該系統(tǒng)還包括直流電機(jī)、L9110 芯片和 LM324 比較器等。本設(shè)計采用 AT89C51 單片機(jī)作為智能小車核心控制器。本系統(tǒng)以單片機(jī)為控制核心 ,實現(xiàn)電動車的前進(jìn)、退、左轉(zhuǎn)和右轉(zhuǎn)功能.通過角度傳感器 1 檢測蹺蹺板角度的變化 ,利用增量式 PI算法 2 控制電動車尋找平衡點(diǎn) ,同時運(yùn)用光電傳感器檢測黑線 ,使電動車在行駛過程中保持直線運(yùn)動且不會脫離蹺蹺。一方案設(shè)計電動車的速度、位置、運(yùn)行狀況的實時測量 ,并將測量數(shù)據(jù)傳送至單片機(jī)進(jìn)行處理,然后由單片機(jī)根據(jù)所檢測的各種

2、數(shù)據(jù)實現(xiàn)對電動車的智能控制。這種方案能實現(xiàn)對電動車的運(yùn)動狀 態(tài)進(jìn)行實時控制,控制,靈活可靠 ,精度高 ,可滿足對系統(tǒng)的各項要求。(1)直流調(diào)速系統(tǒng)直流調(diào)速系統(tǒng)采用脈寬調(diào)速系統(tǒng),其主電路采用脈寬調(diào)制式變換器,簡稱PWM變換器。由于PWM調(diào)速 系統(tǒng)的開關(guān)頻率較高,僅靠電樞電感的濾波作用就可以獲得脈動很小的直流電流,電樞電流容易 連續(xù),系統(tǒng)的低速運(yùn)行平穩(wěn),調(diào)速范圍較寬,可達(dá)1:10000左右。 由于電流波形比 V-M系統(tǒng)好,在相同的平均電流下,電動機(jī)的損耗和發(fā)熱都比較小。同樣由于開關(guān)頻率高,若與快速響應(yīng)的電機(jī)相配合,系統(tǒng)可以獲得很寬的頻帶,因此快速響應(yīng)性能好,動態(tài)抗擾能力強(qiáng)。根據(jù)以上綜合 比較,以及

3、本設(shè)計中受控電機(jī)的容量和直流電機(jī)調(diào)速的發(fā)展方向,本設(shè)計采用了H型單極型可逆 PWM變換器進(jìn)行調(diào)速。1.1 光電檢測模塊設(shè)計該智能小車在貼有黑線的白紙“路面”上行駛,因此本模塊設(shè)計需要檢測鋪在行駛區(qū) 的 黑 膠 帶,包 括直線行駛區(qū)和沿弧線行駛區(qū)兩個區(qū)域。由于黑線和白紙對光線的反射系數(shù)不同可根據(jù)接收到的反射光的強(qiáng)弱來判斷“道路”-黑線。本文采用的是簡單實用的檢測方法,即紅外探測法。紅外探測法,即利用紅外線在不同顏色的物理表面具有不同的反射性質(zhì)的特點(diǎn)。在小車行駛過程中不斷地向地面發(fā)射紅外光,當(dāng)紅外光遇到白色地面時發(fā)生漫發(fā)射,反射光被裝在小車上的接收管接收; 如果遇到黑線則紅外光被吸收,則小車上的接

4、收管接收不到信號。1.2 信號比較模塊設(shè)計輸送給單片機(jī),用于檢測傳感器的敏感性,電路圖如圖 5 所示。當(dāng)兩個傳感器同時檢測到光時,直線前進(jìn)。當(dāng)傳感器檢測不到光時,處于截止?fàn)顟B(tài),雙運(yùn)算放大器 LM324 輸出低電平給單片機(jī),由程序處理; 若左路未檢測到光,則向左糾正方向; 若右路未檢測到光,則向右糾正方向。1.3 電機(jī)控制與驅(qū)動模塊設(shè)計由于采用的是雙驅(qū)動的小車,這部分電路必須能夠輸出兩個不同的電壓值,分別去控制小車的左、右兩個驅(qū)動電機(jī),使小車的兩個車輪的轉(zhuǎn)速和方向相同或不同,從而來控制它的前進(jìn)和轉(zhuǎn)彎。在系統(tǒng)的設(shè)計過程中,用兩個 L9110 芯片來分別連接單片機(jī)和直流電機(jī)。L9110 是為控制和驅(qū)

5、動電機(jī)設(shè)計的兩通道推挽式功率放大專用集成電路器件,將分立電路集成在單片 IC 之中,使外圍器件成本降低,整機(jī)可靠性提高。該芯片有兩個 TTL / CMOS 兼 容 電 平 的 輸 入,具 有良好的抗干擾性; 兩個輸出端能直接驅(qū)動電機(jī)的正反向運(yùn)動,它具有較大的電流驅(qū)動能力,每通道能通過800mA 的持續(xù)電流,峰值電流能力可達(dá) 1.5 2.0A; 同時它具有較低的輸出飽和壓降與靜態(tài)電流; 內(nèi)置的鉗位二極管能釋放感性負(fù)載的反向沖擊電流,使它在驅(qū)動繼電器、直流電機(jī)、步進(jìn)電機(jī)或開關(guān)功率管的使用上安全可靠。循跡小車系統(tǒng)以常見的 AT89C51 單片機(jī)為核心,輔以較簡單的元器件和電路設(shè)計,在順利完成循跡功能

6、的前提下,又充分考慮到了外觀、成本等問題,因此小車的大部分電路由手工焊接完成。在設(shè)計中,我們沒有在電路中增加冗余的功能,但是保留了各種硬件接口和軟件子程序接口,方便以后的擴(kuò)展和開發(fā)。二 系統(tǒng)硬件設(shè)計2. 1 電機(jī)驅(qū)動模塊設(shè)計在制作智能小車時, 后左、右輪分別用兩個轉(zhuǎn)速和力矩基本完全相同的直流減速電機(jī)進(jìn)行驅(qū)動, 車頭前部裝一個方向輪, 然后通過 I/O 口控制兩個直流減速電機(jī)的轉(zhuǎn)速和轉(zhuǎn)向就可以實現(xiàn)小車的左轉(zhuǎn)、右轉(zhuǎn)和直行。電機(jī)驅(qū)動 采用 一片 集成電機(jī)驅(qū)動芯片L 298N。L298N是ST公司的產(chǎn)品, 內(nèi)部包含 4通道邏輯驅(qū)動電路, 是一種二相和四相電機(jī)的專用驅(qū)動器, 即內(nèi)含二個H 橋的高電壓大電

7、流雙全橋式驅(qū)動器, 接收標(biāo)準(zhǔn) TTL邏輯電平信號, 可驅(qū)動 46V、2A 以下的電機(jī)。2. 2 尋跡模塊設(shè)計尋跡模塊主要由光電反射式傳感器組成。光敏電阻的阻值隨周圍環(huán)境光線的變化而變化, 當(dāng)光線照射到白線上面時, 光線發(fā)射強(qiáng)烈; 光線照射到黑 線上面時, 光線發(fā)射較弱。因此當(dāng)光敏電阻在白線和黑線上方時, 阻值會發(fā)生明顯的變化, 將阻值的變化值經(jīng)過比較器就可以輸出高低電平。但是這種方式受環(huán)境影響大, 工作不穩(wěn)定。本文實際采用的是 RPR220 型反射式傳感器制作的尋跡模塊。RPR220是一種一體 化反射型光電探測器, 其發(fā)射器是一個砷化鎵紅外發(fā)光二極管, 而接收器是一個高靈敏度硅平面光電三極管。

8、當(dāng)發(fā)光二極管發(fā)出的光反射回來時, 三極管導(dǎo)通并輸出低電平。2. 3 避障模塊設(shè)計避障模塊主要由紅外反射式傳感器組成。紅外反射式傳感器由 1 個紅外發(fā)射管 (發(fā)射器 )和 1個光電二極管 (接收器 )構(gòu)成, 紅外發(fā)射管發(fā)出的紅外光在遇到反光性較強(qiáng)的物體后被折回, 被光電二極管接收, 引起光電二極管光生電流的增大, 將此變化轉(zhuǎn)為電壓信號, 就可以被處理器接收并處理。2. 4 遙控模塊設(shè)計本模塊發(fā)射端采用高靈敏的 H L - 5000型萬能電視遙控器, 接收端采用接收頻率為 38kH z的萬能接收頭 1838, 該模塊與單 片機(jī)接口非常方便。另外, 對于經(jīng) 紅 外 接 收 后 的 編 碼 信 號,

9、本系統(tǒng)設(shè)計時運(yùn)用AT89C52單片微機(jī)的外部中斷來接收, 信號的下降沿觸發(fā)外部中斷。為了識別一個完整的鍵信號, 必須對每一個編碼脈沖的寬度進(jìn)行測量, 以判別接收到的脈是 ! 0還是 ! 1, 利用單片機(jī)中的定時器 /計數(shù)器來測量脈沖寬度。定時器 /計數(shù)器的除分比是可以設(shè)定的, 從除 2到除 2048, 可測量的脈沖寬度可達(dá) 500m s。本文設(shè)定的除分比為 12, 即 12分頻, 因為外部時鐘約為 12MH z, 時鐘周期為 1 s, 所以定時器 /計數(shù)器每計時一次為 1 s。2. 5 報警模塊設(shè)計報警模塊的核心芯片選擇 110報警 IC, 可應(yīng)用于汽車、摩托車、防盜器、個人防暴器、門磁報警

10、器等場所。三 系統(tǒng)軟件設(shè)計本系統(tǒng)軟件采用模塊化結(jié)構(gòu), 由主程序初始化子程序、中斷子程序、延時子程序、按鍵發(fā)音子程序、按鍵掃描子程序構(gòu)成。3. 1 尋跡子程序設(shè)計尋跡模塊設(shè)計是通過把左 右光電傳感器 的輸出端分別接到單 片機(jī)的 P 22 和 P23 管腳 上, 然后 通過單片機(jī)編程, 產(chǎn)生 PWM 控制信號, 通過 L 298控制電機(jī)的轉(zhuǎn)速, 讓小車達(dá)到前進(jìn)、左轉(zhuǎn)、右轉(zhuǎn)及停止行駛的目的。3. 2 避障子程序設(shè)計避障模塊設(shè)計是通過把左右紅外反射式傳感器模塊的輸出端分別接到單片機(jī)的 P20和 P21管腳上, 然后通過 單片機(jī)編程, 產(chǎn)生 PWM 控制信號, 通過 L298控制電機(jī)的轉(zhuǎn)速, 讓小車達(dá)到

11、前進(jìn)、左轉(zhuǎn)、右轉(zhuǎn)及停止行駛的目的。3. 3 遙控子程序設(shè)計遙控模塊設(shè)計是通過把紅外接收頭 1838的輸出端接到單片機(jī)的 P32管腳上, 然后用萬能遙控器對其進(jìn)行遙控, 接著讓單片機(jī)解碼, 產(chǎn)生 PWM 控制 信號,通過 L298控制電機(jī)的轉(zhuǎn)速, 讓小車達(dá)到前進(jìn)、左轉(zhuǎn)、右轉(zhuǎn)及停止行駛的目的。四總結(jié)采用單片機(jī)為核心, 利用光電傳感器和紅外反射式傳感器作為探測系統(tǒng), 設(shè)計了可以實現(xiàn)自動尋線行走、自動避障、報警以及遙控等功能的智能小車。該設(shè)計的顯著優(yōu)點(diǎn)是電路簡單、可靠性強(qiáng)、成本低, 并且非常易于功能進(jìn)一步完善和擴(kuò)展。Electric intelligent car based on SCM Throu

12、gh research and to realize a photoelectric sensor for sensitive components, with AT89C51 as control core electric tracing of intelligent control carbonylation-the car,The system is also including dc motor, L9110 chips and LM324 comparator etc. The design USES AT89C51 as intelligent car core controll

13、er。The system takes microcontroller as control core and realization of electric before Enter, back, turn left and right turn function. Through the Angle sensor 1 detection The seesaw Angle change, use incremental PI algorithm 2 to control the electric Car for balance, and using photoelectric sensor

14、detection black line, make the electricity Actuation vehicle in the course of driving keep linear motion and dont skip from atrium。1.Project Designlight by a sensor, the reality of the electric car is moving quickly degrees, bit, buy, transportation line shape when measured quantity of real conditio

15、n, and will be measured quantity number according to preach sent to monolithic machine into line processing, but by single chip machine according to the measured by root different forms of several inspection according to real now to electric actuation vehicle wisdom can control system. This kind of

16、square case can real now to electric actuation vehicle dynamic shape state into the shipment do real possession in system, control system spirit alive, can depend, pure degree is high, can full foot of each item of the stockings to beg. (1) straight epidemiological speed is tasseled straight epidemi

17、ological speed department with pulse width modulation experience.meanwhile gather speed is experience.meanwhile, its main electrical pulse width modulation by road system type variable change device, Jane says PWM variable change device. Adjustable speed by in the department of PWM experience.meanwh

18、ile open shut frequency rate is high, only on electricity barnado electricity sense of filter wave can be use to get to move very small straight pulse electric flow, electricity flow barnado electric capacity easily even tantras, department of low speed operation flat experience.meanwhile, adjustabl

19、e speed stability van is surrounded relatively wide, can reach 1 000 left right. By on electrical flow wave shape than V - M system, be in phase with flat to all electrical flow dynamic machine, electric heat consumption and hair loss than a small. With the sample by in open shut frequency rate is h

20、igh, and if a fast speed of electrical machine ring should match close, fasten tasseled phase can be to get very wide frequency band, because of the fast speed ring should be good, dynamic configuration sexual can perturbation resistance can force is powerful. According to the root, with more than e

21、nsemble close and this set of electrical machine control project by tolerance of the quantity and electrical machine speed straight flow of hair, the exhibitor to adopt the project with a single extremely H type can be changed into change device inverse PWM line speed.1.1 photoelectric detection mod

22、ule designThe intelligent car was stuck on the black line running on white paper road, so this module design need to detect shop on the black rubber belt drive area, including Run straight along the arc district and driving district two area. Because of the black and white paper to light reflection

23、coefficient is different, can according to receive reflected light.The strength of the judge road - the black line. This paper USES is simple and practical detection methods, namely the infrared detection method. Infrared detection method, i.e. use infrared ray in different colors of physical surfac

24、e with different reflection properties characteristics. In the car driving process Continually to the ground to launch the infrared, when the infrared met white ground occurs when the reflected light, aimless and launch packed on the car of receiving tube receiving; if Fruit is met black line is abs

25、orbed, and then the infrared cars receiving tube receiving less than signal.1. 2 signal comparative module designThis part design USES a LM324 comparator, of sensor signal voltage received compare and amplified, and will compare the results after Feed to the microcontroller, used to detect sensor se

26、nsitivity, diagram shown in figure 5 shows. When two sensors simultaneously detect light, straight forward. When the sensor cant detect light, in cut-off state, double LM324 operational amplifier output low level to microcontroller, by program processing, If left Not detected light, then left correc

27、t direction; If the right has not been detected light, then turn correct direction.1. 3 motor control and driving module designBecause use is double drive cars, this part of the circuit must be able to output of two different voltage values, respectively to controlling trolley right and left two mot

28、or drive, the two of the wheel speed and direction of the same or different, thus to control its advance and turning. In system design process, use two L9110 chips to connect SCM and dc motor respectively. L9110 is for control and drive motor design two channels push-pull power amplifier application

29、-specific integrated circuit device, discrete circuits in monolithic IC integrated such that the peripheral equipments in lower cost and the whole machine can carry on sexual high. The core slice two a TTL/CMOS and let electricity flat lose into, have good anti-jamming, Two output terminal can pick

30、flooding dynamic electric machine straight to the shipment of positive reverse move and it has had a big electricity flow flooding dynamic can force, each call way can pass over 800mA continuous current, peak current capacity of 1. 5 0A; 2. At the same time it has lower output saturation pressure dr

31、op and the static electricity, The built-in clamp a diode can release the perceptual load of reverse current impulse, making it the drive relays, dc motors, stepping motor or switch power tube the use of safe and reliable.Follow tracing car system to common AT89C51, complementary with relatively sim

32、ple components and circuit design, the smooth completion of follow under the premise of tracing function, and fully considered appearance, costs, so most of the circuit car by manual welding is complete. In the design, we never in a circuit increase redundant functions, but retained various hardware

33、 interface and software subroutines interface to facilitate the expansion and development after.2. System hardware design2. 1 motor driver module designIn making intelligent car, after left, right wheel respectively with two speed and Torque basic identical dc motor driven deceleration, bolt-on trun

34、k-lid spoiler Department to install a direction wheel, then through the I/O mouth to control two dc slowing down Motor speed and steering can be achieved on the car to the left, turn right and straight Line.Motor driver using a integrated electrical machine flooding dynamic core slice L 298N. L298N

35、is ST the product of the company, the internal containing four channel logical drive circuit, it is a kind of two phase four phase motor drive, namely the special contains two H bridge of high voltage large current commander bridge type drive, acceptance criteria TTL logic level signals, be driven 4

36、6V, 2A below the motor.2. 2 tracing module designTracing module mainly composed by photoelectric sensor reflex. Photoconductive resistance of the resistance of the light with the surrounding environment changes, when the LTT white lines above, light emission strongly; The LTT black line above, light

37、 emission are relatively weak. So when photoconductive resistance in white line and black line above the elements will occur significantly changes, the resistance changes value after comparator can output high level. But this way environmental influences big, work is not stable. This article actual

38、use is RPR220 type reflex sensors made tracing module.RPR220 is an integration of reflective photoelectric detector, the transmitter is a gaas infrared light emitting diode and the receiver is a high sensitivity silicon photoelectric triode flat. When the light emitting diode reflected back, triode

39、conduction and output low level.2. 3 obstacle avoidance module designObstacle avoidance module mainly composed by infrared reflection sensor. Infrared reflection sensor by one infrared tubes (launchers) and 1 photoelectric diode (receiver) constitute, infrared tubes out to meet the infrared object r

40、eflective sex strong after be turned back, by photoelectric diode receiving, cause photoelectric diode current increases, light born this change into voltage signal, it could be processor receives and processing.2. 4 remote control module designThis module will launch end USES high sensitive H L - 5

41、000 type universal television remote control, the receiver using receive frequency for 38kH zs receiving head 1838, this module and the single chip computer interface is very convenient. In addition, for the red outside meet after harvest of plait code letter number, the department tasseled set when

42、 shipped with project of AT89C52 single chip microcomputer external interruption to receive, signal the falling edge of trigger external interruption. In order to recognize a complete key signal, must for each coding pulse width were measured with discriminant receives the pulse is! 0 still! 1 , the

43、 microcontroller timer/counter to measuring pulse width. Timer/counter except points than can be set, from except 2 to except 2048, measurable pulse width can reach 500m s. This paper set except points for 12, namely than 12 points frequency, because the external clock is about 12MH z, clock cycle f

44、or 1 s, so the timer/counter for 1 per timing once s.2. 5 alarm module designAlarm module core chip 110 IC, can choose application in automobile, motorcycle, alarms, personal riot device, door magnetic alarm device and etc.3. System software designThis system software modular structure, the main pro

45、gram, initial anti-fuzzy procedures, interrupt subroutines, delay subroutines, buttons pronunciation subroutines, buttons scanning subroutines constitutes.3. 1 tracing subroutines designTracing module is designed by the left right photoelectric sensor output terminal receiving monolithic machine res

46、pectively, P 22 and P23 tube feet, then through the microcontroller programming, produce PWM control signal, through L 298 control motor speed, let the car to move forward, left turn, turn right and stop driving purpose.3. 2 avoid barrier of programmingObstacle avoidance module is designed by the in

47、frared reflection sensor module around the output terminal receiving MCU respectively P20 and P21 tube feet, then through the microcontroller programming, produce PWM control signal, through L298 control motor speed, let the car to move forward, left turn, turn right and stop driving purpose.3. 3 re

48、mote subroutines designRemote control module is designed by the infrared sensor 1838 an output terminal of the receiving MCU P32 tube feet, then use all-purpose remote control on the remote control, then let microcontroller decoding, produce PWM control signal, through L298 control motor speed, let

49、the car to move forward, left turn, turn right and stop driving purpose.4 Summary Adopts singlechip, using photoelectric sensor and infrared reflection sensor was designed as a detection system, can realize automatic homing line to walk, automatic obstacle avoidance, alarm and remote control functions such as intelligent car. This design is the obvious advantages of simple circuit, reliability, low cost, and very easy to function of further perfecting and expansion

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!