1 Introduction

The sixth goal of the 2030 Agenda for Sustainable Development establishes universal access to water, sanitation, and hygiene; however, more than two billion people did not have access to safe drinking water in 2017 (Gwenzi et al. 2017; Hegarty et al. 2021). These statistics are striking if one takes into account the great technological advances and the strong globalization process that has been experienced in recent decades; however, around the world, it has not been possible to guarantee access to water sources for all the population (Gwenzi et al. 2017; García et al. 2023).

The economic and technical limitations of this sector of society, together with the high costs of construction, operation, and maintenance inherent to a conventional drinking water treatment plant make it difficult for communities in rural areas to implement an entire purification system, reaching in the best of cases to implement only slow filtration systems preceded by a prefiltration system with gravel (García-Ávila et al. 2021; Machado et al. 2019). Slow filtration systems typically use sand as the filter medium, while fast filtration systems use sand and/or a combination of sand and anthracite as the filter medium (Cescon and Jiang 2020). These filter media are difficult to acquire for the majority of these communities due to their high costs; therefore, biochar is an alternative material for the emplacement of these systems.

Although the studies related to the application of biochar have been focused mostly on its efficiency as a soil improver or remediator, from an analysis of the increase in carbon retention capacity and the reduction of greenhouse gas emissions (Gwenzi et al. 2017; Wang et al. 2023), this material has also proven to be an alternative solution within the filtration processes for wastewater treatment systems, because it is a sustainably produced and easily accessible adsorbent, which can be manufactured with materials available in any medium; additionally, it has also been proven that it has the ability to inhibit the development of pathogenic microorganisms (Pooi and Ng 2018; Bolster 2019). Its production and application have also been developed within rural communities as part of drinking water treatment, although without sufficient efficiency for obtaining a quality resource (Kearns 2012). For this reason, the use of biochar as filter  materials in rapid filters for the provision of drinking water in rural communities was experimentally evaluated in the present study.

Valdiviezo et al. (2021) recommended to study different types of technologies for obtaining drinking water, such as: (a) sand filtration, (b) biochar filtration, (c) ceramic filter, (d) photocatalysis or disinfection with sodium, (e) tubular flocculation, and (f) sedimentation (p. 33), in their scientometric study on technologies for drinking water treatment. As can be seen, one of the emerging applications of biochar is the treatment of water for human consumption and wastewater. Ahmad et al. (2014) explained that biochar has a large surface area and large pore volume, a rich organic carbon content and mineral composition, and great quantity of diverse functional groups, which allows it to have a strong adsorption capacity for organic pollutants and inorganics to remove water (Wang et al. 2020).

Biochar's potential to remove different types of contaminants in water has been tested on a laboratory scale; however, it is necessary to take this type of study towards pilot treatment systems and even on an industrial scale (Gwenzi et al. 2017). Additionally, the inclusion of other filter media such as anthracite is suggested to compare the performance of this emerging material with materials typically used in the filtration process (Kaetzl et al. 2020; Enaime et al. 2020). Biochar is a carbon-rich solid material, which is obtained by heating biomass in a closed reactor under certain temperature and ambient conditions; that is, at a temperature above 250 °C, in the absence or with a limited oxygen content [a process called carbonization or pyrolysis] (Lehmann and Joseph 2015). Furthermore, Valdiviezo et al. (2023) indicated that the use of biochar as chelants and desorbents allows the immobilization of inorganic pollutants and potentially toxic elements (PTEs), while natural and synthetic surfactants mobilize persistent organic pollutants (p. 3).

Pyrolysis is the thermochemical process in which the reaction atmosphere is inert or with a reduced amount of stoichiometric oxygen; in which biomass is thermally degraded into its chemical constituents (Tripathi et al. 2016). Pyrolysis has two stages: primary and secondary pyrolysis. The biomass is devolatilized by the action of heat through decarboxylation, dehydration, and dehydrogenation during primary pyrolysis; that is, its organic compounds decompose, releasing a vapor phase, where the high molecular weight compounds condense, forming a liquid phase called bio-oil; while low molecular weight compounds remain as gases (H2, CO2, CO, and CH4) (Ochnio et al. 2020). In secondary pyrolysis, the breakdown of heavy compounds that converts the biomass into carbon occurs and the release of gases also occurs (Lee et al., 2019a; Tripathi et al. 2016). This entire process can be summarized by chemical reaction in the Eq. 1; in which the first part of the products corresponds to the liquid phase, the next is the gas phase, and finally the solid phase (biochar) is given (Raza et al. 2021):

$$({\text{C}}_{6} {\text{H}}_{6} {\text{O}}_{6} )_{n} ^{{\underrightarrow {Heat}}} \left( {{\text{H}}_{2} + {\text{CO}} + {\text{CH}}_{4} + \ldots + {\text{C}}_{5} {\text{H}}_{{12}} } \right) + \left( {{\text{H}}_{2} {\text{O}} + {\text{CH}}_{3} {\text{OH}} + {\text{CH}}_{3} {\text{COOH}} + \ldots } \right) + {\text{C}}$$
(1)

Depending on the operating parameters such as: residence time, temperature and heating rate, pyrolysis can generally be classified as fast and slow, producing biochar with different yields (Mohan et al. 2014; Tomczyk et al. 2020; Tripathi et al. 2016). These parameters are summarized in  Table 1.

Table 1 Types of pyrolysis: operating parameters and products proportion

Fast pyrolysis occurs at temperatures between 400 °C and 600 °C, in a short residence time (seconds) and is characterized by its fast heating rate of 10 to 200 °C s−1, parameters that allow greater  bio-oil production and low yield in biochar production (Tripathi et al. 2016; Raza et al. 2021). This process occurs at a lower temperature, from 350 °C to 800 °C, at a longer residence time that varies from 30 min to more than an hour, and at a slower heating rate (5–7 °C min−1), obtaining a higher yield in biochar production (Lee et al., 2019b).

The amount and yield of biochar depend on multiple factors, such as: biomass, temperature, pressure, heating rate, residence time, particle size, feedstock composition, moisture content, and reactor configuration (Rathnayake et al. 2021). The characteristics of biochar vary according to the type of biomass, residence time in the reactor, heating speed, and particularly the pyrolysis temperature, because it defines its chemical and physical structure, as well as its stability (Chen et al. 2016). The most important physicochemical characteristics of biochar are: (a) true, bulk, and relative  density, (b) porosity, (c) surface area, (d) point zero charge (PZC), and (e) elemental composition (Breton et al. al., 2021; Leng et al. 2021).

Biochar's pyrolysis temperature has several effects on its structure; thus, as the pyrolysis temperature increases, the biochar structure tends to become more porous, due to the thermal decomposition of the organic components of the biomass, which results in the formation of pores in the biochar (Tomczyk et al., 2020). The pyrolysis temperature influences the surface area of biochar. At higher temperatures, biochar can experience further reduction in its surface area due to the degradation of organic compounds and loss of surface structures (Chatterjee et al. 2020).

Biochar produced at higher temperatures tends to have greater thermal stability. It means that it is less prone to breakdown or thermal degradation when it is exposed to high temperatures in subsequent applications (Wystalska and Kwarciak-Kozłowska 2021). The pyrolysis temperature affects the chemical composition of the biochar; thus, at higher temperatures, the organic compounds present in the biomass decompose more completely, which can result in a biochar with a lower organic carbon content and a higher proportion of inorganic carbon, such as ash (Almutairi et al. 2023).

The pyrolysis temperature influences the physical properties of the biochar, such as its bulk density and mechanical resistance. In general, it is observed that biochar produced at higher temperatures tends to have a higher density and resistance due to the greater compaction of the structure (Riva et al. 2021). The pyrolysis temperature influences the carbon content of the biochar. Thus, at higher temperatures, greater removal of volatile components occurs, resulting in a biochar withhigher carbon content (Tomczyk et al. 2020).

Biochar has different granulometries, being associated with the origin and size of the biomass used for its production, which allows the obtention of high porosity with a wide variety of pore shapes and sizes (Liu et al. 2017). The macropores (internal diameter > 50 nm) come from the own spaces of biomass and the micropores (internal diameter < 2 nm) are generated during the biochar production process. It should be noted that these pores are associated with the adsorption of liquid, solid, and gaseous compounds (Amalina et al. 2022). Due to these and other additional characteristics, such as the surface area and functional groups present in biochar, it becomes a viable alternative material for use in the removal of contaminants present in wastewater (Tan et al. 2015; Yang et al. 2023).

Although this study did not focus on the biochar structure, it is important to note that the morphology of the biochar is an important factor in the filtration process. Using scanning electron microscopy (SEM), it has been determined that for bamboo biochar, produced at temperatures between 450 and 500 °C, the material preserves its original honeycomb-like pore structure, showing some new pores generated during the pyrolysis process (Li et al. 2023; Sahoo et al. 2021).

Biochar has been used primarily for soil remediation and amendment; however, biochar is being used for the removal of polluting substances present in water in recent years, largely due to its profitability and sustainability (Choudhary et al. 2020). The main purpose of this research was to evaluate the application of biochar from the combustion of residual biomass in the filtration as part of the purification process experimentally. Due to the aforementioned, the use of alternative filter media such as biochar for the treatment of drinking water would allow the implementation of a sustainable strategy for obtaining economic benefits. Finally, the possible uses or the appropriate final disposal that biochar must have in order to contribute to the circular economy strategy are indicated.

2 Materials and methods

2.1 Biochar production

The production process of the biochars generated in this study was divided into three parts: (1) pre-processing: the necessary materials (both for raw material and fuel) were collected and prepared for use; (2) thermochemical decomposition (pyrolysis): constitutes the manufacture of the carbon itself; and (3) post-processing: the obtained carbons were characterized and prepared for their use within the filtration tests. Figure 1 presents a general scheme of this production process.

Fig. 1
figure 1

a Obtention and preparation of initial biomass, b Biomass pyrolysis, c Post processing

2.1.1 Obtention and preparation of initial biomass

Two types of biomasses were used as raw materials for biochar production: (a) eucalyptus of the Eucalyptus globulus species and (b) bamboo of the Guadua angustifolia species. Eucalyptus (E) was obtained from parts of felled trees found lying on the ground in wooded areas. Eucalyptus branches were the raw  materials for charcoal production and eucalyptus logs were used as an energy source for the pyrolysis process. Branches with a diameter between 10 and 40 mm were chosen and divided into segments of between 5 and 10 mm in length to occupy the largest amount of space inside the reactor at the time of charring and thus limit the amount of oxygen inside the reactor for ensuring the success of the pyrolysis process. Green softwood of low maturity was discarded.

Bamboo (B) was collected from a forest plantation of Guadua angustifolia species. The obtained material was only collected from the ground. The rigid part of the trunk was used, which is the most voluminous and resistant part of the whole plant, as well as showing great porosity in its structure. Similarly, these trunks were also segmented into smaller parts (pieces between 5 and 15 cm2), taking into account the same considerations as described above for the preparation of the eucalyptus. Only advanced maturity bamboo was collected.

2.1.2 Pyrolysis process

The design used for the construction of the artisanal reactor for pyrolysis was based on the design proposed by Iglesias-Abad et al. (2020). This design was adapted and built from recycled materials in order to present a design that can be reproduced and that the production of biochar can be carried out in an artisanal way.

Brewer and Brown (2012) and Pandey et al. (2020) defined slow pyrolysis as the process to follow when the objective is to prioritize the production of biochar over the other products generated during the thermochemical decomposition of biomass. The carbonization of each biomass (eucalyptus and bamboo) was carried out applying two slow pyrolysis processes that are distinguished from each other based on the process temperature and residence time. Lee et al. (2019) and Pandey et al. (2020) indicated values of 300 and 350 °C, as the minimum temperatures to carry out a slow pyrolysis process.

A first pyrolysis process "Process a" was carried out, trying to maintain an average temperature of 400 °C, in order to shorten the residence time. The second pyrolysis process "Process b" was carried out at an average temperature of 300 °C and consequently, a longer residence time was obtained, as well as a lower heating rate compared to "Process a".

The biomass was placed in the internal chamber until it occupied the greatest amount of space in order to limit the oxygen content inside. The fuel was placed inside the (external) combustion chamber. Subsequently, the necessary activation energy was supplied to start the combustion of the fuel. The temperature was monitored using the TENMARS model TM-301 digital infrared thermometer. The measurement of the temperature inside the internal chamber was carried out every 2 min, pointing the thermometer towards the upper hole of this chamber, placed precisely for this purpose. The pyrolysis process was terminated when the emission of gases from the internal chamber ceased, indicating that the thermochemical decomposition of the biomass had concluded.

2.1.3 Post-processing

The biochar was moistened in order to avoid its combustion when it came into contact with oxygen from the ambient air, after having been extracted from the internal chamber. Subsequently, this moisture was removed to facilitate the cutting and sieving processes, for which the biochar was allowed to dry in ambient air for at least 48 h. Subsequently, the biochar was cut in order to increase the surface area, which allowed a greater retention of impurities during filtration. In the first instance, sieving was carried out with thick coals, a Gilson model SS-14D shaker and four sieves of 4.75, 10, 14, and 20 mm, respectively  of the ISO 3310/1 series of the same brand were used.

Subsequently, an Endecotts 9520 brand shaker and seven ASTM sieves of the following numbers were used: 4 (4.75 mm), 6 (3.35 mm), 8 (2.36 mm), 12 (1.70 mm), 16 (1.18 mm), 20 (0.85 mm), and 30 (0.6 mm), for finer granulometry coals. All the material was sieved in portions of approximately 500 g for periods of 10 min for each one. The material retained on each sieve was weighed and stored in different containers for later use in filtration, for each sieving process. The granulometric analysis was carried out as indicated by Chapuis (2021) and Aluvihara et al. (2021).

The CHN628 LECO brand version 1.3 × equipment was used for the elemental analysis of biochar, which determined the percentage of carbon, hydrogen, and nitrogen. The true density was determined by the pycnometer method adopted by Hidnert and Peffer (1950). The bulk density was determined based on the method adopted by Sahoo et al. (2021). The porosity of the material was achieved by what was recommended by Berger (2012). The PZC is a parameter that indicates the pH value required for the net surface charge of the biochar to be zero, which was determined by the pH derivation method (Liu et al. 2012).

2.2 Experimental phase: filtration tests

2.2.1 Implementation of filtration columns

The experimental filtration system implemented for this study consisted of a group of individual columns with granular media prepared for high-rate filtration. The described system worked by gravity and when the filters were saturated, the filter medium was cleaned by means of a pressure backwash. In Fig. 2a the filtration columns appear, that were acrylic tubes of 1.8 m high with an outer diameter of 10 cm. The filter bed of all the columns consisted of 30 cm of gravel as a mechanical support, on which the different filter media tested during this study were placed. The height for each bed was estimated at 60 cm, which gave each filter a maximum head loss of 90 cm. On the other hand, the pipes and accessories used both for the filtered water drainage system and for washing the filters were made of ½" diameter polyvinyl chloride (PVC) material. This system was implemented in the drinking water treatment plant (DWTP) Bayas from the city of Azogues, Ecuador.

Fig. 2
figure 2

a Filtration columns of acrylic material is 1.8 m in height, 10 cm in diameter, with each bed of 60 cm. b Supply of the different tributaries to the filtration system: raw water, flocculated water and settled water, which were obtained from the entrance to the rapid mixer, exit from the flocculator and exit from the decanter, respectively

2.2.2 Operation of the biochar filter

The efficiency of each biochar to remove  suspended solids was tested, for which the removal of turbidity and colour of the filtered water was determined. For this purpose, the filtration system operated with different tributaries, such as: raw water, flocculated water, and settled water, which were obtained from the entrance to the rapid mixer, the flocculator outlet, and the settler outlet, respectively, from the DWTP Bayas where this study was performed (Fig. 2b).

Subsequently, the removal efficiency of chemical parameters such as: copper, iron, aluminium, and nitrates were evaluated; for which, water with content of the mentioned chemical parameters was used. Finally, for the evaluation of biological parameters such as total and fecal coliforms, the raw water that was at the entrance of the treatment plant was used as a tributary. Different filtration rates were also tested, for which a valve was installed at the inlet of each filter in order to regulate the influent flow based on the different filtration rates experienced. The filters were open to the atmosphere, so the flow of water through the bed was driven by gravity. The effluent was collected in the lower part of the column through a valve that constituted the sampling point for each of the filters.

2.2.3 Filtration system maintenance

The beds were cleaned by means of a backwash system, after finishing the filtration. Said system used potable water from an elevated water storage tank. The valve at the outlet of each filter made it possible to regulate the washing flow.

2.2.4 Filtration tests

The filtration tests were divided into three stages. The first stage was to determine the type of biochar with the greatest potential as a filter medium according to its material. Four types of biochars were prepared: two biomasses with process "a" and two biomasses with process "b". In each column, a height of 30 cm was used for each material that was between 10 and 14 mm in diameter and 30 cm in height with  materials between 4.75 and 10 mm in diameter. Table 2 shows the symbols assigned to each of the four filter beds.

Table 2 Filter beds (stage 1)

During this stage 1, filtration tests were carried out with a filtration rate of 120 m3/m2/d (fast filtration rate) for the removal of the physical parameters (colour and turbidity) and copper removal. These tests were carried out for 45 days. The filter washing process was carried out using a washing rate five times higher than  that of in this stage 1 (600 m3/m2/d). The washing process  lasted for 15 min and was carried out after the filter medium was saturated.

In stage 2, a comparison was made between different granulometries of the biochar with the best performance found in stage 1. In this stage, the influence of biochar granulometry in the filtration process was evaluated. Three  filter media were configured with the same material, but with different particle size distributions. The granulometries were assigned based on the thirty and sixty percentiles of the general distribution of all the biochar produced for this stage. To evaluate the granulometry, the same physicochemical parameters measured in stage 1 were analyzed. The same filtration and washing rates of stage 1 were used.

In stage 3, the efficiency of the biochar selected according to stages 1 and 2 was evaluated against materials commonly used as filter media, such as: gravel (Gr), sand (Ar), and (Ca). For this evaluation, simple beds were used (a single filter material in a column); later, mixed beds were used (different materials in the same column). The filtration tests were categorized by ranges according to the turbidity of the influent using simple beds, as indicated in Table 3. Filtration rates of 120 and 240 m3/m2/d were used, which are framed under the operating conditions for fast filters. The tests were carried out in duplicate for each one of the turbidity ranges; that is, a total of 16 filtration runs were carried out using raw water as influent, 12 tests using flocculated water as influent, and four tests using settled water as influent. Filtered water samples were taken 15 and 30 min after the process started, time within which the system begins to regularize its functions. After that, the following measurements were made at different times that depended on the variability of the process, the duration of the filtration run, its turbidity range, and the filtration rate. This information is detailed in Table 3.

Table 3 Categorization of inputs of turbidities (stage 3)

In stage 3, using simple beds, in addition to the evaluation of the removal of physical parameters (turbidity and apparent colour), the removal of various chemical parameters (Cu, Fe, Al, and NO3) was evaluated, as well as the removal of biological parameters (fecal and total coliforms). For obtaining affluents with Cu, Fe, Al, and NO3, solutions were prepared using copper sulfate, ferric chloride, aluminium sulfate, and potassium nitrate, respectively. Tests with each of these solutions were carried out in duplicate at a single rate of 180 m3/m2/d.

At the same time that the filtered water sample was taken for evaluating the removal of the physicochemical and microbiological parameters, the pressure loss experienced by each filter medium over time was also determined. The filtration run was terminated when the filter bed was clogged, which was evidenced by the decrease in the flow rate and the quality of the effluent. The filtration run was finished after 24 h in certain tests, even though the filters were still in operating condition.

The washing rate was determined experimentally based on the expansion that was obtained in each of the filter media, for which the flow rate of the washing water was gradually increased until reaching a correct expansion. The reference expansion was calculated through Eq. 2, proposed by Kawamura (1999). The time required for washing was also established experimentally, fixing the optimal washing time at the instant in which the quality of the washing water was less than 5 NTU and the removal efficiencies with respect to the initial turbidity were greater than 99%. In addition, these data allowed us to calculate the volume of water necessary for the washing process in each one of the beds.

$$Optimum\, Expansion \,Rate= \frac{0.6-e}{0.4}$$
(2)

where e represents the porosity of the medium before expansion.

In stage 3 using mixed beds, colour and turbidity removal was evaluated using four multimedia bed configurations, using sand, anthracite and biochar, whose characteristics are detailed in Table 4. For each configuration, the filter material was placed first, with the highest density and the one with the lowest density on the top of it, in order to facilitate the expansion of the filter medium and the partial mixture between materials, optimizing the washing process. For each one of the configurations, the removal of the same physical parameters of the previous stage was analyzed, using the same filtration rates and with sampling within the previously stipulated times. In the same way, the washing process was executed in accordance with what was indicated in the preceding instance.

Table 4 Filter beds for stage 3

Turbidity was measured with a HACH 2100Q turbidimeter. The colour was measured with the HACH DR890 colorimeter. The presence of aluminium, copper, iron, and nitrates was determined with the HACH DR 2500 spectrophotometer. The existence of fecal and total coliforms was measured with the general method of counting in liquid medium by the determination of the most probable number (MPN). All water samples were analyzed according to the standard methods for the analysis of drinking water (APHA 2005).

2.3 Calculations and statistical analysis

The removal efficiency of the different physicochemical and microbiological parameters was calculated through Eq. 3 (Crittenden et al. 2012).

$$R=1-\frac{{C}_{e}}{{C}_{i}}*100$$
(3)

where R is the removal in percentage (%), Ce is the concentration in the effluent, and Ci is the concentration in the effluent.

The Turbidity Robustness Index (TRI) was applied in order to know the distribution of the effluent turbidities of each filter during its test period. The formula of TRI applied by Upton et al. (2017) and García-Ávila et al. (2021) is in the Eq. 4.

$${TRI}_{95}= 0.5 \left(\frac{{T}_{95}}{{T}_{50}}+ \frac{{T}_{50}}{{T}_{obj}}\right)$$
(4)

 where TRI95 is the index calculated for the 95th percentile. T95 and T50 correspond to the 95th and 50th percentiles of the turbidity distribution, respectively. Tobj  represents the target turbidity to be achieved at the outlet of the system. The target turbidity was estimated at 5 NTU, being the maximum limit allowed in water for human consumption (WHO 2017). If the resulting TRI95 value is closer to 1; then, the robustness of the analyzed system will be higher (Hartshorn et al. 2015).

The comparison between beds for each stage was made through the analysis of variance, which was developed based on the colour and turbidity removal efficiencies for each of the influent waters to the filters. The null hypothesis proposed for each of the tests would be equivalent to the existence of a statistically insignificant difference between the average efficiencies of each one of the beds. On the other hand, as a prerequisite for this analysis, the normality of the data was evaluated through the graphic analysis of its residuals, for which the Shapiro–Wilk test was used (Kozak and Piepho 2018).

For a better understanding of the similarities and differences between the subgroups identified within the analysis of variance, it was decided to apply a pairwise test, also known as post-hoc analysis as McHugh (2011) suggested. In this case, the HSD (Honestly Significant Difference) test developed by Tukey was applied, whose purpose is to identify those subgroups that statistically come from the same sample population (Williams and Abdi 2010).

For analyzing the influence of two factors on the removal means, the ANOVA test of two factors was used. In the cases in which the data did not demonstrate normality in the analysis of residuals, an equivalent non-parametric analysis was applied: Kruskal–Wallis for ANOVA of one factor (Gooch 2011) and the t2way function of the WRS2 package of the R programming language for ANOVA of two factors, the same one that applies a robust test for the analysis of variance (Feys 2016).

3 Results and discussion

The results of the characterization of the biochar, filtration tests, analysis of filtration runs, and analysis of the washing process are in this section jointly with the discussion of the results of this research versus the results of previous studies.

3.1 Biochar characterization

Table 5 shows the characteristics of the filter materials according to the stage in which they were determined and according to the development of the study. In stage 1, the value of the PZC oscillated around 7.55; therefore, the pH of the feed water to the filter must be above the PZC for the biochar to behave as an anion, so that adsorption occurs by electrostatic attraction between the biochar and the ions of the contaminants that are absorbed and wanted for their removal (Liu et al. 2012), because this value indicates the net total surface charge of the particles (Lu et al. 2013). It can be evidenced in the filtration results of chemical parameters, due to that the metal removal efficiency confirms that the pH of the inlet water was above the PZC and therefore the surface charge of biochar is negative.

Table 5 Characteristics of biochars and filter materials

In stage 2, the particle size distribution of the biochars ranged between 0.6 and 4.75 mm, in such a way that three ranges were established: (a) 3.35–4.75 mm as coarse granulometry (G1); (b) 1.18–3.35 mm as intermediate granulometry (G2); and (c) 0.6–1.18 mm as fine granulometry (G3). In stage 3, a filter bed must have a coefficient of uniformity (CU) between 1.7 and 2.5 and an effective size (D10) between 0.7 and 1 mm (Arboleda-Valencia 1992). The produced biochar had values of 1.41 and 0.65 mm for CU and D10, respectively, complying with the specifications as well as the anthracite and the sand used in this stage ( Table 5).

3.2 Filtration test stage 1: evaluation of different biomasses

3.2.1 Removal of physical parameters

Although the removal percentages (Table 6) indicate that Bb was the most efficient material in removing colour and turbidity, this advantage is statistically significant (p < 0.05) only with respect to Ba and Ea for the treatment of settled water. Kazemi et al. (2020) and Kumar et al. (2020) pointed out that the resulting biochars will have a reduced surface area when applying the fast pyrolysis process (higher temperature and shorter residence time). As process "a" had a higher temperature and shorter residence time and process "b" had a lower temperature and longer residence time, the resulting biochars presented differences regarding their surface area (b > a). A greater surface area represents a greater capacity of biochar as a filter medium for adsorbing or for retaining the impurities present in the water (Perez-Mercado et al. 2018). The average turbidity efficiencies were similar for the raw water and somewhat more differentiated for the flocculated and settled waters (Table 6), for which it is possible to explain the superior performance presented by the coals manufactured through process "b", with respect to those produced by process "a".

Table 6 Removal efficiencies for physical parameters (Stage 1)

3.2.2 Copper removal

Water with a concentration of 56.1 µgL−1  of copper was used as affluent, obtaining removal efficiencies of 75.67 ± 3.65%, 72.91 ± 8.02%, 71.12 ± 3.03%, and 70.59 ± 3.74% in the following order: Bb > Eb > Ea > Ba. As in the previous analysis (turbidity and colour), the biochar and the process with the most efficient results were Bb and "b", respectively. Aran et al. (2016) reached a very similar efficiency (75.7%) in the removal of copper with eucalyptus biochar, determining that the removal efficiency was associated with the organic matter present in the used solution.

3.3 Filtration tests stage 2: evaluation of biochar with different particle sizes

3.3.1 Removal of physical parameters

The efficiencies presented in Table 7 indicate that the yield of G3 (fine granulometry) was significantly higher than  those of the other beds (p < 0.05), with the exception of the sedimented water treatment.

Table 7 Removal efficiencies for physical parameters (stage 2)

These results agree with the results obtained by Khiari et al. (2020), in whose study, when comparing the turbidity removal efficiencies for biochars with different particle sizes within the treatment of wastewater from an aquaponic system, it was found that the biochar with the highest efficiency was the biochar with the smallest particle size. This fact is attributed to the lower total porosity in the filter bed and the greater surface area that is achieved by reducing the particle size. The average turbidity removal efficiencies obtained by Khiari et al. (2020) were 60.47% for the thick material (3–5 mm) and 80.66% for the fine material (1–3 mm), which were higher values than those presented in the results of the present study (48–56.29%). However, it should be taken into account that the filtration rates of the study in comparison were only 5, 10, and 15 m3/m2/d, all corresponding to slow filtration, while the rate applied at this point in the present study was 120 m3/m2/d, value corresponding to a fast filtration rate.

Perez-Mercado et al. (2018) compared organic matter removal efficiencies in terms of chemical oxygen demand (COD) for municipal wastewater, using biochars produced from a mixture of pine and fir, with effective sizes (d10) of 0.7, 1.4, and 2.8 mm. Perez-Mercado et al. (2018) found that the 94% efficiency achieved by the largest biochar (2.8 mm) was significantly lower than the 99% obtained by the other two sizes (0.7 and 1.4 mm), specifying that increasing particle size increases also the volume of voids in the bed and with it, the risk that the influent water passes through the filter without having much contact with the filter medium. Similarly, Jin et al. (2022) found that the adsorption of trichlorethylene was higher for the material with a particle diameter between 0 and 75 µm, compared to those with diameters between 75 and 150 µm, and between 150 and 250 µm, for biochar produced from peanut shells at 900 °C.

3.3.2 Removal of chemical parameters

Water with a concentration of 3.97 mg L-1 of copper was used as affluent, obtaining efficiencies G3 > G2 > G1 with values corresponding to 99.62 ± 0.13%, 98.99 ± 0.76%, and 97.23 ± 0.5%. As for turbidity and colour removal, the efficiency of the process increases as the particle size in the bed decreases. These results coincide with those obtained by Mahdi et al. (2018), in which a date seed-based biochar presented a copper removal efficiency of 93% with a particle size between 0.6 and 1.4 mm, higher than with a size greater than 2 mm in which the efficiency decreased to 78%. When comparing these results with those of the previous stage, it is also shown that the higher concentration of the contaminant in the influent implies the higher percentage of removal,  which is achieved during filtration, although it does not necessarily imply lower concentration values for the effluent.

3.4 Filtration tests stage 3: evaluation of biochar vs other filter media using individual beds

3.4.1 Removal of physical parameters

The general results (Table 8) indicate that Bc had greater efficiency in removing turbidity and colour; furthermore, this difference with respect to the other three filter media was always significant, except for the removal of colour in the treatment of settled water. Leng et al. (2021) pointed to the porosity of biochar as the characteristic responsible for giving the material its surface area, especially that known as microporosity, which increases the capacity of the material to retain impurities.

Table 8 Removal efficiencies for physical parameters (stage 3)

Studies conducted by Kaetzl et al. (2018) for slow filtration in the direct treatment of municipal wastewater could be used as a point of comparison for the results obtained by Bc in the treatment of raw water. Within the first investigation, Kaetzl et al. (2018) used a commercial type biochar produced from softwoods and obtained an average percentage of turbidity removal of 93%, far exceeding that achieved during this study, which can be attributed to the very low filtration rate of 1.2 m3/m2/d (among other operating conditions), barely 1% of the lowest rate applied in the present study (120 m3/m2/d) and corresponds to a fast filtration rate. In addition, it was shown that this efficiency was significantly higher (p < 0.05) than those presented by the gravel and wood chip filters, because the retention time was lower than that of biochar, so is  the efficiency in the first case.

In the second case, when dealing with materials with similar retention times and porosities, the logical explanation would be to attribute the effect to the greater specific surface area that was presented by the biochar. For the second case study, Kaetzl et al. (2020) used a commercial biochar produced from Miscanthus, a type of herbaceous plant, under the same filtration rate (1.2 m3/m2/d); obtaining an average removal efficiency just above 31%; that is, less than half the efficiency achieved by the biochar produced and tested in the present investigation (64.37%).

Regarding the effect of the filtration rate, the results for raw water (Table 9) indicate the following: (a) for the same bed, efficiency generally increases at a low rate, although they do not show significant differences (p > 0.05); (b) the effect of the rate loses significance with the increase of the influent turbidity; and (c) the filter material is always the significant variable (p < 0.05). Regarding the treatment of flocculated water (Additional file 1: Table S1), the effect of the filtration rate is significant only when the turbidity of the water at the entrance of the system is high (p < 0.05) and the same occurs within the treatment of raw water, although the effect of the filter material prevails in all cases here too (p < 0.05). In addition, the results of the sedimented water treatment (Additional file 1: Table S2) indicate that the effect generated by the filtration rate proves to be significant for the removal of turbidity and for the removal of colour (p < 0.05).

Table 9 Effect of the filtration rate on the removal of physical parameters for raw water (stage 3)

Regarding the turbidity effect of the influent (to see Additional file 1: Table S3), it is possible to identify significant differences between the turbidity ranges (p < 0.05) for the same bed, within the raw water treatment. In this case, both the effect of the filter material and the influent turbidity are significant in the removal of turbidity and colour for the two filtration rates applied in this study (p < 0.05). For the treatment of flocculated water (to see Table 10), the significant differences (p < 0.05) between the influent turbidity ranges for the same bed appear only between the low and high turbidities for the Ar, Bc, and Ca beds when the rate of filtration is 120 m3/m2/d and the comparison parameter is the percentage of turbidity removed. However, the effect presented by the filtering bed and the influent turbidity continue to be significant (p < 0.05) for the removal of turbidity and colour regardless of the rate with which one is working.

Table 10 Effect of influent turbidity on the removal of physical parameters for flocculated water (stage 3)

3.4.2 Removal of chemical parameters

Based on the results shown in Table 11, Bc presented a higher efficiency in the removal of metals (Fe, Al, and Cu), compared to other filter beds. However, Ca presented higher nitrate removal efficiency, although this difference was not statistically different between the beds (p > 0.05). These results suggest that the PZC for Bc and Ar are lower compared to Ca and Gr, for which the first group presented a higher affinity for cation retention (Fe, Al, and Cu); while the second does it for the anions (NO3).

Table 11 Removal efficiencies for chemical parameters (stage 3)

Several studies have demonstrated the ability of biochar to remove metals, as in the case of copper, in which it was shown that the sorption of this metal is due to the organic functional groups of carbon at the  pH of 6 and 7 (Ahmad et al. 2014; Dias et al. 2019), which corresponds to the PZC of the biochar evaluated in this study. The removal of metals from water is an aspect that must be taken into account in water treatment, due to its effects on health and the environment. Activated carbon has been the commonly used material for this purpose, but its cost is high; therefore, the use of biochar as an adsorbent is a viable option, because efficiencies that are comparable to the efficiencies of activated carbon were obtained. In addition, organic waste was used for its production (Mohan et al. 2014).

The low capacity of biochar for nitrate removal has already been evidenced in other studies, regardless of the type of biomass and without having been treated or modified. According to Zhang et al. (2020), this low efficiency is due to the electrostatic repulsion between the surface of biochar and nitrate, due to their similar negative charge; the same that is evidenced by the PZC of biochar. However, there are studies that show that bamboo biochar slightly increases nitrate absorption by increasing the pyrolysis temperature to more than 600 °C, because a greater surface area and porosity are  obtained, always taking pH into consideration (Zhang et al. 2020). In relation to the PZC obtained for the different biochars and in relation to the results obtained with the removal of chemical contaminants, it is concluded that the surface charge of the biochars is negative; therefore, the removal of metals (cations) is very efficient.

3.4.3 Removal of biological parameters

The removal efficiency of total coliforms for raw water presented by Bc was the highest among all the filter beds (94.3 ± 5.6%); while the performance of Bc (88.9 ± 11.4%) was similar to  that of Ca (89.8 ± 12.5%) for fecal coliforms. However, these removal efficiencies were not enough to reach the maximum allowed limit (> 1.1 NMP /100 ml) established by INEN (2020), as shown in Fig. 3. According to the review carried out by Palansooriya et al. (2020), the efficiency of the removal of E. coli (fecal coliform) with biochar as filter material is between 85.21 and 99.98%, depending on both the type of biochar and the type of filtration system in which it is applied. Within this review, the case with the greatest similarity to the one presented in the present study is for a column filter of a commercial softwood biochar without any type of activation and configured by three layers of 50 cm of material, each one at a different temperature. granulometry; obtaining a removal efficiency of 89.77%; that is, just 0.87% more than Bc, considering that the bed in comparison was 2.5 times higher (150 cm) than the one used in the present study (60 cm).

Fig. 3
figure 3

Fecal Coliform Removal for Simple Filter Beds (stage 3)

3.5 Filtration tests stage 3: evaluation of biochar in mixed beds

3.5.1 Removal of physical parameters

The general results for this stage (Table 12) indicate that for the treatment of raw water, M2 (sand + biochar) was the bed with the highest efficiency in removing turbidity and colour, without presenting in the first case a significant difference with none of the other beds (p > 0.05). For the flocculated water, there was a significant difference only with respect to M1 (sand + anthracite) (p < 0.05). Those beds that had biochar within their configuration M2, M3 (anthracite + biochar), and M4 (sand + anthracite + biochar) for settled water are significantly (p < 0.05) more efficient for turbidity and colour removal than those that were not configured with this material (M1). The effects of the filter bed and the presence of biochar within the configuration of those beds within the resulting removal means proved to be significant only for flocculated and settled water (p < 0.05).

Table 12 Removal efficiencies for physical parameters (stage 3)

Regarding the effect of the filtration rate (to see Table 13), in the case of raw water treatment, although the filter beds with Bc presented efficiencies higher than M1, there is no significant contrast between beds (p > 0.05). For colour removal, the effect of the filtration rate is shown to be significant for intermediate turbidities (p < 0.05); while the effect of the filter bed for low intermediate turbidity (p < 0.05).

Table 13 Effect of the filtration rate on the removal of physical parameters for raw water (stage 3)

For the treatment of flocculated water (Additional file 1: Table S4), although the efficiency is higher at a low rate, the effect produced by the filtration rate is significant only when the influent turbidity is high (p < 0.05). Although the efficiencies presented by M2, M3, and M4 are higher than those of M1, they do not show a significant contrast in any of the cases (p > 0.05).

Regarding the treatment of settled water (to see Additional file 1: Table S5), the effects of both the filter bed and the filtration rate prove to be significant in the removal of turbidity and colour (p < 0.05). On the other hand, for the same bed, the efficiencies obtained for each rate do not prove to be significantly different (p > 0.05). In addition, the analysis of each rate separately shows that the difference between the configurations composed of Bc (except M3) are significantly higher than M1 in the removal of these physical parameters (p < 0.05).

Regarding the effect of the turbidity of the influent, the analysis of the effect of the inlet turbidity in the system for the treatment of raw water (to see Additional file 1: Table S6) reveals that when the inlet turbidity increases its value, the efficiencies of the filtering increases too. It can be corroborated by comparing the removal means for each one of the beds, where it is possible to distinguish that there is always a significant difference between the low and high turbidity ranges (p < 0.05), regardless of the filtration rate or the measured parameter. Likewise, by dividing the analysis by turbidity ranges, it is possible to establish that although the efficiencies of the filter media that contain Bc are higher in all cases than the one that does not have this material (M1), the differences between the efficiencies were not significant (p > 0.05).

Higher filtration rates can affect the efficiency of removing contaminants from the water. At higher filtration rates, water can pass through the filter media more quickly, which can reduce the contact time between the water and the contaminants present in it. It can result in lower contaminant removal efficiency compared to lower filtration rates, where there is more time for contaminant adsorption and retention to occur on the filter media. As the filtration rate increases, the head drop across the filter can also increase. It can influence filter performance and life, as well as contaminant removal efficiency.

It is important to consider that the type of feed water (raw, flocculated, and settled) interacted with the filtration rates for influencing the results obtained in the study. The filtration rate influenced the efficiency according to the conformation of the filter medium; thus, when simple beds were used, the decrease in efficiency when increasing the rate from 120 to 240 m3/m2d was greater than when mixed beds were used. In the latter case, a notable decrease in removal efficiency was not observed when increasing the rate of filtration.

The initial turbidity in the flocculated water treatment (Table 14) shows a significant effect for the removal of turbidity and colour only when the filters work with a low rate (p < 0.05). That is why when analyzing the individual performance of each one of the beds at this rate, the existence of significant differences between the turbidity ranges is observed in all cases (p < 0.05); mainly, between low and high turbidities. For the aforementioned rate, if the ranges are analyzed in a differentiated way, then it is possible to notice that the highest efficiencies belong in the same way to the beds made up of Bc; however, the only significant difference with respect to M1 appears in the removal of turbidity by M2 (p < 0.05).

Table 14 Effect of influent turbidity on the removal of physical parameters for flocculated water (stage 3)

3.5.2 Comparison of mixed beds with simple beds

Within the treatment of raw water, the removal efficiencies achieved by the mixed beds prove to be significantly higher than those corresponding to simple beds (p < 0.05). Regarding the robustness index, it is observed that Bc working at a rate of 120 m3/m2/d is the most robust treatment system for this case (Table 15).

Table 15 Turbidity removal and robustness index within raw water treatment

For the removal of turbidity in flocculated water, the efficiencies achieved by Bc with both rates prove to be significantly higher than all the others (p < 0.05) (to see Table 16). Bc working at a low rate was the most robust system and the only bed for achieving mean turbidity below 1 NTU regardless of its filtration rate.

Table 16 Turbidity removal and robustness index within flocculated water treatment

For settled water, the target turbidity in the effluent was set at 0.5 NTU, considered an appropriate value to guarantee the effectiveness of a hypothetical subsequent disinfection process (García-Ávila et al. 2021). Bc at low rate was the most efficient system for turbidity removal (to see Additional file 1: Table S7). For this case, M4 working at a low rate was the most robust system.

3.6 Analysis of filtration runs

As indicated in Fig. 4, filtration runs decrease with the increase of influent turbidity and filtration rate for raw and flocculated water treatment. The Bc filtration run is higher than that of Ar in some specific cases, although in general all the beds present similar filtration times. In the case of settled water, the filtration runs were maintained for more than 24 h regardless of the bed, the filtration rate, or the influent turbidity.

Fig. 4
figure 4

Filtration runs for mixed and individual filter beds (stage 3). Figure 4. Filtration runs for mixed and individual filter beds (stage 3). a Variation of the filtration runs when raw water was used as influent. b Variation of the filtration runs when flocculated water was used as influent. c Variation of the filtration runs when settled water was used as influent

As indicated in Fig. 4, filtration runs decrease with increasing influent turbidity and filtration rate for raw and flocculated water treatment. In Fig. 4a it can be seen that, when raw water with low turbidities was used as influent, the filtration runs lasted between 5 and 10 h; meanwhile, for high turbidities of the raw water, the filtration runs lasted between 1 and 2 h. In all cases, biochar and anthracite had similar filtration paths. In Fig. 4b it can be seen that, when flocculated water was used as influent, the filtration runs lasted between 5 and 7 h; meanwhile, for high turbidities of the flocculated water, the filtration runs lasted between 2 and 4 h. For all filter media, the filtration runs were similar. In the case of settled water, the filtration runs were maintained for more than 24 h regardless of the bed, the filtration rate or the turbidity of the influent (Fig. 4 c).

3.7 Analysis of the washing process

The results of the washing process (Table 17) indicate that for the beds configured totally or partially by Bc, the expansion measured during washing was well above the optimum. It occurred because the upward force generated by lower washing rates than those presented in each case was not enough to remove the particles retained between the bed during the filtering process, so it was necessary to opt for higher rates that ensure the cleaning of the bed, although they generate an expansion greater than theoretically necessary. On the other hand, it is also shown that Bc requires less water consumption for cleaning for simple beds and that the configuration of mixed beds contributes to reduce both the washing time and the consumption of water.

Table 17 Results of the washing process for single beds (stage 3 and stage 4)

Then, although the low density of biochar facilitates its expansion even at relatively low rates, this characteristic also contributes to the fact that this material presents a greater amount of lost bed, after having concluded the operation of the filters; although as observed in the Table 23, the loss of bed is a normal process and the value corresponding to Bc is not very distant compared to the other materials. Likewise, the low density prevents the application of high washing rates inside this filter, due to that it would be exposed to the dragging of a greater amount of filtering material, also limiting the upward force of the washing water and its ability for removing the particles adhered to the filter bed, which results in the prolongation of the time required for the process and in remaining turbidity higher than the turbidities obtained from the other beds. However, the average turbidity for Bc at the end of the process was less than 5 NTU, a reference value proposed to corroborate the washing efficiency, which demanded a lower use of water than the uses required by the other simple beds.

3.8 Filtration mechanisms

Filtration is generally considered to be the result of two different but complementary mechanisms: transport and adhesion (Cescon and Jiang 2020). The most important transport filtration mechanisms are sifting, sedimentation, interception, diffusion, and inertial impact. Adherence is attributed to some types of phenomena that occur, such as the interaction between electrical forces and Van der Waals forces between the particles and the surface of the filter media granules, in this case biochar (Petean and Aguiar 2015; Cescon and Jiang 2020).

There is no doubt that not all of them necessarily have to act at the same time and that, in some cases, the contribution of one or more of them to retain the suspended material is perhaps trivial. But it must be taken into account that, given the complexity of the phenomenon, more than one mechanism must come into action to transport the different sizes of particles to the surface of the grains of the filter medium and adhere them (Arboleda 1992).

The occurrence of each mechanism depends on the particle size. If the size of the particles is greater than the size of the pores, it is a sifting; for smaller particles, sedimentation, interception, and diffusion are dominant. It is important to emphasize that the mechanisms act simultaneously, so that the effective transport of a particle cannot be attributed to just one, but to all of them. However, it must be considered that diffusion (erratic movement of particles smaller than one micron in size within the liquid medium) is not very significant in rapid filtration, since chemical pretreatment favors the aggregation of smaller particles (O 'Melia 1985). Therefore, in this study when flocculated and settled water was used in biochar filtration, all transport mechanisms were presented except for diffusion; while, when raw water without coagulation was used, diffusion occurred.

While transport is primarily a physical phenomenon, adhesion is primarily chemical and requires prior destabilization (O'Melia and Ali 1978; Cescon and Jiang 2020). Therefore, it can be considered that in this study, when flocculated and settled water was used in biochar filtration, both transport and adhesion mechanisms were presented; while, when raw water without coagulation was used, only the transport mechanism was presented.

3.9 Considerations regarding this study

The main purpose of this research was to evaluate the efficiency of biochar as a filter material to remove turbidity, colour, and other contaminants present in water, and to provide practical information on the application of biochar in water treatment. For this reason, BET surface analysis was not performed. There are previous studies that have characterized biochar and its surface properties (Table 18).

Table 18 Previous studies that have characterized biochar and its surface properties

4 Conclusions

The use of biochar obtained from residual eucalyptus and bamboo biomass in high-rate filters for purification can be a sustainable and environmentally friendly alternative. By taking advantage of the residual eucalyptus and bamboo biomass, the dependence on synthetic materials is reduced and the reuse of waste is promoted, thus contributing to the circular economy and helping to mitigate the problems associated with the management of agricultural and forestry waste.

Biochar can act alone or in conjunction with other typical materials such as sand and anthracite for retaining contaminants and improve water quality, presenting itself as a promising option for improving water quality and reduce dependence on conventional filter materials. This material presented porous properties and a large surface area, which gives it a high capacity for removing turbidity, colour, Cu, Fe, Al, NO3-, and coliforms. The granulometry is a factor to take into consideration; in general, the smaller the particle size, the greater its efficiency as a filter medium. The removal of metals was much greater than the removal of nitrates, thus concluding that the pH of the influent had a higher pH than PZC; therefore, the surface of the biochars was negatively charged.

When comparing the performance of biochar with other filter materials using single beds, it was found that biochar was the filter medium with the highest efficiency in removing turbidity and apparent colour for the treatment of raw, flocculated, and sedimented water, with similar filtration runs to those of anthracite and in many cases were higher than those presented by sand. In addition, its efficiencies in the removal of copper, iron, aluminium, and total coliforms were also the highest. The time required for washing the filters with biochar was somewhat greater than the time required by the other beds; however, the volume of water used for cleaning this filter was the lowest of all, which could well mean a lower maintenance cost compared to the other filter beds.

The application of the rapid filtration pilot system with biochar managed for obtaining removal efficiencies for turbidity, copper, and coliforms was very similar to those reported by other laboratory-scale systems and with slow filtration rates, which highlights the applicability of this material as a medium for filtering at larger scales. The application of biochar in mixed beds helps to substantially improve the apparent colour and turbidity removal efficiencies achieved by sand and anthracite beds alone. In addition, it was shown that these mixtures between filter materials help to significantly reduce the volume of water used during the filter washing process.

The effects of the filtration rates and turbidities of the influent (raw, flocculated, and settled water) had a greater influence on the removal of turbidity and apparent colour using simple beds compared to mixed beds; in addition, between these two factors, the turbidity of the influent presented significant effects on the resulting removal yields with greater frequency. The biochar used for the treatment of flocculated and settled water made it possible to obtain turbidities at the outlet of the system not only below 5 NTU (WHO’s reference value), but also below 1 NTU, ideal values to carry out a subsequent disinfection process efficiently. Biochar as a filter medium generated effluents with a low degree of dispersion in terms of turbidity values compared to the other materials used, so Bc was the most robust bed in the treatment of raw and flocculated water, while in the settled water treatment was M4 (a bed also configured with biochar).

For future research, it is recommended to carry out potabilization tests of water with biochars based on eucalyptus and bamboo, and also with other substances from rural areas of various countries, considering the areas affected by formal and informal mining exploitation, as well as oil exploitation. It is also recommended that seawater purification processes be developed, with biocarbons made from materials from dry forests, as well as organic waste from municipalities in coastal areas.