1 Introduction

Agriculture is an absolute necessity for living being. Globally, the agriculture sector produces 24 million tons of food annually [1]. In the present scenario, to meet the high demand of a fast-growing population, abundant agricultural waste is being generated. Among them, India produces approximately 350–990 Mt of agricultural waste (biomass) every year, which includes industry wastes (peels, pulps, bagasse, etc.), crop residues (stems, leaves, husks, etc.), and live stocks, etc. Biomass consists of one of the vital and major constituents, i.e., lignocellulose (cellulose, hemicellulose, and lignin) [2]. Lignocellulosic biomass is versatile and has been extensively explored for the synthesis of several value-added products, namely compost, bio-bricks, concrete, bioethanol, biogas, biochar, and activated carbon, etc., which can be of commercial importance. Additionally, valorizing biomass could simultaneously reduce the existing waste management crisis.

Activated carbon (AC) is a highly porous structured substance, an efficient adsorbent for gas and water applications. AC has also been used as catalyst support, gas storage, supercapacitors, etc. The global AC market is estimated to be 6 billion USD in 2023 [3], and it is projected to reach 7.5–9 billion USD by 2030, with an apparent increment in production of 10% every year [4], which indicates the rising demand. Commercially produced AC contains a marvelous porous matrix undoubtedly. However, it carries economic limitations of high material and regeneration costs, which mandates a substitute precursor (i.e., ubiquitous, affordable, and renewable) [5]. In this regard, lignocellulosic biomass waste is an inevitable replacement as the precursor, which is relatively less expensive, easily available, abundant in nature, and most effective for specific absorption-related applications, etc. A variety of lignocellulosic biomass wastes has been explored as precursors for AC preparation, such as coconut shell [6], bael fruit [7], barley husk [8], date stones [9], date palm bark [10], Limonia acidissima shell [11].

Preparation of AC consists of two major steps, including high-temperature carbonization in an inert atmosphere and subsequent activation of the material. Carbonization leads to the development of pore structure which is rudimentary in nature. However, activation causes enhancement of pore diameter and results in nucleation of pores. Some of the exemplary work associated with chemical activation are mentioned as follows: Ozsin et al. [12] used KOH and K2CO3 as activating agents, and chickpea husk was the primal matter for the production of AC. Similarly, Genli et al. [13] employed hydrothermal carbonization for the chemical activation of the carbon using KOH. Several other works also reported H3PO4 [14], H2SO4 [15], ZnCl2 [16], and NaOH [17], etc. as activating agents. Among these, ZnCl2 is known for outstanding performance as an activator. Polymerization occurs by ZnCl2 activation results in high yield, and Lewis acid nature creates ring-type aromatic compounds, leading to uniform pore formation [18]. In another work, Astuti et al. [19] observed that ZnCl2 creates a template effect forming uniform pores in the pineapple leaf and coconut shell-based AC. Therefore, ZnCl2 could be a potential candidate to improve the characteristics of carbon matrix derived from unexploited biomass precursors.

Jackfruit (Artocarpus heterophyllus) is one such source of biomass precursors that are harvested in many tropical Asian countries (Indonesia, Myanmar, Thailand, Vietnam, India, etc.). In India, approximately 26,000 hectares of land are utilized for jackfruit farming. Around 60% of the fruit is inedible (central core, reed, peel, and seeds) and is considered bio-waste. An enormous amount of 3000–12,000 kg of waste could be generated and discarded just from a single tree [20]. The disposal of such huge wastes can lead to environmental issues, including water pollution, greenhouse emission, and asphyxiation [21]. In this context, few works have been reported on the jackfruit peel-based AC using KOH and H3PO4 [22,23,24]. These AC materials have been used to remove Malachite green dye, develop supercapacitor devices, and remove ciprofloxacin, respectively. However, ZnCl2-based activation of jackfruit peel AC is yet to be explored.

In the last few decades, the application of agricultural waste-based AC for the removal of synthetic dyes (from industries of textiles, food, paper, and pharmaceuticals) has gained immense attention. Synthetic dyes are of toxic nature (carcinogenic and mutagenic) even at lower concentrations and pose a serious threat to human health. They are highly stable compounds exhibiting resistance against light, oxidizing agents, and aerobic digestion [18]. Recently, Behloul et al. [25] studied the removal of CI Reactive red 141 using waste cotton fiber ZnCl2 treated carbon with a maximum removal of 98.61%. Similarly, Suhaimi et al. [5] treated crystal violet dye wastewater by employing AC prepared from a mixture of carrot juice pulp and pomegranate peel with an adsorption capacity of 211.8 mg/g. Another study by Quimada et al. [16] removed EBT dye by adsorbing onto ZnCl2-impregnated residual ground coffee AC with the removal of 93.26% and 92.66% in batch and column studies, respectively. Therefore, it is evident that chemically treated agricultural waste-based AC has demonstrated great potential in dye-removal applications.

Thus, this study aims to synthesize carbon from jackfruit peel powder (JPP) which is chemically activated by zinc chloride (ZnCl2) using a mathematical modeling technique (RSM-BBD). The experimental effects of the process parameters (impregnation ratio, activation time, carbonization temperature) were analyzed on the responses of yield percentage and iodine adsorption value. Along with proximate analysis and TGA, properties of the optimized AC were analyzed through SEM-EDX, FTIR, and XRD. Additionally, the efficiency of the optimized AC was investigated for the removal of an industrial dye (Remazol golden yellow) from an aqueous solution. The preparation methodology of activated carbon is represented in pictorial form in Fig. 1.

Fig. 1
figure 1

Preparation methodology

2 Materials and methods

2.1 Materials

Jackfruit (Artocarpus heterophyllus) utilized for the preparation of precursor was garnered from NIT Rourkela campus. Prior to use, the whole jackfruit was washed and cut into miniatures. The pulp and peel were segregated, followed by rinsing in distilled water, causing the obliteration of foreign particles, and lastly, overnight dried in a hot air oven at 60°C and pulverized in a ball mill. Zinc chloride (ZnCl2) powder from Merck was utilized as activating agent. The Remazol golden yellow was acquired from SRL Chemicals Ltd. Double distilled water was utilized for solution preparation.

2.2 Characterization of precursor material

The size of the particle was maintained to be at a uniform size below 1mm. Proximate analysis (ASTM D121), including moisture content, volatile matter, ash content, and fixed carbon, was performed to recognize the characteristics and elements of the bio-matter. Thermogravimetric analysis (TGA) was performed to determine the thermal behavior of the primal matter. It was checked from room temperature to 600°C at a 10°C/min rate in an inert atmosphere.

2.3 Activated carbon synthesis

In order to synthesize AC, specific amounts of precursor (JPP) combined with ZnCl2 at different impregnation ratios were amalgamated and impregnated at 90°C followed by drying at 120°C. In the tubular furnace, the dried sample was pyrolyzed at certain parameters, and the carbon obtained was washed in double distilled water until it achieved a neutral pH value [11].

2.4 Statistical optimization

Response surface methodology (RSM) provides a statistical method for observing the interaction between more than one experimental parameter (process parameter), namely, impregnation ratio, activation time, and carbonization temperature, on the evaluated process response(s). The chemical activation was assessed by the function of two responses: yield of the activated carbon (Y1) and the adsorption of the activated carbon in the form of iodine value (Y2). The estimation of Y2 is estimated as per standard procedure [ASTM D607].

2.5 Design of experiment and statistical analysis

Design of experiments (DOE) analyzes the interaction between the various process parameters and their effect on the responses in order to estimate the optimal parameter values. RSM is preferred since it reduces experimental runs, which reduces the amount of resources and time spent on testing. The Box-Behnken design (BBD) is a practical design for fitting a second-order response-surface model, which has been implemented for the experimentations. The software used for this optimization was version 13 of Design-Expert (Stat-Ease Minneapolis, USA). The number of experimental runs (N) was established by the equation as follows:

$$N=\left(K-1\right)(2K)+{C}_0$$
(1)

where K is the total number of process parameters, and C0 is the total number of central points.

All the predictions of the multiple responses were based on a polynomial regression model equation of 2nd order, which is as follows:

$$N={\beta}_0+\sum\nolimits_{i=1}^k{\beta}_i{x}_i+\sum\nolimits_{i=1}^k{\beta}_{ii}{x_i}^2+\sum\nolimits_{i=1}^{k-1}\sum\nolimits_{j=2}^k{\beta}_{ij}{x}_i{x}_j$$
(2)

where β represents the coefficient of regression which is in the response of x; β0 is the constant term, βi is presenting the effect of the linear terms, βii is presenting the effect of quadratic terms, βij is for the effect of the interaction of the parameters. xi and xj are certain process parameters. Analysis of variance (ANOVA) is used for statistical analysis, and it determines the interaction among the factors and responses based on the model proposed. The regression model’s quality is determined by the extracted coefficient of determination (R2, R2adj), the residue analysis, and the correspondence between the actual and the predicted values. The p value (probability value) decides whether the model will be selected or rejected with a 95% confidence level.

Current work represents RSM in the form of three factors and two levels BBD where the factors are impregnation ratio (IR) which is the ratio of ZnCl2 and the carbon source, activation time, and carbonization temperature. The effect of these 3 parameters, along with their interactive effects on iodine value and yield, is mentioned and analyzed. All the process parameters and their ranges are mentioned in Table 1. Calculation of the total number of experimental runs (N) was done for twelve factorial points and five midpoints, which is as per the equation mentioned earlier:

$$N=\left(k-1\right)\ (2k)+{C}_0=\left(3-1\right)\ \left(2\ast 3\right)+5=17$$
(3)
Table 1 Design parameters and levels used for optimization in Box-Behnken design

The optimization of each of the parameters for multiple responses was carried out using the desirability function. Desirability for each of the responses (yi) is set as per the priorities. It is denoted as di (individual desirability function), which ranges from 0 to 1. 0 represents non-desirability, and 1 represents fully desired. Within the range, it is in accordance with less or more desirable. Combining all the individual desirability functions, an overall desirability function (D) is extracted. The more the D value is closer to 1 more splendidly acceptable the estimate would be. In the current work of BBD, the desirability approach is applied to obtain the responses (yield and iodine value), which were maximized for the synthesis of carbon from JPP.

2.6 Characterization of precursor and activated carbon

The topographical characteristics of the raw precursor (JPP) sample, along with the optimized activated carbon, were investigated in SEM. The coating was performed with a thin layer of gold on the samples for the purpose of charge dissipation during the imaging. For the quantitative chemical composition of the activated carbon and the precursor, EDX was performed using JEOL JSM-6700F. Adsorption or surface reactions are dependent on various types of functional groups, and interpretation of the functional groups on the precursor and the activated carbon was made by Fourier Transform Infrared Spectroscopy (FTIR) spectra for a spectral region of 4000−1 to 400−1 cm−1. The X-ray diffraction was performed in the Rigaku Ultima IV instrument, which was equipped with Cu Kα radiation (40KV, 40mA) with a wavelength of 1.78901 Å on a setup size of 0.02. The rate of the scan was 10° per 60 s with a 2θ value of range 10 to 80°.

2.7 Adsorption study

The activated carbon was examined for the removal of Remazol golden yellow (an anionic dye) from the aqueous solution. A stock solution of 500 mg/l of the adsorbate (RGY) was diluted to acquire different concentrations for the study. Multiple parameters were tested to obtain maximum percentage removal: pH of the working solution, contact period of adsorbent and the adsorbate, amount of adsorbent, and initial concentration of the adsorbate. The working solution was 50 ml. Adjustment of pH was done by 0.1M HCl and 0.1M of NaOH. The detection was done in UV spectrophotometer (Shimadzu UV-1800) at a wavelength of 420nm. The equation of percentage removal is

$$\%R=\frac{C_o-{C}_f}{C_o}\ast 100.$$
(4)

C o is the initial concentration of the RGY in the aqueous solution, and Cf is the final concentration of the RGY.

2.7.1 Adsorption isotherm study

Isotherm equilibrium data investigates the properties of adsorbents, mainly the adsorption mechanism and maximum adsorption capacity [26, 27]. For equilibrium modeling for Remazol golden yellow adsorption, the Langmuir adsorption model and the Freundlich adsorption model were employed.

Langmuir represents monolayer adsorption which can be due to any of the chemical and physical interactions or both between the adsorbent and the active sites. It is presented by the following equation in linear form:

$$\frac{C_e}{q_e}=\frac{1}{q_m{K}_L}+\frac{C_e}{q_m}$$
(5)

where qm is monolayer adsorption capacity (mg/g), KL is Langmuir adsorption constant (L/mg), and Ce is the equilibrium concentration.

Freundlich represents multilayer adsorption, and the linear equation goes as follows:

$$\ln {q}_e=\ln {K}_F+\frac{1}{n}\ln {C}_e$$
(6)

where KF is Freundlich constant ((mg/g)(L/mg)1/n), and n is the empirical parameter implying the adsorption intensity.

2.7.2 Kinetic study

Pseudo-first-order and pseudo-second-order models were used to investigate the adsorption mechanism and acquire kinetic parameters. The linear form of pseudo first order and second order is presented as follows, respectively.

$$\log \left({q}_e-{q}_t\right)=\log {q}_e-\frac{K_1t}{2.303}$$
(7)
$$\frac{t}{q_t}=\frac{1}{K_2{q_e}^2}+\frac{1}{q_e}t$$
(8)

where qe and qt are adsorption capacity at equilibrium and at a time ‘t’ min, respectively (mg/g). K1 is the rate constant of pseudo first order (min−1), and K2 is the rate constant of pseudo second order (g/mg min)

3 Results and discussion

3.1 Proximate analysis

Prepared jackfruit peel powder (precursor) was utilized for the analysis of moisture content, volatile matter, ash content, and fixed carbon. As illustrated in Table 3, ash content being in the lower range makes the considered primal matter suitable for AC preparation as a lesser loss would occur during carbonization [28], and a higher amount of volatile matter is preferred as empty pores would be left behind after degradation of volatile matter, implying to the formation of porous adsorbent [29].

3.2 Thermogravimetric analysis

Prediction of the degradation behavior of jackfruit peel was performed by thermogravimetric analysis. TGA provides the primary data required for AC synthesis, as presented in Fig. 2. A remarkable degradation is visible between 200 and 350°C. Prior to this, the degradation is due to moisture content loss in jackfruit peel. Agro-waste is basically lignocellulosic biomass (cellulose, hemicellulose, and lignin). Degradation of hemicellulose and cellulose begins nearly from (200–260°C) and (240–300°C) respectively. Lignin is comparatively more thermostable and has a higher range of degradation; 400°C is considered the initial range of carbonization as the minute degradation ahead of it can be ignored caused by some non-combustible biomaterial.

Fig. 2
figure 2

Thermogravimetric analysis of JPP

3.3 Regression modeling

RSM was executed using a three-factor two-level BBD where the effect of each of the parameters, along with their interaction effect, was inspected on multiple responses with the selected two levels, as mentioned in Table 1. The design of the experimental runs and the calculated yield and iodine value after the performance of each of the experimental runs are mentioned in Table 2. As per the experimentally obtained data, the quadratic model was considered to be the most appropriate model among the other models like linear, cubic, two-factor interaction, etc., by the software named Design Expert, version 13.0, as it exhibits lower standard deviation and higher R2 value. The polynomial regression equation for the yield (Y1) and iodine value (Y2) is as follows:

$${Y}_1=+\;52.03+3.24\mathrm{A}\hbox{--}\;2.95\mathrm{B}\hbox{--}\;6.53\mathrm{C}-3.98\mathrm{AB}\hbox{--}\;0.4350\mathrm{AC}+3950\mathrm{BC}+3.34{\mathrm{A}}^2\hbox{--}\;0.8273{\mathrm{B}}^2\hbox{--}\;0.5997{\mathrm{C}}^2$$
(9)
$${Y}_2=+\;996.46+45.82\mathrm{A}+66.70\mathrm{B}+232.98\mathrm{C}+52.12\mathrm{A}\mathrm{B}+14.11\mathrm{AC}\hbox{--}\;139.29\mathrm{BC}\hbox{--} 161.71{\mathrm{A}}^2+37.19{\mathrm{B}}^2\hbox{--}\;291.70{\mathrm{C}}^2$$
(10)
Table 2 Experimental design matrix for yield% and iodine no. of ZnCl2-AC
Table 3 Proximate analysis of jackfruit peel
Table 4 Analysis of variance (ANOVA) for the multilinear regression model of yield%
Table 5 Analysis of variance (ANOVA) for the multilinear regression model of iodine no.
Table 6 Model validation
Table 7 Comparison of yield and iodine value of many ACs
Table 8 Isotherm parameters for RGY removal using AC
Table 9 Kinetics parameter for the adsorption of RGY using AC

The equations, as mentioned above, were used for the prediction of the responses. The + sign displays the beneficial influence of the term on the response, whereas the − sign displays the adverse impact of the term on the response. In Eq. 9 for yield, 52.03 is apparently independent of any individual factor or their interactions. The individual (A), 2nd order (A2), and interaction (BC) terms have a positive impact on yield, whereas remaining terms, such as B, C, B2, C2, AB, and AC, have a negative influence on the yield of the synthesized carbon using chemical activator. From Eq. 10, it is evident that 996.46 is dependent on none of the terms of the quadratic model. All the linear order terms that are B, A, and C have a good influence on iodine value, 2nd-order term; B2, along with interactions AB and AC, also has a positive impact on iodine value, whereas 2nd-order terms A2 and C2 and interaction AC have an adverse effect on the iodine value.

3.4 Statistical analysis of variance

The statistical analysis of variance (ANOVA) of the BBD was analyzed in a software named Design Expert, version 13.0. It figures out whether the model is significant and fit or not. It also determines which of the terms (linear, quadratic, and interactions) are significant for the model. For which, the p value (probability value) should be <0.05 (confidence level of 95%) [30] for the model as well as the model terms. Tables 4 and 5 illustrate the model fittings for the responses Y1 and Y2, respectively.

With the p value of 0.0006 and F value of 17.06, the model is significant for yield% (Y1), as visible in Table 4. In the ANOVA table for yield, the p value for B, A, C, AB, and A2 is not more than 0.05, which is why these terms of the model are statistically significant. On the other hand, terms like B2, C2, the interaction between the IR and carbonization temperature (AC), and the interaction between activation time and carbonization temperature (BC) are statistically non-significant as the p value is more than 0.05. The interaction of the impregnation ratio and activation time (AB) has the most significant influence on the yield of ZnCl2-AC. The R2 value of 0.9564 represents an inimitable degree of fit of the polynomial regression model. Only 0.0436 of the total variations cannot be justified by this model. The predicted R2 of 0.7047 is in fair agreement with the value of 0.9003 of adjusted R2, as the difference in-between them is not more than 0.2, portraying a decent predictableness of the model. The standard deviation is 1.99, which gives an overview of similarities between the actual and predicted values for yield (Y1). Coeff. of variation (CV) is 3.76, which shows good precision of the model. The CV below the value of 10% makes the model highly reliable [31]. The adequate precision is a value that represents the signal-to-noise ratio, and its value is greater than 4, which is desirable. The p value of the lack of fit of 0.5755 (insignificant) is preferable.

In Table 5 of ANOVA for iodine value, the model is significant with a probability value less than 0.0001 and F value of 41.54. All the terms of linear type (A, B, and C), terms of 2nd order type like A2, C2, and interaction of activation time and temperature (BC) are statistically significant. All the other terms are non-significant. The R2 value of 0.9816 depicts that there is only 0.0184 of the total data that the current prescribed model cannot explain The difference between adjusted R2 and predicted R2 is within 0.2, which displays good model predictability. The CV of 6.67% confirmed the experimental accuracy. Models with higher F value and p value < 0.001 exhibit that the responses are well explained by their respective model equations [32].

The graphical representation of the actual data Vs predicted data for both the responses yield (Y1) and iodine value (Y2) is displayed in Fig. 3a, b. The predicted values are the data obtained by the model, and the actual data is the experimental data.

Fig. 3
figure 3

Plot of predicted response vs actual response for (a) yield and (b) iodine no.

From the figures of actual data vs predicted data for yield and iodine value, it has been analyzed that as the data points are dispersed adjacent to the diagonal line, the correlation between the experimental data and the predicted data is proper [33]. It also implies to a good correlation of independent variables with the responses.

3.5 Interaction effect of process parameters on the responses

In Design Expert Software version 13.0, 3-dimensional graphs were produced for each model response (yield and iodine value) using the significant interactions of the process parameters. Two parameters vary between the levels, and the third parameter is kept constant.

Figure 4, the 3-D plot of the simultaneous effect of IR and activation time on the yield, illustrates that with the increase in the impregnation ratio, the yield increases, which can be due to polymerization due to the reaction between the activating agent and the biomass. With the increase in time, the yield decreases due to the degradation of the volatile substances caused by the reaction between activating agent and biomass.

Fig. 4
figure 4

Effect of activation time and impregnation ratio and on yield percentage

Figure 5 represents the interaction between carbonization temperature and activation time and their impact on the iodine value. Initially, time and temperature trigger iodine value to increase, caused by the degradation of volatile matter with the prolonged intensification of reaction leading to pore formations. But beyond a certain temperature, the pore structure starts to break due to less endurance, causing a reduction in the volume of the pores along with the specific surface area of the carbon. Das et al. [11] also reported that temperature handles the rate at which the reaction occurs, whereas time handles the extent of the reaction required to develop a well-formed pore structure. Liu et al. [34] also explained similar results illustrating the increase and decrease in iodine value. The increasing iodine value is due to the uniformity in the formation of the micropores because of the reaction between carbon and water. Further rise in temperature expanded the micropores to mesopores or macropores, which caused the reduction in iodine value. Simultaneously, prolonged time caused burnoff of the pores resulting in less iodine value.

Fig. 5
figure 5

Interaction effect of carbonization temperature and activation time on iodine no.

3.6 Parameter optimization

For optimization of AC synthesis, a maximum iodine value and a moderate to high yield were preferred. The iodine value specifies the effectiveness of the material, and yield directly influences the price of the activated carbon. Numerical optimization was done to get the best probable optimized value for the responses. The yield was set to be ‘in range,’ and the iodine value was set to be ‘maximum.’ The estimation of the optimum values for the independent variables is IR, A = 0.74; time, B = 89.15 min; and temperature, C = 603°C to attain a yield of 46.16% and iodine value of 1090.44 mg/g, which is presented in Fig. 6. It was verified by experimenting with the predicted independent variables. An iodine value of 1163.3 mg/g and a yield of 54% were acquired as experimental results. The experimented data values were close to that of the estimations obtained from the model, as displayed in Table 6. Thus, RSM-BBD has displayed to be an excellent fit for current experimental data.

Fig. 6
figure 6

Desirability approach

3.7 Characterization of precursor and optimized ZnCl2-AC

3.7.1 Scanning electron microscope (SEM) and energy dispersive X-ray (EDX)

The surface morphology of JPP and prepared AC by zinc chloride activation (ZnCl2-AC) was analyzed by scanning electron microscopy (SEM), imaging at 500× magnification as displayed in Fig. 7. It clearly demonstrated a very rough, irregular surface, and broken at some part of the surface. The ZnCl2-AC showed the presence of a porous surface, and it was full of cavities of heterogeneous shapes and sizes, which were the opening ends of channel-like pores [35]. The cavities were the result of the evaporation of zinc chloride during the process of activation and leaving behind the pore cavities [36]. The release of the most volatile organic material resulted in the formation of pores on the surface [37].

Fig. 7
figure 7

a) SEM image of precursor (jackfruit peel). b) SEM image of optimized ZnCl2-AC. c) EDX of precursor. d) EDX of optimized ZnCl2-AC

The energy dispersive X-ray analysis (EDX) was performed to acquire the proportionate composition of the elements in JPP and ZnCl2-AC. Carbon and oxygen were the major components observed in AC, with some traces of potassium, zinc, and chlorine. Both JPP and ZnCl2-AC have a peak at approximately 2 keV, which is because the gold coating on the surface of both samples makes them conductive [38].

3.7.2 Fourier transform infrared spectroscopy (FTIR)

The FTIR analysis was done to identify the functional group of the raw sample (JPP) and the ZnCl2-AC sample, as presented in Fig. 8. The broad peak around 3392 cm−1 and 3406 cm−1 is identified as the O–H stretch (hydroxyl group) or –NH2 (amines group) [39, 40]. The sharp peak at 2920 cm−1, 2922 cm−1, 2850 cm−1, and 2851 cm−1 is associated with C–H aromatic and C–H aliphatic stretching vibrations [41]. The peak of 1736 cm−1 is attributed to the presence of the C=O stretch of the aldehyde group [42]. The peaks at 1594 cm−1 and 1612 cm−1 show the presence of the C=O stretch (lactone group) [11] and C=C stretch [41, 43]. The 1453 cm−1 and 1404 cm−1 peaks may indicate the presence of C–H bend [42]. The peak at 1256 cm−1 indicates C–O stretch [43]. The peak at 1030 cm−1 and 1045 cm−1 indicates the C–O vibrations [44]. The region 1000 cm−1–1280 cm−1 indicates the presence of ether group (C–O–C) [45]. The region less than 1000 cm−1 is called the fingerprint region. It is a complex region and quite difficult to identify the functional groups. The weaker peaks from 670 to 900 cm−1 can be due to C–H vibrations on the aromatic rings; 610 cm−1–680 cm−1 peaks indicate the presence of C–H (alkyne groups) [11].

Fig. 8
figure 8

FTIR spectra of JPP and ZnCl2-AC

The FTIR spectra show a reduction of peaks in the AC compared to the raw sample as it occurs due to less absorbance in the region from 2800 to 3500 cm−1 due to the loss of hydroxyl groups. This is because of the carbonization of the JPP and activation using ZnCl2, which acts as a dehydrating agent and breaks some bonds accompanied by heat [11]. The reduction in the intensity of the peaks in 1000 cm−1–1200 cm−1 might have been caused by the oxygen reduction after activation [45]. Decreasing some of the bands and disappearance of certain peaks in the region of 1000 cm−1–2000 cm−1 are also related to the degradation of the lignocellulosic matter after chemical treatment of the raw sample [46].

3.7.3 X-ray diffraction (XRD)

Evaluation of certain properties of JPP and ZnCl2-AC was done by X-ray diffraction (XRD), presented in Fig. 9. As seen from the pattern of the raw sample, a significant peak appeared around 2θ = 25.53° indicated the presence of organized crystalline cellulose material [47]. After activation and carbonization, there is a little shift in the peak which may depict the degradation of the lignocellulosic matter. The broad peak between 2θ = 15° and 35° in the ZnCl2-AC reveals the amorphous phase of the AC. The presence of peaks around 2θ = 26° and 29° exhibits the SiO2 and CaCO3 impurities, respectively [48]. Around 2θ = 44°, the peak depicts the presence of hexagonal graphite structure [49, 50]. The diffractogram showed sharp peaks due to the presence of various phases of zinc compounds such as ZnO, Zn(OH)2, and many more [4, 51]. The sharp peak around 2θ = 14° confirms the presence of SiO2 impurity in jackfruit peel [47].

Fig. 9
figure 9

XRD interpretation of raw sample (JPP) and ZnCl2-AC

3.8 Comparison of yield and iodine value with other precursors

There have been many studies done on the preparation of AC using multiple activating agents. A comparison study has been done of the iodine value and percentage of yield with other AC synthesized from other agricultural waste precursors and activating agents. It has been illustrated in Table 7 that the obtained yield and iodine adsorption value of the ZnCl2-AC have better results than many others.

3.9 Evaluation of adsorption properties of ZnCl2-AC against industrial dye

The adsorption study was performed on an industrial dye called Remazol golden yellow (RGY), using the optimized activated carbon (ZnCl2-AC) as an adsorbent. The impact of pH, contact period, amount of adsorbent, and initial concentration of RGY solution was studied systematically to check the adsorption capability of ZnCl2-AC. RGY adsorption as a function of all the parameters mentioned above is illustrated in Fig. 10.

3.9.1 Effect of pH

Removal efficiency reduced from 97.78 to 92.94% as the pH went from 2 to 10, as depicted in Fig. 10a. The adsorption capacity also remains high for pH 2–10, as displayed in Fig. 11a. The removal efficiency is high irrespective of the pH of the solution. The decrease in the sorption was only 4.84% when pH increased from 2 to 10. The amphoteric behavior of the activated carbon is exhibited [52]. It can behave as a positive (+ ve) surface or negative (−ve) surface, depending upon the pH of the working solution. In acidic pH, the surface attains a positive charge. Electrostatic attraction of the colored anion of RGY dye happens towards the + ve surface of the adsorbent present in the solution[53]. In basic pH the ZnCl2-AC surface possibly contains certain functional groups that attract the anionic dye particles. Electrostatic repulsion could have been less between the RGY dye ion and the −ve surface of ZnCl2-AC.

Fig. 10
figure 10

Percentage removal data as per (a) pH, (b) adsorbent dose, (c) contact period, and (d) initial concentration

Fig. 11
figure 11

Effect of (a) pH, (b) adsorbent dosage, (c) contact period, and (d) initial concentration on adsorption capacity

3.9.2 Effect of adsorbent dosage

The adsorbent dosage effect was studied for a range of 0.05 to 0.5g of ZnCl2-AC (pH: 6, contact period: 40 min, and initial RGY concentration: 50 mg/L). As per Fig. 10b, RGY adsorption subsequently increases from 85.95 to 96.69% with an increase in ZnCl2-AC dosage from 0.05 to 0.2g, which substantiate the abundance of the active sites initially. However, the adsorption rises by only 2% on an additional increase of 0.1g ZnCl2-AC, and for further increase in adsorbent, the removal efficiency remains almost constant. As mentioned by Liao et al. [54], spectrums of binding energy are all over the adsorbent surface on the active sites. Adsorption is faster as the sites are exposed entirely for adsorption at a lower adsorbent dose and showing high qe value (Fig. 11b), but at a higher dosage, the availability of higher sites decreases with a larger fraction of lower energy sites occupied, resulting in a lower qe value. Active sites increase with the addition of the adsorbent amount in a certain volume of working solution, but simultaneously there would be a drop in adsorption capacity as the sites remain unsaturated as dosage increases [55].

3.9.3 Effect of contact period

It is witnessed from the graph (Fig. 10c) that the RGY dye adsorption on ZnCl2-AC is quite fast initially, where 90% of the adsorption takes place at initial 5 min, and equilibrium is attained within 40 min. It can be interpreted that the whole vacant surface sites are initially available for adsorption, which gradually decreases, and after equilibrium, due to the repulsive force between the molecules at the sites, it is difficult to occupy the remaining vacant sites. It can also be understood that the active sites get blocked by the RGY molecules, leading to the fall in the adsorption rate and causing dynamic equilibrium, after which there would be no substantial increase in RGY molecule adsorption on the ZnCl2-AC surface [56].

3.9.4 Effect of initial RGY concentration

The impact was studied by varying the concentration of RGY from 10 to 100 mg/L. An increase in RGY concentration causes the removal efficiency to decrease while the adsorption capacity increases. It is reasonable, as adsorbents have a fixed amount of active sites accommodating only a certain concentration of the adsorbate. In the adsorption process’ initial stage, more active sites are easily accessible. It facilitates the RGY dye molecules to get aggregated on the ZnCl2-AC surface due to the driving force that surmounts the resistance among the interface of solid-solution. The adsorption capacity hiked from 1.618 to 12.87 mg/g, as illustrated in Fig. 11d, apparently caused by the amplification of the driving force. On the contrary, the uptake efficiency falls from 97.1 to 77.2% (Fig. 10d) as the RGY dye molecules saturated the ZnCl2-AC adsorption active sites [25, 56].

After studying the impact of all the affecting parameters on the adsorption of Remazol golden yellow dye from an aqueous solution, as mentioned above, the maximum removal efficiency was found to be nearly 97% for the optimum conditions as followed; 40 min of the contact period, 0.3 g of ZnCl2-AC dose, and 10 mg/L of RGY solution at 6 pH.

3.10 Adsorption isotherm

The fundamental data acquired by the isotherms contributes to the knowledge of the unit operation of the adsorption at equilibrium [12, 14]. Experimentation includes the effect of various concentrations of RGY dye at 35°C after 40 min. Graphs are presented in Fig. 12. Evaluation of the adsorption data was tested by the Langmuir and Freundlich model by linear regression, as presented in Table 8. Among the two models with a higher coefficient of correlation of 0.991, Freundlich was depicted to be the best fit for the experimental data. Based on the assumptions of the Freundlich isotherm model, multilayer adsorption of Remazol golden yellow molecule occurs on energetically heterogeneous surface with sites having different affinity for adsorption. 1/n value of 0.473 (<1) implies favorability. Suhaimi et al. [5] acquired similar results as they utilized pomegranate peel mixed with carrot juice pulp which was activated using zinc chloride to remove crystal violet dye. Husein et al. [57] also showed the Freundlich model as the best-fitted isotherm while investigating H3PO4-activated algae-based activated carbon for methyl orange treatment.

Fig. 12
figure 12

(a) Langmuir isotherm model and (b) Fruendlich isotherm model for RGY adsorption on ZnCl2-AC

3.11 Adsorption kinetics

Adsorption kinetics’ information data accords with the mechanism pathway and residence time. The analysis was done in between two models, pseudo first and pseudo second order, in their linear form as presented in Fig. 13. As per the kinetic parameters presented in Table 9, the pseudo-second-order model better represents the experimental data with the coefficient of correlation closer to unity (0.9998) as compared to pseudo first order (R2 = 0.8741). As per the assumptions related to pseudo second order, chemi-sorption is the reason for the removal process. The RGY dye ions are getting attached to the ZnCl2-AC through chemical bonds. At the optimum condition of concentration of RGY dye solution, the inter-particle collision is less, which helps in faster bonding of the adsorbate on the active sites of the ZnCl2-AC surface. These results are parallel to the kinetic models investigated by Quimada et al. [16] while investigating the treatment of Erichrome black T using residual coffee grounds. As per the study executed by Raj et al. [58], Remazol brilliant blue R dye was adsorbed from an aqueous solution by utilizing sewage sludge biochar.

Fig. 13
figure 13

(a) Pseudo-first-order model and (b) pseudo-second-order model for RGY adsorption on ZnCl2-AC

3.12 Adsorption mechanism of RGY dye

Many processes can possibly govern the adsorption route for RGY dye on ZnCl2-AC. For example, pore diffusion, electrostatic interaction, ℼ–ℼ interaction, hydrogen bonding etc. [5]. Figure 14 demonstrates the possible interactions contributing to RGY dye adsorption onto ZnCl2-AC. Pore diffusion is predominantly responsible for adsorption. Activated carbon (ZnCl2-AC) combines macropores, mesopores, and micropores. RGY dye’s molecular size is approximately 2 nm. RGY molecule entry is unhindered through macropores. Diffusion is relatively easy through mesopores. It could even pass through partial numbers of micropores, but it is very difficult to get through for some of the micropores. FTIR analysis provided the data illustrating the presence of O–H group and C=O group on the adsorbent’s surface. RGY molecules with H acceptor oxygen atom are bonded with the hydroxyl group of ZnCl2-AC by hydrogen bond. ℼ-electron of the ZnCl2-AC and ℼ-electron of the benzene ring of the RGY molecule (electron donor and electron acceptor, respectively) are bonded with ℼ–ℼ interaction [59]. Ogroup of ZnCl2-AC engages with the benzene ring of the RGY molecule in n–ℼ interaction.

Fig. 14
figure 14

Possible mechanism interaction of RGY adsorption on ZnCl2-AC

3.13 Reusability of ZnCl2-AC as adsorbent

The reusability of any synthesized adsorbent displays its stronghold in its valorization [60]. To test the reusability of ZnCl2-AC, distilled water, strong acid, and strong base were used to treat the adsorbent after each adsorption cycle. As displayed by the graph (Fig. 15), the RGY removal efficiency of ZnCl2-AC decreases more after each cycle when desorbed with distilled water than hydrochloric acid. Treatment with sodium hydroxide exhibits consistent adsorption efficiency of more than 90% even after its 4th cycle. ZnCl2-AC has the potential to be used at least 5 times.

Fig. 15
figure 15

Reusability test of ZnCl2-AC

4 Conclusion

An investigation had been carried out where activated carbon was synthesized using abundantly available agricultural waste jackfruit peel and activated using ZnCl2. The optimization was practiced using the Box-Behnken design method with parameters: impregnation ratio, activation time, and carbonization temperature for the maximization of iodine value and yield. ANOVA was performed on quadratic models for each response to gain better relation among the three variables, and a higher value of coefficient of correlation depicted a good fit of the model. Simultaneous optimization was engaged for the desirability approach for the optimum yield and iodine value conditions. For the current work, the maximum yield obtained was 46.16%, and the maximum iodine value obtained was 1090.44 mg/g for optimum conditions of 0.74 IR, 603.08°C carbonization temperature, and 89 min of activation time. This prediction of the model was validated by running an experiment that came to be almost similar to the predicted values. The response data was well compared with the literature data showing high iodine adsorption value and yield. The SEM results depicted well-developed pore structures, and FTIR analysis assessed the presence of various functional groups. The adsorption performance displayed inimitable results when the optimized activated carbon was used as an adsorbent, with a high removal efficiency of 97% for an anionic dye (Remazol golden yellow). Freundlich isotherm model and pseudo-second-order model exhibited better representation of the experimental data. Pore diffusion, electrostatic interaction, ℼ–ℼ interaction, and hydrogen bonding were the cause of possible interactions. Multiple use is possible for up to 5th cycle. To sum up everything that has been stated so far, the above results support the use of locally available precursor, making it economical to prepare chemically activated carbon in an efficient manner with more control over the desired results.