基于STM32与物联网的粮仓智能巡检机器人系统设计OA
Design of Grain Warehouse Intelligent Inspection Robot System Based on STM32 and Internet of Things
针对传统粮仓巡检依赖人工、效率低、实时性差且存在监测盲区等问题,设计一种基于STM32F407VET6与物联网技术的粮仓智能巡检机器人系统.该系统采用"嵌入式主控—Wi-Fi通信—云端监控"3层架构,以STM32F407VET6为核心控制器,通过控制器局域网(CAN)总线与电子速度控制器无刷电调通信实现差速驱动控制;集成MPU6050惯性测量单元、超宽带(UWB)室内定位模块、DHT11温湿度传感器和激光测距传感器,实现姿态感知、位置获取与仓内环境参数采集;借助ESP-12F Wi-Fi模块与消息队列遥测传输协议将运行数据实时上传至阿里云服务器,并通过Python监控面板实现远程可视化与运动控制.在软件设计方面,基于FreeRTOS实现多任务调度,采用卡尔曼滤波进行姿态融合,利用增量式比例积分控制器实现速度闭环控制.测试结果表明:在目标速度0.5 m/s阶跃输入下,系统调节时间约0.8 s,超调量<5%,稳态误差控制在±0.02 m/s以内;在Wi-Fi信号良好条件下,数据丢包率<0.5%,端到端延迟为200~500 ms;UWB定位在视距条件下误差为±10 cm.该系统具有较好的控制性能、通信稳定性与远程监控能力,可满足粮仓智能巡检应用需求.
To address the issues associated with traditional grain warehouse inspections,namely reli-ance on manual labor,low efficiency,poor real-time performance,and existence of monitoring blind spots,we designed a smart grain warehouse inspection robot system based on the STM32F407VET6 microcontroller and Internet of Things technologies.The system employs a three-layer architecture comprising"embedded main control—Wi-Fi communication—cloud-based monitoring".Using STM32F407VET6 as its core controller,the system communicates with vedder electronic speed con-troller brushless electronic speed controllers via a controller area network bus to implement differen-tial drive control.It integrates an MPU6050 inertial measurement unit,a ultra wide band(UWB)in-door positioning module,a DHT11 temperature and humidity sensor,and a laser rangefinder to en-able attitude sensing,location acquisition,and collection of environmental parameters within the warehouse.Furthermore,the system utilizes an ESP-12F Wi-Fi module and message queuing telem-etry transport protocol to upload operational data in real-time to an Alibaba Cloud server,facilitating remote visualization and motion control via a Python-based monitoring dashboard.In terms of soft-ware design,the system implements multi-task scheduling based on FreeRTOS,employs Kalman fil-tering for attitude fusion,and utilizes an incremental proportional-integral controller to achieve closed-loop speed control.Test results demonstrate that,under a step input with a target velocity of 0.5 m/s,the system's settling time is approximately 0.8 s,the overshoot is less than 5%,and the steady-state error is maintained within±0.02 m/s.Under favorable Wi-Fi signal conditions,the data packet loss rate remains below 0.5%,with an end-to-end latency ranging from 200 to 500 ms;Addi-tionally,UWB positioning accuracy exhibits an error of approximately±10 cm under line-of-sight conditions.These results indicate that the developed system possesses robust control performance,communication stability,and remote monitoring capabilities,thereby effectively meeting the require-ments for smart grain warehouse inspection applications.
钟豪;吴文福;尹慧敏;于子清
吉林农业大学工程技术学院,长春 130118吉林农业大学工程技术学院,长春 130118||吉林农业大学信息技术学院,长春 130118||吉林大学生物与农业工程学院,长春 130022吉林农业大学工程技术学院,长春 130118吉林大学生物与农业工程学院,长春 130022
农业科技
粮仓机器人STM32F407物联网MQTTCAN总线FreeRTOS
granary robotSTM32F407Internet of ThingsMQTTCAN busFreeRTOS
《吉林农业大学学报》 2026 (4)
620-631,12
区域创新发展联合基金项目(U23A20257)
评论