【正文】
e forward, left turn, turn right and stop driving purpose. avoid barrier of programmingObstacle avoidance module is designed by the infrared 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. remote subroutines designRemote control module is designed by the infrared sensor 1838 an output terminal of the receiving MZUp32 tube feet, then use allpurpose remote control on the remote control, then let microcontroller decoding, produce PWM control signal, through L298 control motor speed, let the car move forward, left turn, turn right and stop driving purpose.4. SummaryAdopts singlechip, using photoelectric senor and infrared reflection senor 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 advantage of simple circuit, reliability, low cost, and easy to function of further perfecting and expansion. From 基于單片機的智能小車通過研發(fā)實現(xiàn)了一種一光電傳感器為敏感元件,以AT89C51單片機為控制核心的電機循跡小車的智能控,該系統(tǒng)還包括直流電機、L9110芯片和LM324比較器等。當(dāng)兩個傳感器同時接收到光時,直線前進(jìn)。當(dāng)發(fā)光二極管發(fā)出的光反射回來時,三級管道通病輸出低電平。該設(shè)計的顯著優(yōu)點是電路簡單、可靠性強、成本低,并且非常易于功能進(jìn)一步完善和擴展。本文實際采用的是RPR220型反射式傳感器制作的循跡模塊。紅外探測法,即利用紅外線在不同顏色的物理表面具有不同的反射性質(zhì)的特點。 If the right has not been detected light ,then turn correct direction . motor control and driving module design Because 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 motor 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 pushpull power amplifier applicationspecific 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 antijamming ,two output terminal can pick 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 ~OA 。同樣由于開關(guān)頻率高,若與快速響應(yīng)的電機相配合,系統(tǒng)可以獲得很寬的頻帶,因此快速響應(yīng)性能好,動態(tài)抗擾能力強。電機驅(qū)動采用片集成電機驅(qū)動芯片L298N。三 統(tǒng)軟件設(shè)計本系統(tǒng)軟件采用模塊化結(jié)構(gòu),由主程序、初始化子程序、中斷子程序、延時子程序、按鍵發(fā)音子程序、按鍵掃描子程序構(gòu)成。為了識別一個完整的鍵信號,必須對每一個編碼脈沖的寬度進(jìn)行測量,以判別接收到的脈沖是0還是1,利用單片機中的定時器/計數(shù)器來測量脈沖寬度。該芯片有兩個TTL/CMOS兼容電平的出入,具有良好的抗干擾性;兩個輸出端能之間驅(qū)動電機的正反向運動,它具有較大的電流驅(qū)動能力,每通道能通過800