2011全国大学生电子设计大赛设计报告智能小车
(C题)
20110903
ff前言
摘要
本设计以STC12C5A60S2单片机为控制核心,STC12C5A60S2是一款16位Flash单片机,它的易用性和多功能性受到了广大使用者的好评。小车采用L298驱动芯片控制直流减速电机,用大功率、大容量的12V6800mAh蓄电池给电机供电,通过内部程序对智能小车的左右电机进行PWM调速控制。根据题目要求,前进过程中安放在车身不同位置的检测器件对小车的周围环境进行检测,包括采用光电传感器检测黑线命令小车转弯、无线模块作为两智能车之间的通信工具以完成在行车道正常行走及交替领跑任务。其中,本系统设计的重点是控制直流电机使两小车在转弯及正常行驶;难点是实现在规定区域的超车以达到交替领跑。
采用的技术主要有:(1)、通过编程来控制小车的速度及转向;(2)、传感器的有效应用及新型芯片的采用;3、放射式红外光电传感器ST188的使用;(4)、无线模块作为俩小车的通信工具及交替领跑。
关键词:STC12C5A60S2单片机;PWM调速;无线通信;交替领跑。
AbstractThisdesig
toSTC12C5A60S2microco
trollerasco
trolcoreSTC12C5A60S2isa16bitFlashmicroco
trolleritseasytousea
dmorefu
ctio
albyma
yuserhighpraiseTheL298drivechipco
trolmotorwithhighpowera
dlargecapacity6800mAhbatterytopowersupplythroughthei
ter
alproceduresmotorofi
tellige
telectricvehiclesorsomotorspeedco
trolPWMAccordi
gtothetopicrequestprogressiveprocessofthebodya
dlaiditi
differe
tlocatio
softhedetectio
devicestothecircumsta
cesofthecartesti
gi
cludi
gadopti
gphotoelectricse
sortestblackli
ecomma
dmoduleasthetur
i
gofthecarwirelesscommu
icatio
betwee
twoi
tellige
tcartooltofi
ishwalk
ormallya
d
fleadthealter
atetaskAmo
gthemthesystemdesig
isthefocusoftheco
troldcmotorcari
tur
i
gtobotho
thetur
a
d
ormaloperatio
Difficultyistorealizei
theprovisio
si
ordertoachieveregio
alovertaki
galter
atescorer
Thetech
iquetobeusedmai
lyhas1throughtheprogrammi
gtoco
trolthespeedofthecara
dsteeri
g2se
soreffectiveapplicatio
ofa
ewtypeofchipa
duse3wirelessmoduleastwocarcommu
icatio
toolsa
dalter
atescorer
KeywordsSTC12C5A60S2si
glechipmicrocomputerPWMspeedWirelesscommu
icatio
Alter
atescorer
f目
录
目录
摘要1目录I1设计任务与要求r