Introduction

Water is a fundamental requirement for all living organisms but proper, and clean water supply for different purposes is the biggest problem in the world especially in developing countries due to the lack of economic resources implemented for the water project scheme (Muhammad et al. 2015; Moussa et al. 2016; Benalia et al. 2018; Latheef et al. 2019). Even if there is not enough water supply for a variety of activities, there is always a probability of wastewater being discharged based on the amount of water consumed (Muhammad et al. 2015).

Several sources of wastewater emit the pollutants to the environments such as pulp and paper industries (Mahesh et al. 2016; Kumar and Sharma 2019), garage service giving area (Manilal et al. 2017), printing (Safwat 2020), mining (Touahria et al. 2016), tannery (Deghles 2019), oil refining (Ugya et al. 2018), slaughterhouses (Yusoff et al. 2017), brewery (Papadopoulos et al. 2020), textile (Dalvand et al. 2011), municipal (Gholami Yengejeh et al. 2017), domestic (Ozyonar and Karagozoglu 2011), and hospital (Sharma and Mane 2017).

Among this hospital is a large institution that needs a huge quantity of water to perform daily activities which enhance large volumes of wastewater discharging from chemical and biological laboratories, surgery, drug treatments, radiology, operation room, toilet, and laundry rooms (Sharma and Mane 2017). Direct generation of wastewater from the concerned sources has its impacts such as minimizing the quantity of freshwater and causing environmental pollution especially irreversible problems and generally affects flora and fauna (Manilal et al. 2017; Sharma and Mane 2017). The treatment of wastewater generated from different sources is essential for the safety of an environment that is either directly or indirectly related to an environment (Brahmi and Bouguerra 2015). But to eradicate those problems, there are different types of wastewater treatment methods which include a physical, biological, and chemical process based on the different situations of wastewater (Dalvand et al. 2011; Asaithambi 2016; Manilal et al. 2017; Zailani and Zin 2018; Kumar and Sharma 2019).

According to (Moussa et al. 2017), physical treatment is a process that concerns the physical removal of unwanted substances from wastewater without causing any change of biological and physical characteristics of water treated, while the chemical process is the addition of chemicals that react with the pollutants to remove them and the biological unit is done through application or utilization of microorganisms for the biodegradation of pollutants from wastewater. The treatment methods are implemented for the wastewater treatment such as adsorption (Mahesh et al. 2016; Liu et al. 2017; Kamar et al. 2018), coagulation–flocculation (Liu et al. 2017; Manilal et al. 2017), filtration (Liu et al. 2017), ion exchange (Kamar et al. 2018), chemical oxidation (Mahesh et al. 2016; Sharma and Mane 2017), electrocoagulation (Mahesh et al. 2016; Sharma and Mane 2017; Safwat 2020), electrodialysis (Kamar et al. 2018), aerobic and anaerobic (Mahesh et al. 2016), etc.

Electrocoagulation (EC) is important in water and wastewater treatment technology that combines electrochemical, chemical, and physical mechanisms which are based on electrochemically dissolving cationic metallic species in situ by oxidizing a sacrificial anode only with the applying of electric current (Papadopoulos et al. 2020). The dissolved electrodes form a coagulant species that destabilize and trap pollutants in water and wastewater in the form of suspended particles causing them to form flocs and precipitate, which results in removing pollutants (Papadopoulos et al. 2020). Electrocoagulation process is highly adopted due to the installation and maintenance system being simple, operation cost is low, and production of sludge is a small amount and its ability to combine with other treatment process such as ultrasonic, microwave, and ozone (Sharma and Mane 2017; Hashim et al. 2020, 2021; Abdulhadi et al. 2021; Das et al. 2021).

Different studies are indicated that the electrocoagulation is an effective and efficient process to remove the pollutants for the wastewater, and it is generated from different sources such as brewery industry (Papadopoulos et al. 2020), automobile garage (Manilal et al. 2017), hospital (Sharma and Mane 2017), domestic (Ozyonar and Karagozoglu 2011), pulp and paper (Asaithambi 2016; Mahesh et al. 2016), and mining (Touahria et al. 2016). In addition to this, some researchers describe factors affecting operating parameters using electrocoagulation for wastewater treatment (Asaithambi 2016) and but they are small in number that deals with the operating cost of electrocoagulation (Ozyonar and Karagozoglu 2011). There are only few studies on the removal of color, COD, turbidity with determination of energy consumption from wastewater using electrocoagulation process, and also the comparisons of different types of wastewater for the removal of pollutants by using electrocoagulation process are given in Table. 1.

Table. 1 Comparisons of removal efficiencies of different types of wastewater by using electrocoagulation technology

In this study, the effects of different operating parameter in electrocoagulation processes such as electrolysis time, pH, electric current applied, the distance between electrodes, the combination of electrodes and electrolytic concentration on the removal of % color, % COD, % turbidity, and determination of energy consumption were inverstigated for treatment of wastewater. In addition to this, an operating cost of electrocoagulation was clearly described due to electrode dissolution and energy consumption.

Materials and methods

Materials

Wastewater was collected from Jimma University Hospital, Jimma Zone, Oromia regional state, Ethiopia. For wastewater sampling, the grab sampling method was used for wastewater collection and the wastewater was stored in a cold room (+ 4 °C) to protect against any decay in wastewater quality. The characterization of wastewater was accomplished according to standard methods, and the results are given in Table 2. Different types of materials used during the investigation were: a power source (DC power), aluminum (Al) and iron (Fe) electrodes, electrochemical cell, COD digester, magnetic stirrer, copper wires, electrical clips, pH meter, turbidity meter, and UV/Vis spectrophotometer.

Table. 2 Characteristics of wastewater

Methods

An experimental setup of electrocoagulation is shown in Fig. 1 with an electrochemical cell volume of 1000 mL. In this process, aluminum (Al) and iron (Fe) electrodes were used as anode and cathode with the dimensions of 6 cm x 13 cm × 0.1 cm (width, length, and thickness), and the effective electrode surface area was 6 cm x 10 cm × 0.1 cm. The inter-electrode distance was varied from 1 to 2 cm. Electrical wires (copper wires) were connected to anode and cathode of direct current (DC) power source to one end and Al and Fe electrodes on other end after dipping into an electrocoagulation cell with the required depth, respectively. The power is supplied according to the desired current just by varying different factors. An electrode was washed and cleared after certain runs of experiments, and also, since there was electrode dissolution, they were replaced to enhance the efficiency of the study. The removal degree of color, turbidity, COD, and energy consumption was determined under different operating parameters like pH, the distance between electrodes, current, electrolytic concentration, the combination of electrodes, and electrolysis time. During the process with required experimental conditions, the samples were collected at regular intervals of time and centrifuged using REMI Model: R-24 (10,000 rpm, 15 min), and were analyzed for color, COD, and turbidity removal. The color was measured at the wavelength corresponding to maximum absorbance λmax (300 nm) using a UV/Vis spectrophotometer (Jasco, V-570). The COD of the samples was determined using the dichromatic closed reflux method, strictly following the APHA.

Fig. 1
figure 1

Electrocoagulation setup

Analysis

Different wastewater parameters were analyzed based on the factors influencing the investigation of the electrocoagulation process. The removal of color, turbidity, COD, and power consumption was studied by using different empirical formulas.

Percentage removal of COD, color, turbidity, and energy consumption

The removal efficiency of COD, color, turbidity, and power (energy) consumption was determined according to the formulas stated below.

$$ COD \, \left( \% \right) \, = \frac{{{\text{COD}}_{0} - {\text{COD}}_{{\text{t}}} }}{{{\text{COD}}_{{\text{o}}} }}\,{*}\,100 $$
(1)

where CODo and CODt are the chemical oxygen demand (COD) at time = 0 (initial) and at t (reaction time, t), respectively.

$$ Color \left( \% \right) = \frac{{A_{0} - A_{t} }}{{A_{0} }}*100 $$
(2)

where A0 and At are absorbance registered at time t = 0 (initial) and at t (reaction time), respectively.

$$ Turbidity removal \left( \% \right) = \frac{{C_{0} - C_{t} }}{{C_{0} }}*100 $$
(3)

where C0 and Ct are turbidity registered (in NTU) at time t = 0 (initial) and at t (reaction time), respectively.

$$ Energy = \frac{{{\text{VIt}}}}{{{\text{V}}_{{\text{R}}} }} $$
(4)

where V, I, and t stand for average voltage of the EC system (V), electrical current intensity (I), and reaction time (t), respectively, and VR is the volume of wastewater, respectively.

In the electrocoagulation process, calculating an operating cost is important which consists of material (electrodes and electrical energy) as well as other essential expenses consisting of sludge dewatering and disposal, but low operating costs could be calculated (Brahmi and Bouguerra 2015).

$$ Operating \, Cost \, = \, aC_{energy} + bC_{electrode} + \, D $$
(5)

where a is electrical energy price in $/kWhr, b is electrode material price in $/kg, D is cost of chemicals, and Cenergy and Celectrode are energy and electrode consumption, respectively.

Here, Cenergy can be determined using Eq. (4).

$$ C_{electrode} \left( {kg/m^{3} } \right) \, = \frac{{{\text{ItM}}}}{{{\text{nFV}}}} $$
(6)

where M is molecular mass of Al and Fe (26.98 and 55.85gmol−1), respectively, n is the number of electrons transferred Al and Fe (Z = 3 and Z = 2), respectively, F is Faraday’s constant (96,487 C mol−1), and V is a volume (m3).

Results and discussion

Factors affecting electrocoagulation

Wastewater treatment by using electrocoagulation process can be done by considering different factors. In this study, pH of wastewater, electrolytic concentration, current, reaction time, electrode type, the distance between electrodes, and way of electrode combined are considered as a factor to treat the wastewater.

pH

The pH of the wastewater sample is not the same. It is adjusted by a solution of NaOH and H2SO4 and checked by a pH meter (Ozyonar and Karagozoglu 2011). In this study, the pH of wastewater was adjusted to pH 3, 6, and 7.5 for both A1–Al and Fe–Fe electrode combinations. Keeping the pH of the wastewater sample constant, the removal efficiency of color, COD, and turbidity obtained was different by changing other affecting factors. The laboratory results indicate that as pH increases, the removal efficiency and energy were increased (Fig. 2). This is because the increase in pH during EC process was primarily attributed to the evolution of hydrogen gas at the cathode, and the concentration of hydroxyl ions (OH) increases in the solution due to the electrochemical reactions that result in high removal efficiency (Taylor and Asaithambi 2015). This happens when all the above-mentioned factors are considered such that the values for color, turbidity, COD removal, and power consumption were obtained. However, most studies show that at a high pH value the removal efficiency of different impurities obtained is minimum (Mansooreh D. et al. 2014).

Fig. 2
figure 2

Removal efficiency and power consumption versus pH on a Al and b Fe

Electrolytic concentration

Electrolytic concentration is one factor that affects the electrocoagulation process. The sodium chloride (NaCl) was used as electrolyte and different concentrations were added to one liter of the sample such that different results were obtained. Concentrations of NaCl used in these activities are 1, 2, and 3 g/L by keeping all other parameters constant. As the concentration of NaCl added per liter of wastewater sample increases, the removal efficiency also increases (Fig. 3). According to (Asaithambi et al. 2012), this was due to positive addition in NaCl concentration which enhanced the production of oxidizing agent, thus increasing the conductivity of the solution which resulted in high removal of pollutants. Even if the concentration of NaCl is varied, the removal efficiency of pollutants is increased with increasing the concentration of NaCl (Kabda 2008; Sharma and Verma 2017).

Fig. 3
figure 3

Removal efficiency and power consumption versus electrolytic concentration on a Al and b Fe

Current

It is the amount of electric current in ampere applied to electrocoagulation process for wastewater treatment taken during electrochemical process. By varying the value of electric current applied to the electrocoagulation process with different parameters, the removal efficiency also varies. Increasing the current in ampere.

increases the removal efficiency of color, COD, turbidity, and consumption of energy (Fig. 4). A higher removal value of pollutants is observed, while a gradual increment of electric current is applied (Kabda 2008; Sharma and Verma 2017). This can be attributed due to the fact that the applied current determines the rates of coagulant and bubble production, which in turn can increase the pollutant removal efficiency.

Fig. 4
figure 4

Removal efficiency and power consumption versus current on a Al and b Fe

Reaction time

Reaction time is the time needed to complete the reaction process of a sample which affects the electrocoagulation process. According to this activity, the reaction time is one hour in which the removal efficiency is checked at a 20 min interval using the initial value as a baseline. In this investigation, the laboratory result shows one hour reaction time is somewhat enough to remove pollutants such that increasing an electrolysis time increases the removal degree of pollutants and consumption of energy (Fig. 5). Increasing the reaction time increases the removal efficiency of color, turbidity, and COD with energy consumption from wastewater (Kabda 2008; Sharma and Verma 2017). According to (Asaithambi et al. 2016), increasing the reaction time resulted in higher removal efficiency due to the generation of hydroxyl radicals and more metal polymeric species were formed.

Fig. 5
figure 5

Removal efficiency and power consumption versus electrolysis time on a Al and b Fe

Distance between electrodes and types of electrodes

Distance between electrodes is the gap formed between the anode and cathode. In this study, the distance between electrodes taken were 1, 1.50, and 2 cm, respectively. So as the distance between electrodes increases, the removal efficiency also increases energy (Fig. 6). This is because the increase in the inter-electrode distance has a direct relationship with current and resistance which increases the cell voltage (Asaithambi et al. 2012). Types of electrodes are also other factors that affect electrocoagulation and can be selected based on their availability on the market, cost, and effectiveness.

Fig. 6
figure 6

Removal efficiency and power consumption versus distance between electrodes on a Al and b Fe

Electrode combination

The combination of electrodes is also another factor that affects electrocoagulation on the percentage removal of pollutant from wastewater. In electrocoagulation process, a common type of electrodes used was Al, Fe, and stainless steel where those electrodes were selected based on their availability on the local market, their cost, and effectiveness. In this study, Al–Al and Fe–Fe combinations were used to evaluate the above-mentioned operating parameters for the % color, %COD and % turbidity removal along with determination of consumption of energy from wastewater. According to the experimental results, there is a chemical reaction of Al and Fe in the electrocoagulation process which forms coagulants of hydroxide flocs that absorb pollutants from wastewater. Experimental investigation indicates using Fe–Fe electrode combination to remove more percentage of color, COD, and turbidity and there is less power consumed than using Al–Al electrode combination.

Estimation of operating cost for electrocoagulation

Electrocoagulation process is an essential technology needed in wastewater treatment without adding any chemicals such that determining the whole operating cost of the process is mandatory; however, few studies determine the total operating cost of an electrocoagulation process (Moussa et al. 2016). The operating cost of electrocoagulation is a major disadvantage of the technology especially for practical application of large-scale industry, and also, few papers were done on the assessment of operating cost (Moussa et al. 2016).

The total operating cost of the electrocoagulation process consists of material, electrical energy costs, labor cost, maintenance cost, dewatering of sludge and disposal cost, and fixed costs (Kobya et al. 2016). However, different costs are not included in the calculation part and they are assumed to be fixed, like costs of dewatering of sludge, labor, maintenance, and costs of disposal (Can and Kobya 2006).

Among experimental titration, there is a maximum electrode and power consumption for both electrode combinations. Hence, the maximum electrode consumption for Al–Al and Fe–Fe combination is 0.00279 kg/m3 and 0.00868 kg/m3 and the maximum power consumption for Al–Al and Fe–Fe combination is 39 kWhr/m3 and 36 kWhr/m3, respectively. When the electrodes are bought from the local market, it is simply sold to the customer with the required dimensions and they do not measure the appropriate weight of those electrodes. Each electrode means Al and Fe were bought by 20 Ethiopian Birr. This is approximately 0.7107$ for a pair of electrodes. This depends on the currency exchange of the Commercial Bank of Ethiopia that indicates the value of one dollar is 28.1407 Ethiopian Birr. The total mass of a pair of electrodes is 30.70 g and 45.40 g for Al and Fe, respectively. Hence, the price of electrodes per weight is 23.15 $/kg and10.557 $/kg for Al and Fe, respectively. Hence, the operating cost of the process can easily be determined using Eq. (5). Similarly, energy and electrode consumptions are determined using Eqs. (4) and (6), respectively. This indicates the value of ‘b’ is 23.15 $/kg and 10.557 $/kg for Al and Fe, respectively. Hence, Celectrode cost for Al–Al and Fe–Fe combination is 0.065 $/mand 0.0916 $/m3. According to Ethiopian Electric Power Agency, the amount of tariff paid for electrical energy is 0.056$/kWhr per month (Atalo 2018).

Therefore, the total energy consumption cost was 2.184 $/m3 and 2.016 $/m3for Al–Al and Fe–Fe combination, respectively. The total cost expended for different types of the chemical was around 2$ for the preparation of K2Cr2O7, (NH4)2Fe(SO4)2(H2O)6, and H2SO4 solution. According to (Can and Kobya 2006), approximately the total cost of labor, sludge dewatering, and disposal was 1$/m3.

Therefore, the sum of the operating cost was 4.15$/m3 and 4.01$/m3 for Al–Al and Fe–Fe combination, respectively. Generally, from the above analysis, the Al–Al electrode combination is less consumed, but there is a higher energy consumption compared to the Fe–Fe combination. The whole operating cost of the Al–Al combination is higher than that of the Fe–Fe combination.

Conclusion

Based on an experimental investigated, electrocoagulation is an effective method for the removal of pollutant with different influencing factors such as pH, electric current, electrolytic concentration, the distance between electrodes, electrolysis time, and types of electrodes which are high affecting the removal efficiency of color, COD, and turbidity with energy consumption. An increasing value of pH (3–7.5), electric current (0.03 to 0.09A), electrolytic concentration (1–3 g/L), the distance between electrodes (1–2 cm), and electrolysis time (20–60 min) increases the removal percentage of color, COD, and turbidity. Similarly, the increment of power consumption achieves the highest removal of pollutants from wastewater since it directly depends on those factors. Using a Fe–Fe electrode combination can remove more pollutants than using the Al electrode combination. Operating cost also depends on the cost of power consumption and electrode dissolution, such that an operating cost of Fe electrode is relatively low to Al electrode.