Introduction

In the last decade, global peanut cultivation has grown due to increased demand, attributed mainly to their perceived health benefits, resulting in a total production of ~ 41.4 MMT in 2019/2020 [1]. Peanut and other nutshells are considered as waste in various parts of the world and are usually used for their fuel value [2]. However, this agricultural by-product can be converted to higher value products, such as activated carbon (AC) [3, 4], which has various commercial applications and is typically produced from different organic precursors such as wood, coconut shell, coal, bones, peat etc. [5, 6]. In addition, various agricultural residues, such as rice husk, corn stalks, apricot stones, almond shells, coffee beans etc., have been explored to produce ACs, due to their comparatively low cost [7, 8]. Researchers have previously reported the production of AC using peanut shell as a precursor [3, 9,10,11,12,13], with surface areas up to 1200 m2/g reported; however, these studies have lacked a focus on determining the controlling variables to enhance the carbon characteristics.

AC forms a large class of porous solid media, and due to their large porosities, they are widely used as adsorbents in the removal of pollutants and organic compounds from gases, water, wastewater, and air [14]. The textural and structural characteristics of AC depend on factors such as carbon content and solid structure of the precursor, activation method, activating agent and activation conditions. AC can be obtained via two routes: physical and chemical activation. Physical methods involve carbonisation of biomass in an inert environment, followed by partial gasification of the resulting char in oxidising gases such as carbon dioxide, steam, air or a mixture of these gases, using high temperatures, ranging between 700 and 1000 °C, to enhance the pore structure [5, 15, 16]. By contrast, chemical methods require lower temperatures (< 700 °C), using dehydrating agents such as ZnCl2, phosphoric acid, KOH, etc., to influence carbonisation and inhibit the formation of tar, thus increasing the carbon yield [16]. Such chemical routes are mostly applied for biomass with carbon content above 45%, [17] and peanut shells are reported to have levels at ~ 46% [2], making them ideal candidates for chemical activation. The effectiveness of ZnCl2 in enhancing the porosity of porous carbonaceous materials has been well established in previous studies. ZnCl2 acts as a catalyst that decomposes the biomass structure and facilitates the dehydration process during the carbonisation step, leading to the formation of char, aromatic compounds and pore structure [15, 16, 18]. Therefore, this study employs ZnCl2 as the chemical agent for the preparation of porous carbon materials.

As ACs can be applied in a range of applications, it is essential to tailor the final properties of the AC to the chosen application, to fully understand and optimise the process [19]. Traditional approaches involve varying each experimental parameter, one at a time; however, a more efficient way to reduce the number of experimental runs, while also understanding the interplay between variables, is to apply design of experiment (DoE) [20], which provides the capability to vary factors simultaneously. Response surface methodology or modelling (RSM) is a useful technique used in DoE to study the interactions between parameters, allowing optimisation. It employs various surface visualisation techniques, such as contour plots, surface plots, interaction plots, and so on, to evaluate the influence of the factors on the response and the identification of the optimal factor combination that maximises or minimises the response [21].

Previous studies have investigated the effect of various activation parameters, such as impregnation ratio, temperature, time, and particle size, on the preparation of porous carbon materials from different precursors [15, 22,23,24]. Among these parameters, impregnation ratio and temperature were found to have a significant influence on the characteristics of the final product. However, studies of peanut shells did not provide sufficient information on how the activation variables influenced the final properties of the produced carbons and the optimisation of the activation variables. Moreover, previous studies of peanut shells employed two stages to carbon production: precursor charring and chemical activation shells [3, 10]. This process is complex and energy-intensive, compared to the one-stage process.

In this work, RSM was used to study the influence of activation variables in a single step chemical activation process, selected to simplify the process for production at scale, while providing economic gain, as energy input is reduced. Through the insights gained, an optimised carbon is produced, demonstrating the potential to tailor AC materials produced from waste biomass.

Materials and Methods

Materials

Raw peanut (enclosed in its shell) was obtained from a commercial source within the UK. Zinc chloride (ZnCl2, > 98%, solid), and 1 M hydrochloric acid (HCl) solution were purchased from Fisher Scientific, UK. Methyl orange (C14H14N3NaO3S) was purchased from Sigma – Aldrich, UK. All reagents used were of analytical grade and were used without further purification.

Preparation of Activated Carbons

The peanut shells (PNTS) were removed and washed with water to remove any surface dirt before subsequent oven-drying at 100 ± 2 °C overnight. After drying, the shells were ground and screened to a particle size of 2 mm with a sieve shaker. 5 g (W1) of the screened precursor was impregnated with ZnCl2 at various impregnation ratios (ZnCl2 g/ precursor g) of 0.25, 1.13 and 2. In all experiments, the precursor was properly mixed in 25 mL of deionised water containing different weights (W2) of ZnCl2 depending on the impregnation ratio. The mixture was allowed to equilibrate for ~ 24 h under room temperature. After the impregnation process, the sample was oven-dried at 100 ± 2 °C overnight. The oven-dried sample was carbonised in the tube furnace under nitrogen (inert atmosphere, 250 mL/min), at a temperature of 300, 450 or 600 °C using a dwell/hold time (residence time) of either 15, 68 or 120 min at a ramp-rate of 15 °C/min. The carbonised product obtained from the furnace was weighed (W3), before being transferred into a jar containing 200 mL of 0.1 M HCl and agitated for 1 h on a shaker to leach out any remaining activating salt. The product was boiled in hot deionised water for ~ 10 min and washed in room temperature deionised water to completely remove any chloride ions and reduce acidity. The washed product was dried in the oven at 100 ± 2 °C for ~ 24 h, weighed again after drying (W4) and stored for characterisation. The naming of samples for easy identification includes the precursor initials, impregnation ratio (I.R.), activation temperature and hold time.

The yield of the process in percentage was calculated using the following equation:

$$Yield=(W4/W1) \times 100$$
(1)

Also, to take account of the activating reagent recoverable from washing, the following equation is used to calculate the reagent recovery (R.R.) in percentage:

$$R.R=\left(\right(W3-W4)/W2) \times 100$$
(2)

Design of Experiment for Activated Carbon Preparation

In this study, Design Expert (V13.1.0. Stat-Ease Inc., Minneapolis, USA), a statistical software, was used to set the activation variables/factors’ values. Face-centred CCD (FCCD) with three factors and levels design was employed to provide maximum information in minimum experimental runs. This design type is used to find best values for a set of factors to give an optimal response [25]. The factors investigated in this design were temperature (A), hold time (B) and I.R. (C), based on preliminary studies and previous reports [22, 23, 26]. Randomised experimental runs were used to minimise the effects of factors that cannot be controlled in the process. The coded values for the activation variables were − 1 for minimum, 0 for centre point and + 1 for maximum point, as shown in Table 1. Yield (Y1) and surface area (Y2) are important properties in determining the economic viability and adsorption capability of ACs, respectively. These two properties were considered as the responses in the design.

Table 1 Activation parameters and their coded values for the Face-centred central composite design for chemically activated synthesis of peanut shell derived carbons

Materials Characterisation

Proximate Analysis

Proximate analysis of the raw precursor and the activated carbon was carried out using a thermogravimetric technique version of British Standard BS1016. The procedure was carried out using a method similar to that reported by Ottaway [27]. A NETZSCH STA 449 F3 Jupiter system was used for this analysis.

Adsorption Experiment

Adsorption experiments were carried out to evaluate the efficiency of the activated carbon, by agitating 0.05 g sample with 50 mL of methyl orange (MO) solution (100 mg/L), in 500 mL Erlenmeyer flasks. The mixtures were agitated on an orbital shaker operated at 150 rpm, and at room temperature. At predetermined time intervals, the mixtures were separated by centrifugation, and the residual concentrations (Ct) were measured at 465 nm, using a Varian CARY 5000 UV-VIS-NIR spectrophotometer. The percentage removal of MO was calculated using the equation below.

$$Removal \ (\%)=\frac{C_0-C_t}{C_0} \times 100$$
(3)

Where \({C}_{0}\) and \({C}_{t}\) (mg/L) represent the initial concentration and concentration at time t, respectively.

Point of Zero Charge

The determination of point of zero charge (PZC) of the AC was carried out using a salt addition method [28]. Several vials containing an aliquot of 40 mL of 0.1 M NaNO3 each were prepared. 0.1 M HNO3 or 0.1 M NaOH solutions was used to adjust the pH values from 3 to 11. 0.2 g of AC was added to each of the solutions and the solutions agitated at 150 rpm for ~ 24 h on a VWR STD 3500 shaker. After equilibrium was attained, the mixture was filtered, and the pH reading was recorded. The experiment was performed in triplicate and a mean value recorded.

Fourier Transform Infrared Spectroscopy

AC samples were analysed for various surface functional groups using Fourier transform infrared spectrometry (FTIR). The samples were scanned over a range of 500–4000 cm−1 using an MB3000 FT-IR laboratory analyser with Horizon MB™ FTIR software. 449 scans were taken at a resolution of 8 cm−1.

Density

Densities of the AC samples created within this study were determined using helium pycnometry (Micromeritics Accupyc II helium pycnometer with Accupyc II version 3.0 software). A pycnometer sample cup was cleaned and weighed before a small sample of AC was introduced into the sample cup; the weight was taken again to determine the sample mass. The sample cup, with the sample, was transferred into the pycnometer, and sealed within the pycnometer for analysis. The system was purged with helium gas to remove any gas molecules trapped within the system before the analysis.

Textural Analysis

The textural characteristics of the activated carbon were determined using the method of Brunauer et al. [29]. This was achieved using a Micromeritics ASAP 2420 instrument that employs nitrogen adsorption at -195.8 °C. The sample was first degassed before analysis, to remove any contaminant species, via heating under vacuum. Degassing was performed at 250 °C for 4 h, using a ramp rate of 10 °C/min. The specific surface area (SBET) was calculated using Brunauer-Emmett-Teller (BET) method. The micropore area (Smicro) and micropore volume (Vmicro) were obtained the by t-plot method of de Boer et al. [30]. The pore-size distribution was calculated by the Barrett–Joyner–Halenda (BJH) equation [31].

The total pore volume (TPV) was calculated using the equation below.

$$TPV=Q_{sat} \ast(\frac{\rho_{vap}}{\rho_{lig}})$$
(4)

Where Qsat is maximum nitrogen adsorption (in cm3/g, usually at relative pressure of 0.97 or above), ρvap is density of N2 vapour at STP and ρliq = density of liquid N2 at boiling point.

Scanning Electron Microscopy (SEM)

The surface morphology of the raw precursor and the activated carbon was observed, using a JEOL JSM-IT100 scanning electron microscope, at an accelerating voltage of 20 kV. The samples were mounted on aluminum SEM specimen stubs, by double sided carbon adhesive discs. The scanning was performed under high vacuum (HV) and at a magnification of 250x.

Results and Discussion

Fit Summary for the Design of Experiment for AC Preparation

Design Expert was used to analyse the dataset obtained from the surface area analysis, yield of the process, and other dependent variables. The sequential model sum of squares from the statistical software suggested quadratic models for all the dependent variables. The regression equations obtained for each dependent variable from the analyses are shown in Eqs. 5 and 6. The coefficient of determination (R2) was used to assess how well the regression model fits the data for this study. R2 values obtained were 0.9932 and 0.9784 for yield and surface area, respectively. These values indicate a good fit of the dataset to the regression models i.e., above 97% of the variability observed in the responses can be explained by the selected model. The model and fit statistics for all analysed variables are summarised in Table 2. The Adjusted R2 is a measure of the amount of variation around the mean which can be explained by the model and adjusted for the number of terms in the model. Reduced adjusted R2 values are observed from the model summary statistics; this may be attributed to the presence of some model terms that do not add much value to the model. The predicted R2 measures the amount of variation in predictions and can be explained by the model.

$${Y}_{1}=+124.50-0.25 A-0.05B-8.07 C+0.01AC-0.01BC+1.00{C}^{2}$$
(5)
$${Y}_{2}=-6429.31+29.84 A-2.48B+367.17 C-0.0039AB+1.90AC-0.15BC-0.0313{A}^{2}+{0.0346B}^{2}-380.30{C}^{2}$$
(6)

where A = temperature, B = hold time, and C = I.R.

The predicted R2 values are in reasonable agreement with the adjusted R2, i.e., they are within 0.2 of the adjusted R2. Within the Design Expert system, an adequate precision > 4 indicates an adequate model discrimination [32]; in this case, all adequate precision values are well above 4. The coefficient of variation (C.V.) is the standard variation expressed as a percentage of the mean; this can be used to measure the reproducibility of a model and as a general rule, a model will be reasonably considered reproducible if C.V. is > 10% [33]. As shown in Table 2, C.V. for surface area, micropore and mesopore areas are > 10%. This can be attributed to errors in the measurement of these quantities.

Table 2 Model summary statistics for analysed variables for chemically activated carbons derived from peanut shells

To further assess the adequacy of the models, diagnostic plots, such as the normal plot, residual versus predicted response plot, and predicted versus actual plot, were employed. The diagnostic plots for yield and surface area are presented in (Figs. S1 and S2, see Supplementary Information). The predicted versus actual plot for yield indicates a strong agreement between the predicted and the actual values, as shown by the points aligning with the 45-degree line and the high R2 value. On the other hand, the surface area shows a weaker agreement. The normal plot for yield demonstrates that the residuals follow a normal distribution, as evidenced by the points conforming to the straight line. However, for surface area, some departure from the line is noticeable – this suggests that a transformation may enhance the model. The residual versus predicted values plot for yield displays a random distribution of the residuals. The plot should exhibit a random distribution (constant variance of residuals throughout the graph) [34]. Conversely, the same plot for surface area exhibits some heteroscedasticity, as the variance of the residuals increases from right to left. This may indicate the need to transform the response. No outlier was found in any of the plots.

As indicated by the adjusted R2 values for surface area, micro- and mesopore areas, reducing the number of terms in the models might improve the adjusted R2. Model reduction was performed for the responses by eliminating insignificant terms, after which, the overall models did not show significant improvement (Table S1, see Supplementary Information), possibly because the number of significant terms was higher than that of insignificant terms.

The residual versus predicted values plot indicated that model transformation was necessary. Transformation of responses is an essential aspect of any data analysis. It is required when the residuals (errors) are dependent on the magnitude of the predicted values [35]. Model transformation was carried out by using the recommended transformation, square root transformation, within Design Expert. The square root transformation is the simplest form of transformation; this was employed to enhance the model. The model summary statistics after model transformation are shown in Table 3. The R2, and adjusted R2, values increased, and the predicted R2 remained reasonably consistent with the adjusted R2 values. This indicates a better fit, reducing the errors between the observed values and the predicted values.

Table 3 Model summary statistics for responses (after model transformation) for chemically activated carbons derived from peanut shells

Figure 1 displays the normal plots for the responses. The enhancement of the models, after transforming the responses, is further verified by the increased conformity of the residuals on the normal plots, for all responses.

Fig. 1
figure 1

Normal plots for: a surface area (b) micropore area (c) mesopore area, after model transformation, for chemically activated carbons derived from peanut shells

Equation 7 shows the final regression equation (Table S3, Supplementary Information) for the ANOVA performed for surface area response after transformation.

$$\sqrt{{Y}_{2}}=-158.93+0.73 A+0.037B+11.86 C-0.00016AB+0.022AC+0.018BC-0.00072{A}^{2}+{0.00025B}^{2}-7.35{C}^{2}$$
(7)

Analysis of Variance (ANOVA)

Statistical analysis was carried out on the independent variables (A: Temperature, B: Hold time, C: I.R.) to observe the single and interaction effect of the variables on the responses (Y1: Yield, Y2: Surface area) and choose the best model for the system. As presented in Table 3 above, the closeness of R2 to unity, indicates a good fit of the dataset to the models. However, analysis of variance (ANOVA) was used to further check the adequacy of the selected quadratic models. This was done by comparing the p-values and F-values from the ANOVA table (Table S2, see Supplementary Information). A suitable model will have high F-value, its p-value < 0.05 (significant) and have lack of fit as non-significant (p > 0.05) [36]. The analysis shows that the p-values for the quadratic models selected for yield and surface area are < 0.05. This indicates statistical correctness of the selected models.

It is observed from the table that model terms A, B, C, AC, and A2 have p-values < 0.05 for yield, i.e., temperature, hold time, I.R., and the interaction of temperature and I.R. affect the yield of the process. Temperature has the greatest impact on yield since it shows the highest F-value, 933.85. The lack of fit is not significant in this case since it shows a p-value > 0.05. It is observed from the ANOVA table that model terms A, C, AC, A2, and C2 have p-values < 0.05 for surface area i.e., temperature, I.R, and the interaction of temperature and I.R. are parameters that affect the surface area. Temperature is also observed to have the greatest impact on surface area since it has the highest F-value of 623.98. The lack of fit for this model has p-value > 0.05 i.e., lack of fit is not significant for this model. This indicates that the model fits the dataset and can be used to navigate through the design space.

Influence of Activation Variables

The one factor effect on the yield of the process is shown in (Fig. S3, see Supplementary Information). The yield reduces with increase in temperature to ~ 550 °C and above this temperature, the yield only demonstrates a slight decrease. This can be attributed to the basic structure being already formed at ~ 500 °C, since the distillation of tar occurs ~ 350–500 °C [19]. The hold time has little effect on the yield of the process.

The yield demonstrates a gradual reduction as I.R. increases, showing minor changes for I.R. > 1.5. Increase in activating agent may lead to more cracks in the structure, causing deformation of micropores and reducing productivity [37]. An increase in activating agent increases the evolution of volatile matter, which leads to a reduction in yield [5]. The interaction of temperature and I.R. is also an important factor that affects the yield of the process. As shown in Fig. 2a, at temperatures < 350 °C and I.R. < 1.5, the yield of the process is ≥ 60%, however, the surface area stays below 500 m2/g. The yield remains within the range 50–55% at temperatures of 350–455 °C and is not greatly affected above 480 °C. It is also noted that the surface area increases gradually in this region with increase in temperature; this confirms the significance of temperature in developing the internal porous structure of the carbons. As reported by Hock et al. [17], the formation of pores and channels in the activated carbon matrix is attributed to the release of volatiles from the precursor material due to the dehydrating effect of ZnCl2 at elevated temperature. However, these pores are unstable and tend to collapse or enlarge at higher temperature, thereby reducing the surface area of the activated carbon.

The one factor effect on the surface area is shown in Fig. S4, see Supplementary Information. The surface area considerably increases with increase in temperature to ~ 520 °C and a decrease in microporosity is noted with further increase in temperature > 520 °C. Microporosity starts to decrease at I.R. > 1. This is associated with widening of the pores with increase in ZnCl2 loading, which leads to increased mesoporosity, as shown in Figs. S5 and S6 (see Supplementary Information). The surface area remains below 500 m2/g with carbonisation temperature < 375 °C, within the selected range of I.R. However, at I.R. > 1 and carbonisation temperature > 420 °C, the surface area increased considerably above 500 m2/g.

Fig. 2
figure 2

a Interaction effects of temperature and impregnation ratio (I.R.) on process yield; b Interaction effects of temperature and impregnation ratio (I.R.) on surface area, for chemically activated carbons derived from peanut shells

Increasing porosity with increasing I.R. suggests that porosity is created by the interstices left in the carbon material after washing and, at these temperatures, volatile substances are released from the surface of the carbon material during carbonisation. Figure 2b shows the effect of the interaction of temperature and I.R. on porosity development. The above discussion stated the most significant activation parameters (temperature and I.R.) and the range of temperatures and I.R. for producing activated carbons with diverse properties from peanut shells for various applications, which was lacking from the previous studies using the same precursor.

Reagent recovery (R.R.) from the activation process primarily depends on two factors (temperature and hold time). As shown in Fig. 3, the R.R. demonstrates a significant decrease with carbonisation temperature above 500 °C. This is likely associated with the reagent evaporating from the carbon sample as the temperature increases. It is also noted that R.R. decreases as hold time increases with temperature, ascribed to the fact that more evaporation is expected the longer the activating agent stays at higher temperatures.

Sample densities were observed to increase with an increase in both temperature and I.R. The increase in density with I.R. may be linked to tar inhibition by ZnCl2 resulting from the condensation reaction [22]. As shown in Table S4 (see Supplementary Information), all activated carbon samples show relatively high densities with the minimum being 1.455 g/cm3 and maximum, 1.750 g/cm3.

Fig. 3
figure 3

Interaction effects of temperature and hold time on reagent recovery for chemically activated carbons derived from peanut shells

Activation Process Optimisation

It was observed that there is a trade-off between yield and surface area; therefore, the Design Expert desirability function was employed to reach a balance. In the optimisation process, a target was set for the yield while the surface area was maximised. Design of experiments suggests optimisation of the produced carbon, to give a relatively high surface area of 1662 m2/g and yield of 45.93% with the following activation parameters: a temperature of 600 °C, a hold time of 15 min, and an I.R. of 2. Experimental validation was performed, in triplicate, to ascertain the optimal conditions produced by RSM. Table 4 presents the optimised activation parameters from RSM and the validations obtained via experiment, note these samples (PNTS1.7-485-15) were used for further characterisation with PNTS2-600-15. As shown in Table 4, the optimised sample shows an average surface area of 1687 m2/g, which is relatively higher than the quantity previously recorded for biochars created using the same precursor.

Table 4 Optimal activation conditions to produce high carbon yield and surface area for chemically activated carbons derived from peanut shells, and experimental validation

Characterisation Analysis

Table S4 (see Supplementary Information) and Table 5 present the surface area, average pore size, micropore volume, yield, micropore area, and mesopore area (external surface area) obtained from the textural analysis of all AC samples through N2 adsorption. The total pore volume was calculated from the N2 adsorption data using Eq. (3). The N2 adsorption – desorption isotherms of PNTS2-600-15 and PNTS1.7-485-15 are shown in Fig. S7 (see Supplementary Information); it can be observed that both samples are characterised by a mixture of micro- and mesopores (as seen by the opening of the knee). However, the isotherm of PNTS1.7-485-15 is approaching a horizontal plateau which indicates the presence of uniform wider micropores; by contrast, the plateau of PNTS2-600-15 continues at high relative pressure (P/PO) and the presence of hysteresis indicates higher mesopore volume. The pore size distribution (PSD), as shown in Fig. S8 (see Supplementary Information), shows that both samples are characterised by pore size < 50 nm. It can be observed that PNTS2-600-15 exhibits a more heterogenous characteristic due to the presence of various pore sizes, as shown in the PSD.

Table 5 Textural characteristics of the prepared activated carbon and experimental design with the response variables (yield and surface area) for chemically activated carbons derived from peanut shells

As discussed by Seader et al. [38], the high capacity of a sorbent which helps to minimize the amount of sorbent used in a system is one of the properties that make a sorbent suitable for commercial use.

A relatively high surface area of 1662 m2/g was achieved from the design of experiment, and the lowest value < 1 m2/g. The low surface area was a result of low I.R. and activation temperature. It is observed that at high temperature and I.R. of 1.13, more micropore area is produced with the highest being 849 m2/g. Depending on the adsorbate molecule size, micropore volume has a higher effect than the mesopore volume in liquid adsorption. Micropore volume favours adsorption of micropollutant in a liquid phase adsorption [39]. Thus, these samples with high micropore volume can take advantage in a liquid adsorption, provided the adsorbate molecules are small enough to be accommodated with the micropores. Table 5 shows that all samples have average pore size > 2 nm, and are, therefore, classified as mesoporous [40].

Figure 4 shows the scanning electron micrographs obtained for the parent material and two activated carbon samples. As shown in Fig. 4a, the raw PNTS sample exhibits a rough and irregular cellular structure with no visible openings within the structure. However, after activation, at low magnification (250x), clear channels are visible within the structure, as shown in Fig. 4b and c. The images show the geometrical heterogeneity of the activated carbon materials, coupled with the pore characteristics shown in Table 5, this will contribute to the unique sorption properties of the activated carbon materials [41]. The surface of the optimised sample (PNTS1.7-485-15) is comparatively smooth and textural analysis (Table 5) demonstrates the presence of both micro- and mesopores within the carbon. At the same magnification, the surface of run 10 (PNTS2-600-15) appears to be smoother and but with the presence of larger channels, which can be attributed to the widening of the pores, with an increase in ZnCl2 loading, which leads to increased mesopore area (Table 5).

The micropore character for the optimised materials was also visualised using Dubinin-Radushkevich analysis (Figs. S9 and S10, see Supplementary Information), which showed that the microporosity deviates from a Gaussian distribution with more filling at larger pore widths, indicating that the microporosity present is predominantly comprised of supermicropores. In tandem with the micropore contribution to the total pore volume, shown in Table 5, this is likely a key contribution to the small average pore diameters observed for these materials.

Fig. 4
figure 4

Scanning electron micrographs of a raw peanut shells (PNTS), and for chemically activated carbons derived from peanut shells: b PNTS1.7-485-15 and c PNTS2-600-15

Figure 5a shows the PZC plot for the optimal runs PNTS2-600-15 and PNTS1.7-485-15. The PZC was 5.8 for PNTS2-600-15 and 4.58 for the optimised sample. PZC plays a significant role in the selection of adsorbents for an adsorption system. When the pH of a solution (pHsolution) is lower than the PZC of an adsorbent, the surface of the adsorbent becomes positively charged due to protonation of the acidic groups present on the surface and when pHsolution above the PZC of an adsorbent, the surface of the adsorbent becomes negatively charged because of the dissociation or ionisation of the acidic oxygen groups on the surface [42]. This can affect the interaction of the adsorbent surface and charged species, such as ionic dyes.

Fig. 5
figure 5

a Point of zero charge plots obtained for chemically activated carbons derived from peanut shells: PNTS2-600-15 and PNTS1.7-485-15; b FTIR spectra for raw PNTS, and for chemically activated carbons derived from peanut shells: PNTS2-600-15 and PNTS1.7-485-15

Surface chemistry was further probed using FTIR analysis. Various peaks in the FTIR spectrum of the precursor (Fig. 5b) indicate the presence of several functional groups in the raw peanut shell. The absorption peaks at 3332 cm−1 and 1249 cm−1 correspond to the O-H stretching frequency (3600–3200 cm−1) and bending frequency (1410–1260), respectively [43], and this could be associated with the presence of cellulose and water of crystallisation [26, 43]. It is observed that the O-H stretching disappeared in the activated samples, which could be attributed to the dehydrating effects of ZnCl2 and increased activation temperature. The absorption peaks at 1728 cm−1 and 1712 cm−1, for the raw and optimal run samples, indicate the presence of carbonyl (C═O) stretching vibrations of carboxyl groups [26]. N-H bending, which can be associated with amine functional groups (1650–1560 cm−1) is observed to be present in all samples. The bands at 1026 cm−1, 1141 cm−1 and 1188 cm−1 could be attributed to the C-O contributions from acid anhydride groups. This indicates that the surface of the carbon is heterogeneous in character and would likely enhance adsorption of polar species.

Proximate analysis provides insight into the moisture, volatile, fixed carbon, and ash contents of carbon samples, and the data obtained for the raw PNTS, and optimal runs are shown in Table 6. The moisture and ash contents are < 3% and 1% respectively, for all samples. The low ash content is an indication of quality carbon material, and this makes the AC potentially suitable for the removal of organic pollutant from an aqueous phase due to their hydrophobic nature [44]. Low volatile content is observed in PNTS2-600-15, and this can be attributed to the degree of heat treatment during carbonisation i.e., most volatiles were released from the surface of the carbon during carbonisation.

Table 6 Proximate Analysis of raw peanut shells, and for chemically activated carbons derived from peanut shells: PNTS2-600-15 and PNTS1.7-485-15

Adsorption Test

Figure S11 (see Supplementary Information) presents the percentage removal of MO with respect to time, under constant initial concentration, and solution pH. The results indicate that the rate of MO removal increases with contact time. The uptake of MO with Run 10 (PNTS2-600-15) occurs faster; this can be attributed to the fact that run 10 is characterised with larger mesopore area (Table 5), which aids the diffusion of the MO species into the interior sites of the adsorbent. However, after 24 h contact time, both samples attained nearly the same percentage removal. Table 7 lists the MO removal efficiency of some adsorbent materials previously reported [45,46,47,48,49,50]. It can be seen from the table, in terms of the removal efficiency, that the adsorbent material developed within this study shows excellent performance.

Table 7 Comparison of MO removal efficiency with various adsorbents

Conclusion

The results presented within this investigation show that the chemical activation method employed was suitable for creating peanut shell based activated carbon, as relatively large surface areas were recorded. The RSM reveals that temperature and impregnation ratio were the most important parameters that influenced the AC properties. The AC samples show heterogenous morphology and functional groups, which may enhance their adsorption capacity for various pollutants. This work suggests that peanut shell is a promising raw material for producing effective adsorbents for wastewater treatment. Future work will focus on the adsorption performance and optimization of the AC samples for the removal of different contaminants.