ZHANG Lingyu,DENG Bo,YUAN Lin,et al.Design of Intelligent Balance Car based on MCU[J].Journal of Chengdu University of Information Technology,2022,37(02):138-143.[doi:10.16836/j.cnki.jcuit.2022.02.004]
基于单片机的智能平衡小车设计
- Title:
- Design of Intelligent Balance Car based on MCU
- 文章编号:
- 2096-1618(2022)02-0138-06
- Keywords:
- balancing car; RT1021 MCU; MPU6050; cascade PID; Kalman filter
- 分类号:
- TP273
- 文献标志码:
- A
- 摘要:
- 为满足出行需求,提高平衡小车的智能化水平,采用D型车模平台,RT1021单片机为核心控制单元,MPU6050姿态传感器采集小车姿态信息,运用卡尔曼滤波算法对陀螺仪采集数据进行融合与分析得到系统当前状态的最优化输出,最后通过串级PID控制电机输出,设计一款基于单片机的自主直立、自动循迹、主动避障的智能平衡小车。系统设计主要包括人机交互模块、传感器模块、电机驱动模块、运算放大模块,由软硬件两部分内容共同构建具有信号输入和控制反馈的闭环系统。经过多次测试表明:在室内PVC赛道上,平衡小车能够在平均2.5 m/s的速度下,实现自主直立、寻迹、避障,且具有较强的抗干扰能力,符合设计要求。
- Abstract:
- In order tomeet the travel needs of people, and improve the intelligent level of balanced cars, this paper uses a D-type car model platform, and the RT1021 single-chip microcomputeras the core control unit, the MPU6050 attitude sensor to collects car posture information, and the Kalman filtering algorithm is used to fuse and analyze the gyroscope data to get the optimal output of the current state of the system.Finally,the motor output is controlled by the cascade PID, and the intelligent balance car based on the single-chip is designed, which can stand upright, track automatically and avoid obstacles actively.The system design mainly includes human-computer interactive modules, sensor modules, motor drive modules and operational amplification modules; a closed-loop system with signal input and control feedback is constructed by two parts of hardware software and hardware.Many tests show that on the indoor PVC track, the balance car can achieve autonomous upright,tracing, obstacle avoidance at the average2.5 m/s speed, and has strong anti-interference ability, which meets the design requirements.
参考文献/References:
[1] 韩帅,刘满禄,张俊俊,等.基于两轮自平衡小车的模糊自适应补偿算法研究[J].机械设计与制造,2020(9):197-200.
[2] 何华光,梁超,殷金伟,等.基于ARM与遗传算法的智能小车的设计与实现[J].现代电子技术,2015,38(19):152-155.
[3] 符新东,张大兴,袁帅.两轮自平衡小车的状态反馈和输出反馈控制[J].仪表技术与传感器,2018(8):90-93.
[4] 王素青,熊维堂.基于STM32的两轮自平衡小车系统设计[J].实验室研究与探索,2016,35(5):146-150.
[5] 王辉,于立君,董泽全,等.基于STM32的循迹平衡小车实验教学平台研究[J].实验技术与管理,2017,34(5):136-139.
[6] 张小明,王坤坤,于纪言.旋转倒立摆串级PID低通滤波控制系统的设计[J].现代电子技术,2020,43(4):21-24.
[7] 程华,张雪婷,房一泉.基于扩散卡尔曼滤波算法的目标跟踪估计[J].计算机应用与软件,2021,38(2):191-197.
[8] 赵云娥,吴振强.基于Arduino的双模式智能避障小车系统设计与实现[J].现代电子技术,2017,40(21):94-97.
[9] 张承岫,李铁鹰,王耀力.基于MPU6050和互补滤波的四旋翼飞控系统设计[J].传感技术学报,2016,29(7):1011-1015.
[10] 傅忠云,朱海霞,孙金秋,等.基于惯性传感器MPU6050的滤波算法研究[J].压电与声光,2015,37(5):821-825.
[11] 程华,张雪婷,房一泉.基于扩散卡尔曼滤波算法的目标跟踪估计[J].计算机应用与软件,2021,38(2):191-197.
[12] 吴佳慧,冉昌艳.融合自适应卡尔曼和小波的MEMS陀螺去噪方法[J].仪表技术与传感器,2021(2):109-112.
[13] 李春辉,马健,杨永建,等.基于修正的自适应平方根容积卡尔曼滤波算法[J].系统工程与电子技术:2021.
[14] 高志伟,代学武.自平衡小车LQR-PID平衡与路径跟踪控制器设计[J].控制工程,2020,27(4):708-714.
[15] 周树道,张阳春,王敏.双变量串级PID板球控制系统的设计与实现[J].科学技术与工程,2021,21(4):1454-1458.
[16] 刘洋,行鸿彦,侯天浩.四旋翼无人机串级变论域模糊PID姿态控制研究[J].电子测量与仪器学报,2019,33(10):46-52.
[17] 窦立环.基于自适应模糊PID的二级倒立摆稳定控制研究[J].工业仪表与自动化装置,2017(6):124-127.
[18] 夏国清,陈华珍.模糊理论和PID相融合的两轮自平衡机器人智能控制系统[J].现代电子技术,2018,41(21):117-120.
[19] 盛广润,高国伟,李璇烨,等.四旋翼飞行器串级模糊自适应PID优化控制系统研究[J].现代电子技术,2020,43(22):67-71.
[20] 刘金琨.先进PID控制MATLAB仿真[M].北京:电子工业出版社,2016:474-502.
备注/Memo
收稿日期:2021-04-26
基金项目:四川省科技厅重点研发资助项目(2020YFG0052)