Preparation and Properties of Composite PAN / PANI Membranes

Themethods of modifying PANmembranes have been known and used for many years. An interesting solution seems to be to give the sensory properties to this type of membranes.This paper presents the results of research on themethod of obtaining PAN/PANI membranes using phase inversion method from a solution in DMF, following two methods: (1) dissolving both polymers (PAN and PANI) and then coagulating in water or in an aqueous solution of CSA and (2) forming the membranes from polyacrylonitrile solution and coagulation in water, followed by coating of CSA with a solution of TFE. The membranes obtained as a result of the experiment were tested for physical and chemical properties, transport properties, surface morphology, degree of dispersion of composite components, and sensitivity to the presence of dilute acids and bases. FTIR microspectroscopy and scanning electron microscopy were used to study the surface morphology. The sensory properties of membranes that are inherently colored were determined visually and by UV-Vis spectrophotometry. Furthermore, when choosing the method of membrane forming, we can obtain membranes with good physical and chemical and transport properties or ones characterized by high sensitivity to the pH of the solution.


Introduction
Polyacrylonitrile (PAN) was first synthesized in 1920 by Herbert Reina.In 1942, DuPont obtained the fiber (Orlon) by spinning from a solution of the polymer in N,N-dimethylacetamide [1].Polyacrylonitrile fibers rank third in terms of production among all synthetic fibers [2].High interest in the fibers is due to their performance properties, such as high thermal conductivity, UV resistance, mechanical strength, and high chemical resistance [2].
PAN is an inexpensive and popular engineering polymer, which in addition to the classical textile industry is widely used in special clothing for the army [3], medical and antibacterial clothing [4], superhydrophobic surface finishes [5], as a component of various types of composites [6], and moreover in electrical devices [7], optoelectronic, photonic devices [8], and energy storage systems [9].Polyacrylonitrile has strong electrostatic properties that facilitate the attraction of microbes and dust particles [10] and therefore it was used in high performance dust removal filters and for disposal of toxic compounds [11].In addition, the polymer has found wide application in various types of biosensors [12].
PAN is soluble in various solvents and it can be formed from solution.These solvents are DMF, DMSO, DMA, chloroacetonitrile, dioxanone, dimethyl phosphite, dimethyl sulfone, -butyrolactone, ethylene carbonate, nitric acid, and sulfuric acid [1].Membranes obtained from PAN are characterized by high mechanical strength, and therefore they are used in pressure membrane processes: ultrafiltration (UF), nanofiltration (NF), reverse osmosis (RO), and pervaporation (PV) [13][14][15][16].Among the factors that affect the morphology of the membrane during the phase inversion forming, and thus its properties, among others, polymer concentration, the type of solvent and the coagulant used and the time of solvent evaporation can certainly be distinguished [15,17,18].In addition to these factors, the use of various types of organic or inorganic additives also significantly affects the properties of the obtained membranes [19].In order to increase the hydrophilic properties and to reduce fouling, polyacrylonitrile can be chemically modified relatively easily, for example, by primary amines, by sodium hydroxide treatment, or by physical surface treatment using plasma [13,20].An interesting solution seems to be to enrich polyacrylonitrile with conductive polymer in order to evacuate charges accumulated on the membrane and reduce fouling.
Conducting polymers, which include polyacetylene, polypyrrole, polyaniline, and polythiophene, are very popular because of the interesting physical properties, which make them suitable for use in light-emitting diodes, field effect transistors, photovoltaic cells [21,22], sensors [23], wastewater treatment [24,25], separation of ions [26,27], and so forth.The first Polish conducting polymer is polyaniline (PANI) obtained at the turn of 1974-1975 by J. Langer.It is characterized by easy and inexpensive method of preparation [28] and good electrical properties and thermal and chemical stability, so that it is used in batteries, capacitors, and anticorrosion and antistatic coatings [29][30][31].Polyaniline has the ability to change the conductivity and color under the influence of various chemical agents.This feature makes it well suited for the production of detectors, sensors, and biosensors which can detect, among others, reducing sugars, urease, ammonia, and many other compounds [31][32][33][34].In the case of optical sensors in which PANI is used, the reversible reaction of protonation/deprotonation of polyaniline, which proceeds according to Figure 1, is of particular importance.
The transition from a conductive form of PANI (EM) to its nonconductive form (EB) is associated with changes in the UV-Vis-NIR spectrum [35].The green emeraldine salt shows the characteristic absorbance peaks at 800 and 430 nm, while the deprotonated form results in a blue emeraldine base for which the absorbance peak can be seen at 630 and 330 nm [36].
The literature indicates various techniques for the preparation of polyacrylonitrile membranes with the addition of polyaniline.Miao et al. [37] describe a technique in which PAN nanofibers obtained by electrospinning constitute the membrane carrier on which a solution of aniline is added and then polymerized.Other works describe a technique of obtaining the composite from protonated form of polyaniline dissolved and mixed with PAN solution in dimethyl sulfoxide (DMSO), with a film poured and dried at elevated temperature (60 ∘ C) [38], and other authors used this solution to manufacture membrane by electrospinning [39].Zhai et al. [40] used the phase inversion method to obtain the composite membrane by casting PAN+aniline/DMSO polymer film and then by polymerization of PANI and coagulation of the membrane.In other works, homogeneous solution of PAN+aniline was added to the mixture of coagulant containing oxidant in which the polymerization of PANI and coagulation of fibers occurred simultaneously [41].Still other authors describe a method wherein the phase inversion method is used to precipitate membrane from PAN on a platinum electrode, on which PANI is electrochemically polymerized [42,43].Bayramoglu et al. [44], on the other hand, described a technique for preparing the membrane of polyacrylonitrile, which was immersed in PANI polymerization solution.
This paper presents the results of tests of physical and chemical, transport, and sensory properties and the surface morphology of the membranes of polyacrylonitrile enriched with polyaniline.The membranes were obtained by phase inversion in two different ways.The first one consisted in the use of a solvent common for both polymers, N,Ndimethylformamide (DMF), which was used to prepare a solution and then coagulated in water or an aqueous solution of camphorsulfonic acid (CSA).The second one was manufacturing the membrane from PAN solution in DMF, followed by coagulation in distilled water, drying, and coating with a solution of protonated polyaniline in 2,2,2-trifluoroethanol (TFE) [45].

Forming of PAN Membranes.
Polyacrylonitrile membranes were obtained using phase inversion method.Firstly, we prepared 12 wt.%polymer solution in N,N-dimethylformamide (DMF) at a room temperature.The PAN solution was then poured onto a glass plate and spread with an applicator with a gap width of 0.1 mm.Immediately after forming of the film it was coagulated in distilled water at a room temperature until the membrane came away of the glass.The precipitated membranes ("0" membrane) were dried under a load in air (between two sheets of filter paper loaded with glass plate).

Forming of Composite PAN/PANI Membranes.
To prepare the polyacrylonitrile (PAN) membranes containing polyaniline (PANI), two preparation methods were used.The first method consisted in the preparation of a solution containing both polymers (PAN/PANI), and then the membranes were wet-formed by phase inversion.The second method consisted in wet-forming membranes of polyacrylonitrile then coating with a solution of polyaniline in TFE.
Method 1. 1 wt.% solution of PANI in DMF was prepared.Then polyacrylonitrile was added to it in an amount such that the concentration of the polymer was 12 wt.%.The resulting solution was used to form membranes using phase inversion method.For this purpose, the polymer solution was poured on a glass plate and using an applicator with a slot width of 0.1 mm polymer film was formed.Then it was immediately coagulated in three different baths at room temperature until the membrane came away of the glass.The coagulation baths were (a) water (A membrane); (b) water, followed by 0.1 M solution of camphorsulfonic acid for 30 s (B membrane); and (c) 0.1 M solution of camphorsulfonic acid (C membrane).The resulting membranes were dried under a load in air (between two sheets of a filter paper loaded with a glass plate).Method 2. 12 wt.%solution of PAN in DMF was poured on a leveled glass plate and using a casting knife with a gap width of 0.1 mm polymer film was molded.The membranes were then immediately coagulated in water and then dried under a load in air (between two sheets of a filter paper loaded with a glass plate).Then a 0.36 wt.% solution of polyaniline (PANI) in 2,2,2-trichloroethanol (2.2 g of CSA added for every 2 g of PANI) was prepared, in which the membranes of pure polyacrylonitrile were immersed and then dried in air (D membrane).

General Characterization.
Thickness () of the membranes was measured with ELMETRON MG-1 thickness gauge.Samples with dimensions of 1 × 1 cm were weighed using SARTORIUS CP224S-0CE analytical balance with an accuracy of 0.0001 g.
The mass per unit area (  ) of the membranes (g/cm 2 ) and the density (  ) of the membranes (g/cm 3 ) were calculated using the following formulas: where  is the weight of a membrane with an area of 1 cm 2 ,  is membrane surface area [cm 2 ], and  is membrane thickness [cm].The static contact angle was measured using a goniometer (FIBRO System AB PG-1); thus the tests were made in the skin (top) layer of the membranes.
The porosity of the membranes (), which is defined as the ratio of pore volume to the volume of the membrane, was calculated using the following formula [46]: where  1 is wet sample weight (g);  2 is dry sample weight (g);   is density of distilled water (0.998 g/cm 3 );   is polymer density (1.17 g/cm 3 ; properties obtained from Zoltek company).

Transport Properties.
Transport properties of the obtained membranes were tested using a Millipore's Amicon 8400 ultrafiltration cell with a capacity of 350 cm 3 and a membrane diameter of 7.6 cm.The membranes were used for 2 hours under a pressure of 0.2 MPa.From our experience, it has positive effect on the stability of a membrane.Then they were tested at an operating pressure of 0.05, 0.1, 0.15, and 0.2 MPa.Permeate flux ( V ) was calculated using the following formula: where  V is water flux (L/m 2 × h),  is the volume of water permeate (L),  is the effective membrane area (m 2 ), and  is the permeation time (h).
The pore size (  ) was determined using Guerout-Elford-Ferry equation [see (4)] on the basis of the pure water flux and porosity data was used [47]: where  is the water viscosity (8.9 × 10 −4 Pa⋅s),  is the membrane thickness (m),  is the volume of permeated pure water per unit of time (m 3 /s),  is the effective membrane area (m 2 ), and Δ is the operational pressure.
Mapping the surface of the membranes was made using "Continuum" microscope coupled with Nicolet 6700 FTIR spectrophotometer with a field-emission resolution of 50 × 50 m and linear step-scan of 50 m.
The surface morphologies of the skin layer and the support layer as well as membrane sections were examined using a scanning electron microscope (JEOL JSM 5500LV).

Testing of PAN/PANI Membranes Sensitivity to the Solution pH.
The use of polyaniline as a conductive polymer was motivated by the possibility of easy visual observation of changes in the color of the polymer in the protonated, conductive form (green) and nonprotonated, nonconductive form (blue).
In order to verify the sensitivity of obtained membranes to the external environment, 10 dilutions were prepared of HCl and NH 4 OH solutions at concentrations ranging from 0.1 M to 0.00001 M.Then, for each type of membrane, samples with dimensions of 2 × 2 cm were cut off.Each sample was immersed for 10 s in the solutions for each HCl and NH 4 OH concentration and then air-dried.Absorption spectra were measured using UV-Vis Perkin-Elmer Lambda 35 spectrophotometer in the range of 190∼1100 nm and a scanning speed of 240 nm/min.

Characteristics of Membranes.
Polyacrylonitrile is a polymer that is well known and well described in the literature and is widely used both in pure form and with additives.Particularly interesting properties of the polymer are obtained by the introduction of polyaniline as the composite component.Among the enormous number of methods for mixing these two polymers, the most interesting appears to be the use of a solvent common to polyacrylonitrile and polyaniline.Such a solvent is obviously N,N-dimethylformamide, which forms homogeneous solutions both with PAN and with PANI.The scope of research in the described paper is PAN/PANI membranes produced by phase inversion through the polymer coagulation in a nonsolvent (wet method).The article shows how the methods of introducing polyaniline to the membrane and the type of the coagulating bath affect the structure and physicochemical properties of the resulting membranes.The following measurements and calculations were carried out: thickness, mass per unit area, density, contact angle, sorption, porosity, pore size, permeate flux, dispersing of the components on the membrane surface, and sensitivity to changes in acidity (pH) of the aqueous solutions as well as the surface and cross sections morphology.The resulting membranes were flexible, just as in Zhai et al. [40], making it easy to work with them.
The study of mass per unit area (Figure 3(a)) shows that the mass of D membrane is comparable to the mass of pure PAN membrane or even slightly higher.The increase in mass of D membrane is caused by a thin polyaniline film formed on the surface of the membrane.On the other hand, the membranes prepared from a homogeneous solution of PAN/PANI polymers are slightly lower in mass, which may be due to the additive of polyaniline, which has an impact on the processes occurring during coagulation.Also, a slight decrease in the mass per unit area of the membranes coagulated in a solution containing camphorsulfonic acid is observed.CSA, which is added to protonate the polyaniline, forms a water soluble amine salt which could reduce the mass of the membranes.During the coagulation process (of membranes A, B, and C), we observed coloration of distilled water coming from polyaniline.
Analyzing the results of thickness measurements of the resulting membranes (Figure 3(b)), it is observed that D membrane is approximately 13% thicker than "0" membrane which is the result of applying a thin layer of PANI.For membranes formed from a homogeneous PAN/PANI solution and coagulated in water (A membrane), the increase in the thickness in comparison with the pure polyacrylonitrile membranes is nearly double.Such a large increase in the thickness of the membrane may indicate that the hydrophobic polyaniline definitely affects the processes occurring during the coagulation of the membrane, resulting in the formation of highly porous structures.Application of the CSA solution in coagulation of C membrane resulted in a decrease in the thickness of the membrane obtained by about 35% compared to pure PAN membranes.Based on the observed changes, it may be concluded that the coagulation of PAN/PANI membranes in an acid solution leads to the formation of water-soluble polyaniline salt.C membrane's color in the images (Figure 2), after operating in the aqueous environment, has not changed and is still green, which confirms the assumption that the protonated form of polyaniline is not present in the pores of the membrane; that is, it was probably removed in the coagulation process.Feng et al. [48] explain the influence of polymer hydrophobicity or hydrophilicity on membrane coagulation using phase inversion.Their research shows that hydrophobic (PPSU, polyphenylsulfone) polymer coagulates faster.
Method of preparation of B membrane, consisting in coagulation in water and then a bath containing CSA, results in a decrease in B membrane thickness as compared to A membrane.It is believed that during the coagulation in CSA solution polyaniline on the membrane surface and in its pores is protonated.Then, the polyaniline, weakly bound to the polymer matrix, in the soluble form is transferred to water and the thickness of the membrane is reduced.The presence of protonated polyaniline is confirmed by the images (Figure 1) on which the membranes, tested for transport properties, under the impact of distilled water changed color from green to blue.
Calculations of the density of obtained membranes (Figure 3(c)) show that C membrane is characterized by the greatest density, which indicates its high compactness and low porosity.The densities of "0" and D membranes are similar and aligned with their mass per unit area and thickness.The lowest density and, consequently, the highest porosity are found in A membrane.In the case of B membrane, a slightly higher density is observed as compared to A membrane, which, however, does not alter the fact that it is also highly porous.
By studying sorption properties of all obtained membranes (Figure 3(d)), it must be pointed out that these are very high values in the range of 200∼500%.The lowest water sorption (191.83 ± 2.22%) characteristic is the one for C membrane, which according to previous studies is the thinnest and has the most compact structure.Similarly, D membrane is very similar with lower water sorption values (221.29 ± 2.00%) than the pure PAN membrane (352.69± 25.16%).D membrane, which has a thickness and density characteristics similar to A membrane, absorbs much less water than "0" membrane.This result could be due to the polyaniline coating of the membrane which in contact with water forms a hydrophilic film which protects the membrane against water.However, sorption of more than 220% is a high value, which may be due to the lack of continuity of the outer layer of the membrane.A membrane shows the best water sorption of 492.42 ± 4.22%, which is the result of a large thickness and low density of the membrane.Slightly lower sorption values are shown for B membrane.Analyzing the results, it should be noted that the addition of CSA to the coagulating bath (B and C membranes) which was aimed at protonating polyaniline in the membrane does not improve  but deteriorates the sorption properties, which may be related to the chemical structure of the acid used and its arrangement on the surface of the membrane.It is also very likely that a membrane obtained with a coating method (D membrane) behaves the same.
Sorption properties are closely related to the hydrophilic properties which can be tested by contact angle.Pal et al. [49] report that the static contact angle of unmodified polyacrylonitrile membrane was 82.6 ∘ .On the other hand, the research team of Tran et al. [13] reports that the contact angle of PAN decreases during plasma treatment from approx.60 ∘ to approx.20 ∘ .Examining the skin layer of the obtained membranes, it was observed that all of them show strongly hydrophilic properties as their contact angle is in the range of 11∼19 ∘ (Figure 4).Only subtle differences in the contact angle values were observed."0" membrane for which the contact angle was 13.33 ∘ was the reference for the others.The values of the contact angle for A and B membranes are similar but slightly lower than the reference membrane.The observed phenomenon may be due to the presence of nonprotonated PANI (A membrane) and in the case of B membrane the presence of CSA particles, which slightly hydrophobized the membrane surface.
For C and D membranes, the highest contact angle values were noted, which may be related to the protonated form if polyaniline was present at the membrane surface.The results obtained indicate that all of the obtained membranes are hydrophilic, so they will not be affected by fouling, and the preparation technique proposed in this paper greatly simplifies and shortens the process for their production.
Porosity calculation for the resulting membranes showed (Table 1 and Figure 3(e)) that A membrane is characterized by the highest porosity, which is confirmed by the results of sorption and contact angle tests.B membrane adopts values similar to A membrane.The membrane made of pure polyacrylonitrile is characterized by a porosity of 80.44∼1.16%.However, according to previous studies and the resulting consequences, the lowest porosity values (69.22 ± 0.25%) are characteristic for C membrane which has the lowest density and sorption properties.The membrane obtained by coating shows porosity values of approx.72%, which is consistent with the sorption properties.

Transport Properties and Pore
Sizes.An important parameter determining the transport properties of membranes is the specific permeate flux.The studies (Figure 5) show that C membrane has the best transport properties in the pressure range of 0.05∼0.2MPa, which may result from its low thickness in comparison to other membranes.SEM images of cross sections (Figure 6) confirm the assumptions, and C membrane shown on them is different from the others and is characterized by pores perpendicular to its surface.In the case of B membrane, a decrease in transport characteristics compared to C membrane is observed.Reports from the literature show that good transport properties are closely related to the high hydrophilicity of membranes [50], which was also achieved in our case."0" and A membranes are characterized by similar specific permeate flux values for all tested operating pressures; however, they are not correlated to the thickness and density.The confirmation of the results of transport properties studies is scanning electron microscope images in which the similarity in the structure of the support can be seen.From our own experience, we know that the arrangement of large chambers in the support observed in cross sections deteriorates transport properties of the obtained membranes.
The lowest specific permeate flux values and thus the worst transport properties are observed in D membrane, which may be due to the compact membrane structure and high density, low water sorption, and cross section morphology the same as in the case of "0" and A membranes International Journal of Polymer Science 7  (Figure 6).It is also supposed that the low specific permeate flux value is the result of hydrophobization on the surfaces of D membrane, which is observed in Figure 2 as a change in the membrane color into dark blue with a metallic sheen.
For studied membranes and working pressure of 0.1 MPa, the pore size was estimated (formula (3), Table 2) which impacts such variables as porosity, thickness, or specific permeate flux.Calculations show that the pure PAN membrane is composed of the smallest pores, namely, sized 7.57 nm.The pore size of the remaining membranes was estimated at 28∼40 nm.The calculations allowed concluding that the addition of PANI introduced into the membrane itself as well as on its surface significantly affects the morphology of the membrane structure.PAN/PANI membranes obtained from a uniform solution of both polymers have a similar pore size (approximately 39 nm) if they are coagulated in CSA solution (B and C membranes), and when coagulated in water (A membrane) the pore size is approx.33 nm.The result obtained for D membrane (∼28 nm), on the other hand, indicates that the process of coating the polyacrylonitrile membranes with protonated polyaniline solution has a significant impact on the estimated pore size.
Surface of cross sections examination of the membranes using scanning electron microscopy (Figure 6) allowed us to observe the impact of forming conditions on the external and internal structure, thickness, and porosity of the membranes.The SEM images show that asymmetric membranes are produced in the forming process.The skin layer of all studied membranes is compact with no visible pores and has a thickness of about 1 m.
The surface of the support of pure PAN membrane ("0" membrane) has large and numerous porous openings, which in the case of D membrane are clearly "sealed" with a polyaniline film.For A membrane, wavy support surface is visible even at low magnification.On the other hand, the cross sections of "0", A, and D membranes show the similarity in thickness of the skin layer (∼1 m) and in the structure of the support consisting, in both cases, of large, porous obliquely inclined chambers."0" and D membranes are similar in thickness, and A membrane is much thicker, which is consistent with the thickness measurement (Table 1).B membrane has a thickness similar to the pure polyacrylonitrile membrane.The cross section SEM images of B membrane show oval chambers in the area of the support, which distinguishes this membrane from the others.
A completely different picture is observed in the cross section of C membrane, which has a thicker carrier layer (∼1.5 m) with asymmetric pores, perpendicular to the surface, which are often reported in the literature [13,51].

The Degree of Dispersion of Polyaniline in Polyacrylonitrile Matrix.
The membranes were tested to determine the degree of dispersion of polyaniline and polyacrylonitrile in the resulting composite.To do this, infrared spectroscopy with surface mapping was used.Based on a distribution of characteristic bands of the individual components of the mixture on the membrane surface, we can specify their share in the total volume (Figure 7).Since each of the membranes was produced using another method, the comparison of the degree of PANI dispersion (which occurs sometimes in a protonated and at other times in nonprotonated form) in the PAN matrix is difficult.In Figure 7, the intensity of 2240 cm −1 band, characteristic of the -CN groups present in the polyacrylonitrile, was analyzed.The highest absorption for the studied wavelength was observed for A membrane, which indicates the PAN presence in both the skin layer (A-1) and the carrier layer (A-2) of the membrane obtained by coagulation in water.The lowest absorption, on the other hand, as supposed, was observed for the surface of PANI coated membrane (D membrane).The absorption spectra of B and C membranes are radically different from each other, although they should show many similarities, as a last step of forming for both of them was contact with an aqueous solution of camphorsulfonic acid.In the case of C membrane, the PAN-derived absorption band disappears, which may indicate the arrangement of protonated polyaniline on the surface of the membrane.However, in the case of B membrane, high intensity in 2240 cm −1 band is observed, which may indicate that the CSA used to protonate PANI penetrates into the membrane pores and that PAN is present on its surface.
In the case of A membrane (Figure 7, A-11 and A-22) and B membrane (Figure 7, B-11 and B-22) intense 803 cm −1 band of polyaniline is observed in the skin layer, and in the carrier layer PANI bands are less intense, though still present.Thus, mixing of the two polymers in a solution and their subsequent coagulation in water leads to formation of membranes in which nonprotonated polyaniline is present in the skin layer.The use of CSA for an additional rinse of already produced membranes, on the other hand, causes PANI protonation and the disappearance of 803 cm −1 band on the membrane surface.
Obtaining PAN/PANI membranes with the use of CSA solution as a coagulant (C-11 and C-22 membranes) leads to the formation of the surface on which a disappearance of characteristic nonprotonated polyaniline band with a wavelength of 803 cm −1 is observed.This effect is the result of washing out of polyaniline, which in the presence of camphorsulfonic acid transforms into a water-soluble salt.Another explanation of the observed phenomena can be "covering" of the membrane surface by CSA.D membranes though, which were coated with a PANI+CSA solution, do not show the presence of nonprotonated polyaniline, as assumed.
The surface mapping method (FTIR) showed that during the formation of membranes of a homogeneous PAN/PANI solution using the wet phase inversion method resulted in membrane components dispersion characteristic of the composite.

Sensitivity of PAN/PANI Membranes to pH Changes.
Polyaniline, due to its electronic structure, has interesting optical properties.As a result of a change in the electronic structure, the compound changes its optical properties in the visible light range.This is mainly manifested by a change in the color of polyaniline solution or film from dark blue to green.This change is caused by changes in the degree of oxidation of the polymer chain under the influence of acidic or alkaline compounds.Changing the degree of oxidation of the polymer chain causes not only a change in color but as proven by MacDiarmid and Epstein [52] it also changes the conformation of the polyaniline polymer chain.The phenomena of changing the chain conformation into a more straight (linear) one is caused by the oxidizing agent, an additive which is usually an acid providing protons (protonation phenomenon).This arrangement of the polymer in space facilitates the excitation of electrons and their movement along the polymer chain.Such an effect results in a rapid increase in the conductivity of polyaniline.This phenomenon can be observed in many ways.One of them is the measurement of conductivity of either solutions or films containing polyaniline.However, in composites or polymer blends, the measurement is hampered by a low polyaniline content, resulting in not exceeding the so-called percolation threshold.Then, continuous conductive phase paths are not formed in the composite structure.This effect is likely to be observed in the studied composite membranes.
In the case of investigated PAN/PANI membranes, it is possible to observe the change in their color with the naked eye. Figure 8 presents the membranes which were treated with dilute solutions of HCl and NH 4 OH at concentrations of 0.001, 0.005, 0.0001, 0.0005, and 0.00001 M, respectively.These studies were also made for higher concentrations.A membrane, which comprises nonprotonated polyaniline, 1 ppm of gaseous ammonia, with the detection time of approx. 1 minute.
As already mentioned, acids or bases not only change electrical properties polyaniline but also change its color.Organoleptic verification of the color is the to check whether the polymer is in the alkaline or acidic form, but despite its simplicity it is hardly measurable.It seems that the most appropriate measurements determining the color change are the measurements of the electron spectrum of the tested membranes in the visible light range.In the case of polyaniline, where the amount of possible electrons to be excited is high, the adsorption range of the radiation is shifted towards the lower energy waves, that is, towards near infrared.Therefore, in the study, we used a spectrophotometer with measurement range of 190 nm to 1100 nm.
Nonprotonated form of polyaniline has two characteristic peaks of its electron spectrum image, that is, at 330 nm and at approx.630 nm.They are responsible for the passage of electrons in quinone systems of polyaniline.Under the influence of protonating agent (e.g., acid), these bands are shifted towards lower excitation energy, that is, towards near infrared.In case of a good protonating medium, the Vis-NIR spectrum for polyaniline shows two peaks, that is, at approx.440 nm and at approx.850 nm.As a result of improved conformation of polyaniline into being more linear, the second peak (850 nm) is stretched to the near infrared wavelength range, often reaching its maximum at a wavelength of about 2700 nm.This picture of the spectrum indicates a very good chain conformation and a low excitation energy of valence electrons, which causes their high delocalization along the polymer chain.The macroscopic effect of this phenomenon, apart from the color change, is a very high increase in the conductivity of the polymer.The effect of such favorable change in the electronic structure of polyaniline is obtained by using the appropriate protonating acids.The best additives are acids of the sulfonic acid groups, including the best one, used by the authors: the camphorsulfonic acid (CSA) [52].
Spectroscopic UV-Vis studies were performed for all samples of membranes prepared using methods described in the paper (Figure 9).
For A membranes, polyaniline is in the base form (nonprotonated, blue); therefore its sensitivity to an inorganic acid (HCl) was tested.Various concentrations were used and for all tested samples spectrum was obtained on a UV-Vis spectrophotometer.For all concentrations of acid (HCl), along with the observed visual color change, diametrically different picture of the electron spectrum was observed.It was shown that the use of solutions containing very dilute hydrochloric acid (i.e., at a concentration of 0.001 M) changes the polyaniline form from alkaline (blue) into acidic (green), as seen in the Vis-NIR spectra.Increasing the concentration of acid does not cause further specific changes in the observed spectrum.The studies have indicated very high sensitivity of the tested A membrane to acid content in the filtered solution.In addition, the increase in the specific surface of the membranes, as demonstrated in other studies, causes a significant increase in their sensitivity to acids.
In the process of forming PAN/PANI membranes, DMF was used as a common solvent for both polymers used.The solvent dissolves only the nonprotonated (blue, nonconductive) form of polyaniline.Three different ways of polyaniline protonation were proposed in order to impart the sensory properties for the detection of basic compounds by the membranes.The first method was based on coagulation of the membrane in water and then washing it with the acid solution, CSA (B membrane); the second was based on coagulation of the membrane in the acid solution, CSA (C membrane).In the third method, the application of dried PAN membranes with previously protonated polyaniline solution was used (D membranes).Thus prepared membranes (B, C, and D), comprising polyaniline in the acidic (conductive) form, were subject to the base solutions (NH 4 OH) at different concentrations.
In all cases, changes in the electron spectrum image were visible already when using the minimum concentration of ammonia (i.e., 0.001 M).However, the obtained spectra are not unambiguous.The best effect of changes in PANI properties from acidic to alkaline was obtained for membranes coated with polyaniline solution (D membrane).In this case, the protonation reaction and simultaneous color change take place under the influence of the minimum ammonia concentration.The observed changes indicate high presence of the conductive polymer on the membrane surface, which results in its easy protonation and deprotonation.
Similar results are obtained for B membranes, which were coagulated in water and then rinsed with CSA.In the process of their formation, the polyaniline present on the membrane surface reacted with the acid (CSA), transforming into the conductive form (green). Therefore, as a result of even small amounts of deprotonation agent, good penetration of the membrane surface and polyaniline deprotonation occur.Analyzing the exact electronic spectra of B membranes, low intensity bands shifting to the near infrared were observed.It can, therefore, be concluded that, during washing the membranes with the acid (CSA), it penetrates into the structure of the PANI polymer matrix and the acid stuck in the polymer blocks the base (ammonia).
In the case of C membranes, PANI deprotonation reaction does not occur completely.In the UV-Vis spectra of membranes treated with ammonia, we can see that the polyaniline still remains largely in the protonated form.This is probably due to the fact that, during membrane formation, at the stage of coagulation with acid (CSA), part of the polyaniline is protonated and is then occluded in the polyacrylonitrile matrix.This is partly supported by studies using FTIR spectroscopy.PANI blocked in this way has no direct contact with deprotonating agent, which is ammonia, and still remains in the doped form.This phenomenon is confirmed by the spectra of membranes for higher concentrations of ammonia.Characteristic bands shifting to the near infrared indicate the presence of the protonated form of polyaniline in the membranes.

Conclusion
The paper presents the research on the method of obtaining composite polyacrylonitrile membranes doped with polyaniline using phase inversion method.The solvent proposed for preparing the solution was N,N-dimethylformamide, common to both polymers.To protonate PANI, camphorsulfonic acid was used.Membranes were formed by two methods.The first method was to dissolve both polymers (PAN and PANI) and then coagulating in water or in an aqueous solution of camphorsulfonic acid (CSA).The second method consisted in forming the membranes from polyacrylonitrile solution and coagulation in water, followed by coating of CSA-protonated polyaniline with a solution of 2,2,2-trifluoroethanol (TFE).The membranes obtained as a result of the experiment were tested for physical and chemical properties, transport properties (ultrafiltration cell), surface morphology (SEM), degree of dispersion of composite components (FTIR microspectroscopy), and sensitivity to the presence of dilute acids and bases (UV-Vis spectrophotometry).
The use of a homogeneous PAN/PANI solution allows simple and single-step formation of composite membranes by the wet phase inversion method.Polyacrylonitrile doped with polyaniline has an important impact on the process of forming the membrane and thus on the physicochemical and transport properties.
The addition of nonprotonated polyaniline to PAN membranes (A membrane) increases the mass per unit area, thickness, density, porosity, and water sorption.It has, however, no significant effect on the transport properties of the resulting membranes, as confirmed by SEM images.A membrane is sensitive to the presence of a dilute inorganic acid (HCl) already at a concentration of 0.1 ppm, despite the fact that the acid is not a good protonating agent.
Protonating of PAN/PANI membranes in the final stage of formation using CSA (B membrane) causes a decrease in the thickness, porosity, and water sorption, with simultaneous increase in density and improvement in the transport properties of these membranes.B membrane, unlike the remaining membranes, can be operated alternately in acidic and basic environment, and its sensitivity is 0.01 ppm.
On the other hand, the addition of CSA to the coagulating bath (C membrane) results in a significant reduction in thickness, water sorption, and porosity of the membranes.The advantage of C membrane is low density, which undoubtedly influences the high specific permeate flux values.And the sensory properties demonstrated the suitability of this membrane in alkali environment (0.01 ppm NH 4 OH).The structure of C membrane observed by a scanning electron microscope indicates that the cross section of the membrane is characteristic for conventional ultrafiltration membranes.
D membrane, on the other hand, has properties similar to pure PAN membranes ("0" membrane).It differs in definitely the worst transport properties of all the membranes.These results may be due to the hydrophobization of the surfaces during distilled water flow, which is observed by the naked eye by color change into dark blue.Composite PAN/PANI membranes manufactured by coating are characterized by the highest content of polyaniline on the surface of both the skin layer and the carrier layer, and UV-Vis spectra show the best protonation and sensitivity to 0.01 ppm of NH 4 OH.The big disadvantage of these membranes, however, is the instability of the PANI connection to the polyacrylonitrile matrix.
The conducted studies show that the membranes obtained in the experiment are characterized by a very low contact angle; that is, they are hydrophilic and are not charged electrostatically, which reduces the risk of adverse fouling phenomenon.Furthermore, when choosing the method of membrane forming, we can obtain asymmetric membranes with good physical and chemical and transport properties or ones characterized by high sensitivity to the pH of the solution.
The obtained membranes can be used as presence sensors of ammonia or dilute acids in landfills, in industrial waste water discharging into rivers, in plants producing explosives, and in public places such as schools, kindergartens, and hospitals.They can also be used as elements of chemical emergency service clothing.In addition, they could be used as presence sensors of ammonia in hygiene materials for children and adults.

Figure 2 :
Figure 2: Images of PAN/PANI membrane surfaces: (a) skin layer, (b) carrier layer, and (c) skin layer after transport properties testing.

)Figure 3 :
Figure 3: The effect of membrane forming on the thickness, mass per unit area, density, water sorption, and porosity.

Figure 4 :
Figure 4: The impact of membrane formation on the contact angle values.

Figure 7 :
Figure 7: Distribution of FTIR absorption bands characteristic for PAN at 2240 cm −1 (1: skin layer, 2: carrier layer) and for PANI at 803 cm −1 (11: skin layer, 22: carrier layer).Red indicates very high absorption in the studied range; blue means no absorption.

Figure 8 :Figure 9 :
Figure 8: Effect of pH of the solution on the coloration of the PAN/PANI membranes.

Table 1 :
Properties of the obtained membranes.Membrane Thickness [m] Mass per unit area [g/cm 2 ]

Table 2 :
Permeate flux and pore sizes of membranes.