1智能循迹小车【摘要】智能循迹小车的设计是以MSP430F149单片机为控制核心,利用TCRT5000反射式光电传感器、比较器实现黑线检测,并将检测的信息送单片机分析和处理,单片机根据计算和分析的结果,控制电机的速度及方向,从而实现自动循迹功能
其中驱动电机由L298N驱动电路实现,速度由单片机输出的PWM实现,并通过单片机内部的AD采样,采样传感器的电压值,根据采集的数据判断小车的行驶状态
为了实现人机交互功能,设计中增加了LCD和键盘,用LCD12864液晶显示器来显示所检测的黑线状态,按键实现小车的启动和停止
经测试,智能循迹小车能够自动识别黑线,按照引导线行进,可以左转、右转,也可对测量结果进行实时显示
达到了预期要求
【关键字】小车MSP430单片机L298NTCRT5000传感器Abstract:ThedesignofintelligenttrackingcarisbasedonMSP430F149microcontrollerasthecontrolcore,TCRT5000reflectiontypephotoelectricsensorisusedforcomparatorimplementtodetectblackline,theinformationwillbesenttomicrocontrollertoanalysisandprocessing,besides,microcontrolleraccordingtotheresultofcalculationandanalysiscontrolthemotorspeedanddirection,soastorealizeautomatictrackingfunction
thedrivemotordrivenbyL298Ncircuitimplementation,speedwascontrolled