1 Introduction

Energy is a key component for economic development, poverty reduction, and prosperity [1]. Diesel and petrol are the most commonly used fossil fuels in the energy mix contributing more than 82% of the world’s total primary energy. Fossil fuels are a precious resource with limited supply but their by-products affect people and the environment [2]. The use of renewable and clean energy obtained from replenishable sources such as biomass offers solutions for various fossil fuel-linked problems that challenge many societies around the world. Biofuels including biodiesel, have become more attractive due to the fact that biomass feedstocks are easily available, cheap, easily bio-degraded, and their combustion by-products are less harmful and are environment friendly [3]. Biodiesel is a mixture of alkyl esters obtained when tryglycerides are transesterified in the presence of catalyst giving glycerol as by-product [4].

The conventional production of biodiesel using homogeneous catalysts has been replaced by eco-friendly heterogeneous catalysts [5]. These heterogeneous basic catalysts are advantageous in nature since they are easily separated from reaction mixture, recyclable (cost effective), tolerant to moisture and high free fatty acid (FFA), non-corrosive and can be derived from abundant renewable resources [6,7,8,9,10]. Various researchers have investigated the potential of agricultural wastes and unutilized biomass as sources of solid catalysts for biodiesel production. Good examples of biomass derived catalysts are calcined shells: egg shells [3, 11], snail shells [12], sea shells [13], fish scales [5], animal bones [14, 15] and agricultural wastes such as coconut wastes [16], cocoa pod, rice husk [17], and camphor tree ash impregnated with K2CO3 [18].

Generally, biomass in nature has variable amounts of inorganic constituents. The major inorganic constituents in biomass are Ca, Mn, Fe, Ti, Si, Al, Cl, S, Mg, P, Na,  and other trace elements [19, 20]. Biomass with high amount of carbonate can be transformed into their corresponding oxides through thermal treatment (calcination process) [21, 22]. According to Abdullah et al. [10], calcination of the biomass can be done from 300 to 1000 °C depending on the type of biomass. In their study they observed that, biomass residue with high quantities of Ca (> 40 wt%) upon calcination generates CaO that is potentially active as heterogeneous catalyst for biodiesel production. Furthermore, Vassilev et al. [20] noted that biomass ashes calcined at 500 °C and above, have high crystalline character and limited amorphous inorganic and organic materials and thus high activity in biodiesel production.

Tamarindus indica fruit shells (TIFSs) are among agricultural wastes from juice processing industry that are naturally rich in calcium compounds [23]. It comes from Tamarindus indica tree plant which belongs to the dicotyledonous family: Caesalpiniaceae, indigenous to tropical Africa. The pulp is used in preparing different foods such as confections, curries, sauces, juices and other beverages leaving shells with no value. Also, tamarind drinks are already in the market in many countries making Tamarind fruit shell ubiquitous [24]. Tamarind fruit shell wastes are cheap and made up of CaCO3 (11.1%) by weight [25]. Also, elements such as K (13.08), Ca (36.6) Mn (12.1), Mg (10.4), Na (8.90), Zn (7.0), Fe (4.5) and Cu (2.10) mg/100 g of dry matter are known to be present [26]. TIFSs have high amounts of alkaline earth metals. Like any other biomass wastes, when burned to ashes, they readily form metal oxides that can be used as solid catalysts for transesterification process [27].

Thus, in this study, a new catalyst from Tamarindus indica fruit shell was developed, characterized and its performance in production of biodiesel from Parinari curatellifolia seeds oil (PCSO) tested. P. curatellifolia seeds are not commonly used as foodstuff and have high oil content of about 38.5% [28,29,30]. However, PCSO has not extensively been studied for biodiesel production. P. curatellifolia is an African tropical evergreen fruit tree with a mushroom like shape, belonging to the family Chrysobalanceae, found in many African forests. In Tanzania, the plant grows well in the northern and southern highlands such as Iringa where it is locally known as msawula in Njombe whilst in Mbeya is known as mbende [31]. The use of ashes from agricultural residues can serve as cheap, effective and potential catalyst for a number of reactions including transesterification [17, 32]. Most of biomass based catalysts exhibit good catalytic performance evinced by high biodiesel yield of more than 80% at optimal conditions [22, 33].

2 Materials and methods

2.1 Materials and reagents

TIFSs were collected from juice processing industry and market places in Arusha Tanzania. The ripen Parinari fruits were collected from fields in Njombe region in the Southern highlands of Tanzania. The reagents methanol (99.8%), ethanol (absolute), isopropyl alcohol (95%), sodium hydroxide (NaOH), potassium hydroxide (KOH) were from LOBA Chemie. Phenolphthalein indicator (GRIFFChem), HCl (37%) from BDH Chemicals, Wijs (iodine monochloride) reagent, benzene and benzoic acid were from Sigma Aldrich. All chemicals were of analytical grade and thus no purification was done.

2.2 Catalyst preparation and characterization

The TIFSs were thoroughly washed with tap water and rinsed with distilled water to remove dirt and other particulate materials. The cleaned TIFSs were oven dried at 105 °C for 12 h and ground for calcination. Before calcinations TGA analysis was done using Linseins thermal analysis machine (STA 1000). The weight of the sample used was 4.33 mg and heating temperature range from 29.6 to 900 °C at a ramp rate of 5 °C min−1 was used. The ground catalyst precursor was calcined in a muffle furnace at 800 °C for 3 h at a ramp rate of 5 °C min−1 to form Tamarindus indicia fruit shell ash (TIFSA). The resultant TIFSA was collected, cooled in desiccator for further analysis and used as heterogeneous base catalyst for trans-esterification of P. curatellifolia seeds oil.

Elemental analysis was done using SPECTRO XEPOS machine fitted with energy dispersive X-rays florescence spectrometer (EDXRF). The microstructure of as-prepared catalysts was analyzed using a field emission scanning electron microscope (SEM-JSM-7600F Thermo NORAN System7) fitted with EDX. The textural parameters of the catalyst were evaluated using Quanta chrome Nova 4200 with nitrogen adsorption–desorption isotherms acquired at 77.3 K. The catalyst was degassed at 200 °C prior to the sorption analysis. Surface area was determined using BET equation. Barrett-Joyner-Halenda (BJH) method was used to calculate pores size distribution from the desorption isotherm. The X-ray diffraction patterns were acquired using X-ray power diffractometer (XRD, MAC MXP18Tokyo, Japan), with Cu-Kα radiation. The basic strength of the catalyst was determined using Hammett indicator method using phenolphthalein to give qualitative information of the catalyst.

2.3 Physical and chemical properties of P. curatellifolia seeds oil

The physical–chemical properties of crude P. curatellifolia seeds oil; saponification, acid, and iodine values as well as oil content oil content were determined using American Standard Testing Method (ASTM, 1983) and American Oil Chemists Society (AOCS) Official Methods [34, 35].

2.4 Biodiesel production

The production of biodiesel was done using batch reactor. The reactor was fitted with water bath, heating plate with magnetic stirrer, 250 mL Erlenmeyer flat bottomed flask fitted with reflux condenser and thermometers. P. curatellifolia seeds oil was measured and preheated at 105 °C for 5 min to reduce water content and allowed to cool to 65 °C. In order to determine the optimal yield and conditions for the biodiesel production, various reaction parameters such as reaction time, methanol to oil molar ratio and amount of catalyst loading was varied. During transesterification process, catalyst loading was varied from 1 to 6 wt% of oil at intervals of 1%; methanol to oil molar ratios of 3:1, 6:1, 9:1, and 12:1 were used and the reaction time was also altered from 1 to 4 h at intervals of 30 min. The reaction temperature was maintained at 60 °C below boiling point of methanol while stirring at 3000 rpm using magnetic stirrer. After the reaction, the mixture was let to cool and two distinct layers of catalyst at bottom and the mixture of glycerol and biodiesel at the top were formed. The top mixture was separated and put into a separating funnel where it was kept  overnight without agitation. Two more distinct layers were formed, bottom layer being glycerol and the top layer biodiesel. The raw biodiesel was separated from glycerol purified using vacuum distillation flask followed by partial heating at 70 °C to remove excess methanol. The biodiesel was then washed four times with warm deionized water to remove traces of impurities such soap, glycerol, and catalyst. The washed biodiesel was dried by using anhydrous MgSO4 overnight to remove the residual water content. Then, the yield was calculated using Eq. (1)

$$\% yield = \frac{weight\;of\;biodiesel}{weight\;of\;oil}$$
(1)

2.5 Characterization of biodiesel properties

The biodiesel produced from P. curatellifolia seeds oil using TIFSA based catalyst was tested and analyzed for both physical and chemical properties at Tanzania Bureau of Standards (TBS). Physical and chemical properties of the samples were analyzed according to the standard test methods: density and kinematic viscosity was measured by Anton Parar Stabinger viscometer using ASTM D7042 testing method, cloud point and pour point were tested using cloud and pour point test cabinet as per ASTM D2500 and ASTM D97 test method, respectively. Flash point was determined by Pensky-Martin open cup tester using test method ASTM D93 while American Oil Chemists Society (AOCS) Official Method CD1-25 and AOCS Official Method CD3-25 were used to determine acid, iodine and saponification values.

2.6 Catalyst reusability

One of the benefits of heterogeneous over homogeneous catalyst is its reusability. In this study, the reusability of the synthesized catalyst was examined. The catalyst spent in the 1st biodiesel production run was washed with methanol severally to remove oil and glycerol content. The catalyst was then oven dried at 110 °C for 2 h to remove methanol and any traces of water formed during the transesterification reaction process. The dried spent catalyst was then cooled inside a desiccator and used for biodiesel production in the subsequent run. This process was repeated four times and the yield of biodiesel of each in subsequent run calculated using Eq. (1).

3 Results and discussion

3.1 Catalyst characterization

The appropriate calcination temperatures for catalyst precursor TIFSs in this study was obtained through thermo-gravimetric analysis as depicted in Fig. 1. Upon calcination, significant mass loss of 75% was observed at temperature between 250 and 480 °C where volatile matter escaped from the catalyst precursor materials. Thermal stability of the catalyst materials at temperature from 500 to 750 °C was an indication that the decomposition of the catalyst precursor was complete with metal oxides remaining as the residue. Since TIFSs have high content of CaCO3, temperature higher than 750 °C was therefore used to decompose all the carbonate based materials to CaO [3, 36, 37]. According to Abdullah et al. [10], depending on the biomass type, carbonates of calcium and potassium dissociate between 700 and 900 °C to form their respective metal oxides while releasing CO2, H2O, and other organic materials when burnt in air. The high content of calcium oxide was confirmed by the XRF analysis of the ash: ca 47.4% CaO.

Fig. 1
figure 1

TGA profile of catalyst precursor TIFSs at the temperature range between 30 and 900 °C

Furthermore, to determine the catalyst basic strength, Hammett indicator method was used with phenolphthalein as the indicator. The catalyst (25 mg) was tested with 0.5 mL of Hammett indicator solution and color change was noted. The color of the mixture was observed to change to pink implying that the catalyst had stronger basic property, that is, H > 9.8. [2, 38]. The chemical composition of TIFSA calcine at 800 °C was obtained by XRF technique. The sample was mainly composed of CaO (47.4%), K2O (19.2%), MgO (5.1%), SiO2 (3%), P2O5 (3.1%), and traces of other compounds. The presence of significant amount of alkaline and alkaline earth metal oxides, CaO, K2O, and MgO in the prepared catalyst explains its good performance as a base catalyst in biodiesel production [27, 37, 38].

The XRD pattern of the TIFSA catalyst calcined at 800 °C is shown in Fig. 2. The pattern was obtained using CuKα radiation with wavelength (λ) of 1.5418 nm from 5 to 90, 2 theta degrees. The diffraction peaks at 2θ:32.18, 37.52, 53.95, 63.75, 67.39, 79.55, and 88.31 degrees correspond to CaO based on Joint Committee on Powder Diffraction Standards (JCPDS) card file number 00-037-1497. In addition, the XRD pattern of the TIFSA catalyst was similar to CaO patterns reported in the literature [3, 11, 39]. The high intensity of the peaks and narrow peak widths are indicative of good crystallinity of the materials. The unmarked peaks in the XRD pattern are attributed to CaCO3 phase and other impurity phases of the trace elements in the TIFSs.

Fig. 2
figure 2

XRD pattern of TIFSs derived catalyst calcined at 800 °C

Figure 3 presents SEM images of the TIFSA catalyst and the chemical composition of the ash as determined by EDS. The SEM micrographs in Fig. 3a–c indicate that, TIFSA had pseudo spherical microstructure constructed of particles of irregular morphology. The interparticle porosity clearly seen in the micrographs, Fig. 3a–c, are very good for mass transport during transesterification reaction and for exposing the active sites and thus the good performance of the catalyst. Figure 3d shows the elemental composition of TIFSA as determined by EDS. It was observed that Ca was present at substantially higher amount compared to K and Si. This suggested that CaO was the major compound. The aluminum (Al) detected in the sample was probably coming from the Al sample holder since Al was not detected in the sample by XRF. The results were in good agreement with that determined by XRF, however, Mg and thus MgO was not observed by EDS technique.

Fig. 3
figure 3

SEM images of the TIFSA calcined at 800 °C a low magnification image of the catalyst, b, c high magnification images of the catalyst, d elemental analysis by EDS

The BET method was employed to determine the specific surface area of TIFSA calcined at 800 °C. The surface area was found to be 378 m2 g−1 and total pore volume of 0.585 cm3/g was obtained computed from the adsorption isotherm at relative pressure (P/Po) of less or equal to 1. In this study, the Barret–Joyner–Halenda method (BJH) was used to calculate the pore size distributions over the entire surface of the catalyst. The pore diameter was found to be 3.2 nm, characteristic of a mesopore catalyst. According to Zabeti et al. [27], the specific surface area and pores volume together play a major role in the activity and hence the performance a catalyst. The prepared catalyst showed high surface area and small particle size, which could be the reason for exhibiting good performance during transesterification process [40].

3.2 The physicochemical properties of PCSO

The physicochemical properties of PCSO were determined as per AOCS Official Method CD1-25 [34] and AOCS Official Method CD3-25 [35] and the results summarized in Table 1. The oil content from P. curatellifolia seeds was found to be 36.2% which was suitably high for biodiesel production [1, 41, 42]. From the results shown in Table 1, the acid value was moderately high, suggesting high level of FFA that could cause soap formation. For oils with FFA greater than 1%, it is advisable to use heterogeneous catalyst in order to avoid reduction of biodiesel yield arising from soap formation [43,44,45].

Table 1 Physicochemical properties of PCSO

3.3 Fuel properties of P. curatellifolia seeds oil fatty methyl ester (PCUME)

The fuel properties of biodiesel produced from PCSO by transesterification reaction using calcined TIFSA catalyst were determined as per ASTM D6751 standard and results summarized in Table 2. It was observed that, viscosity, cloud and pour points, and acid value were within acceptable range as prescribed in ASTM D6751 while density was slightly higher than the limit. According to Ong et al. [46], density of biofuel depends on the chain length of methyl ester and its saturation level. The higher the unsaturation of methyl esters, the higher the density. Probably this could be the reason for the high density of PCUME. Denser fuels are less compressible and this results into poor atomization process and thus incomplete combustion [4, 42, 46]. The PCUME exhibited higher flash point temperature of about 172 °C. Flash point is the temperature at which the fuel starts to burn when it comes into contact with fire [47]. It is an important temperature from the safety point of view especially during storage and transportation [4]. The minimum allowable limit for pure biodiesel as per ASTM D6751 is 130 °C, therefore, PCUME meets the starndard.

Table 2 Physical and chemical properties of produced Parinari curatellifolia biodiesel

3.4 Catalyst performance and effect of different reaction parameters on biodiesel production

3.4.1 Influence of catalyst loading

The performance of the calcined catalyst was evaluated by determining biodiesel yield, using Eq. (1), upon varying the reaction conditions: catalyst loading, temperature, reaction time, and methanol-to-oil ratio. The catalyst loading (calculated as wt% of oil in our study) for a given reaction has great influence in determining the product yield. In testing catalyst loading effect, excess methanol-to-oil ratio of 12:1 was used since excess methanol tends to shift the reaction equilibrium towards the product side. The catalyst loading with respect to the weight of the oil was varied from 1 to 6% at intervals of 1% and the corresponding biodiesel yields were calculated using Eq. (1), while reaction time and temperature were maintained at 4 h and 60 °C, respectively, and stirring rate of 3000 rpm was used for all the reactions. Figure 3 shows the influence of catalyst loading on biodiesel yield. When the amount of catalyst was increased from 1 to 5%, the percent conversion and hence the biodiesel yield increased. Catalyst loading of 5 wt% to oil weight gave the highest yield of 95.7%. The increase in yield with catalyst loading was probably due to the increase in surface area and the number of basic active sites for transesterification reaction. Upon increasing the catalyst loading above 5%, biodiesel yield decreased dramatically. This was probably due to higher viscosity of reaction mixture resulting in poor diffusion and mass transport in the methanol-oil-catalyst system [48, 49]. Therefore, 5% was found to be the optimal catalyst loading (Fig. 4).

Fig. 4
figure 4

Influence of catalyst loading on biodiesel yield

3.4.2 Influence of reaction time

The yield of the methyl esters increases with reaction time [3] and the rate of conversion depends on how long the reaction takes place [18]. The optimum reaction time for biodiesel production using PCSO with 5% wt of catalyst loading and excess methanol of 12:1 was determined by varying reaction time from 0.5 to 4 h at intervals of 30 min under same condition of temperature and agitation (60 °C and 3000 rpm). The results for the effect of reaction time on the conversion of oil to biodiesel are presented in Fig. 5. The yield increased from 53.3% at 30 min to 96.2% at 120 min and remained almost constant up to 150 min. Beyond 150 min reaction time, the yield decreased unceasingly albeit gradually. The decrease in biodiesel yield beyond 150 min was ascribed to the reversal of transesterification reaction that leads to loss of esters and formation of soap from fatty acids [50]. In this work, the optimal reaction time was therefore found to be 2 h.

Fig. 5
figure 5

Influence of reaction time on biodiesel yield

3.4.3 Influence of methanol-to-oil molar ratio

Methanol to oil molar ratio is also a critical parameter in the transformation of triglycerides to biodiedel. Transesterification reaction requires stoichiometric ratio of three moles of methanol per mole of triglyceride. However, excess methanol improves the extent of the transesterification reaction biasing the equilibrium towards the product side [37, 48, 51]. In this work, the molar ratio of methanol to oil was varied from 3:1, 6:1, 9:1 to 12:1 and its influence on triglyceride conversion investigated using 5 wt% of catalyst, 2 h reaction time, 60 °C reaction temperature, and 3000 rpm stirring speed. It was observed that the yield increased as molar ratio increased. When 9:1 methanol to oil molar ratio was used, the highest biodiesel yield of 96.2 was obtained. No increase in yield was observed on increasing molar ratio to 12:1 as shown in Fig. 6, instead, a very small drop in the yield was observed. Too much alcohol, in our case methanol, has been shown to increase the polarity of the reaction mixture resulting to increased solubility of glycerol in the methyl ester layer. This increases the likelihood of reverse reaction thereby reducing methyl ester (biodiesel) yield [52].

Fig. 6
figure 6

Influence of methanol-to-oil molar ratio on biodiesel yield

3.5 Reusability of the catalyst

The catalyst was reused four times in the transesterification process. In the first, second, third, and fourth run, the yields were 96.2, 91.7, 85.6, and 74.2%, respectively, under the optimal conditions of 1:9 methanol to oil molar ratio, 5 wt% catalyst loading, 2 h reaction time, 60 °C reaction temperature, and 3000 rpm stirring rate. The catalyst recyclability results in Fig. 7 show that catalyst efficiency based on biodiesel yield decreased in each subsequent run and this was caused by the deactivation of the catalyst. The deactivation was probably caused by poisoning of active site by water and CO2 from the air. The ability of the catalyst to be used several times shows that the catalyst has a huge potential in cutting operational expenses in biodiesel production associated with catalyst design and synthesis.

Fig. 7
figure 7

Catalyst reusability versus % FAME yield

3.6 Conclusion

In this work, a low cost solid catalyst with superior activity and reusability was successfully synthesized by direct calcination of TIFSs (a waste agricultural biomass) for transesterification of PCSO. The calcination at 800 °C afforded CaO catalyst with good catalytic activity, basic strength of 9.8, surface area of 378 m2 g−1, and pore diameter of 3.2 nm. The best operating parameters for the production of biodiesel were found to 5 wt% catalyst loading, 2 h reaction time, 9:1 methanol to oil molar ratio and 60 °C reaction temperature. By using these optimum operating conditions, maximum yield of fatty acid methyl esters (FAME) of 96.2% was obtained. In addition, the key physico-chemical parameters of the biodiesel produced in our study, that is, viscosity, cloud point, pour point, and acid value were found to be within the acceptable standard limits stipulated by ASTM D6751. However, density and flash point were slightly higher than the limits. This shows that PSCO and the catalyst developed herein could be used to reduce the reliance on fossil diesel and thus help in mitigating climate change and reducing the national expenditure on fossil diesel imports. Moreover, the catalyst performance was not significantly reduced by reuse considering the biodiesel yield of 74% obtained in the fourth run. This does not only make the process of producing biodiesel cheap, but also translates to reduced amount of catalyst waste disposal thus making the catalyst environment friendly.