摘 要:针对复杂环境中智能体的电机易受外界干扰的问题,设计了一种基于卡尔曼滤波和增量式PID 控制的Wi-Fi 智能车载系统。首先,在匀速阶段,建立了无刷直流电机的数学模型,利用增量式PID 算法实现对系统电机转速的精准控制。其次,在加速阶段,结合动力学分析,建立线性系统模型,利用卡尔曼滤波算法对系统的真实轨迹进行不断修正。最后,系统以STM32 单片机为核心,同时具有Wi-Fi 视频传输、环境避障和精准定位等多种功能。经测试,系统电机能够输出稳定的速度,真实轨迹不断趋近于理想轨迹,视频传输稳定。该方法能够消除外部干扰所造成的误差,具有良好的现实意义。
关键词:增量式PID;卡尔曼滤波;Wi-Fi 视频传输;上位机;抗干扰
中图分类号:TP273 文献标识码:A 文章编号:2096-4706(2019)10-0029-05
Intelligent Vehicle-borne System Based on Kalman Filter and
Incremental PID Control
ZHANG Zhe,WU Jian,HE Cheng,LI Yuqi
(Nanchang Hangkong University,Nanchang 330063,China)
Abstract:For the problem that the motor of agent in complex environment is susceptible to external interference,a Wi-Fi intelligent vehicle system based on Kalman filter and incremental PID control is designed. Firstly,the mathematical model of BLDCM is established in the uniform speed stage,and the incremental PID algorithm is used to control the speed of the system motor accurately. Secondly,in the acceleration stage,combined with dynamic analysis,the linear system model is established,and the Kalman filter algorithm is used to continuously correct the real trajectory of the system. Finally,the system takes STM32 as its core,and has many functions such as Wi-Fi video transmission,environment obstacle avoidance and accurate positioning. After testing,the system motor can output stable speed,the real trajectory keeps approaching the ideal trajectory,and the video transmission is stable. This method can eliminate the error caused by external interference and has good practical significance.
Keywords:incremental PID;Kalman filtering;Wi-Fi video transmission;upper monitor;anti-interference
参考文献:
[1] 宋璐璐.WIFI 技术的优势及发展分析 [J]. 电子世界,2015(21):91-92.
[2] 王正家,何博,李涛,等. 基于模糊自适应PI 的无刷直流电机调速系统研究 [J]. 现代电子技术,2019,42(1):139-142.
[3] 冷雪锋. 基于PID 的STM32 智能小车机器人的设计 [J].自动化技术与应用,2016,35(11):122-127.
[4] 胡改玲,桂亮,权双璐,等. 串联模糊PID 控制的四旋翼无人机控制系统设计 [J]. 实验技术与管理,2019,36(3):132-135.
[5] Ali R Y,Bilal E,Akın D,et al.Design of gain-scheduling PID controllers for Z-source inverter using iterative reduction-based heuristic algorithms [J].Simulation Modelling Practice and Theory,2019,94:162-176.
[6] 董艺,司文凯. 基于步进式PID 控制的直流电机启动控制系统研究 [J]. 通化师范学院学报,2019,40(2):12-15.
[7] 吴房胜,徐金秀,李如平. 增量型PID 算法控制的嵌入式视频智能车设计 [J]. 宜宾学院学报,2016,16(12):48-52.
[8] 龚健颖,刘忠富,金健男,等. 基于STM32 的电子罗盘设计 [J]. 物联网技术,2015,5(12):8-9+12.
[9] 马传彬,王志坤. 空气质量检测与传感器的应用 [J]. 电子世界,2017(11):143.
[10] 王守华,李云柯,纪元法,等. 一种基于位置修正和卡尔曼滤波的姿态角推算算法 [J]. 科学技术与工程,2019,19(7):115-119.
[11] 杨军,罗建,赵春波.IEC61850 国际标准通信协议 [J].重庆电力高等专科学校学报,2004(4):1-4.
作者简介:张哲(1995-),男,回族,浙江温州人,硕士生,研究方向:嵌入式技术及应用。