Introduction

Contamination in water produced from several industries such as paper, textiles, cosmetics, pharmaceuticals, leather, plastics, printing and rubber industry is highly toxic and harmful to human beings [1, 2]. Textile industry in particular discharges a very large amount of dye bearing wastewater. There are three categories of dyes: anionic dyes, cationic dyes, non-ionic dyes, and most of these are toxic and some are carcinogenic [3,4,5]. Acid dyes are anionic dyes, and these are highly soluble in water [6]. Acid dyes are generally used in nylon, silk and wool industries [7]. AG25 is an anionic dye and used in a number of applications, including textile, cosmetic, wood, leather and paints industry [8, 9]. AG25 dye effluent is very harmful to aquatic creatures. It can cause many problems for human beings like skin and eye irritation. Therefore, it is important to eliminate AG 25 dye from textile wastewater through different treatment methods so that we can protect our environment.

Several methods are used for the adsorption of textile dyes from wastewater such as membrane separation, coagulation, flocculation, chemical oxidation, adsorption, biodegradation, electrochemical processes and ozonation [4, 10, 11]. In the present study, the focus is on the adsorption method. It is the easiest but may not be the most efficient method for reducing dye contamination [10]. Many researchers have studied the adsorption of textile dye waste using different types of adsorbents and the selection of an adsorbent depends upon its various characteristics like cost-effectiveness, easy recovery, non-toxic, easily available and regenerable [12].

Polyaniline (PANI) has been extensively studied mainly because of its unique conductivity properties. It has a great potential for industrial applications on a large scale [13]. The advantages of PANI are its easy synthesis, high electrical conductivity, low cost of raw materials, high stability [14, 15], redox properties [16], lightweight, good processability and outstanding magnetic and optical properties [17]. PANI also exhibits relatively high porosity and surface area [18] and would be a good candidate for dye removal by adsorption.

Polyaniline is synthesized from the aniline monomer either by electrochemical or chemical polymerization process [19, 20]. On a larger scale, the chemical polymerization is the most suitable technique for the synthesis of polyaniline [19]. Polyaniline is present in three oxidation states: emeraldine salt (ES)-doped state and emeraldine base (EB)-undoped state, pernigraniline base (PB) and leucoemeraldine base (LB) [21, 22]. Structure of polyaniline is presented in Fig. 1.

Fig. 1
figure 1

Structure of polyaniline [23]

In the general structural form of polyaniline, the oxidation state is described by (1−x) value and degree of polymerization is described by n. Leucoemeraldine base is fully reduced state and x = 1 for this state. Emeraldine is half oxidized state and x = 0.5 (i.e., equal number of oxidized and reduced units). Pernigraniline base is a fully oxidized state and x = 0 for this state [16, 23]. The polyaniline emeraldine salt is a dark green powder (characteristic particle size: 3–100 µm) of average density 1.36 g/mL and is soluble in various common organic solvents.

PANI synthesis has been researched a lot in the literature, but the optimization of the polymerization conditions has been related to PANI applications as a conductive polymer. A review of PANI polymerization and PANI/clay in situ nanocomposites [15, 17,18,19, 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56] is given in the supplementary data in Table S1a, b.

A polymer nanocomposite (PCN) is a material with vastly improved properties as compared to the individual polymers. The PCN has been synthesized for most polymers of importance [57]. The filler used in the study is a nanoclay. The clay particles have several advantages such as low cost, large surface area, high chemical stability, ultrafine particle size, high cation exchange capacity, high adsorption capacity and ion exchange properties [34, 58].

Montmorillonite (MMT) clay having the general formula Mx(Al4-xMgx)Si8O20(OH)4 belongs to the family of 2:1 phyllosilicates (comprised of two tetrahedral and one octahedral sheet of average thickness 1 nm) [34, 59,60,61]. MMT is hydrophilic and should be compatible with PANI, for the synthesis of polyaniline/clay nanocomposites [34, 62].

Literature review for the treatment of wastewater with PANI and PANI/clay nanocomposites [3, 4, 14, 18, 21, 58, 63,64,65,66,67,68,69,70,71,72,73,74] is given as supplementary data in Table S2.

The present study focuses on the in situ polymerization synthesis and characterization of PANI and PANI/clay nanocomposite beads for their use as an adsorbent. Adsorption behavior has been investigated using Acid Green 25 dye (AG25) as the adsorbate.

Experimental

Materials

Aniline (ACS reagent, ≥ 9.5% purity) (IUPAC name: Penylamine), hydrogen chloride (HCl), ammonium persulfate (AR,   ≥  98.5% purity) (chemical formula: (NH4)2S2O8) (IUPAC name: diazanium; sulfonatooxy sulfate) and montmorillonite (chemical formula: (Na,Ca)0.33(Al,Mg)2(Si4O10)(OH)2·NH2O)) clay were purchased from the company Sigma-Aldrich (India). Acetone (2-propanone) and NMP (1-methyl-2-pyrrolidone) were purchased from LOBA Chemicals.

The Acid Green 25 (anionic dye, CI. No.61570, molecular weight: 622.58 g/mol) was also purchased from the company Sigma-Aldrich, India. The chemical formula of Acid Green 25 dye is C28H20N2Na2O8S2, and absorption peak ƛmax is 642 nm. Its structure is shown in Fig. 2.

Fig. 2
figure 2

Structure of Acid Green 25 (AG25) dye [68]

Method for preparation of polyaniline and polyaniline/montmorillonite clay nanocomposites and their characterization

Synthesis of PANI and PANI/MMT

PANI and PANI/MMT clay nanocomposites were synthesized at two different temperatures of 0 and 20 °C. The methodology and schematic diagram for formation of PANI/MMT nanocomposites is presented in Fig. 3.

Fig. 3
figure 3

a Methodology and b schematic diagram depicting the in situ polymerization preparation PANI/MMT nanocomposites

The PANI/MMT nanocomposites were synthesized according to the experimental procedure described in the literature [38, 49], with some modifications. For the synthesis of PANI/MMT clay nanocomposites, MMT clay (0, 1, 1.5 and 2 w/v%) was dispersed in distilled water (100 ml) and sonicated for 10 min using an ultrasonicator probe to achieve clay nanodispersion. After the dispersion of the MMT clay, magnetic stirring was used to prepare PANI/MMT nanocomposites. A solution of 2 ml aniline in 1 M HCl was added slowly to the above MMT clay suspension over a period of 5 min, with magnetic stirring and the mixture was further stirred for another 20 min at 0 °C. Five grams of ammonium persulfate (oxidizing agent APS dissolved in 1 M HCl) was added slowly over a period of 10 min to the above suspension. For polymerization at 0 °C, the suspension was stirred continuously for 4 h at 0 °C to ensure the completion of the reaction. After the polymerization process, a dark green color precipitate of PANI/MMT clay nanocomposite was obtained. This product was obtained by using vacuum filtration, and it was washed with 1 M HCl, distilled water and acetone to remove ammonium persulfate and all other impurities. The obtained solid nanocomposite material was dried overnight under vacuum at 50 °C.

For the polymerization done at 20 °C, the mixture was continuously stirred at 20 °C for 2 h and the reaction for the synthesis of nanocomposite was continued for 24 h without agitation to complete the polymerization.

The same procedure was adopted to prepare polyaniline (PANI), but herein MMT clay was not added.

Characterization

Characterization of PANI–MMT clay nanocomposites was done by Fourier transform infrared spectroscopy, scanning electron microscopy, field emission scanning electron microscopy, X-ray diffraction, BET (Brunauer–Emmett–Teller) analysis, UV–Vis spectroscopy and HRTEM (high-resolution transmission electron microscope) technique.

The Fourier transform infrared spectra of the prepared nanocomposites were determined by PerkinElmer Spectrum RX1 using KBr pellets with the scanning range 4000–450 cm−1. FTIR was used to obtain the specific bands of the prepared sample of nanocomposite. The X-ray diffractometer (XRD) was done using PanAlytical XPERT-PRO (Netherland) with a wavelength of 1.541 A° (operated at 40 mA, 45 kV). The XRD patterns were used to identify the interlayer spacing of MMT clay in nanocomposites samples. Scanning electron microscopy was recorded using an instrument JEOL (JSM-6510 LV) to determine the surface morphology of the prepared samples. The field emission scanning electron microscopy was performed using Hitachi (HI-0876-0003). A high-resolution transmission electron microscope (HRTEM) was performed using JEOL (JEM 2100 Plus). HRTEM technique is generally used to identify the nanocomposite structure more clearly. BET analysis was done to find the surface area and the pore size distribution of the samples. The equipment used for BET analysis was Microtec Belsorp Mini–II (Japan). UV–Vis spectra were recorded using PerkinElmer UV WinLab by taking the samples of PANI and PANI/MMT nanocomposites in NMP (N-methyl-2-pyrrolidone) solvent.

Results and discussion

Polymerization experiments

A number of experiments were performed at 0 °C and 20 °C by using ammonium persulfate as an oxidizing agent. We have selected the lower temperatures (0 °C) for adsorption experimental study, and one of the criteria adopted for the selection of temperature was lower polymerization time. Thus, PANI and PANI/MMT nanocomposites synthesized at 0 °C were selected as adsorbents for adsorption experiments of AG25 dye. The nanoclay concentration w/v (%) was varied from 0, 1, 1.5 and 2.0.

Characterization

Fourier transform infrared (FTIR) spectroscopic analysis

All the functional groups have been identified by the FTIR spectroscopy. Figure 4a, b shows the FTIR of PANI, MMT and PANI/MMT nanocomposites with various clay contents, synthesized at lower and higher temperature of 0 °C and 20 °C. The FTIR spectrum of pure MMT clay shows peaks at 3621 cm−1 and 3411 cm−1 (O–H stretching), 1016 cm−1 and 1101 cm−1 (Si–O stretching), the peak at 1633 cm−1 (H–O–H bending, 917 cm−1 (Al–OH bending), 701 cm−1 (Al–Mg–OH stretching), 534 cm−1 and 472 cm−1 (bands due to Si–O–Al and Si–O–Si bending). These bands have also been reported by other researchers [49, 52, 70, 75, 76, 77]. The adsorption bands of 0 °C PANI located at 1556 cm−1 and 1485 cm−1 can be attributed to the C = C stretching of the quinoid and benzenoid ring structure, respectively [34, 50, 78]. The characteristic peak of PANI at 1303 cm−1 is due to the C–N bending [34, 50]. The band at 1144 cm−1 is attributed to the formation of +HN = Q = NH+ structure [50]. The characteristic bands of PANI and MMT clay can be seen in the spectra of PANI/MMT clay nanocomposites in both cases (prepared at either 0 °C or 20 °C temperature with varying amount of MMT clay). The FTIR spectra of 0 °C and 20 °C are almost identical with a very small shift of peaks, and the peak intensity of 0 °C spectra is higher as compared to 20 °C spectra of nanocomposite samples. The FTIR spectra of 20 °C prepared samples are shown in Fig. 4b.

Fig. 4
figure 4

FTIR spectra of MMT, PANI, PANI/MMT1.0, PANI/MMT1.5 and PANI/MMT2.0 prepared at a 0 °C and b 20 °C

In PANI/MMT spectra, the Si–O band of MMT at 1016 and 1101 cm−1 gives a confirmation for the successful intercalation of PANI into the MMT clay galleries [49, 79]. However, intercalation of MMT platelet was confirmed by WAXS and HRTEM studies, as described in the following section. The Fourier spectroscopy confirms the interaction of the MMT clay layers with the PANI chains.

X-ray diffraction (XRD)

The XRD characterization was carried out to determine the insertion of PANI chains into the MMT clay interlayer space. XRD analysis was done in the range of 3° to 70°. The XRD patterns of MMT clay and the products (PANI and PANI/MMT) prepared by in situ polymerization at 0, 1, 1.5 and 2.0 w/v (%) clay loadings are presented in Fig. 5. The PANI synthesized at 0 °C exhibited sharp peaks at  = 25.23°, and two more peaks were observed at 20.94°, 14.9° and that indicates its crystalline nature [48, 80]. PANI prepared at 20 °C shows diffraction peaks at 2Ө = 14.70°, 20.41°, 25.58°, which shows the crystalline structure of the PANI [38, 44, 48, 81, 82]. Thus, the XRD spectrum of PANI obtained at 0 °C and 20 °C shows similar peaks. The spectrum of pure MMT showed a d001 peak at  = 6.08° corresponding to d-spacing of 14.52 A°. Wide and expanded angle XRD patterns of PANI, MMT and PANI/MMT clay nanocomposites synthesized at 0 °C are shown in Fig. 5a, b. The values for PANI/MMT nanocomposites are presented in Table 1. All the samples of nanocomposites are intercalated and not exfoliated. Similar XRD results are obtained for 20 °C nanocomposite samples (Fig. 5c), and the values for 20 °C samples are presented in Table 2.

Fig. 5
figure 5

a Wide angle and b Expanded angle XRD patterns of PANI, MMT and its nanocomposites prepared at 0 °C, c XRD pattern of PANI and nanocomposites prepared at 20 °C

Table 1 XRD data of MMT and PANI/MMT nanocomposites prepared at 0 °C
Table 2 XRD pattern of MMT and PANI/MMT nanocomposites prepared at 20 °C

Scanning electron microscopic (SEM) analysis

The morphology of PANI (emeraldine salt) and PANI/MMT nanocomposites was studied through SEM analysis. The SEM images of pure MMT clay showed a layered structure. The morphology of the pure PANI sample synthesized at 0 °C and 20 °C confirms that the prepared PANI has a granular texture, but the morphology of PANI/MMT nanocomposites was not clearly seen in SEM analysis for both temperatures (0 °C and 20 °C), so FESEM analysis was used.

The FESEM images of pure PANI and PANI/MMT nanocomposites with 1 w/v (%) clay prepared at 0 °C and 20 °C are shown in Fig. 6. The granular structure of PANI is identified in Fig. 6a, c. There is a significance difference of morphology in PANI and PANI/MMT nanocomposites (for both 0 °C and 20 °C temperature). In Fig. 6b, d, it can be clearly seen that the polymerization mainly occurred between the clay layers. Figure 6b is the FESEM image of PANI/MMT nanocomposites prepared at 0 °C, and Fig. 6d shows the FESEM image of PANI/MMT nanocomposites prepared at 20 °C.

Fig. 6
figure 6

FESEM images of a PANI and b PANI/MMT nanocomposites prepared at 0 °C, c PANI and d PANI/MMT samples prepared at 20 °C

High-resolution transmission electron microscope (HRTEM)

HRTEM analysis was used to identify the internal structure of PANI/MMT nanocomposite. HRTEM gives more clarity about the structure. Figure 7a, b shows the HRTEM images of PANI/MMT nanocomposites synthesized by in situ polymerization at 0° and 20 °C. The clay platelets are represented by black lines, and polymer matrix is represented by gray/white surface. The HRTEM photographs of nanocomposites show that the nanocomposites consist of silicate layer and these MMT silicate layers are intercalated within the PANI matrix. HRTEM analysis confirms the intercalated structure of PANI/MMT nanocomposites.

Fig. 7
figure 7

HRTEM images of PANI/MMT nanocomposites

Brunauer–Emmett–Teller (BET) analysis

The surface area and pore size of pure PANI and PANI/clay nanocomposites were analyzed by BET analysis and are summarized in Table 3. Then, PANI affords a porous morphology. MMT clay morphology is less porous and has less specific surface area as found out from BET measurements as given in Table 3. However, the adsorption behavior of PANI/MMT is better than pure PANI. The nanocomposite surface area is lesser than that of PANI, possibly due to the presence of millions of nanodispersed clay particles that block the pores in the PANI sample. This is so because MMT platelets, when dispersed at nanolevel, possess very large surface area, and hence, PANI/MMT would use their complementary properties forming adsorption.

Table 3 Specific surface area of PANI and its nanocomposites

UV–Vis spectroscopy

The UV–Vis spectra of pure PANI and PANI–MMT clay nanocomposites synthesized at 0° and 20 °C are displayed in Fig. 8. All the samples were dissolved in N-methyl 2-pyrrolidone (NMP) solvent and absorption bands were analyzed by UV–Vis spectroscopy. The UV–Vis spectrum of pure PANI synthesized at 0 °C exhibits two absorption bands at around 332 nm and 638 nm wavelength, which are ascribed to π−π* transition of benzoid ring and excition transitions in the quinoid ring [30, 82,83,84,85,86]. These bands indicate that the PANI is in an emeraldine conducting state. The characteristics absorption bands of PANI–MMT nanocomposites were found at 324 nm and 626 nm for PANI/MMT1.0; 322 nm and 628 nm for PANI/MMT1.5; and 322–326 nm and 623–628 nm for PANI/MMT2.0. The spectrum peak at 322–326 nm is assigned to π−π* transition of benzoid ring. The absorption peak at around 623–628 nm is due to the excition transition from benzenoid ring to quinoid ring [30, 85, 86]. The absorption bands of PANI and PANI–MMT nanocomposites (0, 1, 1.5, 2 w/v%) synthesized at 20 °C are very similar to those synthesized at 0 °C. For 20 °C, two bands were obtained at 331 nm and 633 nm for pure PANI that can be ascribed to π−π* transition of benzoid ring and excition transitions in the quinoid ring. The UV absorption peaks were found at 330 nm and 630 nm for PANI/MMT1.0, 324 nm and 624 nm for PANI/MMT1.5, 322–326 nm and 623–628 nm for PANI/MMT2.0. In polyaniline/MMT nanocomposites samples, the adsorption bands shifted slightly to a lower wavelength and this indicates the MMT clay and polyaniline interaction.

Fig. 8
figure 8

UV–VIS spectra of PANI and PANI–MMT nanocomposites prepared at a 0 °C and b 20 °C

Method for adsorption studies

The prepared PANI and PANI nanocomposites (prepared at 0 °C) were studied for their adsorption behavior.

Adsorption studies were done by diluting a stock solution of Acid Green 25 dye (1 g/L) into different dye concentrations solutions (50–200 mg/L). The parameters studied were: effect of dye solution temperature (20 to 50 °C), adsorbent dose (0.008–0.6 g), initial dye concentration (50–200 mg/L), time (0–60 min) and pH (2–10). For the adsorption study, 100 mL of various initial dye concentration solutions was prepared along with a fixed amount of adsorbent. The experiments were carried out in an incubator shaker at 180 rpm for 60 min at pH 6 by varying temperature from 20 to 50 °C.

The percentage of dye removal was calculated by:

$$ \% {\text{removal}} = 100\left( {C_{o} - C_{e} } \right)/C_{o} $$
(1)

where Co = initial concentration of AG25 dye. Ce = equilibrium concentration (mg/L) of AG25 dye.

The equilibrium capacity of the dye was calculated by:

$$ q_{e} = \left( {C_{o} - C_{e} } \right)V/m $$
(2)

where qe = amount of AG25 dye adsorbed at equilibrium per unit mass of adsorbent (mg/g). V = volume (L) of AG25 dye solution. m = mass (g) of adsorbent.

The first parameter studied was pH of dye solution.

Effect of pH

The interaction between the adsorbate and the adsorbent is significantly affected by the pH of the dye solution. The chemistry of adsorbate solution, ionization degree of adsorbate molecules and the surface charge of adsorbent are strongly affected by the pH of dye solution [66, 70]. The effect of pH on the adsorption of AG25 dye was investigated on pure PANI and PANI/MMT by varying pH values in the range of 2 to 10. The pH of the dye solution was adjusted using 1 M HCl and 1 M NaOH solutions, and the study was conducted with an initial dye concentration of 50 mg/L, contact time of 60 min and at a temperature of 20 °C at a stirrer speed of 180 rpm. The adsorption data of PANI in Fig. 9a show that greater removal of AG25 dye was observed at lower pH values. The maximum adsorption of AG25 dye was obtained at pH = 2 (100% removal within 10 min), and the minimum adsorption was observed at pH = 8 (97.32%). The adsorption of AG25 dye was stable after a short interval time (15 min). In Fig. 9a, it can be seen that there is no significant difference in adsorption between pH 2 (100%), pH 4 (99.88%) and pH 6 (98.33%), and so pH 6 was selected as an optimum pH for the adsorption study of AG25 dye. For PANI/MMT (Fig. 9b), the maximum removal of AG25 dye was obtained at pH = 6 (100%) and the minimum adsorption was observed at pH = 10 (98.06%).

Fig. 9
figure 9

Effect of pH on the removal of AG25 dye

Effect of adsorbent dose

The effect of adsorbent dose was also studied for pure PANI and PANI/MMT for AG25 dye adsorption by taking various amounts of adsorbent (0.08 to 0.6 g) with an initial dye concentration of 50 mg/L at 20 °C for 60 min. The data of the effect of adsorbent are plotted between time vs percentage removal and are displayed in Fig. 10. After the dose of 0.4 g, there is hardly any difference in % removal for higher amounts (Table 4). Hence, in order to use the lowest adsorbent amount, an adsorbent amount of 0.4 g was selected for further adsorption study of AG25 dye. The percentage removal of AG25 dye increased with an increase in adsorbent amount, and this is mainly due to the availability of more active sites of the adsorbent which can interact with the solution of the anionic dye [65, 87, 88].

Fig. 10
figure 10

Effect of adsorbent amount (pH = 6, Co = 50 mg/L, T = 20 °C)

Table 4 Effect of PANI and PANI/MMT adsorbent dose

Effect of initial dye concentration

The effect of initial dye concentration of AG25 dye with PANI and PANI/MMT nanocomposite adsorbents was studied. The Co values were varied from 50 to 200 mg/L at a temperature of 20 °C, optimized pH 6 and adsorbent amount of 0.4 g. Figure 11a, b illustrates the effect of initial dye concentration on the adsorption of PANI and PANI/MMT samples. Adsorption kinetics have been compared for pure PANI and PANI/MMT at an initial dye concentration of 50 mg/L, in Fig. 11c. Pure PANI removed 94.64% and PANI/MMT removed 97.82% of the dye within 5 min at an initial dye concentration of 50 mg/L. Also, within 30 min the PANI/MMT sample removed 100% and pure PANI salt sample removed 99.16% of the anionic dye (Co = 50 mg/L, pH = 6, adsorbent = 0.4 g, T = 2 0 °C). Since the adsorption occurs at a very fast rate, i.e., in a very short time period, the same data were plotted on a semi-log figure (the inset in Fig. 11c to illustrate the adsorption behavior at short times. It can be seen that even at 1 min, the adsorption for PANI and PANI/MMT is about 88% and 93%, respectively.

Fig. 11
figure 11

Effect of initial dye concentration on AG25 dye removal by a PANI, b PANI/MMT adsorbent (T = 20 °C, pH = 6, Co = 50–200 mg/L,  t = 60 min), c is the comparison of PANI and PANI/MMT adsorption data (50 mg/L)

The results indicate that the efficiency of PANI/MMT nanocomposite as an adsorbent is higher as compared to that of pure PANI. On comparison of adsorption behavior at different initial dye concentration, it can be seen that the adsorption capacity of samples decreased by increasing the AG25 dye concentration. This may be attributed to the saturation of the adsorbent sites for removal the dye molecules [88, 89].

Effect of temperature

The effect of temperature was also studied for the removal of AG25 dye at 20°, 35°, 45° and 50 °C (conditions: Co = 50–200 mg/L, pH = 6, adsorbent = 0.4 g,  t = 30 min). The effect of temperature on adsorption by PANI and PANI/MMT for AG25 dye removal is shown in Fig. 12. The results indicate that the percentage removal by PANI is less than the removal by PANI/MMT nanocomposite, and removal of AG25 dye increases with an increase in temperature of the dye solution, from 20° to 50 °C [90]. The higher adsorption by the nanocomposite is due to the nanodispersed clay platelets, the outer layer of which has a negative charge.

Fig. 12
figure 12

Comparison of PANI with PANI/MMT adsorption for AG25 dye removal (Co = 50 mg/L, adsorbent dose = 0.4 g, pH = 6, t = 30 min)

Adsorption kinetics

There are different models available to evaluate the adsorption kinetic data. The adsorption kinetics study of AG25 dye was done using a pseudo-first-order kinetic model as well as a pseudo-second-order kinetic model. The equation for the pseudo-first-order model can be written as [1]:

$$ \log \left( {q_{e} - q_{t} } \right) = {\log}q_{e} - k_{f} t/2.303 $$
(3)

where qe (mg/g) = amount of dye adsorbed at equilibrium; qt (mg/g) = amount of dye adsorbed at time t; kf (min−1) = rate constant; t (min) = time.

The maximum adsorption time was taken to be 60 min, wherein the percentage dye removal was more than 99% for all initial dye concentration studied. The experimental data did not fit in pseudo-first-order kinetic model. First-order model is therefore not a suitable model for adsorption kinetic study of AG25 dye. Then, the pseudo-second kinetic model was tested for adsorption at different temperatures (20 to 50 °C) and different initial dye concentrations (50–200 mg/L). The equation for pseudo-second-order model can be written as [1]:

$$ \frac{t}{{q_{t} }} = \frac{1}{{k_{2} qe^{2} }} + \frac{t}{qe} $$
(4)

Where k2 = pseudo-second-order rate constant.

The straight line (plotted between t/qt vs. t) was obtained from pseudo-second-order kinetic model as shown in Fig. 13a, b. Tables 5 and 6 presents the pseudo-second-order kinetic parameters (qe, k2) calculated for AG25 dye adsorption onto PANI and PANI/MMT nanocomposite samples. The rate constant (k2) and equilibrium adsorption capacity (qe) values were calculated from the intercept and the slope. In the kinetic adsorption study, it was observed that the rate constant (k2) and equilibrium adsorption capacity (qe) values were higher for PANI/MMT nanocomposites as compared to pure PANI. These calculated k2 values were decreased with increasing AG25 initial dye concentration for both adsorbents (PANI and PANI/MMT). With an increase in temperature, the values of rate constant (k2) and equilibrium adsorption capacity (qe) were increased. It shows that the higher temperature was more efficient for AG25 adsorption onto PANI and PANI/MMT samples. High correlation coefficients (R2 ≥ 0.99) were obtained at 35°, 45° and 50 °C, for different initial dye concentrations. It confirms that pseudo-order model is an appropriate model to describe AG25 dye kinetic adsorption using PANI as well as PANI/MMT.

Fig. 13
figure 13

Kinetics of pseudo-second-order model for adsorption of AG25 dye at 20 °C onto a PANI and b PANI/MMT

Table 5 Pseudo-second-order kinetic parameters calculated for AG25 dye adsorption on PANI
Table 6 Pseudo-second-order kinetic parameters calculated for AG25 dye adsorption on PANI/MMT

Adsorption equilibrium

An adsorption isotherm study was performed for AG25 dye with Langmuir, Freundlich and Temkin isotherm models [91]. The parameters of these three models were studied at 20°, 35° and 45 °C with the initial dye concentration range of 80–200 mg/L. Almost 100% removal was attained at all values of initial dye concentrations studied. Also, significantly the lower concentration takes very less time to achieve complete dye removal. Table 7 gives the isotherm equations for different models [1, 68, 92].

Table 7 Equations of Langmuir, Freundlich and Temkin isotherm models [1, 68, 92]

Where qe mg/g) is the adsorbate adsorbed at equilibrium, qm is the adsorption capacity, Ce (mg/L) is the equilibrium dye concentration, KL (L/mg) is the Langmuir isotherm constant, KF (mg/g) and 1/n are the Freundlich isotherm constants, and BT (Kj/mol) and KT (L/mg) are the Temkin isotherm constants. Out of these models, Langmuir isotherm model best fits the experimental data, as can be observed from Table 8a, b. A linear plot of Ce/qt against Ce for AG25 dye adsorption by PANI and PANI//MMT nanocomposites was obtained as depicted in Fig. 14a, b. The highest value of correlation coefficient (R2) for Langmuir isotherm was found in a linear plot of Ce/qe vs Ce (Table 8a, b).

Table 8 Calculated parameters for AG25 dye adsorption onto a PANI and b PANI/MMT nanocomposites
Fig. 14
figure 14

Ce/qe vs Ce Langmuir plot for a PANI and b PANI/MMT (adsorbent = 0.4 g, Co = 80–200 mg/L)

The surface area of PANI is more than that of PANI/clay nanocomposites as evidence by the BET results shown in Table 3. However, the kinetic and equilibrium adsorption data show that PANI/clay nanocomposites have higher adsorption than PANI. This is due to the fact that the outer surface of clay platelets, which are permanently negatively charged, would also adsorb the positively charged AG25 dye molecules. This is significant because the clay platelets are nanodispersed throughout the adsorbent.

Conclusion

PANI and PANI–MMT clay nanocomposites were obtained by in situ polymerization using ammonium persulfate as an oxidizing agent. It was observed that higher yields are obtained at the lower polymerization temperature, i.e., 0 °C, in less time. The intercalated structure of PANI/MMT nanocomposites was confirmed by HRTEM analysis. PANI and PANI/MMT nanocomposites are excellent adsorbents for anionic dye (AG25) adsorption. The dye removal is mainly dependent on the initial dye concentration, temperature and adsorbent amount. Nearly 100% removal of AG25 dye is achieved in 30 min at Co = 50 mg/L, pH = 6, adsorbent = 0.4 g, T = 20 °C. At higher temperatures, i.e., 45 °C and 50 °C, the PANI/MMT removed 100% dye within 10 min of contact time. The adsorption of AG25 dye is higher with PANI/MMT nanocomposite and takes less time to remove 100% as compared to PANI sample. The adsorption kinetics is best described by pseudo-second-order model. The adsorption thermodynamic characteristics are best described by the Langmuir model. Overall, the study reports that PANI/MMT nanocomposite is an efficient adsorbent for AG25 textile dye adsorption and is a better adsorbent then PANI. This would be important in applications wherein they are an immobilized phase in a continuous adsorption process. Also PANI and its nanocomposites have been extensively researched for its conducting properties.