摘要
设计了一种自动循迹小车,以AT89C52为小车控制核心,由电机驱动模块、电源模块、循迹模块等组成;利用定时器产生PWM波形,通过调整占空比控制小车的速度和转向;利用红外光电传感器对预设轨迹进行检测,并将路面检测信号反馈给单片机;单片机对采集到的信号予以分析判断,通过控制左、右轮电机的转速来调整小车转向,从而使小车能够沿着预设轨迹自动行驶,实现自动循迹的功能。
In this paper, the design of an automatic tracking car is described. The system adopts an AT89C52 as the control core, and is made up of power-supply module, motor drive module and tracking module, and so on. A timer is used to generate PWM waveform, and the speed and steering of the car is controlled by adjusting duty cycle, and an infrared photoelectric sensor is used to detect preset trajectory, and the pavement detection signals are backed to the SCM. According to the detected signals, the movement speeds of the left and right wheel motors were controlled, so that the car can run along the path and complete the function of automatic tracking.
出处
《机械工程与自动化》
2017年第5期180-181,共2页
Mechanical Engineering & Automation