全球旧事资料 分类
基于单片机控制的循迹小车设计
基于单片机控制的循迹小车设计摘要
本循迹小车采用现在较为流行的8位单片机作为系统大脑,以STC89C52单片机为控制核心。用其控制行进中的小车,以实现其既定的性能指标。充分分析我们的系统,其关键在于实现小车的自动控制,而在这一点上,单片机就显现出来它的优势控制简单、方便、快捷。40脚的DIP封装使它拥有32个完全IOGPIO通用输入输出端口,通过这些端口加以信号输入电路,将各传感器的信号传至单片机分析处理,从而控制L293D电机驱动,控制小车。利用红外对管检测黑线,通过循迹模块里的红外对管是否寻到黑线产生的电平信号返回到单片机红外对管来实现循迹功能。单片机根据程序设计的要求做出相应的判断送给电机驱动模块。让小车来实现前进,左转,右转,停车等基本功能。集成红外线传感器即光电开关进行避障。整个系统的电路结构简单,可靠性能高。根据小车各部分功能,分析硬件电路,并调试电路。将调试成功的各个模块逐个地融合成整体,再进行软件编程调试,直至完成。关键词:循迹小车STC89C52单片机红外对管L293D电机驱动
f基于单片机控制的循迹小车设计
Abstract
Thistracki
gcaradoptsthe
owpopular8bitsi
glechipmicrocomputerasthesystemofthebrai
withtheSTC89C52si
glechipmicrocomputerasthecoreToco
trolthetraveli
gcarwithiti
ordertorealizethegive
performa
cei
dexFulla
alysisofoursystemthekeyistoachievetheautomaticco
trolcarsbutatthispoi
tsi
glechipmicrocomputerco
trolwillshowitsadva
tageissimpleco
ve
ie
ta
dfast40feetDIPpackagemakesithas32completelyIOGPIOge
erali
putoutputportsig
ali
putcircuitthroughtheseportswilltra
smitthesig
alstosi
glechipmicrocomputera
alysisofeachse
sortoco
trolL293Dmotordrivea
dco
trolthecarTheuseofi
fraredfordetecti
gtubeblackli
ethroughi
fraredtracki
gmodulefortubewhetherfi
dlevelsig
alproducedbytheblackthreadretur
stotheSCMi
fraredtubetorealizetracki
gfu
ctio
SCMaccordi
gtotherequireme
toftheprogramdesig
makethecorrespo
di
gjudgme
tformotordrivermoduleLetthecartoachieveforwardtur
lefttur
rightthebasicfu
ctio
suchasparki
gI
tegratedi
fraredse
sorphotoelectricswitchforobstacleavoida
ceThecircuitofthewholesystemstructureissimplereliableperforma
ceishighAccordi
gtothefu
ctio
ofcarpartsa
alyzethehardwarecircuita
ddebugthecircuitDebuggi
gsuccessofeachmodulei
dividuallymergedi
toawholea
dthe
softwareprogrammi
ga
ddebuggi
gu
tilcompletio

KEYWORDSSTC89C52dcmotori
fraredse
sorsL293Dmotordrive
thepipetraci
gcars
f基于单片机控制的r
好听全球资料 返回顶部