| With the improvement of people’s living standards,higher requirements are put forward for air quality in the living environment.Accidents that cause health hazards by harmful gases in the environment are common,and harmful gases in daily life can be detected by air quality testing equipment.However,most of the existing air quality testing equipment has problems such as large size,inconvenient to carry,single detection gas type,simple human-computer interaction,and no long-term historical data query function.Combined with the advantages of wearable devices,this paper designs an air quality detection device,which can collect air quality information around the device user in real time,and provide users with a more friendly human-computer interface for gas detection with the web front-end visual interface.The designed air quality detection terminal adopts the STM32F103RCT6 of ARM architecture as the control core,and develops wearable air quality detection equipment with functions such as collecting carbon dioxide concentration,TVOC,formaldehyde,temperature,humidity data,and collecting data upload with embedded technology,WiFi wireless communication technology,sensor technology,and Alibaba Cloud Io T cloud platform.In terms of hardware,the power supply circuit,gas sensor acquisition circuit,data storage circuit,LCD display circuit and WiFi serial port circuit are designed,the STM32 control core is used to collect gas sensor data,and MQTT connection requests are sent to the Alibaba Cloud Io T platform through the WiFi wireless module,and AMQP-SDK packages are used to perform data transfer operations through server-side subscription technology,and gas data is persisted to the MySQL database;In terms of software,the web-side visual interface was designed,Alibaba Cloud ECS server was used as the web-side server,the Element-UI and Vue framework were used to build the font-end development interface of the air quality detection system,and the corresponding back-end program was designed using Axios to request data and use Spring-Boot to query MySQL database persistent data such as user data,gas data,device data,etc.,and display gas data charts through Echarts.After testing,the terminal testing equipment of this design is small and easy to carry,can run stably after power-on,can upload gas collection data to Alibaba Cloud Io T platform through WiFi,subscribe to gas data through the server and persist to the web server MySQL database,and the web visual interface can query historical gas data,user management,device management and other functions,the detection has certain promotion value. |