摘要
本文设计了一种基于飞思卡尔单片机的两轮车控制系统。该系统以飞思卡尔单片机为核心,采用加速度传感器和陀螺仪来检测小车当前姿态,结合互补滤波算法控制小车的平衡;然后由摄像头检测路况信息,控制小车的行驶方向;最后采用PID算法通过直流电机驱动电路在固定的周期内交替地控制小车的平衡和行驶方向,使小车按预设轨道行进。
This at dale designs a two-wheeled car control system based on Freescale microcontroller.This system takes Freescale microcontroner as core, uses the accderadon sensor and gyroscope to detect the car' s current posture, combines with the complementary filter algorithm to control the car's balance.Then, this system uses camera to detect the path information to control the direction of the car.FinaUy, the car's speed and direction are controlled by a DC motor drive module through the PID algorithm take place by turn in an alternately fixed cycle, to make sure the car can travel along any default routes.
出处
《电子世界》
2013年第13期10-11,共2页
Electronics World
基金
西南科技大学大学生创新基金资助项目(CX12-033)
关键词
飞思卡尔
单片机
两轮
平衡
摄像头
Freescale
microcontroUer
two-wheeled
balance
camera