单片机设计智能避障小车摘要利用红外对管检测黑线与障碍物,并以STC89C51单片机为控制芯片控制电动小汽车的速度及转向,从而实现自动循迹避障的功能
其中小车驱动由L298N驱动电路完成,速度由单片机输出的PWM波控制
本文首先介绍了智能车的发展前景,接着介绍了该课题设计构想,各模块电路的选择及其电路工作原理,最后对该课题的设计过程进行了总结与展望并附带各个模块的电路原理图,和本设计实物图,及完整的C语言程序
关键词:智能小车;51单片机;L298N;红外避障;寻迹行驶abstractUsinginfrareddetectionblackandobstaclestothelineandSTC89C51microcontrollerasthecontrolchiptocontrolthespeedoftheelectriccarandsteering,soastorealizethefunctionofautomatictrackingandobstacleavoidance
WhichthecardrivenbytheL298Ndrivercircuitiscompleted,thespeedofthemicrocontrolleroutputPWMwavecontrol
Thisarticlefirstintroducesthedevelopmentoftheintelligentcarprospect,thenintroducesthedesignidea,thesubjectselectionofeachmodulecircuitandworkingprincipleofthecircuit,thedesignprocessofthesubjectissummarizedandprospectwitheachmodulecircuitprinciplediagram,a