Introduction

Growing rates of population in today’s world impose a similar increase in the global energy demand. The fuel consumption almost doubled in 32 years; in 1980, it was 6630 million tons of oil equivalents (Mtoe), and in 2012 it became 12,239 Mtoe. The International Energy Agency is expecting the global energy demand to increase by 53% by 2030 (Heikal et al. 2013).

Today’s world’s energy is mainly produced by fossil fuels which account for 81% of the total energy obtained. Relying on this energy source has to be diminished; these fuels are non-renewable (Torres-Rodríguez et al. 2016). Moreover, fossil fuels combustion is the main participant in the increased level of CO2 emission in the atmosphere, leading to global warming; more than 15 billion tons of CO2 are released annually in the earth’s atmosphere (Kamm et al. 2016; Yusuf and Kamarudin 2013), and the gas emissions from fossil fuels are estimated to increase by 39% by 2030. These are the main reasons for the development of renewable clean alternative fuels which are domestically available, environmentally friendly and can be practically produced became a universal goal (Endalew et al. 2011).

Biodiesel seems as one of the best choices among other sources due to its environment-friendly behavior and similar functional properties with diesel (Mofijur et al. 2013). Biodiesel possesses many advantages over the petroleum-based diesel which made it an interesting subject for many diverse researches; it has low sulfur content, it emits 94% less carcinogenic agents than those in diesel emissions (Luque 2010; Luque et al. 2010), it has higher combustion efficiency and cetane number than diesel fuel (Demirbas 1998), it biodegrades faster and more than 90% biodiesel can be biodegraded within 21 days (Mudge and Pereira 1999; Speidel et al. 2000). Biodiesels have high flash points and may be blended with diesel fuels due to their similar properties (Dharma et al. 2016; Torres-Rodríguez et al. 2016). Furthermore, it reduces most exhaust emissions except NOx, such as monoxide, unburned hydrocarbons, and particulate matters (Canakci et al. 2006; Knothe et al. 2006; Lin et al. 2009; Lopez et al. 2009; Zhang et al. 2003). It is easy to handle, transport and store (Luque 2010; Luque et al. 2010). It can be used directly in unaltered commercial diesel engines (Lee et al. 2014).

American Society for Testing and Materials (ASTM) defines biodiesel as a monoalkyl ester of fatty acids or fatty acid (m)ethyl ester derived from renewable feedstocks, such as vegetable oils or animal fats (Yaakob et al. 2013; Yusuf et al. 2011). To produce biodiesel from vegetable oils, several methods can be used: pyrolysis, micro-emulsification, blending and transesterification (Demirbas 2009; Yusuf et al. 2011). Transesterification is the most commonly used, and it involves the catalyzed reaction between an alcohol and a vegetable oil to produce biodiesel and glycerol (Lam and Lee 2011). The biodiesel produced using this method has a lower viscosity which prevents incomplete combustion and poor atomization and consequently prohibits engine deterioration.

Several types of vegetable oils can be used in the production of biodiesel, such as sunflower oil, rapeseed oil, palm oil, coconut oil, peanut oil and soybean oil (Campanelli et al. 2010; Dizge et al. 2009; Issariyakul and Dalai 2014; Tan et al. 2011; Zhang et al. 2003). However, many non-governmental organizations criticized the use of edible oils in the production of biofuels regarding the hunger and starvation millions of people are facing around the world (Ashraful et al. 2014). This gave rise to a new trend of using non-edible oils as feedstock in the biodiesel production such as jojoba oil, linseed oil, tobacco oil, neem oil, Jatropha oil (Ashraful et al. 2014) and also waste cooking oil. This study focuses on the use of Jatropha oil and waste cooking oil as feedstock in the transesterification to produce biodiesel.

Jatropha curcas non-edible oil seems to be a suitable feedstock for the biodiesel production because the Jatropha tree can tolerate different hard conditions and grows in lands that are unfavorable for other plants to grow in (Basir et al. 2015). The seeds contain around 35–40% of the J. curcas oil, while the kernels contain from 50 to 60% of the oil. The percentage of the saturated and unsaturated fatty acids in the oil are approximately 21 and 79%, respectively (Takase et al. 2015). The composition of the Jatropha oil is reported to be 44.5% of oleic acid, 35.4% of linoleic acid, 13% of palmitic acid and 5.8% of stearic acid.

Waste cooking oil is another non-edible feedstock for the biodiesel production through transesterification. The waste cooking oil costs less than the fresh vegetable oil by two or three times which reduces the total production cost and makes it an economic option. The rapidly increasing human population along with augmented food consumption contributed in producing enormous amounts of waste cooking oil in houses and restaurants (Phan and Phan 2008); the disposal of these large amounts through drainage or landfill may cause water and soil pollution and disturbance of aquatic ecosystems (Van Kasteren and Nisworo 2007). This renders the use of waste cooking oil as feedstock for biodiesel production a sustainable choice.

Homogeneous and heterogeneous catalyses are used in the biodiesel production. However, recent researches focused on the heterogeneous catalysts for the benefits they have over the homogeneous ones including the ease of separation, the elimination of crude ester washing step, the environmental safety, the prevention of saponification and hydrolysis reactions in case of using waste cooking oil, the lower energy consumption, the lower catalyst requirements per ton of biodiesel produced and the insensitivity to acidity value (Agarwal et al. 2012; Berchmans and Hirata 2008; de Araújo et al. 2013; Meng et al. 2008; Torres-Rodríguez et al. 2016; Yaakob et al. 2013). Also, nanocatalysts and nano-based catalysts being able to display the benefits of both homogenous and heterogeneous catalysts, namely high efficiency and selectivity, stability, easy recovery and recycling could find their role in biodiesel production (Gardy et al. 2016; Mahto et al. 2016; Sano et al. 2017) as they did in many other applications including water purification (Santos et al. 2015; Yeom and Kim 2016), fuel cells (Jameel et al. 2016), photocatalytic degradation of dyes and organic pollutants (Narayanan and Stephen 2013; Saleh and Gupta 2011, 2012a, b; Saravanan et al. 2011, 2013a, b) and wastewater treatment (Gupta et al. 2011, 2012; Saleh et al. 2011; Saleh and Gupta 2012a, b; Saravanan et al. 2013a, b, 2015).

This study aims to test the use of activated carbon as a heterogeneous catalyst to produce biodiesel through transesterification starting by J. curcas oil and waste cooking oil as feedstock and to evaluate the effect of different operating parameters.

Materials and methods

Materials

Jatropha seeds were supplied by Agriculture Researches Station (Ismailia, Egypt), mechanically pressed to obtain the oil, liquid at room temperature with a clear brown color. The waste cooking oil was collected from domestic home waste cooking vegetable oil. This oil was used for 2–4 times at 120–130 °C. All used chemicals were AR grade. The sulfuric acid was purchased from ADWIC, the methanol and potassium hydroxide from Sigma and Aldrich Company, the activated charcoal from Nouresh’shark Co., phenolphthalein from RANKEM company and diethyl ether from SDFCL company.

Apparatus

The esterification–transesterification reactions were carried out in a bench-scale setup consisting mainly of three-neck round-bottom flask placed in an adjusted temperature water bath. This flask is provided with reflux condenser, magnetic stirrer and funnel for methyl alcohol addition.

Methods

Oil analysis

Titration against 0.1 N KOH was used to determine the free fatty acid percentage of the two oil types used as given in Table 1.

Table 1 Fatty acid composition of crude Jatropha and waste cooking oil

Catalyst characterization

The activated carbon was characterized using Fourier transform infrared spectroscopy, X-ray diffraction and scanning electron microscopy.

Fourier transform infrared spectroscopy (FTIR) was recorded to identify the chemical bonds and the functional groups such as oxygen containing groups, carbonyl, hydroxyl and carboxylic groups, and FTIR was carried out using Shimadzu FTIR-8400 S, Japan. About 2–3 mg of sample was mixed with 100 mg of KBr and grinded to uniform particle size and then pressed as KBr pellet using hydraulic press. Measurements were taken in wave number range of 4000–350 cm−1, with 4 cm−1 resolution (Fig. 1).

Fig. 1
figure 1

Fourier transform infrared spectroscopy (FTIR) image for activated carbon

X-ray diffraction (XRD) patterns were taken to figure out the structure of the catalyst whether crystalline or amorphous and to determine the crystals size, and the patterns were recorded with X-ray diffractometer (XRD Schimadzu-7000, Japan), using CuKα radiation (λ = 1.5418 Å) and step-scan mode (2θ range 5–100°, step time: 0.50 s, step width: 0.1°) (Fig. 2).

Fig. 2
figure 2

X-ray diffraction (XRD) of the activated carbon

Scanning electron microscopy (SEM) analysis was performed using a scanning electron microscope (JEOL JSM 6360LA, Japan) at accelerating voltage 20 kV, to show the surface morphology and the major features of the physical structure of the catalyst at room temperature.

Esterification

Hundred milliliters oil was weighed and fed to the three-neck round-bottom flask in the bench-scale system, and then, alcohol was added and stirred for few minutes. The catalyst (sulfuric acid) was added with continuous stirring. At the end of the reaction, the oil was taken from the reactor in a separating funnel. The oil was washed with 150 ml water to stop the reaction and to separate the alcohol from the oil phase.

Transesterification

Thirty milliliters of the oil layer was taken to the bench-scale system, and then, alcohol and catalyst were added with continuous stirring. At the end of the reaction, the oil was taken from the reactor to separate the catalyst by filtration using filter paper. The oil was poured in a separating funnel. Two layers formed, the upper layer was the biodiesel and the lower layer was glycerol. For the Jatropha oil and waste cooking oil, the effects of operation time, alcohol-to-oil ratio, catalyst loading and rotational speed were investigated.

Purification of biodiesel

After transesterification, the oil layer may contain traces of the catalyst, methanol and residual glycerol. These impurities were removed by washing using hot water and washing the oil with 50 °C distilled water for 2–3 times until the water layer becomes clear.

Gentle washing by using warm water prevents precipitation of saturated fatty acid esters and retards the formation of emulsions and also leads to rapid and complete phase separation.

Drying of the product

After the completion of the purification process, the oil layer may contain some water and methanol. This should be removed before the final use of biodiesel. Methanol reduces the flash point of fuel, and it has corrosive nature to fuel hoses. Water content is responsible for the growth of biological organisms, and it also increases the acid value of fuel. Hence, the oil layer was heated in water bath with shaking speed of 150 rpm, at 100 °C for 15–30 min to remove the water and methanol content present in the product (biodiesel). Finally the dried biodiesel can be stored.

Biodiesel analysis

The biodiesel yield was determined using a gas chromatograph (GC). The used device was HP (Hewlett Packard) 6890 GC (Agilent Technologies/Hewlett Packard Company, USA). The carrier gas was nitrogen, with flow 1 ml/min, using FID (flame ionization detector) at temperature 250 °C. The injector temperature was 220 °C, injection volume 2 µl, splitless mode. The temperature program of the GC was as follows: 2 min isothermal at 150, 150–200 °C with 10 °C/min, 9 min held at 200, 200–250 °C with 5 °C/min. The used column was HP-5 (5% diphenyl, 95% dimethyl polysiloxane), 30 m, 0.32 mm ID and 0.25 µm film thickness at temperature 200–250 °C with 5 °C/min. The GC% was calculated from Eq. (1)

$$\% \;{\text{GC}}\;{\text{conversion}} = \frac{{{\text{Summation }}\;{\text{area}}\;{\text{of}}\;{\text{fatty}}\;{\text{acid}}\;{\text{methyl}}\;{\text{esters }}}}{{{\text{Total}}\;{\text{area}}\;{\text{of}}\;{\text{all}}\;{\text{fatty}}\;{\text{acid}}\;{\text{methyl}}\;{\text{esters }}}}$$
(1)

Biodiesel evaluation

To assess the quality of the produced biodiesel and compare it to the universal standards, five of the main properties of biodiesel were measured:

  1. 1.

    Density: The density was measured using a density meter (KEM/DA-640) provided by Kyoto Electronics MFG CO., LTD, the compartment cell of the density meter is cleaned, dried, the sampling is made and once the oscillation frequency becomes stable, the measurement comes to an end and the density is shown.

  2. 2.

    Viscosity: A viscometer bath (KV6) from Stanhope-Seta Co. was used to measure the viscosity (according to the ASTM D445-03 method); in this test, the time is measured for a fixed volume of liquid to flow under gravity through the capillary of a calibrated viscometer under a reproducible driving head and at a closely controlled and known temperature. The kinematic viscosity (determined value) is the product of the measured flow time and the calibration constant of the viscometer. Two acceptable determined values are needed for the calculations (the dynamic viscosity is the product of the kinematic viscosity and the density).

  3. 3.

    Flash point: The flash point was determined by the Normalab half automated cleveland flash point (NCL-120), according to the ASTM D 93-02a method. In this test, a brass cup of specified dimensions, filled to the inside mark with test specimen and fitted with a cover of specified dimensions, is heated and the specimen stirred at specified rates. An ignition source is directed into the test cup at regular intervals with simultaneous interruption of the stirring until a flash is detected.

  4. 4.

    Pour point: It was measured using the compact cloud and pour point cryostat (94100-3) from Stanhope-Seta Co. (according to the ASTM D 97-02 method). After preliminary heating, the sample is cooled at a specified rate and examined at intervals of 3 °C for flow characteristics. The lowest temperature at which movement of the specimen is observed is recorded as the pour point.

  5. 5.

    Cloud point: The Seta compact cloud and pour point cryostat (94100-3) from Stanhope-Seta Co. was used to measure the cloud point, according to the ASTM D2500-02 method, where the specimen is cooled at a specified rate and examined periodically. The temperature at which a cloud is first observed at the bottom of the test jar is recorded as the cloud point.

Results and discussion

Catalyst characterization

Figure 1 shows FTIR spectra of the activated carbon which was recorded in the range from 350 to 4000 cm−1.Characteristic of various groups is observed as follows:

The band at wavenumber 3433.41 cm−1 is attributed to O–H stretching in hydroxyl functional groups. Band at wavenumbers 2347.45 is corresponding to C–H bonds. In addition, band at 2206.6 cm−1 corresponds to C≡C group. The weak and broad band at 1533.46 cm−1 corresponds to the C=C bonds, while the band at 1176.62 corresponds to C–O bond (Saleh 2011; Saleh et al. 2014).

Figure 2 shows the XRD analysis performed by passing X-rays through the material and registering the diffraction (scattering) image of the rays. The XRD pattern shows a broad beak with low angle at 2θ–8 which contributes to the cellulosic material. This low angle indicated the presence of mesoporous structure in the substance. This refers to that the particles are ordered in the preferred orientation to give very thin peaks beside each other. Also, another broad peak at 2θ–25° can be indexed as the C(0 0 2) reflection of the hexagonal graphite structure. The other characteristic diffraction peaks of graphite at 2θ of about 45.6° and 88.38° are associated with C(1 0 0) and C(1 1 0) diffractions of graphite, respectively (Saleh 2011).

Figure 3a–c shows a typical morphology for the activated carbon studied by SEM with three levels of magnification. The figures show that the activated carbon particles are irregular in shape with well-defined particles. The image reveals an irregular amorphous morphology, and some cracks are observed on the external surface as well as some aggregates. Different size pores are also detected, and they provide the high surface area required.

Fig. 3
figure 3

Scanning electron microscopy (SEM) of the activated carbons with different magnification factors: a 20, b 200, c 1000

Effect of different operating conditions on the biodiesel yield

At the end of each run, the volumetric biodiesel yield was calculated from Eqs. (2) to (3) and was used to calculate the actual biodiesel yield

$$\% \;{\text{volume}}\;{\text{yield}}\; = \;\left( {{\text{final}}\;{\text{volume}}/{\text{initial}}\;{\text{volume}}} \right)*100$$
(2)
$$\% \;{\text{actual}}\;{\text{biodiesel}} = \% \;{\text{volume}}\;{\text{yield}}*\% \;{\text{G}} . {\text{C}}$$
(3)

Effect of time

Contact time is an important factor that affects the catalyzed transesterification reaction. To study the effect of time on the conversion to biodiesel, the runs duration ranged from 30 to 180 min. The reaction was carried out at a constant temperature of 60 ± 1 °C, stirring speed of 400 rpm, 1% w/w of heterogeneous catalyst loading and 6:1 methanol-to-oil ratio.

Figure 4 shows that the rate of conversion of the fatty acid esters was slow at the beginning of the reaction, which may be attributed to the mixing and dispersion of alcohol into the oil and the slow mass transfer, and then, after about 60 min, the rate is obviously increased and reaches a maximum after around 120 min, when enough time was available for the adsorbent and adsorbate to be in contact. The biodiesel yield in case of Jatropha oil attained a maximum of 93.27%, while in case of waste cooking oil it attained 93.95%.

Fig. 4
figure 4

Effect of the reaction time on the conversion to biodiesel using Jatropha and waste cooking oils [methanol/oil = 6:1; catalyst loading = 1% (w/w); T = 60 ± 1 °C; and stirring velocity = 400 rpm]

With further increase in the reaction time the yield decreases, this is probably caused by the reversed reaction of the transesterification, leading to esters loss and more soap formation by fatty acids. These observations are matching with findings from previous studies (Eevera et al. 2009; Freedman et al. 1984; Hawash et al. 2011; Leung et al. 2010; Ma et al. 1998).

Effect of methanol-to-oil molar ratio

Figure 5 depicts the effect of methanol-to-oil molar ratio. Four molar ratios were used: 4:1, 6:1, 8:1 and 10:1; The reaction was carried out at a constant temperature of 60 ± 1 °C, stirring speed of 400 rpm and 1% w/w of catalyst for 120 min. The yield, as shown, increases steadily until arriving at a maximum value at a ratio of 6:1. Further increasing in the molar ratio reverses the yield behavior and causes continuous yield decrease after reaching the maximum value. This can be explained as follows: The transesterification reaction goes through a sequence of intermediate reversible reactions to be completed; the triglyceride is first converted to diglyceride, then to monoglyceride and finally to glycerol and methyl esters. To achieve reaction completion the stoichiometric ratio of methanol to oil is 3:1, practically a higher ratio is used to shift the reaction equilibrium toward the forward direction and increases the production of methyl esters and glycerol (Qian et al. 2010). However, using too much alcohol has two unfavorable effects: (1) It increases the polarity of the reaction medium, increasing in turn the solubility of glycerol in the ester phase and shifting the reaction equilibrium toward the reversed direction and hence decreasing the yield of methyl ester (Issariyakul and Dalai 2014), and (2) it can flood the active sites of the catalyst impeding the formation of glycerol and methyl ester. Similar results concerning the behavior of the molar ratio increase were deduced in previous studies (Phan and Phan 2008; Shu et al. 2010). It was found that, in general, the alcohol-to-oil ratio depends on the catalyst used; in case of acid catalyst, the molar ratio ranged from 30:1 to 150:1, while with alkali catalysts lower ratios were needed ranging from 6:1 to 15:1 (Qian et al. 2010).

Fig. 5
figure 5

Effect of alcohol-to-oil molar ratio on the conversion to biodiesel percentage in case of Jatropha and waste cooling oils [catalyst loading = 1% (w/w); T = 60 ± 1 °C; t = 120 min; and stirring velocity = 400 rpm]

Effect of catalyst loading

The amount of catalyst added is an important factor influencing the conversion to biodiesel. To study the effect of the catalyst loading, five runs, for each type of oil, were performed with catalyst amount ranging from 0.5 to 5% (w/w) based on the oil weight, with methanol-to-oil molar ratio of 6:1, at 60 ± 1 °C, stirring velocity of 400 rpm and each run lasted for 120 min.

Figure 6 shows that biodiesel yield increased with increasing the catalyst amount from 0.5 to 1% (w/w) to achieve a maximum of 93.27% in case of Jatropha oil and 93.95% in case of waste cooking oil. This is can be attributed to the fact that an increase in adsorbent dosage increases the number of active sites available for adsorption (Al-Saadi et al. 2013). However, with catalyst loading range from 1 to 3% (w/w), the yield decreases sharply and then remains almost constant from 3 to 5% (w/w). Previous studies concerning heterogeneous catalysis concluded that the limiting step in the transesterification of vegetable oils is the liquid–solid mass transfer or the surface reaction (Dossin et al. 2006; Gryglewicz 1999). With increasing the catalyst concentration, adsorption of some produced biodiesel becomes noticeable, and hence, the amount of biodiesel obtained will be less. Also, adding excess catalyst can result in the deactivation of activated molecules by collision with ground state molecules (Gupta et al. 2012).

Fig. 6
figure 6

Effect of catalyst loading % (w/w) on the conversion to biodiesel in case of Jatropha and waste cooking oils (alcohol/oil = 6:1; T = 60 ± 1 °C; t = 120 min; and stirring velocity = 400 rpm)

Effect of stirring velocity

To investigate the effect of stirring velocity four velocities were used, namely 100, 200, 300 and 400 rpm with the molar ratio of 6:1, at 60 ± 1 °C, 1% (w/w) of catalyst and each run lasted for 120 min. Figure 7 shows that as the stirring velocity increases, the biodiesel yield increases. This effect of stirring may be explained in light of steps of catalytic reactions, catalytic reactions involve seven steps: (1) mass transfer (diffusion) of the reactants from the bulk fluid to the external surface of the catalyst, (2) diffusion of the reactants from the pore mouth through the catalyst pores to the internal catalytic surface, (3) adsorption of reactants onto the catalyst surface, (4) reaction on the surface of the catalyst, (5) desorption of the products from interior of pellets to pore mouth, (6) diffusion of products from the interior of pellets to the pore mouth, (7) mass transfer of products from external pellets surface to bulk fluid. The overall rate of reaction is equal to the rate of the slowest step in the mechanism. Previous studies concluded that in case of heterogeneous reactions the rate limiting step is the either the liquid–solid mass transfer or the surface reaction (Dossin et al. 2006; Gryglewicz 1999), and stirring helps decreasing the thickness of the diffusion layer leading to an increase in the diffusion of adsorbate into the surface of the adsorbent ensuring a better mass transfer and a higher biodiesel yield (Fogler 2010; Al-Saadi et al. 2013).

Fig. 7
figure 7

Effect of stirring velocity on the conversion to biodiesel using the Jatropha and waste cooking oils [alcohol/oil = 6:1; T = 60 ± 1 °C; catalyst loading = 1% (w/w); t = 120 min]

Biodiesel evaluation

Table 2 shows the measured values of the produced biodiesel properties and compares them with the average standards worldwide. The properties of the product lie within the average range of the standard values.

Table 2 Properties of the produced biodiesel and their comparison with the average standards around the world

It would be instructive to compare the outcome of the present experimental work with previous similar studies; the biodiesel yield obtained from several related works is presented in Table 3 including the operation conditions in each case.

Table 3 Biodiesel yield for several experimental studies under different operation conditions

Comparing the yield obtained in the different cases illustrates that the present work has one of the highest yield in the both cases of Jatropha oil and waste cooking oil. Though some studies obtained higher yields, considering the operation conditions used the present study could reach the optimization between the high yield and the mild operation conditions.

The promising results of the obtained biodiesel using the activated carbon as the heterogeneous catalyst for the transesterification give rise to an economic process since the activated carbon could be synthesized from the agricultural wastes of the biodiesel production (Buasri et al. 2013; Foo and Hameed 2009) which makes the process sustainable.

Conclusion

The performance of activated carbon as heterogeneous catalyst for the production of biodiesel was studied. Two types of oil were used, the Jatropha oil and the waste cooking oil. The effect of different operating parameters was investigated; the maximum biodiesel yield was obtained after 120 min at an alcohol-to-oil ratio of 6:1, catalyst loading of 1% (w/w) and stirring velocity of 400 rpm. The quality of the produced biodiesel is satisfactory which gives a chance to a sustainable feasible biodiesel production process.