In order to ensure the safety of marine structures in service and extend their service life,an impressed current cathodic protection system is generally adopted to protect them from corrosion.The potentiostat is the key equipment of the impressed current cathodic protection system and is widely used in marine engineering corrosion protection.However,the potentiostat for cathodic protection in marine engineering has the following disadvantages: huge volume,complicated structure,low accuracy,poor system control and low intelligence.In view of the above shortcomings,this article takes the actual marine engineering application as a starting point,based on the principle of impressed current cathodic protection,combined with modern electronic technology,embedded system,single-chip technology,researches and designs a potentiostat for cathodic protection based on STM32 single chip,which improves the accuracy,reliability and intelligence of the equipment,and meets the needs of on-site use for marine engineering.This article first investigates the research status of the impressed current cathodic protection technology at home and abroad,and analyzes the development trend of the potentiostat in the cathodic protection system and some problems in the field at the current stage.Starting from the principle of impressed current cathodic protection technology,the basic theory of the potentiostat,embedded system,and control technology are studied,and the hardware system architecture and software system architecture of the potentiostat are planned and designed.Then for the architecture of the hardware system,designs and implements the hardware modules of the system one by one.The hardware system uses high-precision A/D conversion chip TLC2543,D/A conversion chip DAC8534,16-bit true color display and touch screen TFTLCD and other peripherals.STM32F103ZET6 processor is the core of the control system,with its powerful computing and processing capabilities,it can better realize various functions such as data measurement and collection,remote communication,constant potential and current setting,and screen display.Finally,according to the architecture design of the software system,each module focuses on "low coupling and high cohesion".Based on the multitask OS kernel μC/OS-III,the program code of each functional module is written on the Keil MDK development platform,and is debugged and simulated through JLINK.Debug the developed potentiostat in a laboratory environment,verifying the realization of functions such as data collection,potential output,touch control,screen display,and constantpotential and constant-current setting.And conduct a performance test in real sea environment,verifying the stability,reliability,accuracy and effectiveness of the cathodic protection of the potentiostat.After debugging and test analysis,the developed potentiostat achieves the required functions,its measurement and output accuracy meets the expected requirements,and the maximum error of constant-potential and constant-current control is within 1%.In addition,the communication between the system and the host computer is normal,the system meets the design requirements and attains good protection effects. |