1. Introduction
Escalating environmental problems include the contamination of water and soils by heavy metals and persistent organic compounds, the need to reduce waste generation and ensure sustainable resource management, and the need to develop materials derived from waste biomass [
1,
2,
3,
4,
5,
6,
7,
8,
9]. In this context, biocarbons, defined as porous carbon materials obtained in the process of biomass pyrolysis under limited oxygen-access conditions, are of particular importance [
10]. Due to their developed porous structure, the presence of surface functional groups, and the ability to modify textural and chemical properties, biocarbons are considered a promising material for environmental applications, including the adsorption of pollutants from aqueous solutions [
11,
12,
13].
The properties of biocarbons depend primarily on the type of precursor, pyrolysis parameters, and activation method [
14]. During the thermal treatment of biomass, depolymerization, fragmentation, and reorganization of the structure take place, leading to the formation of an aromatic carbon matrix and the development of porosity [
15,
16]. Properties such as the specific surface area, pore volume, and distribution, as well as the nature of the surface chemistry, are particularly important as they determine the ability of the material to adsorb impurities [
17,
18]. In order to improve these properties, activation processes can be used, among which physical activation, performed with the use of CO
2 or steam, is particularly attractive from the perspective of green chemistry. Compared to chemical activation, it does not require the use of aggressive reactants or the generation of secondary waste that needs to be neutralized, and at the same time, it allows for effective development of the porous structure of the material [
19,
20].
Among lignocellulosic waste raw materials, pistachio shells are of significant interest, being a by-product of the agri-food industry, and may be efficiently processed into carbon materials [
21,
22]. Their chemical composition, as well as fibrous, rigid structure, make them promising precursors for the production of biocarbons with good adsorption properties [
23,
24]. The use of this type of waste is in line with the ideas of circular economy and sustainable development, as it allows for a simultaneous reduction in waste and for obtaining functional materials for environmental applications [
25].
Despite the growing interest in biocarbons from waste biomass, there is still a need for research to explain how the type of activating agent affects the development of the porous structure, surface chemistry, thermal stability, and adsorption properties of materials simultaneously. This is particularly true for the adsorption of dyes, for which both the accessibility of pores and the nature of the adsorbent surface are important. In this aspect, the novelty of this study lies in its comprehensive and comparative evaluation of pistachio-shell-derived biocarbons, physically activated with two different activating agents—CO2 and superheated steam—under systematically varied activation conditions. Unlike studies focused mainly on the development of surface area, this work correlates the evolution of pore structure, surface functional groups, elemental composition, morphology, structural ordering, and thermal stability with the adsorption performance toward methyl orange. This approach makes it possible to distinguish the role of the highly microporous structures generated by CO2 activation from the more open, hierarchical pore network produced by steam activation. As a result, this study provides new insight into how the activation pathway controls the balance between textural development, surface chemistry, and dye adsorption efficiency in sustainable biocarbons obtained from pistachio shell waste.
This study aimed to obtain biocarbon from pistachio shells by pyrolysis, and then to modify it by physical activation using CO2 and water vapor. The obtained materials were subjected to comprehensive physicochemical, structural, and thermal characterization, and their adsorption properties in relation to methyl orange were estimated. The conducted research is of both academic importance, as it allows for a better understanding of the relationship between the method of activation and the properties of the material, and practical importance, indicating the possibility of designing effective and sustainable carbon adsorbents from lignocellulosic waste.
3. Results and Discussion
Figure 1 presents the N
2 adsorption/desorption isotherms (
Figure 1a) and the pore-size distributions (PSDs,
Figure 1b) for the initial unactivated biocarbon and the materials physically activated with CO
2 and H
2O, while
Table 1 summarizes their structural parameters. The application of physical activation leads to a pronounced reconstruction of the porous structure, and the nature of these changes depends significantly on both the type of activating agent and the process duration. The initial PM-8 material exhibits virtually no developed texture, as evidenced by its very low specific surface area (
SBET = 0.5 m
2 g
−1;
Table 1). This indicates that the substantial development of specific surface area and porosity occurs only during the activation stage. The analysis of the curves shown in
Figure 1, supported by the data compiled in
Table 1, demonstrates that the samples activated with CO
2 and H
2O differ not only in the degree of surface development but, above all, in the contribution of micropores and wider pores to the overall porous structure.
For the CO
2-activated samples, the shape of the isotherms indicates a dominant contribution of micropores, as evidenced by the sharp increase in adsorption at low relative pressures (
Figure 1a). In particular, for the sample PM-8-CO
2-1, the rapid attainment of a near-plateau state suggests the predominance of narrow micropores and a limited contribution of larger transport pores. With increasing activation time, a systematic increase in the total adsorption is observed, which is directly reflected in the increase in
SBET from 974 to 1478 m
2 g
−1 and in
Vp from 0.419 to 0.730 cm
3 g
−1 (
Table 1). At the same time, the contribution of micropore surface area decreases from 86 to 71%, whereas the external surface area (
Sext) increases from 131 to 422 m
2 g
−1. These changes are accompanied by an increase in the meso- and macropore volumes from 0.084 to 0.298 cm
3 g
−1, as well as by a slight increase in the average pore radius from 0.86 to 0.99 nm. These results indicate that CO
2 activation proceeds in a relatively mild and selective manner, leading primarily to the development of the existing microporosity and gradual broadening of the pores, without abrupt reconstruction of the entire material structure. This interpretation is supported by the pore-size distributions, which for this biocarbon series exhibit predominance of narrow pores and only a gradual broadening of distribution toward larger radii with increasing activation time (
Figure 1b).
A distinctly different pattern of structural changes is observed for the biocarbons activated with superheated steam. Even the sample PM-8-H
2O-1 is characterized by a large specific surface area (1177 m
2 g
−1), as well as by a greater contribution of external surface area (323 m
2 g
−1) and a smaller share of micropore surface area than in the corresponding samples from the CO
2-activated series (
Table 1). This suggests that H
2O activation promotes not only the formation of micropores from the outset, but also a more intensive development of the structure and opening of wider pores. This effect is particularly evident for the sample PM-8-H
2O-2, for which, despite the maintenance of a large specific surface area (1317 m
2 g
−1), a fundamental change in the character of porosity is observed. The contribution of micropore surface area decreases to 39%, whereas
Sext increases to 804 m
2 g
−1. At the same time, the total pore volume reaches the highest value among all analyzed samples (1.057 cm
3 g
−1), and the meso- and macropore volume is as high as 0.845 cm
3 g
−1 (
Table 1). The accompanying increase in the average pore radius to 1.60 nm confirms intensive broadening of the porous structure. The shape of the isotherms for this series—including higher adsorption values over the entire p/p
0 range, the absence of a distinct plateau, and a clearly developed hysteresis loop—indicates a significant contribution of mesopores and a more complex pore-system geometry (
Figure 1a). This is also consistent with the character of the pore-size distributions, which suggest a broader and more heterogeneous pore system than that observed for the CO
2-activated materials (
Figure 1b).
Comparison of the two series clearly demonstrates that CO2 and H2O resulted in the formation of different surface structures. CO2 activation promotes the formation of materials with a very large specific surface area and dominant microporosity, whereas steam activation causes a more profound reconstruction of the carbon matrix, resulting in materials with a larger pore volume, a greater contribution of external surface area, and more developed meso- and macroporosity. This difference is clearly visible when comparing the samples PM-8-CO2-3 and PM-8-H2O-2. Despite their similar SBET values, the former retains a distinctly microporous character, whereas the latter represents a more open and hierarchical structure. This indicates that the specific surface area alone is not sufficient for complete characterization of the material, and that the pore-size distribution, as well as the relationship between the micropore surface area and the external surface area, are also of key importance.
Additional evidence of the progressive development of porosity is provided by a decrease in bulk density with increasing extent of activation. In the CO
2-activated series, the ρ
b value decreases from 0.5219 to 0.3898 g cm
−3, whereas for the sample PM-8-H
2O-2, it reaches 0.2569 g cm
−3 (
Table 1). This trend reflects an increasing fraction of void spaces within the material and a greater loosening of the structure, which is particularly pronounced in the case of steam activation.
From the standpoint of adsorption applications, the obtained results indicate that the textural parameters of the investigated biocarbons can promote different transport mechanisms and pore-space accessibility; however, a full assessment of their sorption capacities requires consideration not only of surface development and pore-size distribution, but also of surface chemistry and the nature of adsorbate–adsorbent interactions.
The content of surface functional groups was evaluated, among other methods, on the basis of FTIR spectral analysis (
Figure 2a), which demonstrated that the materials retained a predominantly aromatic structure, characteristic of biocarbons and other carbonaceous materials. The spectra also confirm that both the type of activating agent and the treatment duration influenced the nature of the surface oxygen-containing groups. The broad, weakly defined band in the 3600–3200 cm
−1 region can be assigned to the stretching vibrations of –OH groups originating from the phenolic hydroxyl groups, carboxylic groups, and surface-bound water. In turn, the bands in the 2950–2850 cm
−1 region (
Figure 2a, area 1) correspond to the stretching vibrations of aliphatic C–H bonds, indicating the presence of residual aliphatic or oxygen-containing aliphatic moieties in the structure of the investigated biocarbons. In the 1750–1500 cm
−1 range, overlapping signals associated with C=O carbonyl vibrations and C=C skeletal vibrations of aromatic systems are observed (
Figure 2a, area 2). The absence of a very intense, sharp band around 1700–1725 cm
−1 suggests that free carboxylic groups do not dominate the material surface; instead, more conjugated oxygen-containing functionalities, such as ketones, quinones, or lactones associated with the aromatic carbon matrix, can be present. Such an interpretation is typical of materials with a substantial degree of carbonization, in which the contribution of condensed aromatic structures increases, whereas more labile oxygen-containing groups are partially eliminated.
The most pronounced differences among the investigated materials are observed in the 1300–1000 cm
−1 region (
Figure 2a, area 3), which is assigned to C–O vibrations in phenolic, ether, ester, and lactone groups. These bands are somewhat more distinct for the steam-activated samples, particularly after longer treatment times, indicating that H
2O activation induces a stronger chemical reconstruction of the surface layer. In combination with the Boehm titration results (
Table 2), such surface restructuring can more likely be attributed to an increase in the contribution of phenolic, ether, lactone, or other weakly acidic functionalities, accompanied by a reduced contribution of carboxylic groups. In the case of the CO
2-activated samples, the signals in this region are weaker, and for the longest activation time, the spectrum becomes more flattened, which can be interpreted as a result of further aromatization and condensation of the carbon structure, together with the partial elimination of less stable oxygen-containing moieties. This trend is consistent with the literature data [
31], according to which increasing the thermal treatment intensity promotes a reduction in the contribution of O–H, C=O, and C–O groups, while increasing the degree of ordering of the carbon matrix. The signals below 900 cm
−1, in turn, can be attributed to out-of-plane C–H vibrations in aromatic rings, which further confirms the presence of condensed aromatic systems in the investigated materials [
32].
The change in solution pH after contact with the investigated biocarbons indicates the presence of surface functional groups as well as mineral constituents. The high pH of the solution (approximately 10;
Table 2) reflects the distinctly basic character of the adsorbent surface. This effect can be associated with both the predominance of basic surface groups and the contribution of mineral components, such as metal oxides and hydroxides, remaining after the thermal treatment of biomass. The gradual increase in pH with increasing activation time can indicate an increasing contribution of basic components in the analyzed materials. Although a high pH does not exclude the presence of acidic groups, it suggests that their contribution is relatively small. The data presented in
Table 2 show that biocarbon activation leads to an evident increase in the number of basic groups with increasing activation time compared with the initial biocarbon, with superheated steam activation being more effective in this respect. The basic surface character can be of significant importance for adsorption processes as it promotes interactions with acidic or positively charged species, while simultaneously, it can confine the sorption of anions because of unfavorable electrostatic interactions.
The CHN elemental analysis demonstrated that the elemental composition of the investigated biocarbons changed markedly depending on the activation method (
Table 3). The initial PM-8 sample was characterized by the largest mean carbon content (95.98%) and the mean nitrogen content (0.80%), while exhibiting a very small mean hydrogen content (0.10%). Activation with CO
2 for 3 h reduced the mean carbon content to 94.44% and the mean nitrogen content to 0.43%, accompanied by only a slight increase in the mean hydrogen content to 0.13%. Even more pronounced changes were observed for the sample activated with steam for 2 h, for which the mean carbon content decreased to 91.63% and the mean nitrogen content to 0.11%, whereas the mean hydrogen content increased to 0.41%. These results confirm that activation, particularly with steam, promotes a more profound reconstruction of the material structure, associated with the partial removal of carbonaceous matter and a change in the chemical character of the surface layer.
The increase in hydrogen content observed during activation, accompanied by a simultaneous decrease in nitrogen content, can be explained by gasification reactions and reconstruction of biocarbon surface chemistry. Under the activation conditions, particularly in the presence of steam, the carbon matrix undergoes preferential removal in the form of CO and CO
2, which reduces the percentage contribution of carbon and can result in a relative increase in hydrogen content. At the same time, oxygen–hydrogen-containing functionalities can be formed or exposed on the surface; however, the FTIR data and the Boehm titration results indicate that these are not strongly acidic carboxylic groups, but rather chemically more diverse oxygen-containing species. The pronounced decrease in nitrogen content can, in turn, be associated with the thermal degradation and transformation of nitrogen-containing functionalities into volatile products, mainly NH
3, HCN, and N
2. The accessibility of hydrogen radicals derived from H
2O can further facilitate nitrogen transformations leading to NH
3 release; therefore, steam activation results in a greater depletion of nitrogen in the material than CO
2 activation (
Table 3). Thus, the obtained results indicate that steam activation induces more profound reconstruction of both the carbon framework and the surface chemistry of the investigated materials.
The results of SEM-EDS (
Table 4) confirm that carbon remains a dominant element in all tested samples, but its share decreases with increasing activation intensity, particularly in the case of vapor-activated materials. The C content decreases from 92.96% for the PM-8 sample to 85.84% for PM-8-H
2O-2, accompanied by an increase in the oxygen content from 4.45 to 7.63%, both expressed by weight. This trend indicates that more intensive activation leads to partial oxidation of the surface and an increase in the proportion of aerobic surface structures. In the CO
2-activated series, these changes are moderate for the PM-8-CO
2-1 and PM-8-CO
2-2 samples, while they are more pronounced for PM-8-CO
2-3.
Activation also affects the relative contribution of mineral constituents. As the process progresses, the sum of elements present in trace amounts (excluding C and O) at contents both above 0.1% (
Table 4, a *) and below 0.1% (
Table 4, b *) increases, reaching the highest values for the sample PM-8-H
2O-2, which indicates a greater contribution of inorganic phases in the material. A particularly evident trend is the increase in the Ca content in the more strongly activated samples, whereas the contents of Na and Cl decrease gradually. These results indicate that activation, especially with steam, leads not only to changes within the carbon matrix but also to relative enrichment of the surface in the mineral components, which can significantly affect the surface and adsorption properties of the investigated biocarbons.
Structural ordering of the biocarbons was estimated on the basis of Raman spectral analysis (
Figure 2b). For all investigated biocarbons, the spectra exhibited two characteristic bands: the D band, located near 1350 cm
−1, and the G band, appearing at approximately 1580 cm
−1 (
Table 5). After the baseline correction, the broad Raman signal in the 1000–1800 cm
−1 region was deconvoluted using the Lorentzian peak-fitting algorithm (
Figure 2b, dashed curves). This algorithm was selected because of a better fit (
R2). The D and G bands were fitted as individual components. The quality of fitting was verified by the agreement between the experimental spectrum and the cumulative fitted curve (
Table 5,
R2). The
ID/
IG ratio was calculated from the intensities of the fitted D and G bands. The G band is associated with vibrations of carbon atoms in the ordered aromatic structures with sp
2 hybridization, whereas the D band reflects the presence of structural defects, disorder, and edges of small aromatic domains. The presence of both bands indicates that the investigated materials possess a partially ordered structure while at the same time containing numerous disturbances typical of biocarbons and activated carbonaceous materials [
12].
As follows from the comparison of the spectra (
Figure 2b), activation affects the structure of the carbon matrix; however, these changes do not represent a complete reconstruction toward well-crystallized graphitic carbon. The
ID/
IG ratio values fall within the relatively narrow range of 1.21–1.49, indicating that all biocarbons are characterized by numerous structural defects and retain a turbostratic character. At the same time, the improved separation of the D and G bands after activation suggests partial ordering of local aromatic domains. Thus, the activation process does not eliminate the structural defects of biocarbons, but rather leads to structural rearrangement: on the one hand, less ordered carbonaceous fragments are removed, while on the other hand, more condensed aromatic systems are exposed or formed.
Against this background, the CO
2- and H
2O-activated samples exhibit somewhat different patterns of change. For the CO
2-activated series, the I
D/I
G values are slightly higher, which can indicate the persistence of a greater contribution of structural defects or smaller aromatic domains. In comparison, the steam-activated samples display slightly smaller values of this parameter and more distinct separation of the bands, suggesting better ordering of the local carbon structure. The values of the
K coefficient (
Table 5), calculated as the relative share of the G-band in the total intensity of the D and G bands, are in the range of 40.8–46.2%, which indicates a moderate and similar degree of ordering of the carbon structure of the tested biocarbons. The presence of intense D and G bands confirms that the analyzed materials have a turbostratic structure typical of biocarbons, consisting of small aromatic domains sp
2, numerous structural defects, and less ordered areas.
When considered together with the FTIR results, the Raman analysis confirms that activation simultaneously induces changes in both the carbon framework and the surface chemistry, while also indicating partial ordering of local aromatic domains accompanied by the retention of a large extent of defectiveness. This is consistent with the FTIR findings, which show that this process is accompanied by transformations of oxygen-containing functionalities. Overall, it can be concluded that activation does not lead to simple “graphitization” of the material, but rather to a complex structural reconstruction involving both the reorganization of aromatic domains and changes in surface functional groups.
The observed changes in the local ordering of aromatic domains affect the thermal stability of the materials after activation; as porosity develops simultaneously, the contribution of edge defects and the mineral fraction increases, and the matrix becomes more reactive.
Figure 3 presents the TG% curves (
Figure 3a), DTG curves (
Figure 3b), and DTA curves (
Figure 3c) determined for the investigated biocarbons.
The TG/DTG/DTA profiles (
Figure 3) are consistent with the proximate analysis results (
Table 6), and confirm that the thermal stability of the biocarbons decreases with increasing activation intensity. PM-8 exhibits the decomposition profile most strongly shifted towards higher temperatures and the lowest rate of mass loss, confirming its largest thermal resistance. In the CO
2- and H
2O-activated samples, the main decomposition stage becomes more pronounced and extends over a broader temperature range, while the minima in the DTG curves become deeper, indicating increased reactivity and greater structural heterogeneity of the activated biocarbons. The strongest effect is observed for PM-8-H
2O-2, which is associated with profound reconstruction of the carbon framework and relative enrichment of the material in the mineral fraction. These results show that the development of the porous structure as a result of activation occurs at the expense of the degree of condensation of the carbon matrix, leading to a reduction in its thermal resistance. This is consistent with the conclusions drawn from the Raman analysis, which indicate only a partial development of locally ordered aromatic domains rather than a pronounced increase in structural ordering and, thus, in the thermal stability of the materials.
The results of the thermal analysis (
Figure 3) and proximate analysis (
Table 6) further indicate that the method and intensity of activation affect both the composition and the thermal stability of the investigated biocarbons significantly. The non-activated PM-8 sample was characterized by the largest fixed-carbon content (%
FC = 89.82%) and the smallest volatile matter content (%
VC = 5.75%), indicating a great extent of carbonization and the largest thermal stability. Activation resulted in an increase in the proportion of volatile matter and ash, accompanied by a decrease in the fixed-carbon fraction. This effect became more pronounced with increasing process intensity. In the CO
2-activated series, a gradual increase in %
VC and a decrease in %
FC were observed, indicating progressive reconstruction and partial gasification of the carbon matrix. Even more pronounced changes were found for the steam-activated samples, especially PM-8-H
2O-2, which exhibited the largest volatile matter content (%
VC = 20.54%), the smallest fixed-carbon content (%
FC = 52.8%), and the largest ash content (%
A = 26.66%), confirming the highest degree of structural transformation. The significantly higher ash content in the H
2O-activated samples, despite the use of the same precursor, is due to the more intense nature of steam activation compared to CO
2 activation. The presented results clearly indicate that water vapor causes stronger gasification and thermal degradation of the carbon matrix, which leads to a significant loss of organic/carbon fraction and relative enrichment of the mineral residue. This is confirmed by the results of TG and proximate analyses, as well as by the results of CHN and SEM-EDS, indicating a decrease in the carbon content and a relative increase in the proportion of minerals after intensive steam activation.
The SEM images (
Figure 4) revealed a pronounced effect of physical activation on the morphology of the investigated biocarbons. The initial PM-8 sample (
Figure 4a,b) is characterized by a relatively compact and poorly developed surface, with a limited number of open voids and a relatively continuous carbon matrix. The visible surface irregularities are local in nature, whereas the overall morphology indicates a small extent of porous texture development. With activation, a gradual reconstruction of the structure is observed, involving increased roughness, development of irregular depressions, and pore opening.
In the CO
2-activated series, the morphological changes become more pronounced with increasing process time. For the sample PM-8-CO
2-1 (
Figure 4c,d), the surface is already markedly more corrugated and perforated than that of the initial material, indicating an initial intensive stage of carbon matrix etching. In the sample PM-8-CO
2-2 (
Figure 4e,f), this effect becomes more pronounced, and the surface becomes rougher and more heterogeneous, with a greater number of voids and depressions. The most advanced transformations in this series were observed in PM-8-CO
2-3 (
Figure 4g,h), which exhibits a largely developed, irregular morphology with numerous material losses and a clearly degraded carbon framework. This indicates that prolonging the CO
2 activation time results in the successive development of porosity and simultaneously progressive erosion of the carbon walls. The steam-activated samples exhibit even more pronounced morphological changes. For PM-8-H
2O-1 (
Figure 4i,j), the surface is more heterogeneous, fragmented, and granular than that observed for the corresponding CO
2-activated samples. In turn, PM-8-H
2O-2 (
Figure 4k,l) is characterized by the most extensively transformed structure among all the investigated materials, displaying a distinctly sponge-like, largely perforated, and degraded morphology. The presence of numerous voids, irregular cavities, and a fine-grained texture indicates intensive gasification of the carbon matrix and advanced opening of the structure.
The obtained results confirm that both CO2 and H2O develop the surface morphology of biocarbon effectively; however, steam acts considerably more aggressively, leading to stronger fragmentation and greater degradation of the carbon framework. Overall, activation induced transition from a compact structure to one that became increasingly rough, porous, and heterogeneous, which is characteristic of the progressive removal of the more reactive fragments of the carbon phase and the generation of a new, more developed surface.
3.1. Adsorption Studies
The main objective of the preliminary adsorption studies was to estimate the effect of different types of physical activation of biocarbons (CO
2 and H
2O) on their capacity in the case of methyl orange adsorption. This method is widely used in the effective treatment of air and water. Methyl orange (MO) is an azo anionic dye. It belongs to one of the most important classes of synthetic organic dyes because of its vivid color, durability, chemical stability, and ease of application [
33]. MO is used in paper, textile, printing, pharmaceutical, food, biomedical, chemical, and technological industries.
Figure 5 presents the experimental kinetic data for the selected materials. The adsorption equilibrium state was reached after 720 min and 2880 min for PM-8-CO
2-3 and PM-8-H
2O-2, respectively. A longer time was required to reach equilibrium for PM-8-H
2O-2 (48 h) compared to PM-8-CO
2-3 (12 h), which can be attributed to its more developed porous structure and larger pore volume, extending the diffusion path of the dye molecules.
The different initial MO concentrations used in kinetic studies for the PM-8-CO
2-3 (400 mg L
−1) and PM-8-H
2O-2 (800 mg L
−1) samples were due to their markedly different adsorption capacities, as determined by initial adsorption tests. The PM-8-H
2O-2 sample, due to its more open, hierarchical porous structure, larger total pore volume, and greater proportion of outer surface, showed a much greater ability to remove methyl orange. Preliminary experiments conducted on this material at a lower concentration of dye (400 mg L
−1) showed nearly complete decolorization of the solution; therefore, in further studies for this sample, an MO solution with a higher initial concentration was used. This allowed for more reliable kinetic data and for a better assessment of the actual adsorption capacity of the material. For PM-8-CO
2-3, a lower initial concentration was sufficient because the sample showed a lower adsorption capacity and a more microporous character. Therefore, the results presented in
Figure 5 should be considered as an assessment of the adsorption kinetics under conditions selected for the properties of individual adsorbents, and not as a direct comparison carried out at an identical initial concentration of the dye.
To describe the kinetics of MO adsorption on the studied biocarbons, the linear forms of the pseudo-first-order model (PFO, called the Lagergren equation [
34]) and of the pseudo-second-order model (PSO, Ho equation [
35]) as well as the Weber–Morris intra-particle diffusion (IPD) model [
36] were applied (
Table 6).
Figure 6a–c present the adjustment of the experimental data of MO adsorption on the tested biocarbons to the applied kinetic models. The kinetic parameters calculated based on the relevant equations are collected in
Table 7.
The kinetics of MO adsorption (
Figure 6b) are best described by the pseudo-second-order (PSO) model, as evidenced by the high coefficients of determination (
R2 ≈ 0.999,
Table 7) obtained for both adsorbents. However, the best model fit does not determine the adsorption mechanism unambiguously. The adsorption capacities calculated from the PSO model (
Table 7) are consistent with the experimental values (
qe,exp), which confirms the adequacy of the model fit. Application of the intra-particle diffusion (IPD) model showed that the adsorption process proceeds in two stages. The first stage is associated with intra-particle diffusion, whereas the second corresponds to the attainment of equilibrium. The nonzero and positive values of the intercept (
C) suggest that pore diffusion is not the only rate-limiting step, and that boundary layer diffusion also plays a significant role.
3.2. Adsorption Isotherms
The Langmuir [
37], Freundlich [
38], Langmuir–Freundlich [
39], and Temkin [
40] models were applied to interpret the experimental adsorption isotherms. The nonlinear regression model using Origin Microcal 10 (together with the Levenberg–Marquardt algorithm) was applied to assign an appropriate adsorption model and to calculate sorption parameters based on each of the models.
Langmuir isotherm parameters
qm and
KL were calculated based on Equation (1) [
37]:
where
qm is the maximum adsorption capacity corresponding to the total monolayer coverage on the adsorbent surface (mg g
−1);
KL is the Langmuir constant (L g
−1).
The relationship of the experimental data
qe vs.
Ce was also analyzed based on the Freundlich model (Equation (2), [
38]):
where
KF is the Freundlich isotherm constant (mg
(1 − 1/n) (L)
1/n g
−1);
n is the empirical constant describing the heterogeneity of the adsorbent surface.
The Langmuir–Freundlich (Sips) isotherm is presented in the form of Equation (3) [
39]:
where
KLF is the Langmuir–Freundlich constant (L mg
−1);
n is the constant.
The Temkin isotherm is presented in the form of Equation (4) [
40]:
where
R is the gas constant (8.314 J mol
−1 K
−1);
T is the absolute temperature (K);
bT (J mol
–1 g mg
−1) and
KT (L mg
−1) are the Temkin constants.
The equilibrium experimental data determined at 10, 20, and 30 °C (black squares), together with the nonlinear fits to the applied isotherm models, are presented in
Figure 7a–c for PM-8-CO
2-3 and
Figure 8a–c for PM-8-H
2O-2, while the derived parameters are summarized in
Table 7. The best fit was obtained for the Freundlich model (
R2 > 0.99), indicating the heterogeneous surface character and the possibility of multilayer adsorption. The heterogeneity parameter values (
n < 1) indicate strong interactions between the adsorbent and the adsorbate. Moreover, the n parameter can also indicate a substantial contribution of chemisorption to the process under study. The systematic increase in n values, from 0.317 to 0.497 for PM-8-CO
2-3 and from 0.209 to 0.239 for PM-8-H
2O-2 (
Table 8), is associated with intensified interactions between the MO molecules and the biocarbon surface [
41]. However, the superior fit of the Freundlich model suggests that the adsorption process is not limited to monolayer formation, but rather occurs on a surface with a non-uniform energy distribution.
The Langmuir isotherm model data (
qm,
Table 8) confirm large maximum adsorption capacity, ranging from 353.10 to 413.92 mg g
−1 for PM-8-CO
2-3 and from 519.40 to 521.18 mg g
−1 for PM-8-H
2O-2. The experimentally obtained values are slightly higher, indicating a further increase in the adsorption capability of these materials, and amount to 318.11–342.02 mg g
−1 and 540.02–567.33 mg g
−1, respectively.
3.3. Adsorption Thermodynamics
To fully characterize the nature of the adsorption process, thermodynamic parameters describing its course were determined, including the Gibbs free-energy change (Δ
G, Equation (5)), enthalpy change (Δ
H), and entropy change (Δ
S, Equation (6)) [
42].
The dependence ln
KL = f(1/
T) for all investigated adsorbents is given in
Figure 9. The calculated values of Δ
G°, Δ
H°, and Δ
S° are listed in
Table 9.
The determined thermodynamic parameters of adsorption on the investigated biocarbons indicate that the process is exothermic, as confirmed by the negative enthalpy change values (Δ
H,
Table 9). For the CO
2-activated material, Δ
H was −44.4 kJ·mol
−1, whereas for the steam-activated biocarbon (H
2O), Δ
H was −34.1 kJ·mol
−1, suggesting stronger adsorbate–adsorbent interactions in the former material. The higher absolute value of Δ
H for the CO
2-activated sample can be attributed to its more developed microporous structure and greater surface heterogeneity, which promotes the presence of energetically favorable adsorption sites.
In both cases, negative entropy change values (Δ
S,
Table 9) were observed, amounting to −88.6 J·mol
−1·K
−1 for CO
2 activation and −31.2 J·mol
−1·K
−1 for H
2O activation, indicating a decrease in the extent of disorder at the solid–solution interface during adsorption. This phenomenon can be associated with the restricted mobility of adsorbate molecules, resulting from their confinement within the porous structure of the adsorbent. The markedly greater decrease in entropy for the CO
2-activated biocarbon suggests a more restrictive adsorption environment and can be attributed to the presence of narrower micropores.
As follows from the thermodynamic analysis, the adsorption process is predominantly physisorptive in nature, with a possible contribution of weak specific interactions. Moreover, the negative ΔS values suggest that increasing temperature can affect adsorption efficiency adversely, indicating that the process is thermodynamically more favorable at lower temperatures. The negative Gibbs free-energy change values (ΔG) confirm the spontaneous nature of the adsorption process. The more negative values observed for PM-8-H2O-2 indicate its greater affinity for methyl orange.
3.4. Mechanism of MO Adsorption and Changes in Surface Chemistry
Based on the analysis of the porous structure (
Table 1) and surface chemistry (
Table 2), it can be concluded that methyl orange adsorption is a complex process resulting from the synergistic action of several factors: textural properties, in which micropores provide adsorption sites while mesopores facilitate mass transport and improve the accessibility of these sites; surface chemistry, where the presence of basic functional groups promotes electrostatic interactions with the anionic dye; and adsorbate properties, since the molecular size of methyl orange promotes adsorption on the materials with well-developed mesoporosity. As a result, the PM-8-H
2O-2 sample exhibits the largest adsorption efficiency, owing to the optimal combination of large pore volume, well-developed mesoporosity, and strongly basic surface character.
To determine changes in surface chemistry induced by the adsorption process, a comparison was made between the FTIR spectra of the biocarbon activated with CO
2 for 3 h before contact with methyl orange and after its adsorption (
Figure 10). The comparison of the FTIR spectra indicates that the adsorption process does not alter the overall shape of the spectrum, but primarily affects the relative intensities and shapes of the bands. This suggests that the fundamental chemical framework of the adsorbent is preserved. After adsorption, the most pronounced changes are observed in the regions around 3100–2800 cm
−1 and 1600–1000 cm
−1, where the development and increase in complexity of the signals can be seen. This can indicate overlap between adsorbate and adsorbent bands, as well as partial shielding of the biocarbon surface groups by the layer of adsorbed dye, rather than the simple disappearance of specific chemical moieties. This interpretation is consistent with reports for the methyl orange–based systems, in which adsorption was accompanied by preservation of the main spectral features of the adsorbent together with appearance or enhancement of bands associated with the presence of MO, particularly in the region of vibrations attributed to the aromatic systems, azo groups, and sulfonate moieties [
43,
44]. Consequently, the obtained results can be regarded as confirmation of effective binding of methyl orange on the surface of PM-8-CO
2-3. The preservation of the overall spectral profile together with increased intensity of selected bands suggests that adsorption occurred mainly at the pre-existing active sites of the biocarbon, without substantial reconstruction of its chemical structure.
Table 10 presents a comparison of the MO adsorption capacities of the investigated biocarbons with those reported for other carbonaceous materials in the literature. The obtained results indicate that the prepared biocarbons exhibit favorable adsorption performance toward MO removal. In conclusion, pistachio shell waste can be considered a promising precursor for the production of activated biocarbons with significant potential for application as efficient adsorbents of MO in adsorption-based wastewater treatment processes.