节点文献
基于微信小程序监控的双容水箱虚拟仿真平台设计
Design of Virtual Simulation Platform for Coupled-tank System based on WeChat Mini Program Monitoring
【摘要】 针对双容水箱受场地限制、介质流动、实验周期长等局限性,为了更好地监控数据和提高实验效率,同时激发使用者的兴趣,设计了一款双容水箱虚拟仿真平台.该平台使用STM32微控制器分别模拟双容水箱数学模型和增量式PID控制器,通过wxml、wxss和javascript,完成微信小程序的搭建;此外,还使用WIFI模块ESP8266和MQTT服务器实现了单片机与微信小程序之间的数据转换.该系统能够与手机终端交互,用户可在手机上随时设置PID参数,实时显示液位数值和监控整个实验过程,并且可以显示液位历史曲线,LCD屏幕上也可模拟动态水柱变化,用户使用效果更加生动和直观.
【Abstract】 We have designed a Coupled-tank System virtual simulation platform to address the limitations of restricted site conditions, fluid flow, and lengthy experimental periods.This is to enhance data monitoring and improve experimental efficiency, while inspiring user interest.This platform uses the STM32 microcontroller to simulate the mathematical model of the Coupled-tank System and the incremental PID controller.The WeChat Mini Program is built using wxml, wxss, and javascript.Additionally, we used the WIFI module ESP8266 and the MQTT server to achieve data conversion between the single-chip microcomputer and the WeChat Mini Program.The system can interact with mobile terminals, and users can set the PID parameters on their mobile phones, display real-time level values and monitor the entire experimental process.The system can also display the historical level curve and, on the LCD screen, simulate the dynamic water column changes, making the user experience more vivid and intuitive.
【Key words】 STM32 microcontroller; WeChat mini program; double tank; MQTT server; ESP8266;
- 【文献出处】 吉林化工学院学报 ,Journal of Jilin Institute of Chemical Technology , 编辑部邮箱 ,2022年11期
- 【分类号】TP311.56
- 【下载频次】40