Two-dimensional lamellar polyimide/cardanol-based benzoxazine copper polymer composite coatings with excellent anti-corrosion performance

The economic loss and environmental damage caused by metal corrosion is irreversible. Thus, effective methods, such as coating technologies are used to protect metal surfaces from corrosion. In this work, cardanol-based benzoxazine (CB) was synthesized by a solvent-free method using cardanol, paraformaldehyde and n-octylamine. A cardanol-based benzoxazine copper polymer (CBCP) with good mechanical properties was then prepared by CuCl2 catalysis and can be cured at room temperature. Subsequently, polyimide corrosion inhibitors with a two-dimensional sheet structure (pyromellitic dianhydride polyimide (PDPI) and 1,4,5,8-naphthalene tetracarboxylic dianhydride polyimide (NDPI)) were designed and prepared. Lastly, PDPI or NDPI was mixed with CBCP to obtain two-dimensional lamellar polyimide/cardanol-based benzoxazine copper polymer composite coatings. The Tafel curves and electrochemical impedance spectroscopy (EIS) measurements showed composite coatings with good corrosion resistance in different corrosive media. Compared to CBCP coating, the anticorrosion performance of the composite coatings improved obviously, especially the coating obtained with 0.5 wt% PDPI. It exhibits a high polarization resistance (3.874 × 109 Ω), a high protection efficiency (99.99% and 97.98%) and low corrosion rate (3.376 × 10−6 mm year−1). This work suggested a facile and eco-friendly strategy for preparing bio-based anticorrosive composite coatings from low cost and abundant cardanol and polyimide corrosion inhibitors, which will significantly promote their application in metal anticorrosion.


Introduction
The annual economic losses from metal corrosion amount to $2.5 trillion, accounting for 3% of global GDP. 1 Hence, metal corrosion requires urgent solutions. Among various corrosion protection strategies, the formation of anticorrosive coatings could efficiently protect metal surfaces at a low cost. 2,3 Polybenzoxazine resin has become increasingly popular in anti-corrosion composite coatings because of its close to zero shrinkage, low water absorption, high thermal stability, exible molecular designability, good dielectric characteristics, and superior mechanical properties. [4][5][6] For instance, Xin et al. synthesized a silane-functional polybenzoxazine coating with good anti-corrosion shielding performance. 7 The charge transfer resistance (R ct ) of hydrophobic benzoxazine-cured epoxy coating was about 3 fold higher than that of bare steel. 8 Compared to the traditional petroleum-based materials, the development and utilization of bio-based materials have become gradually well-liked owing to their easy processing and renewable characteristics. [9][10][11] Such as cellulose, 12 cardanol, 13 alginate, 14 soybean oil, 15 and so on. Cardanol, as a natural phenol with abundant yield and easy extraction, was oen used in the preparation of anti-corrosion coatings. 16 Vijayan et al. synthesized a colorless, transparent, hydrophobic and corrosion resistant coating with cardanol. 17 Aggarwal et al. developed an epoxy-cardanol resin using cardanol exhibits better properties as compared to epoxy resin in terms of increase in tensile strength, elongation. 18 There are also many reports about cardanol-based benzoxazines. Patil et al. synthesized a biobased amine functional benzoxazine resin from cardanol shown good mechanical, chemical, and solvent resistance properties. 19 Huang et al. combined cardanol-based polybenzoxazine and amino-modied silica nanoparticles to develop a superhydrophobic coating on mild steel for anticorrosion coating application. 20 Hence, cardanol-based benzoxazines with low cost, eco-friendly and excellent mechanical properties are usually prepared from cardanol as a raw material and as a good anti-corrosion matrix material. Nevertheless, the high curing temperature (>200 C) of benzoxazine limits its application in practical construction process. Therefore, in this work, CuCl 2 was used to catalyze the ring-opening reaction of cardanol-based benzoxazine and can be cured at room temperature.
On the other hand, the existence of cracks and holes, as well as the inherent permeability of corroded media and degradation of traditional material matrices during curing shrinkage may signicantly reduce the barrier efficiencies of coatings. 21 The two-dimensional lamellar materials, such as graphene and its derivatives, boron nitride and molybdenum disulde, oen used as a corrosion inhibitor in anticorrosive coatings due to their unique lamellar structures and high specic surface areas. [22][23][24] Because of special lamellar structure, twodimensional materials can increase the tortuous diffusion pathways avoiding corrosion mediums directly accessing the substrate surface, leading a good anti-corrosion property. 25 However, since most common corrosion inhibitors were composed of inorganic materials, the poor dispersion in organic coatings may also decline the shielding performance of coatings. 26 Polyimide was widely used in the eld of aeronautics and astronautics, separation membrane and anticorrosive coatings because of its excellent mechanical energy, electrical insulation, thermal stability and chemical resistance. [27][28][29] Therefore, adding two-dimensional lamellar polyimide into resin as a corrosion inhibitor is expected to show signicantly effect and further improve the anticorrosion performance of matrix material.
In this work, cardanol-based benzoxazine (CB) was prepared by solvent-free synthesis method using cardanol as raw material. CuCl 2 was then introduced into catalyze ring-opening polymerization to form cardanol-based benzoxazine copper polymer (CBCP) that can be cured at room temperature yield excellent mechanical properties. Meanwhile, two aromatic polyimides (PDPI and NDPI) with two-dimensional lamellar structures were designed and prepared, and then added into CBCP as corrosion inhibitors. The results show that the synergistic effect induced between two-dimensional lamellar polyimide with highly insulating and CBCP with excellent mechanical properties yielded, two-dimensional lamellar polyimide/cardanol-based benzoxazine copper polymer composite coatings with excellent anti-corrosive properties.

Synthesis of CB and CBCP
CB was prepared by solvent-free synthesis. Briey, 3.05 g cardanol, 0.60 g paraformaldehyde, and 1.29 g n-octylamine were added to a round bottom ask and the mixture was le under magnetic stirring and heating at 90 C for 6 h. Aerward, the system was cooled down to room temperature, and the formed organic layer was extracted with CH 2 Cl 2 and warm deionized water followed by drying with anhydrous magnesium sulfate for 10 h. The resulting organic solvent was removed by rotary evaporation to yield a brown viscous product, which was dried under vacuum at 40 C for 24 h. CBCP was synthesized by CuCl 2 catalyzed ring-opening polymerization. Briey, 4.58 g CB and 10 mL xylene were rst loaded into a round bottom ask, and the mixture was stirred at room temperature for 30 min to yield a homogeneous solution. Next, 0.34 g CuCl 2 was dissolved in anhydrous 5 mL ethanol and then slowly added to the round bottom ask by a constant pressure drip funnel. Aer heating to 120 C for 4 h. CBCP was obtained. The preparation process of CBCP is shown in Scheme 1.

Synthesis of PDPI and NDPI
Firstly, 1.84 g benzidine was dissolved in a round bottom ask containing 60 mL DMF. Dianhydride monomer (PMDA: 2.22 g; NTCDA: 2.71 g) was added and stirred for 3 h at 0-5 C. The prepolymerization reaction was stopped once a brownish viscous solution was formed, and the mixture was transferred to a Teon-inner autoclave for further polymerization at 180 C for 10 h. Aer cooling to room temperature, the obtained product was rinsed with DMF and anhydrous ethanol, then two aromatic polyimides were obtained aer vacuum drying at 40 C for 24 h. The PI prepared by PMDA and BZD was named as PDPI and that obtained by NTCDA and BZD was denoted as NDPI. The preparation process of PI is depicted in Scheme 2.

Preparation of composite coatings
The composite coatings were prepared by ultrasonic dispersion of corrosion inhibitors (PDPI and NDPI) in different proportions CBCP, where neat CBCP was used as a control sample. In the rst place, polyimide was dispersed into xylene by ultrasound, then added CBCP and continued to oscillate under ultrasound for about 30 seconds until complete dispersion. The as-obtained coatings were evenly coated on surfaces of the metal substrates. The corrosion inhibitor concentrations based on CBCP mass were set to 0.1 wt%, 0.5 wt%, and 1.0 wt%. The corresponding obtained coatings were denoted as (CP-01, CP-05, and CP-10) and (CN-01, CN-05, and CN-10) respectively.

Characterization
2.5.1 Chemical structure. Fourier transform infrared spectroscopy (FTIR) were carried out on a Nicolet 5700 spectrometer in the range of 500-4000 cm À1 . The 1 H NMR spectra were recorded on a Bruker 400 MHz NMR spectrometer, using CDCl 3 as the solvent. Solid-state 13 C NMR experiments on a Bruker AVANCE NEO 400 NMR spectrometer operating. X-Ray photoelectron spectroscopy (XPS) was performed on a VG MultiLab 2000 XPS spectrometer (Thermo Electron, U.S.A.). All the binding energies were calibrated by C 1s peak at 284.8 eV.
2.5.2 Evaluation of mechanical properties. The commercial tinplate as substrates for the mechanical properties testing. Before tests, the tinplate pieces were sanded to remove any rust and metal oxides present on the metal surface followed by, cleaning with alcohol and deionized water before air drying. Both the evaluation of mechanical properties was carried out at room temperature and about 50% relative humidity.
2.5.2.1 Surface hardness test. The surface hardness of each coating was evaluated by pencil hardness testing according to standard GB/T6739-2006. Place the paint sample on a level, rm surface and use a pencil of different hardness levels to run across the surface of the coating until no scratches greater than 3 mm appear. 9H is the highest grade on the pencil hardness test and 9B is the lowest grade.
2.5.2.2 Impact resistance test. The impact resistance was measured according to GB/T1732-2020 standard, where higher values meant, better fracture toughness. The test plate is a tinplate with size of 50 mm Â 120 mm Â 0.3 mm, the hammer is then sent from various heights through free fall to the surface of the test plate. The front and back of the test board shall be tested.

Adhesion test.
Two test methods were used to evaluate adhesion. The adhesion tests were performed according to the Chinese standards GB/T9286-2021 and GB/T1720-2020. Continuous squares or circles drew on the surface of the coating, and then determine the adhesion level by judging the peeling degree of the coating. The lower the grade, the better the adhesion.

Flexibility test.
The exibility was tested according to the standard GB/T6742-2007. The back of the test plate is folded 180 around the cylinder of different diameters until the coating surface does not fall off aer folding. The larger the diameter of the cylinder, the less exible it is.

Anti-corrosion tests.
In order not to affect the result of the electrochemical test value, we used copper pieces with better conductivity were used as the substrates of the anticorrosion experiment. Before coating, the copper pieces were sanded to remove any rust and metal oxides from the substrate. Aerward, the substrates were cleaned with deionized water and ethanol, and then air-dried. The anticorrosion performances were tested in a CHI660E electrochemical workstation (Shanghai Chenhua Instrument Co., Ltd, China) equipped with a common three-electrode cell. Data were recorded for the samples in 3.5 wt% NaCl and or 1.0 M HCl aqueous solution, respectively, at room temperature once the measured open circuit potential (OCP) stabilized. Platinum was used as a counter electrode, saturated calomel electrode as a reference, and coated substrates as working electrodes. The frequency range of the electrochemical impedance spectroscopy (EIS) measurements was from 10 5 Hz to 10 À2 Hz, and the amplitude perturbation was 5 mV. The scanning rate in Tafel polarization curves was 0.01 V s À1 . The surface morphologies of corroded coating were observed by eld emission scanning electron microscopy (SEM, SU8010).
2.5.4 Thermogravimetric analysis. The thermogravimetric analysis (TG) of corroded coatings was performed by a TGA/ SDTA851 thermogravimetric analyzer. The samples were heated from 30 C to 600 C under N 2 atmosphere at the rate of 10 C min À1 .

Synthesis and mechanical properties of CBCP
The solvent-free synthesis of CB could reduce the use of organic solvents. The FT-IR spectra of cardanol, CB, and CBCP were displayed in Fig. 1. The peaks at 2850 cm À1 and 2935 cm À1 were assigned to the stretching vibration of saturated C-C bonds on Scheme 2 Synthesis route of PDPI and NDPI.
the side chain of cardanol. The peak at 3010 cm À1 was attributed to the stretching vibration of the isolated double bond. The characteristic peak of CB at 960 cm À1 was related to C-H out-ofplane bending vibration on benzoxazine ring, while the oscillation vibration of -CH 2was recorded at 1360 cm À1 . 30 The symmetric and asymmetric stretching vibration peaks of C-N-C on benzoxazine ring appeared at 1035 cm À1 and 1245 cm À1 . The peak at 1124 cm À1 was attributed to the asymmetric stretching vibration of C-N-C. All these the results were consistent with previous reports, indicating the successful synthesis of CB.
To further conrm the structure of CB, 1 H-NMR analyses of cardanol and CB were performed. As shown in Fig. 2, the peak ranging from 6.60 to 7.10 ppm was attributed to hydrogen atoms present on benzene ring of cardanol, while the solvent peak of CDCl 3 was recorded at 7.28 ppm. The displacement peaks at 0.89-2.84 ppm and 4.89-5.87 ppm were attributed to the saturated fat chain and hydrogen atoms on the unsaturated double bond of cardanol, respectively. Obviously, singlet state proton characteristic peaks appeared at 4.86 ppm and 3.97 ppm, corresponding to O-CH 2 -N and Ar-CH 2 -N in benzoxazine ring, respectively. 31,32 These results further conrmed the successful synthesis of CB.
Heat curing was commonly used in benzoxazine. Where ring-opening polymerization may occur at high temperatures above 180 C. However, such high reaction temperatures were not suitable for practical applications. In this paper, the CuCl 2 catalyzed ring-opening polymerization method was used to prepare CBCP. This route signicantly reduced the ringopening temperature. The FT-IR spectra of CB and CBCP in Fig. 1 showed vanishing characteristic peaks of benzoxazine at 960 cm À1 and 1360 cm À1 aer CuCl 2 catalytic polymerization. The symmetric and asymmetric stretching vibration peaks of C-N-C at 1035 cm À1 and 1245 cm À1 , as well as the asymmetric stretching vibration peaks of C-N-C at 1124 cm À1 also disappeared. 33 Thus, the CB monomer underwent ring-opening polymerization, and CuCl 2 successfully catalyzed the ringopening reaction of CB. Fig. 3 shows the solid-state CP/MAS 13 C-NMR spectra of CBCP. As shown in Fig. 3, the peaks at 66.44 and 63.81 ppm correspond to the resonances of methylene carbons (C 1 and C 2 ) of O-CH 2 -N and Ar-CH 2 -N, respectively. 34 Some chemical shis (ppm) were assigned as follows: 40.13 (C 3 ), 149.76 (C 4 ), 30.19 (C 10 ), and the other resonances of C 11 , C 12 , C 13 , C 14 , C 15 , C 16 , C 17 and carbon on the side chain of cardanol were highly overlapped in the chemical shi rang of 7.97-38.08 ppm. 35,36 Other chemical shis (ppm) were the aromatic carbon resonances: C 5 , C 6 , C 7 , C 8 , and C 9 were highly overlapped in the chemical shi rang of 111.46-143.04 ppm. 37 In addition, X-ray photoelectron spectroscopy (XPS) analysis was performed on the surfaces of CBCP cured by heating at 200 C for 2 h and CBCP catalyzed by CuCl 2 , see Fig. S2(a-h). † These chemical shis of the carbons conrm the CBCP was successfully prepared.
Since the crosslinking degrees of polymers vary with heating temperature, the physical and mechanical properties of polymer coatings may also vary with temperature. In this work, CBCP was heated at different temperatures for 2 h, and its physical and mechanical properties were tested accordingly (Table 1). Eqn (1) was used to calculate the gelling rate: where m 1 is the initial mass before soaking and m 2 refers to the remaining solid mass of CBCP aer soaking in xylene for 2 h. 38 As shown in Table 1, the gelling rate of CBCP increased with temperature. At 120 C, the gelling rate was estimated to about 100%. Therefore, CBCP could be polymerized at 120 C under CuCl 2 catalysis. As the heating temperature increase, the gelling rate and hardness of CBCP increased. However, the impact strength, adhesion, and exibility decreased. At a heating temperature of 100 C, the bending tests withstood only 10 mm diameter samples. Similarly, CBCP coating heated at 40 C and 60 C became completely dissolved during gelling rate tests. As a result, no cross-linking occurred in the polymer under shorttime low-temperature heating. Hence, the material would more likely to exist in the form of coordination polymerization. Therefore, CBCP was tested aer dried at room temperature two weeks and the results showed gelling rate reaching 73% and pencil hardness is 2H. Also, no discoloration of solvent or coating dissolution took place. The results also revealed excellent impact strength, adhesion, and exibility of this material dried naturally. By comparison, though the hardness and gel rate of CBCP can be improved by increasing the heating temperature, features like impact strength, adhesion and exibility may constantly reduce. Here, naturally dried CBCP coating at room temperature underwent orderly and slow crosslinking polymerization, enabling better balanced internal structure to cope with the damage caused by external forces.

Synthesis of PDPI and NDPI
The FT-IR spectra of PDPI (A) and NDPI (B) were provided in Fig. 4. The stretching vibration characteristic peaks of asymmetric carbonyl groups in polyimide were observed at 1783 cm À1 both PDPI and NDPI. The out-of-plane bending vibration characteristic peaks appeared at 735 cm À1 and 720 cm À1 , respectively. The peak at 1720 cm À1 was assigned to the symmetrical carbonyl stretching vibration. The amide bond as an important characteristic absorption peak of aromatic polyimide appeared at 1356 cm À1 . These results agreed well with previous reports. 39 The structure of PDPI and NDPI was further characterized by solid-state 13 C CP/MAS NMR, as shown in Fig. 5. The peaks at 165.42 (A) and 162.33 (B) ppm correspond to the resonances of carbonyl carbons on an amide (C 1 ) of PDPI (A) and NDPI (B) respectively. 40 Other chemical shis (ppm) were the aromatic carbon resonances: C 2 , C 3 , C 4 C 5 C 6 , C 7 , and due to the aromatic carbons on benzidine (C 5 , C 6 , C 7 ) have similar chemical environments were highly overlapped in the chemical shi rang of 110.35-121.81 ppm. 41 In addition, on account of NDPI has more aromatic carbons (C 2 , C 3 , C 8 ) than PDPI, the integral area ratios of C 2 and C 3 in NDPI were signicantly higher and overlapped. 42 All the results indicating the successful preparation of PDPI and NDPI. The surface morphology of corrosion inhibitors in Fig. S1 † revealed the two-dimensional sheet structures of PDPI and NDPI and the mobility test for water and solvent resistance of PDPI and NDPI in Fig. S3. †

Electrochemical properties of composite coatings
A three-electrode system (working electrode, counter electrode, and reference electrode) was used to study the corrosion resis-   steady-state conditions. The corrosion current (I corr ) and corrosion voltage (E) of each coating were then obtained by exploring the polarization Tafel curves. [43][44][45] The polarization resistance (R p ), protection efficiency (PE) and corrosion rate (CR) were calculated by (eqn (2)-(4), respectively): In Tafel curves, the current corresponding to the intersection of the slope of anode and cathode curves represented the corrosion current (I corr ). The slopes of both anode and cathode curves b a and b c were obtained by tting analysis of the testing soware.

PE ¼
I corr;0 À I corr;add I corr;0 Â 100% where, I corr,0 represents the corrosion current of the control sample, and I corr,add refers to the corrosion current of the experimental sample.
where A is the atomic mass of the metal (A ¼ 63.5), r refers to the density of the metal (r ¼ 8.5 g cm À3 ), and n denotes the valence state of the metal ion (n ¼ 2). In general, the corrosion degree of each coating can preliminarily be evaluated though I corr and E in Tafel curves. 25 The coatings with lower I corr and higher E exhibited better corrosion resistance. In 3.5 wt% NaCl solution, the corrosion resistance of bare copper was poor. By comparison, the samples protected by coatings all showed excellent corrosion resistance ( Fig. 6(a)). As shown in Table 2, the different values of R p , PE, and CR, indicating variable corrosion resistances. Compared to bare copper, the I corr of CBCP coating decreased to 1.369 Â 10 À8 A cm À2 and E increased to À0.2585 V. The R p of CBCP was 1.120 Â 10 8 U, CR was 1.672 Â 10 À4 mm year À1 , and PE of metal was 99.82%. Hence, CBCP possessed good corrosion resistance performance when coated on the metal substrate.
Proper amount of corrosion inhibitor could enhance the corrosion resistance of coatings. Here, the I corr and CR of composite coatings were lower than those of CBCP coatings, and protection efficiency greater than 70% when compared to CBCP (Table 2). Both CP-05 and CN-05 showed excellent corrosion resistance, with I corr to 2.764 Â 10 À10 A cm À2 and 3.373 Â 10 À10 A cm À2 , CR calculated as 3.376 Â 10 À6 mm year À1 and 4.120 Â 10 À6 mm year À1 and R p valued to 3.874 Â 10 9 U and 3.385 Â 10 9 U, respectively. Compared to CBCP, the protection efficiency (PE) of CP-05 and CN-05 reached values of 97.98% and 97.54%, respectively. Also, PE reached 99.9% when compared to bare copper. Overall, the corrosion resistance of CBCP coating signicantly improved aer the introduction of polyimide.
The Tafel curves of composite coatings were also investigated in different media, and then, 1 M HCl solution as the corrosive medium. Fig. 6(b) and Table 3 showed the Tafel curves and parameters of the coatings in 1 M HCl solution, respectively. The anti-corrosion performance of the coatings in acidic media was slightly worse than in neutral media. However, the anti-corrosion effects of the composite coatings were still remarkable. Compared to CBCP, the PE values of CP-05 (B) and CN-05 (E) reached 94.87% and 93.24%, respectively. Both CP-10  (C) and CN-10 (F) showed similar performances in acidic media as in neutral media. Also, their corrosion resistances decreased slightly when compared to CP-05 (B) and CN-05 (E). Therefore, excess amounts of polyimide inhibited the anticorrosion effect of the coatings. When polyimide was not evenly dispersed in CBCP, the compactness of the coatings became compromised, thereby weakening the protective ability of the coatings on metal materials.
Some of the best anti-corrosion coatings reported in literature were prepared with cardanol-based composite coatings, and the PE values of the two-dimensional lamellar polyimide/ cardanol-based benzoxazine copper polymer composite coatings prepared here were compared with other results in literature in Table 4. Among previously reported coatings, the best PE value of 99.87% was reported for a 5 wt% HTCP/SBCBz-EP/MS composite coating (SBCBz-EP: siloxane-based cardanol benzoxazine-epoxy). Notably, the PE value of the two-dimensional lamellar polyimide/cardanol-based benzoxazine copper polymer composite coating (CP-05) in this work increased by 99.99% compared with bare copper and 97.98% compared with the pure matrix (CBCP), both of which were signicantly better than previous coatings reported in literature. In conclusion, the combination of polyimide and cardanol-based benzoxazine copper polymer signicantly improves the protection efficiency of the coating.
To study the inuence of polyimide corrosion inhibitors, the corrosion resistance of different coatings CBCP (O), CP-01 (A), CP-05 (B), CP-10 (C), CN-01 (D), CN-05 (E) and CN-10 (F) were evaluated by EIS in 3.5 wt% NaCl solution for 1-120 h. In Fig. 7, the capacitance arcs in the low/high-frequency region were related to the transfer and charge transfer of corrosion reaction. 25 Therefore, the corrosion resistance of the coatings can be judged by the diameters of the curves. The local EIS spectrograms revealed all coatings with large capacitive arcs at the initial stage of immersion. The capacitance arcs of CP-05 (B), CP-10 (C), CN-05 (E), and CN-10 (F) looked relatively large, indicating better corrosion resistance. By comparison, the capacitance arcs of CBCP were the smallest, consistent with the results of Tafel polarization. As testing time increased, the diameters of all capacitive arcs decreased. The reason for this had to do with the continuous erosion of the coatings by the corrosive medium, which resulted in holes and cracks, as well as partial rupture of the protective layer. At the test times of 96 h and 120 h, the materials CP-10 (C), CN-05 (E) and CN-10 (F) showed multiple capacitive arcs with small radii in the highfrequency region. Thus, the corrosive medium penetrated the coatings through some aperture, but did not yet reach the surface of the metal, keeping it protected. 52 CP-05 (B) still showed a large capacitive arc resistance, revealing excellent corrosion resistance. Polyimide compound benzoxazine resin as a protective layer of metal materials could effectively delay the inltration of water and other corrosive media, thereby preventing the metal from corrosion.
The changes in EIS Bode plots of the coatings immersed in 3.5 wt% NaCl solution were illustrated in Fig. 8. The Bode plots revealed CP-05 (B) with only one time constant in the late test period. It also maintained a high impedance modulus over a wide frequency range. Low-frequency impedance modulus (jZj f ¼ 0.01 Hz) was oen used to evaluate the corrosion resistance of coatings. 53 CP-05 (B) showed a high impedance   modulus in the low-frequency region of Bode plots, indicating the good corrosion resistance of the coating. The composite coatings showed good anticorrosion properties, mainly in the following aspects (as shown in Fig. 9): rstly, the higher crosslinking density cardanol-based benzoxazine lm was responsible for the good shielding effect. Secondly, though corrosive mediums are known to easily penetrate coatings through tiny surface cracks, two-dimensional lamellar polyimide can effectively avoid and prevent it from accessing the metal surface. PDPI or NDPI that played an important role in the maze effect and reduction the corrosion rate of the copper pieces. Thirdly, the nitrogen atom of organic amine compounds usually has lone pairs of electrons, which can form coordination bonds with the hollow d orbitals of the metal, such that the molecule adsorbed on the metal surface forms a layer of protective lm to protect the metal. 54  The surface morphologies of different coatings in 3.5 wt% NaCl solution for 120 h were gathered in Fig. 10. The surface of CBCP coating looked smoother and atter, while the composite coatings revealed relatively rough surfaces. This might be related to the dispersion of polyimide in CBCP. Serious corrosion pits and holes appeared on CBCP surface aer corrosion since incomplete cross-linking of CBCP may result in rapid penetration of the coatings by the corrosive media. The composite coatings did not exhibit large holes, but many small corrosion pits and holes were noticed. Since the added amounts of the corrosion inhibitors in CP-01 (A) and CN-01 (D) were small, they were incapable of completely shielding the corrosive media. On the other hand, large numbers of corrosion pits existed on coatings surfaces though CP-10 (C) and CN-10 (F)  showed some small holes aer 120 h immersion in 3.5 wt% NaCl solution, indicated the presence of corrosion inhibitors enhanced corrosion resistance. The corrosion resistance of CP-10 (C) and CN-10 (F) may be caused by excess added amounts, resulting in uneven dispersion of corrosion inhibitors in the solvent. 55 CP-05 (B) showed excellent anticorrosion performances in all composite coatings with no obvious corrosion holes and only some corrosion pits. Therefore, CP-05 (B) exerted a good shielding effect on the metal in corrosive media when compared to coatings, showing excellent anti-corrosion performance.

Thermogravimetric analysis
To clarify the thermal properties of the composite coatings, TGA curves were obtained. TGA provides important information about the degradation behavior of the material and thus explains the thermal stability of the material. [56][57][58] As shown in Fig. 11, all coatings exhibited good stability below 200 C. Compared to CBCP coating, the composite coatings CP-05 and CN-05 illustrated better thermal stabilities. The heat resistance index temperature (THRI) was calculated using eqn (5) and it was presented in Table 5. 59,60 The data relating to 5% weight loss temperature, 30% weight loss temperature, and carbon residue rate at 600 C of all three coatings were listed in Table 5. The temperature corresponding to a weight loss rate of 5% can be considered as the initial decomposition temperature of the coatings and the lowmolecular weight oligomers were volatilized. 61 The difference in thermal stability of the coatings was most obvious at a weight loss rate of around 50%. As temperature rose to 600 C, the carbon residue rates of CBCP, CP-05, and CN-05 reached 22.4%, 29.2% and 30.1%, respectively. The reason for this result might be the small anti-corrosion inhibitor added amounts that led to no obvious differences in heat resistance between the composite coatings. Therefore, the addition of PDPI and NDPI effectively improved the thermal stability and carbon residue rate of CBCP. The high decomposition temperature of composite coatings would greatly help practical applications.

Conclusions
CB was successfully synthesized from cardanol, n-octylamine, and paraformaldehyde by the solvent-free method. CuCl 2 was used as a catalyst of CB ring-opening reaction to from CBCP and could be cured at room temperature and exhibited mechanical properties. Meanwhile, two aromatic polyimides (PDPI and NDPI) were synthesized and added to CBCP coating as corrosion inhibitors. All composite coatings showed better anticorrosion performances than CBCP coating. Especially, the composite coating (CP-05) obtained with 0.5 wt% PDPI illustrated the best anti-corrosion performance. The addition of aromatic polyimide also improved the heat resistance of the composite coatings. As a result, the designed two-dimensional lamellar polyimide/cardanol-based benzoxazine copper polymer composite coatings possessed good mechanical properties and excellent anti-corrosion performances. In sum, it has broad application prospect for future metal anticorrosion application that the suggested facile and eco-friendly strategy for preparing bio-based anticorrosive composite coatings from low cost and abundant cardanol and polyimide corrosion inhibitors.

Conflicts of interest
The authors declare that they have no known competing nancial interests or personal relationships that could have appeared to inuence the work reported in this paper.