| With the global trend of reducing carbon emissions,China’s energy structure is undergoing a low-carbon transition.Solar photovoltaic power generation is the future development trend,and the production of photovoltaic cells requires the use of trichlorophosphorus,which also leads to an increase in the production of trichlorophosphorus.However,during the reaction process,trichlorophosphorus will generate toxic and corrosive gas,such as chlorine gas,and trichlorophosphorus,a colorless liquid,belongs to the substance listed in the "List of Highly Toxic Chemicals(2002 Edition)".Therefore,enterprises that produce trichlorophosphorus must have a sound emergency system,such as ventilation system and exhaust gas purification device,to ensure the safety of the production process.However,in the current production environment,there may be a lack of a system that can monitor the plant environment in real-time,continuously collect historical environmental information,and collect harmful gases in real-time and trigger an alarm when gas leakage occurs.It may also lack a system that can identify the level of toxic liquid.Therefore,this paper aims to design a phosphorus supply monitoring system based on Raspberry Pi to reduce the risk of phosphorus leakage,protect the personal safety of workers,and ensure the production of raw materials.The research work of this paper includes the requirement analysis of the system,the system design,the data acquisition and communication of the sensors,the image recognition,and the alarm system.To improve the performance and response speed of the system,we adopted a multi-threaded approach.By connecting sensors and cameras to obtain and parse relevant data inside the constant temperature box,we achieved concurrent processing through the multi-threaded approach,which realized data acquisition,image recognition,and other functions while improving the system’s response speed and concurrent processing capabilities.At the same time,we used computer vision algorithms to identify the safety status of the constant temperature box in real-time and alerted the workers through the alarm module when necessary,ensuring the personal safety of workers and the production of raw materials.The implementation of these functions depends on the support of multi-threading technology,which provides a solid foundation for the practical application of the system.Through the study of the system,we can monitor the environmental information in real-time,send reminders to workers in time,and deal with potential dangers to ensure the safety and smooth progress of the production process.At the same time,by analyzing the collected data,we can also provide better production plans and emergency equipment planning for enterprises,thereby reducing production costs and improving production efficiency. |