Introduction

In recent decades, reports of antibiotics detected in water have become more frequent (Wei et al. 2019). Antibiotics are considered as new pollutants due to their trace, bioaccumulative, hardly degradable, and persistent properties (Wang and Chu 2016). Most of the antibiotics administered into the living organism cannot be completely absorbed (Carvalho and Santos 2016; Wang et al. 2020), causing a large quantity of antibiotics to be discharged into environment. Chloramphenicol is a broad-spectrum antibiotic that is widely used in human and veterinary medicines because of its low cost and inhibitory effect on a variety of bacterial infections, including gram-negative and typhoid bacteria. It is a stronger bactericidal agent than penicillin and tetracycline (Liu et al. 2017a). CAP has many side effects on the human body, including gray baby syndrome (Mauer et al. 1980), aplastic anemia (Clesham et al. 2019), and bone marrow suppression (Jimenez et al. 1990). Therefore, many countries including China (Liu et al. 2017b), the USA (George and Hall 2002), and Japan (Kikuchi et al. 2017) strictly prohibit the use of CAP for livestock breeding. However, CAP is still commonly used in many developing countries because it is inexpensive and effective. In order to solve the problem of antibiotic pollution, especially in water, many treatment technologies have been developed such as membrane separation (Srinivasa Raghavan et al. 2018), redox (Ye et al. 2020), adsorption (LÜ et al. 2012), and catalysis (Lu et al. 2019). In a variety of technologies, adsorption is most preferable and widely used because of its low cost, high efficiency, and simple operation (Li et al. 2019).

Porous carbon materials were widely used for pollutant removal due to their large specific surface area, rich porosity, and high corrosion resistance (Awual and Hasan. 2015; Awual. 2017a). Biomass materials have attracted widespread attention due to their abundance, availability, and environmental friendliness (Chen et al. 2021; Liu et al. 2019). Till date, there have been numerous reports on the usage of different biomass materials as carbon sources to develop carbon materials for specific uses. For instance, bovine bones are abundant in inorganic hydroxyapatite and organic collagen, which can be carbonized by self-template carbonization and then in-situ alkali-activation to produce porous carbon materials (Dai et al. 2018a). Facts have proved that the prepared material has significant adsorption capacity for sulfamethazine and CAP antibiotics. Furthermore, biomass, including shiitake mushroom (Cheng et al. 2015), coconut shell (Dissanayake Herath et al. 2019), and auricularia (Xie et al. 2019a), have also been used as raw materials for making porous carbon. Optically, conjugated porous materials have high selectivity and sensitivity to pollutants (Awual. 2019a; 2017b; 2016a), while porous carbon materials have the advantages of rapid and high adsorption capacity.

Studies have found that oxygen-containing functional groups such as carboxyl, carbonyl, phenols, lactones, and quinones could greatly affect the unique adsorption performance of activated carbon to pollutants (Bhatnagar et al. 2013). They can combine heavy metal ions and organic small molecule pollutants through chelation, coordination, and hydrogen bonding (Zhang et al. 2015). Agricultural by-products not only have functional groups such as carboxyl and hydroxyl groups, but also have the characteristics of loose and porous structure, which are good precursors for adsorption materials (Dai et al. 2018b; Zhou et al. 2015). Lignin is a renewable carbon source and is the second largest biopolymer on earth after cellulose. Despite the potential for large-scale use of lignin, it is worth noting as at today that humans use only 3% of lignin. Sodium lignosulfonate (SLS), as a by-product of lignin used in the paper industry, generates approximately 70 million tons per year (Liu et al. 2015). Compared with lignin, SLS still contains more oxygen-containing functional groups, such as α-O-4′ and β-O-4′ linkages (Abukhadra et al. 2019; Galkin and Samec 2016), which can significantly improve water solubility and expand the scope of application. Hence, SLS may be the most promising carbon raw material. Literature evidence indicates that lignin-based porous carbon materials have been successfully used to remove heavy metals and dyes from water (Wu et al. 2020; Zhang et al. 2019). Therefore, it makes great sense to use SLS for the preparation of porous carbons to remove CAP. As far as we know, there have been no such reports before.

Based on the International Union of Pure and Applied Chemistry (IUPAC) specifications, pores have been divided into three types based on their diameter: micropores (< 2 nm), mesopores (2–50 nm), and macropores (> 50 nm). Research has shown that micropores and small mesopores can expand the specific surface area of porous carbon, while large mesopores and macropores are conducive for the transport of target molecules (Yang et al. 2019; Lv et al. 2016; Awual and Hasan. 2014). Therefore, in order to improve the ability of porous carbon to absorb pollutants, it is necessary to reconfigure its pore structure. Carbon raw materials can be converted into activated carbon by physical or chemical activation. Compared with the former, carbon produced by chemical activation method has better pore structure and specific surface area (Gao et al. 2013). However, common chemical activation methods for the preparation of porous carbon require the use of templates. The process involves a series of time-consuming template carbonization, template removal, and subsequent activation, which will greatly increase production costs (Xie et al. 2019b). For non-template method, Oginni et al. (Oginni et al. 2019) showed that the one-step method produced porous carbon with larger specific areas, total pore volumes, and average pore diameters than the two-step method, which were carbon-carbonized and then activated. More importantly, the porous carbon prepared by one-step method exhibited higher adsorption capacity.

In this work, a simple method was proposed for making layered, porous carbons (PCs) by using SLS as carbon precursor. By adjusting temperature and the mass ratio of activator K2CO3 to SLS, porous carbons with different pore structures were prepared through the one-step method. With CAP as the target pollutant, the removal mechanism and applicability of PCs were explored. This study showcased several advantages derivable from the fabrication of lignin porous carbon by the one-step method. These include (1) the one-step method greatly simplifies the manufacturing process of porous carbon materials and reduces the preparation cost and time and (2) abundance and availability of economical carbon raw materials make PCs promising as a large-scale practical applications adsorbent. With these advantages, PCs can be used as a viable, economical, and efficient adsorbent for the removal of antibiotics in the environment.

Materials and methods

Materials and reagents

CAP (C11H12C12N2O5, 98%), SLS, and potassium carbonate (K2CO3, 99%) were purchased from Aladdin Industrial Corporation (Shanghai, China). All chemicals were of analytical grade, without any further purifications.

Preparation of PCs

PCs were prepared as follows: 4.0 g of SLS with different masses of K2CO3 (0 g, 4.0 g, 8.0 g, 12.0 g, 16.0 g) were ground, mixed, and placed in a tube furnace. Under the protection of N2 flow, the temperature was raised from room temperature to 750 °C, 800 °C, 850 °C at the rate of 5 °C min−1 and maintained for 2 h. The reaction mixture was then cooled to room temperature. Afterwards, the black powder was washed with dilute hydrochloric acid and hot deionized water to remove inorganic impurities such as potassium compounds. The resulting powder was purified by washing with water several times and subsequently dried at 105 °C. The product was expressed as PC-T-x, where T and x represent activation temperature and mass ratio of K2CO3/SLS, respectively.

Characterization methods

The topographic characteristics of the synthesized PCs were determined by scanning electron microscopy (SEM, S-4800, Hitachi, Japan) and X-ray diffraction (XRD, D8 ADVANCE, Bruker AXS, Germany) technique. The Fourier transform infrared spectroscopy (FT-IR) was performed on a Spectrum Two spectrophotometer (PerkinElmer, USA) with KBr pellets. N2 adsorption-desorption isotherms were determined by ASAP 2020 PLUS (Micromeritics, USA) volumetric instrument at 77 K.

Batch adsorption experiments

To investigate the effect of the mass ratios of K2CO3 and SLS on the adsorption properties of the synthesized PCs, 3.0 mg of PC-800-x adsorbent was used to adsorb 20 mL CAP solution (100 mg L−1) for 12 h in water. After filtration, the CAP concentration in the supernatant was calculated from the absorbance readings taken at 278 nm in a UV spectrophotometer. Subsequently, in order to study the effect of pyrolysis temperature on adsorption, the above experiment was repeated using PC-750-4 and PC-850-4. The adsorption and BET results showed that PC-800-4 had the second highest microporosity and adsorption capacity for CAP. In order to obtain accurate data, all experiments were performed three times, and the average data was obtained for the next analysis.

In another experiment, the effects of pH (2–12), initial CAP concentration, metal ion concentration, humic acid, and temperature on the adsorption of CAP by PC-800-4 were investigated. The pH affects the form of ions in the solution (Awual. 2019b; 2016b). We first explored the effect of pH on adsorption and determined the best adsorption conditions for subsequent experiments. For the adsorption isotherm experiment, 3.0 mg of PC-800- 4 was added to the CAP aqueous solution with different initial concentrations (50, 75, 100, 120, 135 mg L−1). After equilibration in a 303 K water bath for 12 h, the adsorption equilibrium was reached. The adsorbent PC-800-4 was separated by filtration, and the concentration of non-adsorbed CAP molecules was measured at 278 nm using an ultraviolet-visible spectrophotometer. The equilibrium adsorption capacity for CAP was calculated by the following formula.

$$ {Q}_{\mathrm{e}}=\left({C}_0-{C}_{\mathrm{e}}\right)\times \frac{V}{M} $$
(1)

where C0 and Ce (mg L−1) represent the initial and adsorption equilibrium concentrations of the CAP solution, respectively; V (mL) is the solution volume and M (mg) is the weight of adsorbent.

The influence of solution pH on adsorption was investigated. The CAP solution (120 mg L−1) was adjusted to 2.0–12 with 0.1 M dilute HCl and NaOH solution. At 303 K, 3.0 mg of PC-800-4 was put into 20 mL of CAP solution of different pHs for adsorption. In addition, the effects of 0.1 M common metal ions (K+, Na+, Ca2+, Mg2+, Al3+) and different concentrations (10, 30, 50, 70 mg L−1) of humic acid on the adsorption of CAP solution (100 mg L−1) were also studied.

Adsorption kinetics was used to study the effect of contact time on the amount of adsorption (Awual. 2019). In the study, 3.0 mg of PC-800-4 and 20 mL of CAP aqueous solution (C0 = 120 mg L−1) were added to the centrifuge tube. At 303 K, CAP in the supernatant was measured in a regular time (5, 10, 15, 30, 45, 60, 90, 120, 180, 240, 300, and 420 min). In addition, the above experiment was repeated using PC-750-4 and PC-850-4 for comparison. At time t (min), the adsorption capacity Qt (mg g−1) is calculated as follows.

$$ {Q}_{\mathrm{t}}=\left({C}_0-{C}_{\mathrm{t}}\right)\times \frac{V}{M} $$
(2)

where Qt (mg g−1) is the quantity of CAP absorbed on the adsorbent at the setting time t.

Adsorption isotherms

Adsorption isotherms are useful for understanding the interaction between PC-800-4 and CAP. Langmuir, Freundlich, and Temkin adsorption isotherm models were used to fit the data in this experiment. The nonlinear expressions are as follows.

$$ \mathrm{Langmuir}:\kern0.5em {Q}_{\mathrm{e}}=\frac{Q_{\mathrm{m}}\times {K}_{\mathrm{L}}\times {C}_{\mathrm{e}}\ }{1+{K}_{\mathrm{L}}\times {C}_{\mathrm{e}}} $$
(3)
$$ \mathrm{Freundlich}:\kern0.5em {Q}_{\mathrm{e}}={K}_{\mathrm{F}}\times {C_{\mathrm{e}}}^{\frac{1}{n}} $$
(4)
$$ \mathrm{Temkin}:\kern0.5em {Q}_{\mathrm{e}}=b\ \mathit{\ln}{K}_{\mathrm{t}}+b\ \mathit{\ln}{C}_{\mathrm{e}} $$
(5)

where Qm (mg g−1) is the maximum adsorption for CAP per unit mass of carbon; KL (L mg−1), KF (mg g−1) ((L mg−1)1/n) are Langmuir (3) and Freundlich (4) constant, respectively; 1/n is a measure of the adsorption intensity; b related to the adsorption heat is the Temkin (5) constant, and Kt is the equilibrium-binding constant.

Adsorption kinetics

To figure out the adsorption mechanism of CAP, pseudo-first-order, pseudo-second-order, and intra-particle diffusion kinetic models were used to fit and analyze the experimentally obtained kinetic data. The nonlinear equations for the three models are as follows.

$$ \mathrm{Pseudo}-\mathrm{first}-\mathrm{order}\ \mathrm{model}:\kern0.5em {Q}_{\mathrm{t}}={Q}_{\mathrm{t}}\times \left(1-{e}^{-{k}_1t}\right) $$
(6)
$$ \mathrm{Pseudo}-\mathrm{second}-\mathrm{order}\ \mathrm{model}:\kern0.5em {Q}_{\mathrm{t}}={Q}_{\mathrm{e}}\times \left(1-\frac{1}{1+{Q}_{\mathrm{e}}\times {k}_2t}\right) $$
(7)
$$ \mathrm{Intra}-\mathrm{particle}\ \mathrm{diffusion}\ \mathrm{kinetic}\ \mathrm{model}:\kern0.5em {Q}_{\mathrm{t}}={K}_{\mathrm{pi}}{t}^{\frac{1}{2}}+{C}_{\mathrm{i}} $$
(8)

where Qe and Qt (mg g−1) are the quantity of CAP absorbed on the PC-800-4 at equilibrium and setting time t; K1 (min−1), K2 (g mg−1 min−1), and Kpi (mg (g min1/2)−1) are the pseudo-first-order, pseudo-second-order, and intra-particle diffusion rate constant; Ci is a constant of Eq. (8).

Adsorption thermodynamics

Changes in thermodynamic parameters, Gibbs free energy change (ΔG), enthalpy change (ΔH), and entropy change (ΔS) during the adsorption process were monitored in order to understand the adsorption behavior and determine its mechanism. Quantitative changes were measured using the following equations.

$$ \Delta G=\Delta H-T\Delta S $$
(9)
$$ \Delta G=-\mathrm{RT}\times \mathit{\ln}{K}_{\mathrm{d}} $$
(10)
$$ {K}_{\mathrm{d}}=\frac{\left({C}_0-{C}_{\mathrm{e}}\right)}{C_{\mathrm{e}}}\times \frac{V}{m}\kern0.5em $$
(11)

where, ΔG is the adsorption free energy change, kJ mol−1; ΔH is the adsorption enthalpy change, kJ mol−1; ΔS is the adsorption entropy change, kJ mol−1 K−1; R is the ideal gas constant (8.314 J (mol K)−1); T is the thermodynamics temperature (K); and Kd is the equilibrium distribution coefficient of adsorption.

Mean free adsorption energy

The Dubinin-Radushkevitch (D-R) adsorption isotherm model has been widely used to measure adsorption, especially for microporous carbon. The nonlinear form of the D-R isotherm equation is as follows.

$$ \mathit{\ln}{Q}_{\mathrm{e}}={Q}_{\mathrm{max}}- ln\beta {\varepsilon}^2 $$
(12)
$$ \varepsilon =\mathrm{RT}\times \mathit{\ln}\left(1+\frac{1}{C_{\mathrm{e}}}\right) $$
(13)
$$ E=\frac{1}{\sqrt{2\beta }} $$
(14)

where Qmax is the amount of adsorption in the saturated state; β is the correlation constant with the average free energy of adsorption. ε is Polanyi potential energy, J mol−1. E is the mean free energy of adsorbate unit molecule from the solution to the surface of the adsorbent.

E is an important index to distinguish between physical adsorption and chemical adsorption. If the value of E is less than 8 kJ mol−1, or is between 8 and 16 kJ mol−1 or greater than 20 kJ mol−1, it indicates that the adsorption process is physical adsorption, ion exchange chemical adsorption, and chemical adsorption, respectively (Sarkar and Paul 2020).

The average relative error analysis

The average relative error (ARE) (%) is used to evaluate which model is most appropriate to describe the actual data. ARE (%) can be calculated by the following formula.

$$ \mathrm{ARE}=\frac{100}{n}\sum \limits_i^n\left|\frac{{\mathrm{Q}}_{\mathrm{i},\mathrm{cal}}-{Q}_{\mathrm{i},\exp }}{Q_{\mathrm{i},\exp }}\right| $$
(15)

where Qi, exp and Qi, cal (mg g−1) are the experimental and fitted adsorption quantity, respectively.

Results and discussion

Material characterization

Figure 1 a–c are the SEM images of PC-800-0, PC-800-2, and PC-800-4, respectively. It was observed that as the mass of K2CO3 increased, carbon particles became finer and more porous morphologically. This is because K2CO3 decomposes into K2O and CO2 at any temperature greater than 700 °C, thereby initiating a reaction of K2O and CO2 with carbon (C) to form potassium (K) vapor and carbon monoxide (CO), respectively. More porous carbons are formed when K vapor is inserted into the carbon matrix. The reaction sequence of these processes can be depicted as follows (Sayğılı and Sayğılı 2019).

$$ {\displaystyle \begin{array}{c}{\mathrm{K}}_2{\mathrm{CO}}_3\to {\mathrm{K}}_2\mathrm{O}+{\mathrm{CO}}_2\\ {}{\mathrm{CO}}_2+\mathrm{C}\to 2\mathrm{CO}\\ {}{\mathrm{K}}_2\mathrm{O}+\mathrm{C}\to 2\mathrm{K}+\mathrm{C}\mathrm{O}\end{array}} $$
Fig. 1
figure 1

SEM images of synthesized porous carbons. a PC-800-0. b PC-800-2. c, d PC-800-4

Figure 1 d is a high-resolution SEM image of PC-800-4. It was evident that a large number of pore structures were evenly distributed on the surface of the carbon particles, which served as transportation channels and provided a large surface area for adsorption of target pollutants in wastewater. The above results showed that PC-800-4 was a porous carbon with excellent pores.

The FT-IR spectra of SLS, PC-800-0 and PC-800-4 are shown in Fig. 2. The broad peak at 3401 cm−1 is caused by the stretching vibration of the hydroxyl group. After SLS was carbonized and activated, the products PC-800-0 and PC-800-4 showed gradually weaker peaks for the hydroxyl stretching vibration. In the SLS and PC-800-0 spectra, the absorption peaks at 2938 and 2843 cm−1 correspond to the C–H stretching vibration. The characteristic peaks of the aromatic structure skeleton vibration in the SLS molecule are located at 1599, 1517, 1463, 1427, and 1328 cm−1; and the stretching vibration peaks of C–O in carboxylic acids, alcohols, phenols, and esters are located at 1219 and 1037 cm−1 (Zhang et al. 2011). In addition, the absorption peak of β-O-4′ ether bond is located at 1140 cm−1. Compared with the infrared spectrum of SLS, most of the characteristic peaks in the spectrum of the carbonized PC-800-0 showed greatly reduced intensity or disappeared. In the spectrum of PC-800-4, the absorption peaks at 1599 and 1043 cm−1 confirmed the existence of C=O and sulfonic acid groups, respectively (Xie et al. 2019a). The results showed that the carbonization and activation steps affected the surface groups and chemical properties of the product.

Fig. 2
figure 2

FT-IR spectra of SLS, PC-800-0, and PC-800-4

In order to explore the crystalline/amorphous properties of PC-800-4, XRD characterization was performed over the 2θ range of 10–80°. As shown in Fig. 3, the (002) peak of hexagonal graphitic carbon appeared at 2θ = 29° (Yang et al. 2020a). Compared with PC-800-0, the (002) peak of PC-800-4 was higher and narrower, indicating that the latter had a higher degree of graphitization. The peak at 43° corresponds to the (100) plane of single-layer graphene honeycomb lattice (Tian et al. 2017), indicating the existence of short-range ordered and parallel-stacked graphite crystallites. During the activation process, SLS (carbon source) was converted into a mixture of defective carbon and graphitic carbon. Defective carbon and graphitic carbon help to enrich pores and promote crystal structure, respectively.

Fig. 3
figure 3

XRD patterns of PC-800-0 and PC-800-4

Figure 4 a shows the N2 adsorption-desorption isotherm of PC-T-x. According to the IUPAC classification, all isotherm curves are of type I, indicating that PCs have microporous structures. Table 1 lists the structural parameters of PC-T-x. The results showed that increasing the temperature or the ratio of K2CO3/SLS was beneficial to improve specific surface area and pore volume. At the same temperature, when x increased from 0 to 4, the specific surface area increased from 581.8 to 1305.5 m2 g−1, and the pore volume increased from 0.328 to 0.758 cm3 g−1. When the weight ratio was 4, the specific surface areas of PC-750-4 and PC-850-4 were 1044.1 m2 g−1 and 1522.6 m2 g−1, respectively. It was worth noting that PC-850-4 showed the highest pore volume (0.864 cm3 g−1). This may be because more potassium vapor and carbon dioxide were released at higher temperatures during the activation process. However, the microporosity of PC-850-4 was lower than that of PC-800-4 and PC-750-4, which can be attributed to the destruction of pore structure caused by high activation temperature. It can be seen from Fig. 4b that the pore diameters of the five porous carbons are mainly less than 2.5 nm. Thus, the porous carbons with abundant mesopores and micropores would have potential applications for CAP adsorption.

Fig. 4
figure 4

a N2 adsorption-desorption isotherms and b pore size distribution of PC-T-x

Table 1 Textural properties of PC-800-0 and PC-T-x

Effect of activation parameters

Figure 5 shows the adsorption capacity of PC-T-x for CAP (C0 = 100 mg L−1) at 303 K. It can be seen that at the same activation temperature (800 °C), increasing the amount of K2CO3 significantly improved the adsorption capacity of porous carbon materials. For example, the adsorption capacities of PC-800-1, PC-800-2, PC-800-3, and PC-800-4 were 200.1, 392.8, 409.6, and 511.9 mg g−1, respectively. Similarly, the adsorption capacity increased as the activation temperature was increased under the same experimental conditions. For example, at the K2CO3/SLS mass ratio of 4, the adsorption capacity of porous carbon materials for CAP increased from 444.5 to 589.6 mg g−1 as the activation temperature rose from 750 to 850 °C. The adsorption capacity was consistent with the BET results, indicating that the highly porous structure was the key to improved adsorption. In short, the activation conditions had a significant influence on the adsorption capacity of the adsorbent by affecting its specific surface area, pore volume, surface chemical properties, and product pore structure.

Fig. 5
figure 5

Comparison of adsorption capacities of PC-T-x for CAP at 303 K

Effects of solution pH, ion strength, and humic acid

The influence of pH on CAP adsorption was studied under the condition of C0 = 120 mg L−1. As shown in Fig. 6a, pH has a slight effect on the adsorption of PC-800-4. The adsorption capacity increased slightly at pH 2–4, but decreased slightly in the range of pH 6–9, indicating that the electrostatic interaction between PC-800-4 and CAP affected the adsorption capacity of the adsorbent. This implied that PC-800-4 could maintain its high-efficiency adsorption capacity for CAP in acid-base environment, which expanded the practical application range of the adsorbent. Under the naturel pH (4.86), the adsorption capacity did not change much, so the original pH was selected as the best condition for subsequent experiments.

Fig. 6
figure 6

a Effects of solution pH, b ion species and concentration, c humic acid on CAP adsorption towards PC-800-4 (T = 303 K)

Most often, sewage is a mixed solution containing metal ions and humic acid. Therefore, we also investigated the effects of common metal ions and humic acid concentrations on the adsorption of CAP on PC-800-4. As shown in Fig. 6b, at high concentration of 0.1 M, monovalent metal ions (K+, Na+) had little effect on adsorption. However, the adsorption capacity of PC-800-4 was increased by multi-valent metal ions in the order Al3+ > Mg2+ > Ca2+, which was consistent with the order of metal reactivity. This could also have been be caused by the strong electrostatic interactions between the PC-800-4 and the multi-valent cations. Figure 6 c shows that the presence of humic acid has a significant effect on the adsorption capacity of PC-800-4 for CAP. This may be caused by the competitive adsorption between humic acid and CAP molecules in the solution through hydrogen bonding and π-π EDA interactions. It is noteworthy also that under high humic acid conditions (70 mg L−1), the amount of CAP adsorbed on PC-800-4 was as high as 263.8 mg L−1. This implied that the humic acid molecules were not effectively absorbed by the pores inside PC-800-4, perhaps due to large molecular size of the acid. Based on the above results, we believe that PC-800-4 has a broad application prospect in the treatment of CAP-containing wastewater.

Adsorption isotherm analysis

The equilibrium adsorption isotherm model can be used to explain the adsorption mechanism of the adsorbent for the target. The Langmuir, Freundlich and Temkin isotherm models are suitable for single-layer physical adsorption on uniform surfaces, multi-layer adsorption on non-uniform surfaces, and strong electrostatic interactions between positive and negative charges. Figure 7 and Table 2 show the nonlinear fitting curves and parameters for PC-800-4 adsorption of CAP at different temperatures. It can be seen that the adsorption capacity of PC-800-4 was enhanced with the increasing temperature. The determination coefficient (R2) values for the Langmuir, Freundlich, and Temkin models were in the range of 0.9976–0.9992, 0.9786–0.9942, and 0.9650–0.9750, respectively. According to higher R2 and the lower values of ARE, the correlation of isotherms was as follows: Langmuir > Freundlich > Temkin. Therefore, it can be deduced that the single-layer physical adsorption played a dominant role in the CAP adsorption by PC-800-4. At the same time, using the D-R isotherm equation to calculate E = 7.514 < 8 kJ mol−1, it was verified that physical adsorption was the dominant mechanism. The KL value and KF value increased with temperature, which may be related to the decrease in the inherent chemical properties of the adsorbent and the heterogeneity factor, respectively. In addition, the ratio 1/n can be used to judge the difficulty of adsorption. In the range of 298–308 K, 1/n was less than 0.5, indicating that PC easily adsorbed to CAP (Liang et al. 2020). Moreover, as the temperature increasing, the 1/n value gradually decreased, indicating that the temperature rise was conducive to increased adsorption. This was consistent with the chemical adsorption behavior. Therefore, it can be inferred that chemical adsorption played a role in promoting the removal of CAP by PC-800-4.

Fig. 7
figure 7

Adsorption experimental plots and nonlinear fitting curves of CAP adsorption onto PC-850-4

Table 2 Langmuir, Freundlich, and Temkin isotherm model parameters

Analysis of adsorption kinetics of PC-800-4

The adsorption rate is a key parameter that reflects the adsorption performance of the adsorbent. Computations based on different adsorption kinetic models can give better understanding of the performance and adsorption mechanism of the adsorbent. Figure 8 a shows the distribution of PC-T-4 (T = 750, 800, 850 °C) adsorption profile overtime at 303 K and CAP concentration of 120 mg L−1. The non-linear fitting results and dynamic parameters by pseudo-first-order and pseudo-second-order models are shown in Table 3. The fitting results show that the pseudo-second-order model can better describe the experimental data (higher R2 and the lower values of ARE) than the pseudo-first-order model. It can be inferred that PC-T-4 had some chemical adsorption to CAP, and the mechanism may be attributed to its π-πEDA interaction (Sun et al. 2020).

Fig. 8
figure 8

The nonlinear fitting by a pseudo-first-order and pseudo-second-order rate model and b intra-particle diffusion model

Table 3 Kinetic parameters for the adsorption of CAP onto PC-T-4 (T = 750, 800, 850 °C)

The migration of the adsorbate from the solution to the surface of the adsorbent usually involves external diffusion, surface diffusion, and pore diffusion processes. For the intra-particle diffusion model, a multilinear graph means multiple rate-controlling steps. The fitting of the intra-particle diffusion with the coefficients is shown in Table 4. Figure 8 b shows that the adsorption process includes three diffusion steps: (1) CAP molecules rapidly diffuse from solution to the surface of PC-T-4; (2) CAP molecules diffuse into the interior of PC-T-4; and (3) an equilibrium is established.

Table 4 Intra-particle diffusion model parameters for the adsorption of CAP onto PC-T-4 (T = 750, 800, 850 °C)

Thermodynamic analysis of CAP adsorption

To investigate the effect of temperature on the adsorption of CAP, three temperatures of 298 K, 303 K, and 308 K were selected for thermodynamic experiments. As shown in Table 5, a positive value of ΔH indicates that the reaction is endothermic, which is consistent with the analysis described by kinetics and isotherms. A negative ΔG indicates that adsorption was a spontaneous process. As the temperature increased, the ΔG value gradually decreased from − 6.2419 to − 6.9136 kJ mol−1, indicating that the adsorption reaction was favorable at high temperatures. In addition, the value of ΔG is in the range of − 20 to 0 kJ mol−1, indicating that the adsorption process was dominated by physical adsorption (Zhang et al. 2018), which is supported by the value of Langmuir isotherm R2. ΔS is an indicative measure of the system’s randomness. In this case, the value of ΔS indicates that the degree of system randomness increases after loading CAP molecules to PC-800-4.

Table 5 Thermodynamic parameters of CAP adsorption onto PC-800-4

Comparison with other adsorbents

The adsorption capacity is an important indicator for evaluating the performance of adsorbents. Table 6 compares the CAP removal capacity of this work and other developed adsorbents. It can be seen that the porous carbon prepared by this work still had a high adsorption capacity under the conditions of relatively low initial concentration and dosage. Therefore, PC is a kind of adsorbent with great potential.

Table 6 Maximum CAP adsorption capacity of some adsorbents

Conclusion

This work successfully transformed SLS into porous carbons through one-step activation method. It not only simplified the production process of porous carbon materials, but also realized the efficient adsorption of CAP, achieving the effect of treating wastes with wastes. At 303 K, the maximum adsorption capacity of the synthesized PC-800-4 at a lower initial concentration of CAP (120 mg L−1) was 534.0 mg g−1, which was a great improvement compared to the work of others. Analysis of the adsorption data showed that the Langmuir isotherm model and pseudo-second-order kinetics perfectly described the adsorption isotherm. Thermodynamic analysis of adsorption isotherm showed that the adsorption process of CAP was spontaneous and endothermic. An evaluation of the adsorption isotherm indicated that the physical and chemical synergistic effects favored the adsorption of CAP. It was exciting that the synthesized adsorbents maintained a high adsorption capacity in a complex water environment. PC-800-4 was considered to be a simple, low-cost, and efficient biomass-based porous carbon with broad application prospects.