APP下载

基于KEA的智能循迹小车

2020-08-14邓开连周芳管崔灿曾凡楷丁贺靳思宇

现代电子技术 2020年16期

邓开连 周芳管 崔灿 曾凡楷 丁贺 靳思宇

摘  要: 该文设计一种基于KEA单片机的智能循迹小车。介绍智能小车系统结构设计:由安装在智能小车前端的电磁传感器获取路径信息,并将这些信息送入KEA单片机控制系统进行分析处理,通过PID控制算法对小车的双电机进行PWM控制,使得小车沿着电磁线前进,达到循迹的目的。智能小车的硬件设计包括电源稳压模块、传感器模块、电机模块、陀螺仪模块等。软件设计包括PID控制模块、电感采集模块、速度采集模块等。实际调试过程中,智能小车能自适应直线、弯道、坡道、圆环等各种复杂路况。试验结果表明,整个系统结构简单,鲁棒性高,实现了一个同时具备速度控制、数据采集、自动循迹和路径规划识别功能的智能车。

关键词: 智能循迹; KEA; 路径信息获取; 信息分析; PWM控制; 路径规划

Abstract: An intelligent tracking cart based on KEA microcontroller is designed. The structure design of the intelligent trolley system is introduced. The path information is obtained by the electromagnetic sensors installed on the front of the smart trolley. The obtained information is sent to the KEA microcontroller control system for analysis and processing. The PID control algorithm is used to perform PWM control for the two motors of the trolley, so that the trolley advances along the electromagnetic line to achieve the purpose of tracking. The hardware design of the smart trolley includes a power supply voltage stabilization module, a sensor module, a motor module, a gyroscope module, and so on. The software design includes PID control module, inductance acquisition module, speed acquisition module, etc. In the actual debugging process, the smart trolley can adapt to various complicated road conditions such as straight line, curve, ramp and circle roads. The testing results show that the entire system has a simple structure and high robustness, and has realized the functions of speed control, data acquisition, automatic tracking, path planning and path identification.

Keywords: intelligent tracking; KEA; path information acquisition; information analysis; PWM control; route planning

0  引  言

智能循跡小车是一个含路径规划、环境感知、自动行驶等功能的综合系统,涉及到电机及其控制、信息、导航、计算机、车辆工程等诸多领域[1?2]。本文以KEA为控制核心,通过电磁传感器识别路径,编码器检测当前的速度,微控制器读取传感器当前状态,从而控制相应的电路,进而控制小车前进的方向和速度。通过构建单片机最小系统模块、电源模块、传感器模块、电机驱动模块、人机交互模块、陀螺仪模块、PID[3?4]控制模块、采集模块等组成的智能小车系统,实现小车的智能循迹功能。

1  系统结构设计

1.1  结构设计

智能循迹小车主要包含电源模块、传感器模块、电机驱动模块、PID控制模块、陀螺仪模块、采集模块等,采取了模块化的设计思想。……

登录APP查看全文