基于单片机的寻光、寻迹小车(2)
发布时间:2021-06-05
发布时间:2021-06-05
单片机的循迹小车
摘要
本寻光、寻迹小车可对未定路线(移动红外光源提供)和以定路线(黑色胶
带提供)进行追踪,两种工作方式之间用无线电遥控进行转换。寻光方面主要要用红外接收管,寻迹方面主要采用红外放松接收对管,另在车辆行进速度和转向上,采用PWM脉冲宽度调制的方法对直流电机进行控制,控制芯片选用LM298。小车选用的处理器是AT89C51
关键词: AT89C51 红外 PWM 信号处理 LM298
Abstract
This minicar can follow both the certain(given by the black adhesives tape) and uncertain(given by the infrared ray) trace. The two modes can be transferred by a wireless remote control. When it’s looking for the infrared ray, we use the infrared receiver, and when it’s looking for the black adhesives tape, we use the infrared transmitter-receiver. We choose PWM and LM298 to control the electromotor, and choose AT89C51 for the cpu.
Key words: AT89C51 Infrared Ray PWM Signal Process LM298