Introduction

Environmental balance is the key for the existence of human and aquatic life. But due to a rapid increase in global population and industrialization, the balance of ecosystem ruptures and in near future creates a lot of problems for the living organism [1]. Recent studies signify that the degradation of surface water quality creates an imbalance in the ecosystem and indirectly brings the global warming [2], agricultural shortfall [3] and health complications [4]. This surface water loses its purity mainly because of untreated disposal of wastes from the industries which are full of toxic materials including heavy metals, pharmaceutical products and color organic dyes. Mainly, the dyes in the water are the major pollutants with greater poisoning trails and every year 200,000 tons organic dyes are disposed into the surface water and make it unusable [5, 6]. Among different types of dyes, methylene blue (cationic dye) is broadly utilized in the textile, paper and carpet industries and also has extensive application in the food, pharmaceutical, fabric, leather and cosmetics production [7]. This MB dye normally has complicated aromatic molecular systems which made them to be extra stable and extra hard to biodegrade in the natural environment [8]. The removal of this color is highly essential as it generates problems in esthetic deterioration penetration of dissolved oxygen and daylight into water bodies, which severely influences the aquatic life. Besides this, the dye precursors and degradation products are verified as carcinogenic and mutagenic [9]. Consumption of MB dye-polluted water can be the reason for hypersensitive reactions, dermatitis, pores and skin irritation, and most cancers with mutations in infants and matures [10].

Many powerful strategies have been used to get clean water from wastewater, which include ozonation [11], chemical coagulation [12], precipitation [13], oxidation [14], reverse osmosis [15], photoabsorber [16, 17], photocatalytic water oxidation [18, 19] and degradation [20]. Some of these techniques have a large number of chemical uses, sensitivity to a variable wastewater input, steeply priced plant necessities with operational costs and accumulation of focused sludge with disposal problems. One of the effective and convenient toxic pollutants’ remediation methods is adsorption, which shows high accuracy with good output results without any secondary pollutants formation [21]. Hence, a lot of researchers have used adsorption techniques for toxic dye [22], heavy metal [22] and organic pollutants [23] removal. Choosing of adsorbent in the adsorption process also played an important role as it is directly associated with economic factors and practical application. Therefore, researchers have chosen activated carbon for MB dye removal from wastewater. The properties like high surface area, reusability, higher mesoporous binding sites and good stability under acidic and basic environments make it unique than other adsorbents [24]. However, the commercial activated carbon which is available in the market has a very high cost and limits its application on large scales [25]. To solve these problems, several studies have been conducted where plant-based materials like lychee seed [26], gulmohar fruit shell [27] and orange peel [28] are used for activated carbon preparation and applied for MB dye removal. Here, the activating agents KOH and H3PO4 have been used for lychee seed and gulmohar fruit activated carbon preparation and found good results. However, these reagents are not highly soluble and stable in water environments. Lastly, the orange peel is simply used without any modification, which limits its application toward the removal of MB dye. Khairunnadhrah Jasri et al. have used oil palm frond and palm kernel shell for activated carbon preparation and found that 96% of MB dye has been removed, and the materials have an uptake capacity of 331.6 mg/g [29]. Irwan Kurnia and co-worker have used coconut shell for activation carbon preparation in thermal process (350 °C) and applied for MB removal. They found that the material has an adsorption capacity of 160.36 mg/g in the optimized condition [30]. Dodonaea viscosa fruit has been used for activated carbon preparation by Asim Yaqub et al. with MB dye uptake capacity of 370 mg/g. In another research, walnut shell has been used for activated carbon preparation by the thermal process (700–1000 °C). This activated carbon is highly efficient with a surface area of 903.9 m2/g and a good uptake capacity of 307.4 mg/g, respectively [31]. Hence, these studies indicate that the low cost, easily available, environmental friendly agricultural products can be potentially applied as a source for activated carbon preparation and effectively applied for MB dye removal from water with high adsorption capacities.

Generally, two methods are used for activated carbon preparation: physical method and chemical method. It is found that the chemical method using the activating agent like ZnCl2, KOH, H3PO4, K2CO3, NaOH and HNO3 under an inert atmosphere is more convenient for activated carbon preparation [32]. But studies show that using K2CO3 as an agent, the prepared activated carbon has a high surface area with higher oxygen carrier functional groups, and an environmentally friendly nature [33]. Therefore, a lot of studies have been done where K2CO3 is used as an agent for activated carbon preparation and used for dye decolorization [34], pesticide removal [35] and CO2 adsorption [36], respectively.

Neem (Azadirachta indica) of the Meliaceae family is a commonly available plant in Asian countries [37, 38]. The fruits, leaves, roots and branches of neem tree are frequently applied for therapeutic cures like digestive disorders control, maintain diabetes and cholesterol levels. Neem is also used in the field of cosmetics, fertilizer, pesticides, lubrication, etc. [39]. Hence, neem plant materials are used in many ways and after being used their waste materials are thrown to the dustbin.

In this work, for the first time the waste neem leaf was used for activated carbon preparation and used for MB dye removal from aqueous solution. The use of K2CO3 as an activating agent has improved the surface structure of activated carbon as it has properties like readily soluble in water and forming resilient alkaline solution, low price and easily available everywhere. The activated carbon synthesized in the microwave technique is an utmost desirable process because of its less energy consumption in a shorter time and homogeneous distribution of heat [40]. The feasibility of the prepared NLAC was checked for the adsorption of MB dye using a batch removal study. The influential parameters such as pH, adsorbent dose, initial concentration, temperature and contact duration were analyzed in batch studies. The adsorption chemical kinetics and isotherm analyses were directed, and lastly, the MB dye adsorption mechanism on NLAC has been proposed in this study.

Experimentations

Materials

All chemicals were of analytical grade and directly used without any further purification. Methylene blue (C16H18ClN3S) dye and potassium carbonate (K2CO3) were taken from Merck and HiMedia Chemicals (India). The waste neem leaves (NL) were taken from the neem trees of the GIET University campus. The NL was washed 3 times with deionized water to take away dust. The impurities are soluble in water, and they were dried until the neem leaves become crisp. The dried neem leaves had been crushed and powered and then washed with deionized water until the washing had been freed from turbidity and color. Then, the NL powder is stirred with 0.1 M sulfuric acid for 30 min, and then again it was washed three times with deionized water to remove untreated acid and dried at 100 °C and positioned in a desiccator. Thereafter, the dried NL were crushed into fine powder of size 1–2 mm.

Preparation of adsorbent

The dried NL were first carbonized in a tube furnace for 2 h in a nitrogen atmosphere at the temperature of 800 °C and the selected ramp of temperature was 5 °C/min. After succeeding carbonization, the product was dissolved in K2CO3 solutions (impregnation ratio 1:2). Then, this product solution was moved to microwave activation under a nitrogen atmosphere at 800 W for 10 min. On completion of activation, the solution was washed with deionized water until it reached neutral, and the washed sample was dried at 100 °C with the help of a hot air oven for one day and that sample was mentioned as neem leaves activated carbon (NLAC).

Instrumental analysis

Phase and crystallographic states of NL and NLAC were detected using an X-ray diffractometer (RIGAKU JAPAN/ULTIMA-IV) having Cu-kα radiation. The functional groups present on NL and NLAC before and after MB adsorption were analyzed with the FTIR spectrometer (RXI, PerkinElmer, USA). Raman bands were identified with the help of the Ranishawin Viarelex spectrometer. MALVERN ZS 90 zeta potential instrument was used to calculate the surface charge of NLAC at different pH. The surface morphology of NL and NLAC before and after adsorption was pasteurized using a scanning electron microscope (JSM-6390LV, JEOL Model, Japan). The surface area with other surface properties (pore volume and pore size) of NL and NLAC was calculated with a Quantachrome surface area analyzer. Lastly, the MB concentration after adsorption was examined with the UV–visible spectrophotometer (UV-2540).

Batch adsorption studies

For batch adsorption, the initial stock solution was prepared by dissolving 0.0373 g of MB dye in 100 ml deionized water. An experimental solution of the favored concentration has been received through dilutions of this stock solution in distilled water. The batch adsorption studies were conducted in 50 mL dye solution with different concentrations (10–100 mg/L). The required adsorbent dose was added to the dye solution and shaken for 180 min at 300 rpm. pH of the solution was maintained with 0.1 M NaOH and HCl solution. After adsorption, the adsorbent was separated by the centrifugation method and the residual dye concentration and uptake capacity are calculated with the help of the following equation:

$$R(\% ) = \frac{{{\text{Co}} - {\text{Ce}}}}{{{\text{Co}}}} \times 100$$
(1)
$$q_{e} = \frac{{{\text{Co}} - {\text{Ce}}}}{W} \times V$$
(2)

where Co and Ce are the initial and equilibrium concentrations (both in mg/L); qe (mg/g) represents the adsorbent uptake capacity; V (L) and W (g) are the volume of solution and adsorbent weight; and R (%) indicates the percentage of removal, respectively.

Results and discussion

Characterizations of adsorbent

XRD

By X-ray diffraction, the crystallography depiction of activated carbon prepared from neem leaf waste has been analyzed. The XRD peaks of NL and NLAC before and after MB adsorption are presented in Fig. 1. Both NL and NLAC showed several peaks detected at 24.97°, 29.50°, 36.13°, 39.72°, 43.50° and 48.25° for 400, 238, 418, 274, 574 and 214 planes, respectively. This indicated that NLAC prepared from NL was crystalline. The presence of peaks at 24.97 and 43.50 (represented by circle) corresponded to activated carbon as reported by other researchers [41]. The presence of other peaks in NLAC was mainly due to the presence of mineral content (Mg, Na, Fe, Ca, Cu and Zn) on the activated carbon surface [38]. After MB adsorption, the NLAC peaks became smoother with a change in intensities. Overall, it was found that the merger of MB on the NLAC surface did not change the crystal phases.

Fig. 1
figure 1

XRD patterns of NL, NLAC and MB dye-adsorbed NLAC

FTIR

The results obtained from FTIR studies of NL and NLAC before and after MB adsorption are presented in Fig. 2. NL has a broad bend at 3308 cm−1 which was mainly for –OH stretching vibrational mode of phenol, acid and alcohol, respectively. Again, a bend at 1579 cm−1 was seen for stretching vibration of C=C present in the aromatic benzene compound [26]. But after modification and activated carbon formation, the –OH vibrational band at 3308 cm−1 was shifted to 3358 cm−1 and became much smoother. The pick at 1580 cm−1 was noticed, and the bend raised at 1178 cm−1 was for C–O bending vibrations of phenol, ether and alcohol groups [27]. The FTIR spectrum of NLAC was entirely transformed and some new peaks appeared after the adsorption of MB dye. Several new bends were found in between 1365 and 741 cm−1 (represented by circle) which resembled N=O, C–N and C=O groups. The broad band at 3358 cm−1 was shifted to 3416 cm−1, and the bend at 1580 cm−1 was completely removed. Hence, the shifting, omitting and arise of new peaks confirmed that MB dyes were attached to the NLAC surface and removed from the solution.

Fig. 2
figure 2

FTIR spectra of NL (a) and NLAC before (b) and after (c) MB dye adsorption

Raman

Figure 3 shows the Raman spectrum of NL and NLAC before and after MB adsorption. In all the cases, two broad bands at 1358 and 1587 cm−1 were depicted as D and G bends, respectively. The ratios of D to G bend for NL and NLAC before and after MB adsorption were 0.87, 0.91 and 0.93, respectively. This indicated that disorderliness in the material increased after activated carbon formation and MB dye adsorption. Hence, the activated carbon prepared from NL was provided with higher active binding sites and therefore interaction occurred with the MB dyes and was effectively eliminated from the solution.

Fig. 3
figure 3

Raman spectrum of NL, NLAC and MB dye-adsorbed NLAC

Zeta potential analysis

The surface charge of the adsorbent plays a key role in the adsorption process, so the zeta potential study has been done for NLAC and is presented in Fig. 4. The pHIEP of activated carbon was 6.9; hence, the adsorbent surface became negatively charged above this pH and suitable for interaction with positively charged MB dye present in the aqueous solution.

Fig. 4
figure 4

Surface charge density of NLAC at different pH

SEM and EDX

SEM micrographs of the NL and NLAC before and after MB adsorption are presented in Fig. 5. The NL didn't have any uniform fixed morphology where both small pores and smooth surfaces were present. But the NLAC had a high number of pores and the surface looked like a symmetrical macro-meso pore and some large holes (cavities) which may be allowed for the diffusion of the MB dye molecule. The K2CO3 activation results in increased pores density of NLAC as the activation leads to evaporation of unstable ingredients (C present in the form of CO, CO2, etc.) and activates the binding active sites, respectively [42, 43]. After MB adsorption, the pore cavities were filled up by the dye molecules as a result of which the NLAC surface became smooth and compact. The EDX data after MB adsorption further confirmed that along with C, O and N, elements, S was also present on the NLAC surface. This confirmed that MB dye was removed from the aqueous solution and adsorbs on the NLAC surface.

Fig. 5
figure 5

SEM with corresponding EDX image of NL (a, d), NLAC (b, e) and MB dye-adsorbed NLAC (c, f)

BET surface area

Figure 6 shows the N2 adsorption–desorption isotherm and pore size distribution of NL and NLAC, whereas the obtained BET parameters are presented in Table 1. From the table, the NLAC has a high surface of 50.69 m2/g than the NL of 33.21 m2/g; this suggested that chemical activation of K2CO3 on the NL surface increased the pores density significantly as a result of which surface area increased drastically. The pore size and pore volume of NLAC were 3.5 nm and 0.014 cm3/g, respectively. The expected average size of MB dye is 0.7 × 1.7 nm; hence, the MB dye easily accommodates the pores of the NLAC surface and was effectively adsorbed.

Fig. 6
figure 6

BET isotherms plot (a) and pore size distribution (b) of NL and NLAC

Table 1 Details of BET parameters of NL and NLAC

Removal analysis of MB dye using NLAC

Effect of adsorbent dose

The examination of adsorption dosage is required as it is directly associated with the large-scale application and also for economic study. The effect of NLAC dose was conducted under the conditions of dye concentration 10 mg/L, initial pH 7 and contact time 180 min. The result from the analysis is shown in Fig. 7a. With an alteration in the adsorbent dose from 10 to 100 mg, the MB removal was increased from 30 to 97%. In way of explanation, when the adsorbent dose increases in the solution, the active sites are exposed to dye molecules which require less energy to absorb and thus are absorbed quickly [26]. After the dose of 70 mg, there was no significant change in adsorption efficiency which cleared that after the adsorption dose of 70 mg, all the cationic MB dyes molecules adsorbed onto the surface of the NLAC and the formation of the equilibrium state takes place between the absorbent and the pollutants in the solution.

Fig. 7
figure 7

Influence of adsorbent dose (a), initial concentration (b), contact time (c) and pH (d), on the removal of MB dye

Effect of dye concentration and contact time

The effect of initial MB dye concentration was studied in the range of 10 to 100 mg/L under room temperature with an adsorbent dose of 70 mg, pH 7 and contact time of 180 min. The outcomes are presented in Fig. 7b, which directed that a decrease in adsorption rate enhanced the initial concentration. This was because the surface area of the adsorbent at a low initial concentration (10 mg/L) and high concentrations (100 mg/L) was the same; hence, the active sites of the adsorbent become completely and immediately saturated, and the remaining dye within the solution was not adsorbed. Therefore, increasing the initial concentration of MB decreased the adsorption capability from 96 to 34%. Further, the effect of contact time was studied in the range of 10–180 min with an initial concentration of 10 mg/L and an adsorbent dose of 70 mg. The outcomes (Fig. 7c) confirmed that at the first contact time, the adsorption of dyes proceeds rapidly, but after 100 min the adsorption rate was nearly constant and not changes necessarily with improved time. This high rate of adsorption in lower time is due to the sufficient surface area and unsaturated active sites for adsorption dye molecules; at the same time, the reaction time was lengthened, and the active sites were occupied, leading to nearly constant adsorption efficiency [25].

Effect of pH

pH is an important process parameter in the adsorption work as it influences the surface properties in the adsorption process. The effect of pH on the MB adsorption had been done in the range of 2–11 under the conditions of contact time 100 min, 10 mg/L initial concentration and 70 mg of adsorbent dose, respectively. Results (Fig. 7d) indicated that at lower pH, the oxygen-containing functional group of NLAC surface protonated; as a result, a repulsive electrostatic force occurred with cationic MB dye molecules which decreased the adsorption efficiency. The pHpzc of the material was 6.9, so above this pH adsorbent surface was negatively charged; hence, the removal rate was maximized at higher pH.

Adsorption isotherm

The adsorption isotherm gives information about the adsorption behavior and possible adsorption mechanism and evaluates the adsorption capacity of the adsorbent, respectively. Three well-known isotherm models were used to express the adsorption behavior of MB dye, i.e., Langmuir [44], Freundlich [45] and Temkin isotherm [46]. The nonlinear equations of the above isotherms model are as follows:

$$q_{e} = \frac{{q_{m} bC_{e} }}{{1 + bC_{e} }}$$
(3)
$$q_{e} = K_{F} C_{e}^{1/n}$$
(4)
$${q}_{e}=\frac{\mathrm{RT}}{\mathrm{Bt}}\mathrm{ln}{K}_{T}Ce$$
(5)

Here, R and T are universal gas constant (8.314 J/Kmol) and temperature, qe is the uptake capacity of adsorbent (mg/g); b, KF and n are Langmuir constant, Freundlich constant and heterogeneity factor; Bt and KT are binding energy constant (J/mol) and Temkin isotherm constant (L/g). Figure 8 presents the nonlinear fitting of the isotherms model with the MB dye adsorption data, and the established isotherms parameters are presented in Table 2. Analysis indicated that the Langmuir isotherms model has higher R2 values of 0.96 than the Freundlich (R2 = 0.85) and Temkin isotherm (R2 = 0.94) models. The RL value was also found between 0 and 1, i.e., 0.01 which further supports the data to follow Langmuir isotherm model, respectively. Hence, MB dye molecules were homogeneously distributed on the NLAC surface through the monolayer adsorption process [41]. The adsorption capacity of the present activated carbon was compared with other activated carbon prepared with bio-waste and presented in Table 3. It was observed that the activated carbon prepared from agricultural product has the potential for MB dye removal. The present material has high adsorption capacity and can be applied for wastewater treatments for dyes removal.

Fig. 8
figure 8

Nonlinear fitting Langmuir, Freundlich and Temkin adsorption isotherm model

Table 2 Langmuir, Freundlich and Temkin isotherm parameters for MB dye adsorption
Table 3 Adsorption capacity of different adsorbent materials

Adsorption kinetics

Adsorption kinetics examines the rate between adsorbent and adsorbate and the factors affecting the rate of reaction. In this work, the pseudo-first-order reaction (PFO) and pseudo-second-order reaction (PSO) are used to know the information about the adsorption kinetics of MB dye on the NLAC surface. The nonlinear PFO and PSO kinetics equations are expressed as follows:

$$q_{t} = q_{e} \left( {1 - e^{{ - k_{1} t}} } \right)$$
(6)
$$q_{t} = \frac{{q_{e}^{2} k_{2} t}}{{1 + q_{e} k_{2} t}}$$
(7)

where both qe and qt are the uptake capacity of adsorbent at equilibrium time and any time t; k1 and k2 are rate constants of the first order and second order, respectively. Figure 9 shows the adsorption kinetics plots, and the obtained parameters are presented in Table 4. The determination coefficient (R2) of the pseudo-second-order kinetics model was 0.96 and higher than the pseudo-first-order kinetic model (R2 = 0.95). Hence, the pseudo-second-order was more suitable than the pseudo-first-order. Thus, it is chemically controlled, which may be showed in the exchange of electrons between NLAC hydrophilic sites and dye cations, respectively [51].

Fig. 9
figure 9

Nonlinear fitting of PFO and PSO kinetics model

Table 4 Kinetic parameters and correlation coefficients (R2) for pseudo-first-order and pseudo-second-order kinetic models

Thermodynamics studies

To calculate the thermodynamic parameters (ΔGº, ΔHº and ΔSº), batch analysis was carried out in different temperature ranges from 30 to 90 °C at 10 mg/L MB dye concentration, pH 7, contact time 100 min and adsorbent dose 70 mg. Figure 10a indicates that at a rise temperature of 30 to 90 °C the MB dye removal increased from 90.9 to 96.09%, respectively. This indicated that decolonization of dye molecules on the NLAC surface was increased with temperature which ultimately increased the rate of adsorption capacity. The optimum temperature was 80 °C as removal of dye became constant after this temperature. Thermodynamics parameters have been analyzed using the following equations:

$$\Delta G = - RT\ln K_{C}$$
(12)
$$\log K_{C} = \left[ {\frac{\Delta S}{{2.303R}} - \frac{\Delta H}{{2.303RT}}} \right],$$
(13)

where ΔGº, ΔSº and ΔHº symbolize free energy, entropy and enthalpy change and KC is the thermodynamic distribution coefficient. These parameters were calculated from van't Hoff's linear plot (Fig. 10b), and the results are represented in Table 5. Here, it can be concluded that the MB dye adsorption of NLAC surface was endothermic in nature as further supported by positive values of ΔSº (0.095 kJ/Kmol) and ΔHº (0.095 kJ/mol). On the other side, the negative values of ΔGº indicated the spontaneity of MB dye adsorption on the homogenous surface of NLAC and disorderness on the surface increases with temperature [53].

Fig. 10
figure 10

Effect of temperature a van’t Hoff plot, b for MB removal

Table 5 Obtained thermodynamic parameters for MB dye adsorption

Adsorption mechanism

The adsorption of MB dye molecules on the NLAC surface was explained in the results obtained from the FTIR and pHIEP studies. As we have discussed earlier in FTIR studies, shifting in –OH bends took place after adsorption; hence, this suggested that –OH groups of phenol, acid, alcohol and ether were responsible for MB adsorption. Based on these, three types of adsorption mechanisms were proposed as presented in Fig. 11. Firstly, it was found that the pHIEP of NLAC was 6.9, so above this pH adsorbent surface is negatively charged and attracts the positively charged dye molecules. Secondly, hydrogen bonding was carried out between the –OH and –COOH groups of adsorbent with the N and S atoms of the MB dye molecules. Lastly, electron donor–acceptor pi–pi interaction was seen between the aromatic rings of MB dyes and the pi-electron system of activated carbon, respectively.

Fig. 11
figure 11

Representation of possible interactions mechanism of MB dye on the NLAC surface

Conclusion

Here, the activated carbon was prepared using a biomass waste of neem leaf which not only reduces environmental pollution but is also reused for the application of wastewater treatment. The K2CO3 activation by microwave process bought significant results in activated carbon formation from NL powder. The formed NLAC had a surface area of 50.69 m2/g. In the optimized conditions of 10 mg/L initial MB dye concentration, pH 8, contact time 100 min, temperature 80 °C and adsorbent dose of 70 mg, about 97% of MB dye was removed from the aqueous solution. The MB dye adsorption on the NLAC surface was proceeding with the Langmuir isotherm model with an uptake capacity of 132.52 mg/g. The removal data matched with the pseudo-second-order kinetic model which indicated the chemisorption process. Hence, the NLAC can be applied to a real-life application for MB dye removal in wastewater treatment.