Introduction

Polyaniline, the topic of interest has a historical background dating back to the 1830s. In 1834, it was F. Ferdinand Runge who discovered the oxidative polymerization of aniline for the first time [1], and in 1862, the electrochemical oxidation of aniline was demonstrated by Henry Lethe [2]. Several reactions with aniline were performed by scientists in the mid-eighteenth century, and polyaniline was known with different names such as krystalline, kyanol, aniline, benzidam and aniline black. [3]. Polyacetylene was found to be conducting in the mid–late 1970s by the scientists MacDiarmid, Shirakawa and Heeger, for which they were awarded the Nobel Prize in Chemistry in 2000 [4,5,6]. The puzzling polymer of the eighteenth century had a turning point after this discovery. Polyaniline was found to possess high conductivity in addition to a few other intrinsically conducting polymers (ICPs) such as polyacetylene, polypyrrole, polythiophene, poly(p-phenylenevinylene) and poly(p-phenylene) as shown in Fig. 1 [7]. Conjugated π electron system in their structure makes the polymers conducting. During the 1980s, the main focus of the researchers was to synthesize, characterize and study the electrical conductivity of polyaniline. But now the scientific world is interested in utilizing this material in a wide variety of applications. As we have stepped into the twenty-first century and now with contemporary science and technology, polyaniline, substituted polyanilines and their blends and composites are renowned for their versatility.

Fig. 1
figure 1

Structure of a number of intrinsically conducting polymers (ICPs) [7]

Polyaniline: superiority of polyaniline over other conducting polymers

Among all the other polymers, polyaniline is of great interest among the researchers worldwide. Based on its oxidation level, polyaniline exists in three different forms as the fully oxidized pernigraniline, the half-oxidized emeraldine and the fully reduced leucoemeraldine base [8,9,10]. Of the three, emeraldine base is known to be the most stable, non-toxic and conductive form of polyaniline (PANI) [8, 9, 11].

PANI is found to be thermally stable and known for its processability and conductivity. In addition to these properties, the aniline monomer is inexpensive and easily synthesized in various forms such as powders, thin films and pellets, its properties can readily be tuned, and it has many possible applications. These qualities of PANI make it superior to other ICPs [12].

Polyaniline: properties and applications

The commercial production of polyaniline is simple and cost-effective when compared to the complexities of its properties and its applications in diverse fields such as sensors, supercapacitors, solar cells, photocatalytic degradation and wastewater treatment, and hence the cost–benefit ratio is very high. PANI is extensively researched due to its excellent environmental stability, fascinating electroactivity and interesting chemical redox property. These features of PANI make it employed in multiple areas such as protective coatings, sensors, superhydrophobic/hydrophilic surfaces, actuators and biological fields [13,14,15,16,17]. The ingenious PANI is known for its extremely high stability, unique electronic and optical properties [18,19,20] and excellent high oxygen over nitrogen separation factor [21].

The unique properties of polyaniline make it applicable in diverse fields. The electrical conductivity of PANI renders help in the field of a conductive adhesive, conductive ink, conductive paint [22,23,24,25,26], antistatic textile [27] and electrostatic discharge materials [28,29,30]. In the presence of an electric field, viscosity in solution increases in PANI which makes it useful as an electrorheological material [31,32,33,34,35]. PANI is applied in sensors, detectors and indicators as it is capable of changing the electrical conductivity and colour when exposed to acidic, basic and some neutral vapours or liquids [36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53].

PANI has potential applications in the field of supercapacitors and energy storage devices as it shows very high capacitance values [54,55,56,57]. PANI is used to shield electromagnetic interference as it is utilized to absorb and reflect electromagnetic radiation [58,59,60]. As PANI can collect and transfer energy, it also finds use as an electrode in rechargeable batteries, in electrochromic display devices, in photoelectric devices, in photovoltaic cells and transistors, and as electromembranes, etc. [61,62,63,64,65,66,67,68,69]. PANI is also attracted by polymer chemists in the fascinating field of organic or polymer light-emitting diodes on account of its property of emitting colour under various excitations [70, 71]. These numerous application possibilities of polyaniline enable us to understand the scope of it to explore new applications.

Polyaniline blends and composites

When the talented polymer, polyaniline could find extraordinary applications in almost every field of science, the next subject of interest to the researchers was aimed at the application possibilities of polyaniline blends and composites. Polymers were regarded as the best host matrices for composite materials [72]. On blending the polymer with the nanoparticles, several physiochemical properties such as enhanced electrical conductivity, increased mechanical and magnetic properties were identified. Furthermore, the researchers could find that the material was light in weight and the processability of the polymer was also found to be cost-effective [73]. Literature also reports that even better replicability of the form was observed on blending the polymer with the composite materials [74, 75]. Reports also prove that the presence of PANI chains in their matrices has a great impact on the improvement in the physico-chemical properties of the nanocomposites. Physico-chemical properties include the processability, chemical stability and thermal, magnetic, optical, catalytic, and electronic properties of the nanocomposite [76].

Wang et al. [77] demonstrated ferrite-grafted polyaniline nanofibres as electromagnetic shielding materials. Wang et al. [78] reviewed the graphene-based polyaniline nanocomposites and found an enormous number of applications in the field of supercapacitors, sensing platforms, fuel cells, solar cells, electrochromic devices, lithium-ion batteries, etc. Kumar et al. [79] synthesized and characterized polyaniline membranes with secondary amine additive containing N,N′-dimethyl propylene urea and offered a new path for hydrogen fuel cell application. El-Sayed et al. [80] synthesized polyaniline/tosyl cellulose stearate composites in 2018 and found them to be potentially useful as semiconducting materials. Kumar et al. [81] synthesized polyaniline-filled phenol divinyl benzene composite for potential lightning strike protection application.

Reddy et al. [82] synthesized polyaniline/TiO2 nanocomposite catalysts using chemical oxidative polymerization method for the application in wastewater treatment. The authors observed that these catalysts exhibited higher photocatalytic activity for the degradation of organic pollutants like rhodamine B, methylene blue and phenol than the unmodified TiO2 nanoparticles, which is attributed to the sensitizing effect of polyaniline. Anirudhan et al. [83] fabricated a novel zinc oxide nanorod-incorporated carboxylic graphene/polyaniline composite for the effective removal and subsequent photodegradation of the pesticide diuron from aqueous solutions. Dakshayini et al. [84] reviewed conducting polymer polyaniline and metal oxide-based hybrids for application in amperometric sensors and biosensors.

It is important to note that polyaniline and their blends and composites have placed their significant role not only in electronic devices but also in biological applications. Owing to their outstanding biocompatibility and eco-friendly nature, the biodegradable polymers have become more essential in almost all areas such as tissue engineering, packaging materials, sensors, water decontamination, disinfection, artificial skin and electrically conducting materials [85]. Electrical signal towards the cells is rendered due to the conducting nature of PANI.

Poyraz et al. [86] studied the PANI nanofibre/silver nanoparticle composite as an antibacterial agent. Shahadat et al. [87] presented a review on polyaniline-grafted biodegradable nanocomposite where a biodegradable content of cellulose, chitin, chitosan, etc., is incorporated in the PANI matrix. Pelin et al. [88] investigated the biomedical applications of lincomycin-embedded PANI-based coatings in 2018. Polyaniline and its drug composites with neomycin, trimethoprim and streptomycin were synthesized by oxidative polymerization and were probed to have antituberculosis activity by G. Kashyap and his team in 2019 [89].

PANI is also found to be insoluble in most of the solvents, infusibles and hygroscopic substances and has lower electrical conductivity than metals. Literature suggests that these properties of PANI limit its applications [90]. The rigid backbone of PANI is responsible for its poor solubility [91, 92]. Another drawback is the presence of a strong conjugated π electron system. Thus, to widen the possible applications of polyaniline, researchers have moved a step ahead synthesizing and characterizing the derivatives of polyaniline.

Substituted polyanilines/blends/composites

Owing to the limitations of polyanilines, researchers have turned their attention towards the substituted polyanilines around the 1990s. People could observe that the processability was enhanced by modifying the structure of the monomer [93, 94], by using a soluble precursor [95] and by developing a copolymer or composite [96,97,98,99]. Doped polyaniline and substituted derivatives of polyaniline are employed to enhance the processability and solubility of PANI. Introducing substituted groups on the benzene rings and amino N of PANI leads to the substituted derivatives of PANI. The most intensely investigated substituents are the electron-donating substituents and hydrophilic substituents. Substituted polyanilines have lower conductivity than polyanilines.

Substitution of electron-donating groups such as methyl, ethyl, methoxy, ethoxy and amino, on the hydrogen of the benzene ring of PANI reduces the rigidity and the interchain force in such a way that the solubility of the polymer is enhanced. Sharma and Kumar [100] studied the solvatochromic behaviour of polyanilines and alkyl-substituted polyanilines in different solvents such as propionic acid, acetic acid, formic acid and N-methyl-2-pyrrolidone. The authors suggested that the hypsochromic shifts and bathochromic shifts in the UV–visible spectral data depend not only on the solvents but depend greatly on the substituents in polyaniline. Hypsochromic shift followed the order as polyaniline < poly(o-toluidine) < poly(o-ethylaniline) < poly(o-propylaniline). Thus, Sharma and Kumar concluded that the hypsochromic shift increases as the alkyl substituent becomes bulky. The hydrophilic groups such as sulphonic group, carboxyl group and hydroxyl group when substituted on the benzene ring of PANI makes them highly soluble in water. These groups doped with imine N in the primary chain, such as sulphonic group, can form five-membered ring or six-membered ring in the molecular chain, thereby enhancing their thermal stability [101, 102].

Different homopolymers and copolymers prepared from anilines substituted with electron-withdrawing groups have been reported. Halogen (fluorine, chlorine, bromine and iodine)-substituted polyanilines are of great interest to the authors. Gok and Yavuz synthesized poly(2-halogenanilines) and its composites with Al2O3, SiO2 and red mud. Chloro-substituted polyaniline/SiO2 composite is found to have greater conductivity compared to the other halogen composites [103]. These distinct substituents attached to the aromatic ring of polyaniline can change their conductivity. The nature and substituent positions on the ring affect both the conjugation length and redox potential [104]. Reports suggest that the bromo-substituted polyaniline is an antibacterial agent which is found to be efficient and environmentally friendly [105]. A wide variety of applications were explored in substituted polyanilines only in the recent past.

In recent years, substituted polyanilines, their blends and composites have paved a new way in the field of conducting polymers. This review aims at presenting the novel and unique applications of substituted polyanilines, their blends and composites in the past 5 years. The increased processability and solubility of substituted derivatives of polyaniline make them potentially useful in various fields such as sensors, supercapacitors, electrochromic display devices, batteries, semiconductors, solar cells, light-emitting diodes and corrosion protection. In addition to this, the biological applications of substituted polyanilines provide a promising platform to the recent researches. These materials are also useful for their biomedical applications including antimicrobial performance, antifouling performance, biosensors, etc.

Synthesis and characterization of substituted polyanilines and their blends and composites

A summary of the reported literature in substituted polyanilines and their blends and composites in the recent past is presented in Table 1.

Table 1 Synthesis and characterization of substituted polyanilines and their blends and composites reported in the literature

Applications of substituted polyanilines and their blends and composites

Sensors

A sensor is a device which detects a physical quantity and records responses and converts them into a signal which can be read by an observer or by an instrument. The derivatives of polyaniline along with their blends and composites have found an enormous number of applications in the field of sensors. When conducting polymers were used as supporting materials to prepare biosensors, fast response times and high level of storage and operational stability were observed by the authors [115]. Composites were prepared by including a rigid conductive polymer (such as PANI) into a flexible matrix (such as chitosan) which merges the matrix’s good processability with the conductive polymer’s electrical conductivity [116].

In 2017, the films of substituted polyaniline/chitosan composites were electrochemically synthesized in 0.10 M H2SO4 using cyclic voltammetric technique by Yavuz et al. [117]. Different chitosan composites were prepared with various substituents like N-methylaniline, N-ethylaniline and 2-ethylaniline. Porous surfaces were observed in the SEM images of substituted polyaniline/chitosan/H2SO4 composites which helped to facilitate the immobilization of biomolecules. The enzyme glucose oxidase (GOD) was incorporated onto the composites. The response of the GOD enzyme electrode to glucose was investigated by amperometric technique. The response current of poly(N-methylaniline)/chitosan/H2SO4/GOD increases linearly with glucose concentration from 0.06 to 1.83 Mm with a response time of 70 s as shown in Fig. 2. Yavuz and his co-workers could find that poly(N-methylaniline)/chitosan/H2SO4/GOD composite biosensor had a bigger linear range and higher sensitivity than free enzyme, other substituted polyaniline/chitosan/GOD and chitosan/GOD biosensors.

Fig. 2
figure 2

Changes in the response of free enzyme, chitosan/GOD, and sPANI/chitosan/H2SO4/GOD enzyme electrodes with glucose concentration (at 0.6 V in 0.10 M phosphate buffer solution (pH 7.4), 5 mg/mL GOD, 25 °C) [117]

Poly(N-methylaniline)/chitosan/H2SO4/GOD bioelectrode film onto ITO electrode was confirmed by the SEM and AFM studies which showed a more porous morphology and rough surface topology, respectively.

The biocompatibility of poly(N-methylaniline)/chitosan/H2SO4 offers a new path for glucose sensing applications.

The current research on H2O2 detection focuses primarily on electrode changes to reduce overpotential and boost electron transfer kinetics, which would influence sensing efficiency [118]. A biosensor has been developed by M. Baghayeri and team in 2014 to determine hydrogen peroxide [119]. They made use of emulsion polymerization to synthesize the poly(p-phenylenediamine)–Fe3O4 nanocomposite. Owing to the conducting nature of the polymer and the magnetic nature of Fe3O4 nanoparticles, the bioelectrochemical behaviour and magnetic behaviour of the composite were studied by the authors. The glassy carbon electrode surface was deposited with poly(p-phenylenediamine)–Fe3O4 nanocomposite followed by the immobilization of heme proteins on the composite surface. The authors remarked that the Hb-poly(p-phenylenediamine)–Fe3O4 nanocomposite modified glassy carbon electrode exhibited good electrocatalytical response and the constructed biosensor responded with good reproducibility and high sensitivity.

Pandule et al. [120] synthesized methane sulphonic acid-doped poly(2-chloroaniline) and the authors investigated its ammonia gas-sensing applications. They could observe that the electrical conductivity of the polymer remarkably enhanced with increased temperature from the electron hopping mechanism. The authors suggest poly(2-chloroaniline) as a chemical gas sensor material from the sensing responses of poly(2-chloroaniline) against different concentrations of ammonia as shown in Fig. 3.

Fig. 3
figure 3

Response of poly(2-chloroaniline) against different ammonia concentrations [120]

Pandule et al. [121] also have studied the ammonia gas-sensing applications of poly(2-chloroaniline) with a variety of inorganic acid dopants such as HCl, H2SO4 and HClO4. In response to their previous study, they could observe the linear increase in electrical conductivity with increase in temperature and the electrical conductivity was found to be higher with the inorganic acid dopant HClO4 and lesser with HCl. The resistance of poly(2-chloroaniline) increased linearly with increased concentrations of ammonia.

Rajabi and Noroozifar [122] offered a new path for the determination of uric acid and folic acid in urine and human serum, respectively. The authors were successful in fabricating an electrochemical sensor from poly(2- methoxyaniline) nanostructures. The enhanced electrochemical performance, low cost, ease of preparation, high sensitivity, long-time stability and good reproducibility helped the polymer to perform dual functions.

Tian in 2017 studied the gas-sensing properties of sulphur dioxide using the methoxy-substituted polyaniline, and the authors studied that at low concentrations of sulphur dioxide, the poly(2-methoxyaniline) was used as a sensor to determine the concentrations and at high concentrations of sulphur dioxide, poly(2-methoxyaniline) was used as a filter to adsorb the toxic SO2 from the environment [123].

A sensitive immunosensor for cancer diagnosis was fabricated by Wang et al. [124] by using the gold-decorated polyaniline derivatives. They synthesized Au-poly(o-aminophenol) and Au-poly(p-phenylenediamine). Electrical conductivity was observed in the composite due to the presence of gold nanoparticles. These composites played an important role in the electrochemical detection of three biomarkers of lung cancer, namely carcinoembryonic antigen (CEA), cytokeratin 19 fragment antigen 21-1 (CYFRA21-1) and neuron-specific enolase (NSE). These composites proved to be another feasible strategy to solve the current problems of lung cancer.

A soft biocompatible actuator was made available by Kongkaew et al. [125] by blending poly(2-chloroaniline) with pectin hydrogel. The electromechanical properties of the blend were investigated. The storage modulus sensitivity of the blend increased until the concentration of poly(2-chloroaniline) was 0.10% v/v and decreased above 0.10% v/v. The deflection responses in the blend in the presence and absence of the electric field strengths were examined. The free lower end of the hydrogel is seen to deflect towards the anode electrode in the presence of the applied electric field as shown in Fig. 4.

Fig. 4
figure 4

Bending of pectin hydrogel and 0.10%v/v P2ClAn/pectin hydrogel blend at electric field strengths of 0 and 500 V/mm [125]

Light-emitting diodes

Light-emitting diodes are the electrical components which emit light when current passes through it. LEDs work when the electrons in the semiconductor recombine with the electron holes releasing energy in the form of photons. Linganathan et al. [126] investigated the photoconductivity of poly(2-chloroaniline)/copper oxide nanocomposite and the composite proved to be a potentially useful candidate in the field of light-emitting diodes. The composite was thermally stable with an increased weight percentage of copper oxide nanoparticles. The conductivity of the nanocomposite was studied both in the presence and absence of light. Enhanced conductivity of 2.05 × 10−4 S cm−1 was observed by the authors in the presence of light with a 25% weight percentage of copper oxide.

Corrosion protection

One of the most important applications of conducting polymer is the protection of metals against corrosion. The function of a conductive polymer layer is to avoid contact with a corrosive setting and to decrease the rate of corrosion [127]. Metallic surfaces have been coated with conductive polymers to safeguard metals such as carbon steel [128,129,130,131], aluminium [132, 133] and stainless steel [134, 135] from corrosion. Chloro-substituted polyaniline has an excellent anticorrosion ability as reported by Jafari et al. [136]. The electrochemically synthesized poly(2-chloroaniline) coated on an aluminium alloy 3105 proved to be a protective layer in 3.5% NaCl solution. The AFM images conveyed the fact that poly(2-chloroaniline) was fixed to the aluminium alloy 3105 and the protection efficiency increased with an increase in current density to 15 mA cm−2 as shown in Fig. 5. The corrosion rate was 20 times lower for the aluminium alloy 3105 when compared with the poly(2-chloroaniline) coating on aluminium alloy which was found to be 4.1 × 10−4 mm year−1 and promised to be a potential candidate against corrosion protection.

Fig. 5
figure 5

Atomic force micrographs of pre-treated AA3105 after corrosion (a), and PClAni coatings grown by an applied current density of 15 mA cm−2 after corrosion (b) [136]

Cai et al. [137] investigated the anticorrosion properties of dedoped bromo-substituted epoxy resin composite coating by electrochemical impedance spectroscopy. Even after 100 days of immersion in 12.0 wt% NaCl solution, these coatings proved to have excellent protection. The composite coating is found to have good corrosion protection properties owing to the excellent redox ability, stronger adhesion strengths and enhanced hydrophobic properties of the dedoped bromo-substituted polyaniline. Authors concluded that greater the content of bromine, greater is the anticorrosion property. The corrosion inhibition efficiency of the copolymer poly(aniline-co-orthotoluidine) on the carbon steel has been reported, and it shows enhanced performance at highest rotation rate [138].

Batteries

Substituted polyanilines find potential applications in the field of rechargeable batteries, i.e. lithium-ion batteries. The use of these materials in batteries has not been explored much. In 2019, Vani and Jhancy Mary explored the use of lithium-ion batteries by synthesizing poly(2-chloroanilines) along with the starch and silk blends via interfacial polymerization [139].

Semiconductors

Substituted polyanilines due to enhanced solubility and processability have decreased electrical conductivity. So their conductivities lie between the metal and the insulator showing a wide range of applications as semiconductors. Mahudeswaran and his co-workers in 2016 [140] were able to synthesize a copolymer poly(aniline-co-o-bromoaniline), and the absorption, surface morphology, crystallinity and conductivity were studied. The electrical conductivity of the copolymer was reported to be 10−5 S cm−1 which is in the semiconducting range. The conventional inorganic semiconductors can be replaced by these organic semiconductors in optoelectronic devices.

The authors also synthesized the copolymer poly(aniline-co-o-ethylaniline) in 2015 [141]. Amorphous, spherical-shaped copolymer showed excellent conductivity in the semiconducting range of 1.143 × 10−3 S cm−1. This novel copolymer would be made good use in the area of organic semiconductors. They also observed that as the monomer concentration increased, the conductivity decreased to 6.39 × 10−5 S cm−1, and this may be attributed mainly due to the ethyl group which hindered the charge transfer process.

In addition to this, a copolymer and its nanocomposite, poly(2-methoxyaniline-co-2-chloroaniline)/ferric oxide nanocomposite, were synthesized by chemical oxidative polymerization in 2017 by Lakshmi and Jhancy Mary [142], and the composite proved to have higher thermal stability and greater electrical conductivity than the copolymer. This composite finds good application in the field of semiconductors as the electrical conductivity of the composite measured is 3.36 × 10−4 S cm−1 which is in the semiconducting range.

Linganathan et al. [143] synthesized poly(2-chloroaniline)/DBSA/silk blend by in situ chemical oxidative polymerization and reported that the polymer and blends are semiconducting and presented that poly(2-chloroaniline)/DBSA has increased conductivity than the poly(2-chloroaniline)/DBSA/silk blend and poly(2-chloroaniline)/silk blend. Among the silk blends, conductivity is greater in the blend with DBSA.

Lakshmi et al. [144] were able to prepare a blend, poly(2-chloroaniline-co-2-methoxy aniline)-blend-sodium alginate, by chemical oxidative polymerization using HCl as the dopant and ammonium persulphate as the oxidant which had a conductivity of 2.15 × 10−4 S cm−1. Thermal and electrical properties analysed were better in the case of copolymer blend than the pure copolymer.

In 2018, the author also studied the electrical conductivity of the same copolymer, poly(2-chloroaniline-co-2-methoxy aniline), by varying the composite and the blend. The composite material used was copper oxide nanoparticles, and the blend material used was polypropylene glycol. The copolymer composite and blend had better thermal stability and electrical conductivity than the pure copolymer. They estimated the electrical conductivity in the range of 10−5 S cm−1 [145].

Supercapacitors

The supercapacitors have drawn increasing attention as a novel energy storage device due to some prospective applications in hybrid electric vehicles, home appliances and mobile communications [146,147,148]. Zhang et al. [149] studied the nucleophilic ring-opening reaction by the bonding of aniline to graphene oxide along with the partial reduction in graphene oxide. The oxidative polymerization of N-phenyl glycine monomer and reduced graphene oxide modified with aniline through covalent grafting gave rise to the N-substituted carboxyl polyaniline covalent grafting-modified graphene oxide hybrid. The hybrid proved to be a nanocomposite since the studies determined the nanorod structure with the diameter of 40–50 nm and a length of tens to hundreds of nanometres.

Poly(2-chloroaniline) and its blend with silk were reported in 2014 by Linganathan et al. [143]. They studied the effect of the dodecylbenzene sulphonic acid on the polymer and blends. Activation energy of 0.1 eV was reported for the polymer and the blends. They could observe a remarkably higher dielectric constant for the poly(2-chloroaniline)/DBSA/silk blend than the polymer poly(2-chloroaniline)/DBSA. They suggested the application of this poly(2-chloroaniline)/DBSA/silk blend in the energy storage devices.

Sevil et al. [150] synthesized poly(2-chloroaniline)/polyaniline copolymer and the copolymer blend with polyvinyl chloride which was found to have enhanced conductivity in the range of 10−5 S cm−1 when the blends were exposed to gamma rays.

Electrochromic display devices

Electrochromism is the phenomenon in which there is a change in colour when the potential is varied. An electrochromic material is one in which a reversible colour change occurs upon oxidation (loss of electrons) or reduction (gain of electrons) [151, 152]. Electrochromic strips as battery state-of-charge indicators, anti-glare car rear-view mirrors and electrochromic sunglasses were employed for the materialistic applications of electrochromic devices [153,154,155]. Shahhosseini et al. [156] synthesized a conducting polymer comprised of ethylenedioxythiophene and nitroaniline as the monomer. The conducting polymer and the polymer composite with graphene were used for the fabrication of dye-sensitized solar cells substituting Pt counter electrode. At reductive potentials, the polymer exhibited a colour change from yellow to red and a colour change from green to dark colour was observed at oxidative potentials. This indicated that the corresponding polymer is a suitable material for making the electrochromic devices.

Saharan et al. [157] studied the applications of poly(2-methoxyaniline) in electrochromic display devices. They synthesized the polymer and also the copolymer poly(2-methoxyaniline-co-3-aminobenzenesulphonic acid) by electrochemical and chemical oxidative polymerization. The switching behaviour of the samples was observed from cyclic voltammogram and chronoamperometric studies. The switching stability of the electrochromic devices was determined from the switching times between their oxidized and reduced states. They also observed the colour change at varying potentials as shown in Fig. 6 and proved to pave the way in the field of electrochromic devices.

Fig. 6
figure 6

Electrochromic devices of poly(o-methoxy aniline) [157]

Solar cells

Solar cell is an electrical device that converts light energy into electricity. Substituted polyaniline took the place of Pt counter electrode in dye-sensitized solar cells. Shahhosseini et al. [156] synthesized an efficient material for replacing the Pt counter electrode in dye-sensitized solar cells (DSSC) by using a new monomer 4-(2,3-dihydrothieno[3,4-6][1,4][dioxin-5-yl) aniline. This novel monomer was prepared from para-nitroaniline and ethylene dioxythiophene. The conducting polymer and its composite with graphene were electrochemically synthesized and they were used for the fabrication of DSSC owing to the high electrocatalytic activity of aniline and high conductivity and chemical stability of EDOT giving a 21% greater energy conversion efficiency when compared to the Pt counter electrode.

Water decontamination

Many countries have contaminated water sources. In water treatments, chitosan as a natural polyelectrolyte is screened as a coagulant. Furthermore, chitosan is responsible for the chelation of many transition metal ions [158]. Abd El-Salam et al. [159] found a solution for the contamination of the environment by heavy metals. They were able to remove divalent metal ions like Cr, Fe, Mn, Cu and Zn from contaminated groundwater samples by grafting chitosan onto poly-2-hydroxy aniline. Authors studied the concentration effect of 2-hydroxyaniline, APS and acetic acid and also the effect of temperature on grafting copolymerization. 21.1116 kJ mol−1 was the observed activation energy of the copolymerization reaction. Thermodynamically, the values of ΔH* and ΔS* were found to be 22.8630 kJ mol−1 and − 109.4290 J mol−1 K−1, respectively, from the slope and intercept. For the removal of heavy metal ions, Langmuir and Freundlich adsorption studies were carried out. All the studied metal ions except Mn(II) showed greater monolayer adsorption capacity for poly(2-hydroxyaniline) and chitosan-grafted-poly(2-hydroxyaniline) when compared to chitosan. Monolayer adsorption capacity is greater for the removal of Fe metal ion in case of the graft which is about 10,000 (mg/g).

Biological applications of substituted polyanilines

Antibacterial activity

Polyaniline exhibits biocidal property due to its redox activity, charge transfer capacity and the existence of N+ groups in its chain [160,161,162]. Conductive PANI can communicate with the negatively charged bacterial cell wall electrostatically and trigger oxidative stress in bacteria, leading to bacterial cell disturbance and some degree of gene mutation in the bacteria. All of these eventually lead to bacteria’s death [161, 163, 164]. In 2013, Al Hussaini and Eldars [165] synthesized a thermally stable copolymer and nanocomposite, poly(aniline-co-o-phenylenediamine)/bentonite nanocomposite. The authors scrutinized the antibacterial efficiency of the composite with gram-positive bacteria Staphylococcus aureus and Staphylococcus epidermidis and gram-negative bacteria Escherichia coli and Pseudomonas aeruginosa. Reasonably good antibacterial activity was witnessed with the composite with a higher concentration of nanoclay.

Nirmala Kumari Jangid and team in 2014 evaluated the antibacterial and antifungal activities of the dye substituted polyanilines. The polyanilines substituted with dyes acriflavine, rhodamine B and neutral red dye were found to have good conductivity in the range of 10−3–10−2 S cm−1. The dyes exhibited better antibacterial properties and antifungal properties when examined against the bacteria Escherichia coli (MTCC 442), Pseudomonas aeurginosa (MTCC 441), Staphylococcus aureus (MTCC 96) and Staphylococcus pyogenus (MTCC 443), and antifungal properties against Candida albicans (MTCC 227), Aspergillus niger (MTCC 282) and Aspergillus clavatus (MTCC 1323) [166].

Quan et al. [167] studied the antibacterial property of bromine-benzyl-disubstituted polyaniline against both gram-negative Escherichia coli and gram-positive Bacillus subtilis. They could find that bromine-benzyl-disubstituted polyaniline had high antibacterial activity compared to polyaniline and benzyl-substituted polyaniline. All the bacteria were found to be dead when the concentration of bromine-benzyl-disubstituted nanoparticles was 4.0 mg/mL. Thus, it is evident that the bromine groups substituted in the benzene rings are responsible for the high antibacterial activity of bromine-benzyl-disubstituted polyaniline. In addition to that, binary epoxy coatings containing bromine-benzyl-disubstituted polyaniline were prepared with bisphenol A/poly(ethylene glycol) using cardanol-based phenalkamine as curing agent. When the mixed epoxy coatings containing bromine-benzyl-disubstituted polyaniline were exposed to the Escherichia coli suspension for 2 weeks, fewer bacteria was observed on the surface by Quan et al.

In 2017, polyorthochloroaniline/copper nanocomposites were found to have antibacterial activity against gram-positive bacteria Bacillus subtilis and gram-negative bacteria Escherichia coli by Ahmad et al. [168]. Copper nanofiller with varying concentrations were injected in the polymer matrix to prepare the composites. Poly(2-chloroaniline)/copper nanocomposites had better antibacterial property than poly(2-chloroaniline). The authors reported that the antibacterial activity of the nanocomposite depends directly on the release of Cu2+ ions. Both the strains had a minimum zone of inhibition at 1% and a maximum zone of inhibition at 3% due to the maximum release of Cu2+ ions by copper nanoparticles as shown in Fig. 7.

Fig. 7
figure 7

Images of antibacterial activity of POC and its nanocomposites containing CuNPs (1–5%) against a E. coli and b B. subtilis [168]

The same team in 2018 [169] evaluated the antibacterial efficiency and the electrical conductivity of poly(2-chloroaniline) with chromium nanocomposite to the copper nanocomposite previously studied. They synthesized poly(2-chloroaniline)/chromium nanocomposites by chemical oxidative polymerization. By varying the load percentage of chromium nanofiller (1–10%), they probed the antibacterial properties against Escherichia coli and Bacillus subtilis and also the electrical conductivity of the composites. The authors could find that enhanced antibacterial activity and electrical conductivity were observed with enhanced load percentage of the chromium nanofiller as shown in Figs. 8 and 9, respectively.

Fig. 8
figure 8

Size of inhibitory zones versus load percentage of chromium in nanocomposites [169]

Fig. 9
figure 9

Plot of electrical conductivity versus load percentage of Cr NPs in nanocomposites [169]

Kashyap et al. [170] were able to study the antibacterial activities of the ascorbic acid-doped oligoaniline drug composites. Levofloxacin, cefaclor and cefuroxime were the drugs from which the oligoaniline composites were prepared. The antibacterial studies of the composites were explored against four gram-positive bacteria (Staphylococcus aureus MTCC 96, Streptococcus pyogenes MTCC 442, Bacillus subtilis MTCC 441 and Streptococcus mutans MTCC 890) and against four gram-negative bacteria (Escherichia coli MTCC 443, Pseudomonas aeruginosa MTCC 1688, Klebsiella pneumoniae MTCC 109 and Salmonella typhi MTCC 98). G. Kashyap and his co-workers could observe that the synthesized composites in comparison with the standard drugs like gentamicin, ampicillin, chloramphenicol, ciprofloxacin and norfloxacin showed better or equivalent antibacterial activities as shown in Fig. 10.

Fig. 10
figure 10

Antibacterial activity of ascorbic acid-doped OANI, drugs, OANI–drug composites and standard drugs [170]

To destroy the sulphate-reducing bacteria, Abd El-Salam et al. [171] synthesized a polymer and its composite with silver nanoparticles. Poly(2-aminothiophenol)/silver nanoparticle, poly(2-methylaniline)/silver nanoparticle and the copolymer poly(2-aminothiophenol-co-2-methylaniline)/silver nanoparticle were prepared and the antibacterial efficiency of the samples were tested against the standard bacterium Desulfovibrio sapovorans ATCC 33892. The team observed that the sulphate-reducing bacteria were easily killed with poly(2-aminothiophenol)/silver nanoparticles and poly(2-methylaniline)/silver nanoparticles than with the copolymer poly(2-aminothiophenol-co-2-methylaniline)/silver nanoparticles.

Bromine is found to play an efficient role as an environmental friendly antibacterial agent. Cai et al. [105] explored the antibacterial activity of bromo-substituted polyaniline against the gram-positive bacteria Bacillus subtilis and gram-negative bacteria Escherichia coli. With the increase in bromine content, remarkable antibacterial activity was achieved in doped/dedoped bromo-substituted polyaniline. The distribution of electrons in polyaniline becomes irregular due to the electron-withdrawing nature of bromine, and this brings stronger electrostatic contact with the bacteria thus destroying it.

Antibacterial activity was examined in dedoped bromo-substituted polyaniline epoxy resin composite coating by Cai et al. [137]. The bacteria Escherichia coli was brought into contact with the composite coating for 4 h, and a remarkable antibacterial activity with killing rate of 97.2% was noticed in the composite coating with higher bromine content as shown in Fig. 11.

Fig. 11
figure 11

Corresponding pictures of E. coli colonies after contacting with coating films (immersed in 12.0 wt% NaCl solution for 100 days) for 4 h [137]. EP—epoxy coating containing dedoped PANI. EBP I—epoxy coating containing dedoped Br PANI [KBr mass—4.284 g]. EBP II—epoxy coating containing dedoped Br PANI [KBr mass—5.712 g]. EBP III—epoxy coating containing dedoped Br PANI [KBr mass—7.140 g]

Antifouling

In public utilities, marine industries and medical devices, biofouling continues to be a significant problem for the surface applications [172, 173]. Strategies such as fouling discharge, fouling resistance and antimicrobial treatment could be used to avoid fouling [174, 175]. For antifouling applications, matrix materials such as epoxy coatings, fluorine-based coatings, silicone-based coatings, polyurethane coatings, polyacrylate coatings and PEG-based coatings were explored by the authors [176,177,178,179,180]. The coating surfaces containing the mixed epoxy coatings of bisphenol A/polyethylene glycol with bromine-benzyl-disubstituted polyaniline immersed in bacterial suspension for 2 weeks and in a static river for 30 days were found to have good antifouling property. The excellent antifouling performance of the coatings was due to the fouling resistance effect of PEG segments and the sterilization activity of bromine-benzyl-disubstituted polyaniline nanoparticles as shown in Fig. 12 [167].

Fig. 12
figure 12

Antifouling performance images of the coatings after immersion in the river [167]

Cai et al. [137] evaluated the antifouling property of the dedoped bromo-substituted polyaniline coated with epoxy resin. The steel plates brushed with the composite coatings were immersed in the river for 60 days. They found that the fouling behaviour gradually reduced with the increase in bromine content in the composite. The unrinsed surfaces were covered with fouling products and the rinsed surfaces with higher bromine content had the excellent antifouling property free from mud and algae as shown in Fig. 13.

Fig. 13
figure 13

Pictures of unrinsed surfaces (above) and rinsed surfaces (below) of different coatings after 60 days of field test (a pure epoxy; b EP; c EBP I; d EBP II; e EBP III coatings) [137]. EP—epoxy coating containing dedoped PANI. EBP I—epoxy coating containing dedoped Br PANI [KBr mass—4.284 g]. EBP II—epoxy coating containing dedoped Br PANI [KBr mass—5.712 g]. EBP III—epoxy coating containing dedoped Br PANI [KBr mass—7.140 g]

Summary and conclusion

The present paper thus brings an overview of the numerous applications of the derivatives of polyaniline and their blends and composites in diverse fields such as sensors, supercapacitors, batteries, electrochromic display devices, light-emitting diodes, solar cells, semiconductors, corrosion protection and water decontamination due to their ease of synthesis, low cost, environmental stability and enhanced solubility and processability. Polyanilines and their biocompatible nanocomposites have broadened the biological applications in tissue engineering, bone regeneration, targeted drug delivery, etc. The recent researchers have remarked excellent antimicrobial and antifouling performance in the substituted polyanilines and their blends and composites. Not much work has been reported so far in the other applications in biosciences with substituted polyanilines and their blends and composites. So, it is a great challenge to the researchers in exploring novel materials which could replace the conventional materials in the field of medicine. There is good scope in the field of substituted polyanilines and their blends and composites to widen the biomedical applications which can open up innovations in the near future.