Introduction

The presence of different pharmaceutical compounds in the environment has been the subject of several studies since they are generally polar and water-soluble molecules (Madden et al. 2009). Paracetamol is widely employed worldwide for relieving pain and reducing fever or temperature in the body (Sundararaman et al. 2022). The detection of these types of drugs normally occurs at low concentrations (fluctuating from μg L−1 to ng L−1) (Hollender et al. 2008), however, long-term exposure by living organisms can cause aquatic toxicity, development of resistance in pathogenic microbes, genotoxicity, and endocrine disruption (Khetan and Collins 2007; Fessard and Le Hégarat 2010). Hence a lot of studies have primarily focused on the detection of pharmaceutical contamination in various kinds of water sources like surface water, underground water, and drinking water (Sundararaman et al. 2022; Jari et al. 2022).

The main drugs found in wastewater normally do not require controlled prescriptions, and this class includes analgesics, muscle relaxants, and hormonal drugs (Xu et al. 2009). Acetaminophen or paracetamol is one of the most consumed analgesics worldwide, as it is cheap and effective, with low side effects and few contraindications (Bertolini et al. 2006; Żur et al. 2018). In late 2019, an epidemic of the human coronavirus disease 2019 (COVID-19) was reported in Wuhan, China, one of the world’s most densely populated cities with a population of over eleven million people (Nandan et al. 2021). Since then, COVID-19 has become a major global public health issue that has had a significant impact on global social development and continues to pose a significant challenge to global public health systems (Guo et al. 2022). In 2020, paracetamol consumption was even higher and is recommended as the first-line treatment for fevers caused by the common cold, flu, and coronavirus (COVID-19) (Sohrabi et al. 2020; Goscianska et al. 2021). The main form of PCM disposal in water bodies is through urine since approximately 65% of the drug consumed is not absorbed by the human body (Lima et al. 2019; Żur et al. 2018). These factors caused PCM concentrations to be detected in the ranges of 20–4300 ng L−1 and 78170 ng L−1, these values exceed concentrations considered not dangerous to living organisms (above 9200 ng L−1) (Bertolini et al. 2006; Dai et al. 2019). Studies report that when PCM persists in the environment can degrade releasing toxic, carcinogenic, and mutagenic compounds, due to this, studies that bring solutions that remove PCM before its discharge into the environment are of high relevance (Pi et al. 2017).

The key techniques that are used to remove pharmaceuticals from the water phase includes degradation (Addamo et al. 2005), coagulation-flocculation (Wang et al. 2022), membrane (Katibi et al. 2021), oxidation (Siedlecka et al. 2018), filtration (Siedlecka et al. 2018) and adsorption (Saood Manzar et al. 2022; Khan et al. 2022). The adsorption technique is done with the use of activated carbon from the plant residues and has been successfully used to remove several pharmaceutical compounds (Chakraborty 2014; Georgin et al. 2021). The great advantage of these studies are that they incorporate a very little cost for obtaining residual biomass, employ a simple method of operation and also have a low cost of implementation (Wong et al. 2018). Furthermore, when a regeneration strategy is used for the reutilization of the spent adsorbent, adsorption does not create harmful compounds as a result of its operation (Quintela et al. 2020; Bernal et al. 2021). Various kinds of carbon-based materials like biochar-based adsorbents (Zubair et al. 2020, 2022), activated carbon (Alagha et al. 2020), hydrochar (Mestre et al. 2015), green coffee residues (Manzar et al. 2020), tree leaves (Liakos et al. 2021; de et al. 2022), coconut shells (Bello et al. 2020) and date palm ash (Blaisi et al. 2018) have been effectively employed to eliminate pollutants from the water phase. For instance, Tunç et al (Tunç et al. 2021) used sawdust-based activated carbon for the removal of paracetamol from the aqueous phase. The author established the developed adsorbent could effectively remove 99.24% of the drug within 90.52 min. In another study activated moringa seed pod was used to effectively remove paracetamol from the water phase (Ogunmodede et al. 2021). Similarly in another investigation, an author studied about the removal of paracetamol using expended coffee grounds (Benyekkou et al. 2020). The fabricated material owing to its high specific surface area (888.1 m2/g), presence of functional groups on the adsorbent surfaces was anticipated to enable strong interface with pollutant molecules. Therefore, using carbon based adsorbent as cheap sustainable adsorbent may assist from an cost-effective and other perspective.

Erythrina used in this study is a genus of the botanical family Leguminosae (Fabaceae), which occurs throughout the Brazilian territory. They are medium-sized trees, softwood, large red or orange flowers, which occur in a wide variety of habitats, from tropical forests to high altitude forests (Fahmy et al. 2018). Its fruits and seeds are dispersed by the action of the wind. They are distributed in the Americas and Africa. In Brazil, about 12 species of Erythrina are found, with the species Erythrina speciosa being the most used for medicinal purposes (Medina et al. 2009; Konozy et al. 2003). This species can reach 20 m in height, presenting compound leaves, long petiolate (de et al. 2019). It loses all its leaves at the time of flowering, covering itself with orange inflorescences. Its growth is fast and is normally used in the urbanization of squares and parks. It produces pod-like fruits, which vary from 15 to 30 cm and are light brown. Its fruits are not edible and because they do not have a pleasant aroma and color, they are also not attractive to birds, therefore, when ripe, they dry and fall, generating a large amount of organic biomass over the soil (da et al. 2014). No studies in the literature have been found related to the use of pods for the removal of emerging pollutants from an aqueous medium.

In this work, the adsorptions of paracetamol were estimated via activated carbon prepared from residual pods of the species Erythrina speciosa carbonized with zinc chloride (ZnCl2) as an activator. The Erythrina speciosa pod residues and the carbonized material were characterized by their functional groups, morphology, and atom mass percentage. pH and adsorbent dosage studies were also determined. Finally, isothermal and kinetic studies were conducted to investigate the PCM adsorption and the activated carbon was also employed in the treatment of simulated effluent.

Material and Methods

Chemicals and Reagents

For the development of activated carbon and the adsorption tests, several reagents were used, all obtained by the company Sigma-Aldrich-USA, and presenting analytical grades. The chemical compounds used were: ZnCl2 (zinc chloride), HCl (hydrochloric acid), and C8H9NO2 (paracetamol; molecular weight: 151.163 g mol−1, λmax = 257 nm). For the preparation of different concentrations of PCM, a stock solution was prepared by diluting 2 g L−1 of the drug in methanol (10%). The following solutions were obtained by diluting the stock solution and stored in glass vials. All samples were prepared with deionized water. The initial pH adjustment of each solution was carried out with NaOH and HCl at 0.10 mol L−1 and using a pH meter.

Pyrolysis of Erythrina sp. and Characterization

Pods of the Erythrina sp. species were directly collected - from the soil, in the city of Santa Maria in the state of Rio Grande do Sul-Brazil. About 1 kg of collected material was taken directly to the laboratory, where each pod was washed with tap water, ensuring that all impurities were removed, then the material was manually broken into 5 cm pieces, and transferred to the dry oven for 24 h set at a temperature of 323.15 K. After that, the pods were grounded using a knife mill. The obtained material showed a brown color and was sieved using an opening of 250 μm, and labeled as grounded Erythrina sp. pod residues. Last, 5 g of the material was separated for characterization and the remains were - employed in the fabrication of the activated carbon.

In the carbonization process, about 50 g of the ground Erythrina sp. pod residues were mixed with 50 g of zinc chloride (ZnCl2), and 2 mL of deionized water. After that, the samples were dried for 12 h. The dried powder sample was transferred to a quartz reactor. The reactor was coupled in the oven under N2 atmosphere at a flow rate of 0.25 L min−1. A heating ramp of 283.15 K min−1, the maximum temperature of 1073.15 K, and the pyrolysis time of 120 min was employed. Sequentially, the activated carbon was washed with HCl solution (10 mol L−1) and finally with distilled water to ensure the removal of unreacted ZnCl2 on the surface of activated carbon. This step was conducted several times until neutral pH of water is obtained. The material was finally separated through decantation and followed by drying for 3 h at 323.15 K. The yield of the activated carbon and the characterization of the materials are shown in Supplementary Materials S1 and S2, respectively.

PCM Adsorption Experiments

The PCM batch adsorption experiments on the developed activated carbon were conducted in a thermostatic stirrer (Marconi, MA093, Marconi, Brazil) at 160 rpm. The determination of the residual PCM concentration after batch experiment was done by employing a spectrophotometer (UV mini 1240, Shimadzu, Japan) set at wavelength of 257 nm. The residual PCM solution was first centrifuged (Centribio, 80-2B, Brazil) for 25 min at 4000 rpm, to separate the spent activated carbon before measurement in spectrophotometer.

First, the optimum pH of the solution was determined. For this purpose, four Erlenmeyer flasks were used, adjusted to pH ranges of 3, 5, 7, and 9, in 50 mL of PCM solution at a concentration of 45 mg L−1. The samples were shaken for 2 h with the dosage of 1 g L−1 of activated carbon. After the determination of the pH, the optimum adsorbent dosage was determined by taking about 0.4, 0.6, 0.8, 1, and 1.2 g L−1 of adsorbent, containing 50 mL of 45 mg L−1 of PCM solution. Before stirring, the solutions were adjusted to the ideal pH. Further adsorption experiments (isotherms and kinetics) were performed at optimal adsorption conditions (pH = 3, 0.8 g L−1).

For the adsorption equilibrium curves, the adsorption experiments were carried out under the following conditions; temperatures (298, 308, 318, and 328) K, initial concentrations of PCM (25, 50, 100, 150, and 175) mg L−1, contact time 5 h in 50 mL Erlenmeyer flasks. Finally, the kinetic studies were carried out at varying initial concentrations of PCM from 25, 50 and 100 mg L−1 in 50 mL Erlenmeyer flasks of solution at a room temperature of approximately 298 K. The samples were collected with the aid of an aliquot of 5 ml at time intervals of 0, 10, 20, 30, 60, 120 and 180 min. The standard adsorption equations (Supplementary Material S3) were employed for the adsorption capacity at any time (qt, mg g−1), adsorption at equilibrium (qe, mg g−1), and the percentage of removal (R, %) determination.

Equilibrium and Thermodynamic Calculations

The adsorption isotherms are essential to evaluate the adsorption behavior of pollutant molecules on the surface of adsorbent. In this work the following models were chosen: Freundlich (Freundlich 1907), Dubinin-Radushkevich (Dubinin et al. 1971), Temkin (Temkin and Pyzhev 1939), Langmuir (Langmuir 1918). Similarly, the thermodynamic parameters were estimated according to the methodology proposed by Tran et al (Tran et al. 2017). The chosen models are depicted in the Supplementary Materials (S3 and S4).

Modeling Adsorption Kinetics

In this work, the linear driving force (LDF) model (Glueckauf 1955) was chosen to represent adsorption data. The LDF takes into consideration that the adsorption kinetics/ concentration decay curve is dependent on the adsorption in equilibrium and the surface diffusion of the system. The LDF model is presented in Eqs. 1–3. The model description and derivation are depicted in Supplementary Material S5.

$$\frac{\mathrm{{dC}}_{\mathrm{t}}}{{{{{\mathrm{dt}}}}}} = {\mathrm{k}}_{{{{\mathrm{LDF}}}}}\left( {\mathrm{C}_0-{\mathrm{C}}_{\mathrm{t}}-{\mathrm{D}}_0\left( {\mathrm{K}}_{{\mathrm{F}}}{{\mathrm{C}}}_{{\mathrm{e}}}^{1/{{\mathrm{n}}}} \right)} \right)$$
(1a)
$${\mathrm{C}}_{\mathrm{t}}\left( {{{{\mathrm{t}} = 0}}} \right) = \mathrm{C}_0$$
(1b)
$$\frac{\mathrm{dq}_{\mathrm{t}}}{{{{{\mathrm{dt}}}}}}{{{ = - }}}\frac{1}{\mathrm{D}_0}\frac{\mathrm{dC}_{\mathrm{t}}}{{{{{\mathrm{dt}}}}}}$$
(2)
$${\mathrm{D}_S} = \frac{\mathrm{R}_{\mathrm{p}^2{\mathrm{k}}_{{{{\mathrm{LDF}}}}}}}{{{{{15}}}}}$$
(3)

where kLDF is the mass transfer coefficient according to the initial concentration (min−1), t is time (min), D0 is the adsorbent dosage (g L −1), Ct is the PCM concentration at any time (mg L−1), C0 is the PCM initial concentration (mg L−1), 1/n is the Freundlich exponent (dimensionless), KF is the Freundlich constant ((mg g–1) (mg L–1)–1/n), Ce is the PCM concentration at the equilibrium (mg L−1), qt is PCM adsorption capacity at determined time (mg g−1), Ds is the surface diffusion (cm2 s−1), Rp is the adsorbent

LDF Solution, Parameters Estimation, and Model Evaluation

The solution of LDF was performed using Matlab, for this the built-in function ode15s was employed coupled with nlinfit (nonlinear fit) for the estimation of the parameters, initial guess value was done through trial and error. For the isotherms first, the particleswarm function was employed for the initial guessing value, e.g for the adsorption capacity (qpar): 0 ≥ qpar ≤ qexp, and for the isotherm constants (kpar): 0 ≤ kpar ≤ 1. After the initial guess, the values were employed in the nlinfit or the lsqnonlin (nonlinear fit with bounds) as the initial guess for the determination of the isotherm model parameters. Regarding the evaluation of the models, it was done by employing statistical indicators as shown in Supplementary Material S6.

Synthetic Effluent Simulation Based on Pharmaceutical Mixture and Salts

To further evaluate the possible application of the activated carbon in the treatment of a mixture of pharmaceuticals and salts, the adsorbent was employed in the treatment of a simulated effluent. The composition of the simulated effluent (100 mL) is shown in Table S1. For the experiment, a dosage of 2 g L−1 was employed, considering that the optimal dosage found for the single experiment was not enough to achieve a high percentage of removal. Other experimental conditions were: agitation for 4 h at 180 rpm (298 K). For the determination of the spectrum curves before and after the adsorption, a spectrophotometer was employed (SP-22, Biospectro, Brazil). The area under the curve before and after the adsorption was used for the estimation of the percentage of removal using the Origin 2016 software.

Results and Discussion

Characterization of Erythrina sp. pod Residues and Activated Carbon

The activated carbon prepared from the pyrolysis of ZnCl2 mixed residual pods of the forest species Erythrina sp. obtained a yield close to 29%. Taking into account that the residual biomass has around 70% of volatile material, which was eliminated during pyrolysis with ZnCl2. The ash content was close to 5%, indicating the produced activated carbon was mainly composed of ash and carbon, results that are in agreement with X-ray spectroscopy (Fig. 2b). This yield is in agreement with other studies that employed biomass residues as precursor materials and zinc chloride as an activating agent (Georgin et al. 2021; Franco et al. 2021; Kerkhoff et al. 2021).

Interestingly, activated carbon presented a satisfactory surface area of 795.109 m² g−1, where the N2 adsorption/desorption isotherms and pore size distribution are shown in Fig. 1A. Considering the IUPAC classification, nitrogen isotherms are type I, with hysteresis loops between p/p0 = 0.1–0.8, according to the classification these isotherms correspond to micro and mesoporous structures (Zhang et al. 2016). At low relative pressures, the adsorption of N2 isotherms increases rapidly, while at moderate pressures the adsorption decreases, indicating that the carbon structure is micro and mesoporous (Zhang et al. 2016). Figure 1B indicates that the average pore diameter was 1.2320 nm for a total pore volume of 0.422 cm3 g−1. Taking into consideration that the PCM size is 9.416 Å the pore size of the activated carbon is large enough to allow the internal mass transfer and adsorb the PCM.

Fig. 1
figure 1

N2 adsorption-desorption isotherms (A) and pore size distribution (B) for the developed activated carbon

The FTIR of the Erythrina sp. pod residues and activated carbon was performed to identify the functional groups present on the surface (Fig. 2a). First, the broadband at (a) correspond to OH groups, -present in both samples, however with less intensity in the activated carbon (Puchana-Rosero et al. 2016). The region in (b) present in both materials corresponds to the conjugate elongation of C=O of the lignin structure (Fontana et al. 2016). The region in (c) appeared only in the residues corresponds to the C-O stretch of acetyl groups present in lignin (Rahman et al. 2019). Finally, the band in region (d), observed in both spectra, but with lower intensity in the pyrolyzed sample associated to stretching vibrations such as CN or CO (Pereira et al. 2003). The study by Salomon et al., (de et al. 2021) also observed the elimination of several bands on the surface of the material pyrolyzed with ZnCl2. Most of the groups present are composed of hydroxyl and carbonyl, which are fundamental molecules that constitute lignin and cellulose (Adebisi et al. 2017). Another point to be highlighted is that the presence of aromatic rings corresponding to C=C bonds was not observed in the carbonaceous material. It is worth mentioning that these bonds help in the π–π iterations during the adsorption process. Therefore, probably the interactions that occurred between the adsorbent and the PCM molecules are hydrogen bonds or electrostatic interactions (Spessato et al. 2019).

Fig. 2
figure 2

a FTIR spectra and (b) XRD for Erythrina sp. pod residues (RAW) and the activated carbon

Figure 2b corresponds to the diffraction patterns of both materials. The XRD results showed that the materials exhibited broad and amorphous peaks related to amorphous carbon at 22.1° for the precursor material and around 21.5° for the activated carbon. Additionally, a smaller peak at 45°, corresponding to the graphitic carbon structure was also observed in activated carbon (Oksman et al. 2006). Predominantly amorphous structures are disorganized and do not present an ordered structural arrangement, where these spaces with disordered sizes and shapes can favor the accommodation of the adsorbate molecules.

To obtain more information regarding the chemical elements present in the materials, EDS analyzes were performed (Fig. S1). The percentages of the elements Ca, Mg, and K present in the original material were below 1%, indicating that in their original form the residual pods are formed by carbon (61.89%) and oxygen (28.69%), as shown in Fig. S1a. The carbonization process involves a substantial loss of volatile matter, where the percentage of carbon was increased to 88.85%, and oxygen decreased to 9.87% (Fig S1b). Another point to be analyzed is that although some studies in the literature confirm a small amount of Zn (Cruz et al. 2018; Danish et al. 2018), in this study all zinc was completely removed from the activated carbon after activation.

The SEM for the Erythrina sp. pod residues and activated carbon samples are depicted in Fig. S2. Figures A and B represent the original material and figures C and D are for activated carbon. It is evident that the particles remained with varying sizes and irregular shapes (2A and 2C), however, the surface of the activated carbon exhibited more irregularities and voids compared to the original material (2B and 2D) which provide active sorption sites for removal of pharmaceuticals from water. Previous studies confirmed that pyrolysis followed by chemical activation with ZnCl2 causes morphological changes in materials of plant origin, such as eucalyptus residues (Han et al. 2020), olive pits (Baldoni et al. 2020), leaves of folium cycas (Kong et al. 2020), peanut husks (Georgin et al. 2016), seed pods of Jacaranda mimosifolia (Georgin et al. 2021), fruit residues from the Ceiba sp. forest species (Franco et al. 2021), Diospyros kaki fruit residues (Salomón et al. 2022), residues from the mushroom Agaricus bisporus (Lazarotto et al. 2021) and residual peel of pitaya fruit (Georgin et al. 2022).

Effect of pH and Adsorbent Dosage

The initial solution pH is regarded as highly important parameter in the adsorption process since it can influence the electrical charges on the surface of the adsorbent, as well as cause the ionization of the molecules present in the adsorbate (Spessato et al. 2019). Figure 3a shows the effect of solution pH ranging from 3 to 9 on PCM adsorption on the surface of activated carbon and the speciation of the PCM. It is evident that the solution pH showed a great influence on the adsorption of the PCM, obtaining high adsorption capacity values at the lowest solution pH (Qmax = 37.12 mg g−1), and linearly decreased as the pH was increased, with the lowest capacity (Qmax = 16.58 mg g−1) obtained at pH 9, thus from these results, a solution pH value of 3 was selected for the following adsorption studies.

Fig. 3
figure 3

a pH solution effect on PCM adsorption and speciation curves for the PCM (V = 50 mL, T = 298 K, Dads = 1 g L−1, C0 = 45 mg L−1, t = 120 min); and b effect of adsorbent dosage on PCM adsorption (V = 50 mL, T = 298 K, pH = 3, C0 = 45 mg L−1, t = 120 min)

From the speciation diagram, it is expected that the PCM molecules are found in neutral form, from pH 2 to 7, and PCM molecules start to ionize due to the pH effects above pH > 7. The type of PCM molecule directly affects what type of physical or chemical interactions governed the PCM and the activated carbon interface. The adsorption mechanism is further discussed in section 3.5.

In addition, to the pH effect, the adsorbent dosage is also important to the adsorption study, leading to information regarding its viability. In other words, the material consumption about the adsorption capacity and percentage of removal. The effect of adsorbent dosage on PCM adsorption was evaluated at different activated carbon dosages (0.4, 0.6, 0.8, 1, and 1.2 g L−1), at a solution pH of 3, contact time of 120 min and temperature 298 K. Figure 3b depicts the results of the dosage effect, regarding adsorption capacity and the percentage removal of PCM. It was observed that as the adsorbent dosage increased from 0.4 to 1.2 g, the percentage of removal increased from 41.36 to 86.49%. This effect is explained by the availability of the active binding sites, which tends to increase. On the other hand, the inverse effect was found for the adsorption capacity, where the values decreased from 47.78 to 33.30 mg g−1, this effect is easily explained by the inverse relation of the batch adsorption equations. The intersection point of the curve can be used as an indicator of the ideal dosage for the system. Which, in this case, it was found to be 0.8 g L−1, at this point the capacity was 42.08 mg g−1 and removal 69.39%, respectively. Thus this dosage was selected to be further employed in the remaining adsorption experiments.

Adsorption Isotherms and Thermodynamic Parameters for the Adsorption of PCM onto the Activated Carbon

The isotherm data (Fig. 4) was constructed to obtain information regarding the effect of the temperature on the equilibrium between the PCM on the solution and the surface of the activated carbon. The first aspect to be noted is that the increase of the system temperature from 298 K to 328 K causes a decrease in the adsorption capacity, from 66.27 to 50.95 mg g−1. This indicates that the nature of the adsorption is exothermic. Aiming at the development of an adsorbent to be applied in the future under real conditions, this is a positive point since its adsorption capacity is favored at room temperature (289 K). This unfavorable behavior due to the increase in system temperature is widely reported in the literature since most adsorbents developed for PCM removal perform better at temperatures close to 298 K (Kerkhoff et al. 2021; Norouzi et al. 2018; Spaltro et al. 2021). The second aspect is related to the equilibrium of the isotherm, it is possible to observe that the adsorption capacity can still increase with the concentration. In other words, the system did not reach a plateau for the concentration range studied.

Fig. 4
figure 4

Equilibrium adsorption data and Freundlich model prediction for PCM adsorption on activated carbon according to the system temperature (T = 298, 308, 318 and 328 K, pH 3, Dads = 0.8 g L−1, t = 180 min)

Aiming to obtain information regarding the adsorption process, the following isotherm models were fitted to the experimental data: Langmuir, Freundlich, Dubinin-Radushkevich, and Tempkin, the estimated parameters are shown in (Table 1). The most suitable model was chosen on basis of the statistical parameters. The Freundlich model was found to be a better model for representing the experimental data, achieving the highest values for correlation coefficient (R2 > 0.99), adjusted coefficient of determination (R2adj > 0.99) and lowest values of ARE (<1.73%), and MSR (<12 mg g−1). The Tempkin model also obtained good values of statistical coefficients, being the second-best fitted model. The last models were Langmuir and Dubinin–Radushkevich, showing the least satisfactory statistical indicators. Even so, the Langmuir model presented a maximum adsorption capacity close to the experimental one. From the works in the literature with drugs, it is found that several studies presented a good fit to the Freundlich isotherm, this behavior may be related to the low concentrations that are normally carried out in the studies and also the presence of a heterogeneous surface providing adsorption in multilayer (Phasuphan et al. 2019; López-Cázares et al. 2021).

Table 1 Equilibrium and LDF parameters of PCM adsorption on activated carbon from Erythrina sp. pods

The maximum experimental adsorption capacity of the adsorbent of 65 mg g−1 was used to compare its performance with other existing adsorbents in the literature on PCM adsorption. Analyzing Table S2, the material developed showed the sixth-best adsorption capacity (Qmax = 65 mg g−1, referring to the experimental capacity). Other adsorbents that show better performance are mainly activated carbons. Being possible to observe that the activating agent plays an important role in the maximum adsorption capacity. The highest value was found by Mashayekh-Salehi and Moussavi (Mashayekh-Salehi and Moussavi 2016), when employing NH4Cl with activated carbon, reaching an adsorption capacity of 233 mg g−1. However, the great advantage of this study is to bring a new application to the fruits of this forest species, since they generate a large volume of waste. mainly in the southern region of Brazil, where these species showed a great adaptation. Therefore, this study aims to provide the occurrence of new future work which can bring a new methodology for activated carbon preparation as well as the application in the removal of emerging pollutants.

For the determination of the thermodynamic parameters (standard Gibbs free energy change (ΔG° kJ mol−1), standard enthalpy change (ΔH°, kJ mol−1), and standard entropy change (ΔS°, kJ mol−1 K−1)) - for the adsorption system, it was employed the equilibrium constant of the system, according to equations shown in the Supplementary Material.

The equilibrium constant values are displayed in Table 2 with the estimated thermodynamic parameters. The parameters ΔG°, the values showed a minor variation, from −27.71 to −25.87 kJ mol−1, with the most negative values found at 298 K. Thus indicating that the adsorption tends to be favored at low temperatures. Furthermore, the negative values of the standard Gibbs free energy change implies the adsorption is spontaneous and favorable process, not requiring the addition of any external energy. A negative value of standard enthalpy change, indicate that the adsorption process of the PCM onto the activated carbon has an exothermic nature. In addition, the magnitude of the ΔH° value (−39.11 kJ mol−1) is consistent with a mechanism involving electrostatic interactions between the adsorbent and the adsorbate (value between 20 and 80 kJ mol−1). Regarding the ΔS°, (−0.05 kJ mol−1 K−1) the negative value shows that the disturbance of the system at the solid-liquid interface decreased during adsorption (Bonilla-Petriciolet et al. 2017). Last, ΔH° contributed more than ΔS°T to the negative values of ΔG°, suggesting that adsorption is an enthalpy-controlled process (Crini and Badot 2008).

Table 2 Thermodynamic parameters of PCM adsorption on activated carbon from Erythrina sp.pods

Kinetic Profile and LDF Model

Figure 5 shows the kinetic curves of the PCM/activated carbon system and represents the time required to achieve the equilibrium for different concentrations about the adsorption capacity (Fig. S5a) and concentration decay (Fig. 5B). The curves in adsorption capacity and concentration are equivalent to the time, where it is possible to observe that for the lower initial concentration (25 mg.L−1), the equilibrium tends to be reached around 120 min, which corresponds to the equilibrium adsorption capacity of 27.64 mg g−1 and a concentration equilibrium of 1.3 mg L−1. For the higher concentration (50 and 100 mg L−1) the equilibrium tends to reach around 80 min, reaching an adsorption capacity of 43.0 and 53.71 mg g−1 and equilibrium concentration of 13.96 and 55.44 mg L−1. Overall the adsorption and decay curves showed similar behavior, reaching the equilibrium after a determined time. The first minutes of the adsorption kinetics is attributed to the external mass transfer. This behavior has already been reported in other studies when also applying activated carbon derived from plant residues (Georgin et al. 2022). It is noteworthy, that the increase in the equilibrium time with the initial concentration indicates that the surface diffusion mechanism tends to increase with the initial concentration. This effect is explained by the initial concentration which causes a higher concentration gradient that leads to a higher adsorption rate at the surface of the adsorbent, thus increasing the surface diffusion, this is further corroborated by the estimated surface diffusion values (Ruthven 1984; Sudo et al. 1978).

Fig. 5
figure 5

PCM adsorption kinetic curves on activated carbon (T = 298 K, Dads = 0.8 g L−1, pH = 3, V = 50 mL). A qt versus t. B Ct versus t

Aiming to obtain more information regarding the adsorption mechanism, the LDF was fitted to the experimental data, the results are shown in Table 1. The model presented a good statistical fit to the experimental data with good statistical parameters, obtaining good values of R2 ≥ 0.94; and low values of MSE ≤ 14.68 (mg g−1)2 and ARE ≤ 8.72%. In addition, the adsorption capacity values of the model were close to those obtained experimentally, being 57.4, 9.67, and 45.18 mg g−1 as the concentration increased. The minimum concentrations obtained were 1.26, 13.85, and 54.08 mg L−1 for concentrations of 25, 50, and 100 mg L−1, respectively. Regarding the mass transfer coefficient (KLDE) it was observed that it had a slight increase from 5.50 to 8.54 min−1, showing that it was little influenced by the increase in PCM concentration. The surface diffusion also increased with increasing concentration, ranging from 2.01 to 3.12 × 10−4 cm2 s−1. Both behaviors are similar to those observed by Georgin et al., (Georgin et al. 2021) when analyzing the adsorption of ketoprofen on activated carbon. As previously explained the increase of the diffusion parameter indicates that as the concentration increases the concentration gradient is higher as the adsorption rate at the surface (Worch 2012).

Propose of the Adsorption Mechanism

In this section, the adsorption mechanism is further discussed taking into account the results obtained from the characterization, pH effect, molecule aspects (speciation and dimer formation), and thermodynamic parameters it is possible to propose an adsorption mechanism. Starting with the adsorbent, in general, activated carbon is formed by C-C, C-H, C=O, and C-OH, which possibilities the hydrogen bonding, electrostatic interaction, and íon-π interaction (Dougherty 2013). Furthermore, the pHpzc was determined to ensure that the proposal of the adsorption mechanism is correct. As displayed in the supplementary material, it was found that the pHpzc = 6.2, meaning that when the solution pH is below 6.2, the surface of the adsorbent will be positively charged. Second, at pH 3 the PCM is mainly found in the neutral form since the transition to ionization at pH 7. Last, the thermodynamic values indicate that the nature of the adsorption is due to the physical interactions. Overall it is expected that at acid pH most of the surface of the activated carbon has a positive charge, due to carbon protonation, and that PCM molecule in its neutral form can perfume hydrogen bonding, electrostatic interaction, and cation-π interaction, as demonstrated in Fig. 6.

Fig. 6
figure 6

a PCM electrostatic potential, b activated carbon electrostatic potential, c adsorption mechanism of the PCM onto the activated carbon

Simulated Effluent Treatment

The spectrum for the solution before and after the treatment is depicted in Fig. 7. Through, the difference between the area under each curve is possible to observe that the activated carbon was able to diminish the concentration of the mixture, (from the PCM and the other compounds) achieving removal of 76.45%. It is noteworthy that, the pod is residual biomass found in large quantities in Brazil, indicating that higher quantities of the material should not be a problem for the application. Regarding the percentage of removal Georgin et al., (Georgin et al. 2021), also prepared activated charcoal with pods of the Jacaranda mimosifolia species and obtained the removal of 71.4% in a drug mixture containing ketoprofen and ibuprofen. Kerkhoff et al., (Kerkhoff et al. 2021), prepared activated charcoal using the endocarp of Butia capitata and found the removal of 84.82% in a synthetic mixture containing ketoprofen, ibuprofen, paracetamol, and naproxen.

Fig. 7
figure 7

Spectra for the simulated effluent before and after the adsorption treatment (T = 298 K, adsorbent dosage = 2 g L−1, pH = 6.5, stirring rate = 180 rpm, V = 100 mL)

Conclusion

Residual pods of the forest species Erythrina sp. were successfully pyrolyzed with ZnCl2 and applied to remove the drug paracetamol in an aqueous solution. The adsorption results can be associated with proprieties of the activated carbon such as high surface area, pores, and the surface functional groups such as C-H and C-OH. The highest adsorption capacity was found at acid pH which is justified by the speciation. The maximum adsorption capacity at equilibrium was found to be 65.0 mg g−1 at pH 3, 298 K. The temperature caused a diminishing effect on the adsorption capacity, with the Freundlich model being able to describe the adsorption equilibrium at all different temperatures. From the thermodynamic nature, it was found that paracetamol is spontaneously adsorbed, and presents an exothermic nature. It was found that the equilibrium time is independent of the studied concentrations, being reached after 120 min of contact, presenting an adsorption capacity high as 55.60 mg g−1 for the initial concentration of 100 mg L−1. The linear driving force model was able to describe the adsorption and decay curves, presenting values close to the experimental one for all the studied concentrations The characterization and thermodynamic results indicate that paracetamol tends to be adsorbed due to electrostatic interactions, hydrogen bonds, and cation-π interaction. The treatment of the simulated effluent found that the activated carbon was able to adsorb 76.45% of PCM. Overall, the activated carbon from the residual Erythrina sp. pods shows to be promisor regarding its future applicability, since it was efficient in the adsorption of the target molecule and possible application in the treatment of mixtures.