| In recent years,the country has advocated energy-saving,low-carbon,and green travel methods.New energy vehicles have ushered in the development of the automotive industry,with annual ownership increasing year by year.Charging piles have also entered a high-speed development stage.Currently,a large number of electric vehicle charging piles are connected to the power grid in most regions of China,providing users with safe and reliable charging services for their electric vehicles.However,many charging spontaneous combustion accidents occur every year,seriously endangering the safety of people’s lives and property.Currently,charging safety hazards have become one of the important factors restricting the development of the entire electric vehicle industry chain,and further research on the charging state of the charging pile is urgently needed to reduce the safety hazards during charging.To achieve real-time monitoring of the charging state of the charging pile,a charging pile monitoring device using STM32 as the main controller of the lower computer was designed.The device monitors the temperature,humidity,current,voltage,and other parameters of the charging device to determine whether the charging state is normal,and timely alarms based on the fault situation to reduce the probability of safety accidents.The system is divided into two parts: lower computer hardware and upper computer software.The hardware part uses STM32 as the main control system,and uses various sensors to collect data;The software part includes the upper computer interface under the LabVIEW environment,develops a We Chat applet for the user,and uses Whale Optimization Algorithm(WOA)to optimize the Gate Recurrent Unit(GRU)to determine whether the charging state is normal.The specific design scheme of this article is as follows:(1)First of all,in-depth research has been conducted on domestic and foreign work related to charging pile monitoring and fault warning,in-depth analysis has been conducted on the internal structure of the charging pile,and based on the electrical characteristics during the charging process,a lower computer data acquisition device has been designed.The hardware of the lower computer mainly includes the minimum system of the main control chip,the electric energy metering module for collecting voltage and current,the 485 communication circuit,the temperature and humidity sensor,the upper and lower computer communication circuit RS232,and the relay control AC contactor on-off circuit.In addition to data acquisition and processing,the lower computer also receives corresponding control commands for charging on-off control.(2)Secondly,in order to better monitor the charging pile,corresponding software has been designed,mainly including the hardware driver of the lower computer,the display interface of the upper computer,and We Chat applet.The upper computer interface management module is written in the development environment of LabVIEW.Use serial communication controls to receive data,analyze and display data through strings,arrays,waveform charts,and other controls,and indirectly run My SQL databases through ODBC for data storage and management.In addition,the user end realizes charging state observation and charging fee payment through We Chat applet.(3)Through various physical quantity data collected by the monitoring device,fault diagnosis can be performed on the working state of the charging pile to reduce the incidence of charging spontaneous combustion accidents.In addition,by improving the structure of the long and short term memory network,a gated cycle unit(GRU)was obtained,and using GRU to predict,it was found that the prediction results were not ideal.Therefore,this article introduced the Whale Optimization Algorithm to optimize the super parameters and incorporated it into the GRU network model to improve the accuracy of charging fault prediction.Finally,this paper carried out a complete machine test on the monitoring device built,including the implementation of functions such as data collection on the lower computer,display of the upper computer interface,and small program query,which proved that the monitoring device can meet the design requirements. |