大学学士学位论文
摘要
本次设计的单片机控制的智能小车,采用AT89C51单片机为小车的控制核心。运用L298芯片实现对小车前进、后退、左行、右行、以及全速和减速的控制,同时单片机会自动根据超声波传感器检测到的情况播放相对应的音乐并点亮相对应颜色的LED灯,实现了自动避障和声光报警两大功能。此外本次设计还运用液晶显示器LCD1602对小车行驶里程和实时日期、时间进行显示。在液晶显示器的第一行显示根据霍尔元件A44E获得的脉冲数而计算出的小车行驶的里程数;在液晶显示器的第二行显示从时钟芯片DS1302读取的实时日期和时间,实现了液晶显示功能。由以上各部分共同实现了设计要求的自动避障、液晶显示、声光报警三大功能。
关键词:AT89C51;L298;DS1302;液晶显示
I
f大学学士学位论文
Abstract
TheAT89C51microco
tmlleristake
astheco
trolcoreforthedesig
ofa
i
tellige
tcari
thepaper,withtheusi
gofL298chipitca
co
troltheautomaticadva
cebackwardtur
lefttur
righta
dwiththespeedfullorslowalsoitaccordi
gtothecaseofultraso
icse
sorsdetectedplaythecorrespo
di
gmusica
dlightthecolorcodedledsBesidesthisdesig
usesLCD1602forcartripmileagea
drealtimedatea
dtimedisplayThefirstrowoftheLCDdisplaythemileagewhichbasedo
the
umberofpulsesthattheHalleleme
tA44EgotTheseco
drowofLCDdisplaythedatea
dtimewhichreadfromtheclockchipDS1302Byaboveallthedesig
requestpartiallyrealizedautomaticobstacleavoida
celiquidcrystaldisplaysou
dlightalarmthreemajorfu
ctio
s
Keyword:AT89C51L298DS1302liquidcrystaldisplay
II
f大学学士学位论文
目录
1绪论11112研究背景1选题意义1
2整体方案设计r