Introduction

Although ammonia is one of the compounds that is employed in the production of some chemical materials like urea, fertilizer, fiber, plastic, explosives, paper, and rubber, it is a common contaminant of water resources which consists of nitrogen and nutrients that can accelerate the eutrophication and growth of algae in aquatic environments and eventually make some ecological issues (Reli et al. 2015; Shavisi et al. 2014a, b; Shibuya et al. 2013; Zendehzaban et al. 2013). The damage caused by the presence of ammonia in water sources is too vital and dangerous. Ammonia contamination of water sources causes far too much harm and is far too hazardous. Ammonia depletes the oxygen in the water, lowers the disinfection efficiency of chlorine, endangers aquatic life, and causes respiratory and skin problems in people when present in high amounts (Lee et al. 2002; Shavisi et al. 2014a, b; Shavisi et al. 2016). Drinking water includes 1.5 mg/l of ammonia, according to the World Health Organization (WHO). As a result, this level is higher than the limit to which water’s taste and smell can be altered.

In the last decade, water pollution has become a global issue in world environmental community researches (Shavisi et al. 2016). Therefore, wastewater treatments like degradation of ammonia from wastewater is an important subject from an environmental point of view (Shibuya et al. 2013). In order to decrease the concentration of ammonia in wastewater, different types of treatment technique including physical and chemical methods such as biological treatment, ion exchange, breakpoint chlorination, electrochemical process, chemical deposition, adsorption, membrane, and advanced oxidation processes are employed (Zendehzaban et al. 2013). The most impressive technique is biological nitrification/denitrification rather than the other techniques, but has some drawbacks such as needing large types of equipment and having high operating costs. So, it makes secondary contamination and requires secondary purification for their degradation process completion (Lee et al. 2002; Reli et al. 2015). Chemical precipitation and adsorption techniques are frequently used to degrade low ammonia concentrations, but the drawbacks of chemical precipitation and adsorption methods might be secondary contamination and being limited by cation ions, respectively (Luo et al. 2015). The ion exchange procedure can eliminate ammonium ions from wastewater, but the secondary purification problem of ammonia is not gone away. In the breakpoint of the chlorination technique, by-products of converting aqueous ammonia to nitrogen and residual chlorine have to be treated again (Altomare et al. 2012).

According to the aforementioned disadvantages and drawbacks of techniques, the photocatalytic degradation method has been introduced as an alternative procedure of pollutant removal due to low energy consumption, low operating cost, simple operation, minimum secondary waste generation, and high efficiency (Shavisi et al. 2016; Zendehzaban et al. 2013). In photocatalytic reactions, choosing the right photocatalyst is very important (Shafiq et al. 2021a, b, c, d). Semiconductor compounds like titania NPs and zinc oxide NPs are employed to eliminate pollutants with the help of the photocatalytic technique. TiO2 NPs have been widely employed as catalysts in the decontamination of aqueous solutions due to good stability, environmental compatibility, photochemical stability, low cost, non-toxicity, high efficiency, and oxidation ability of toxic substances (Altomare et al. 2012; Luo et al. 2015; Shavisi et al. 2014a, b).

In semiconductor NPs, the electrons are stimulated by light irradiation and holes are created in the valence band, due to the existence of shifted electrons. The photocatalytic oxidation of titania NPs with light irradiation is as follows (Eq. 1) (Zhang et al. 2009):

$${\mathrm{TiO}}_{2}+h\nu \to {\mathrm{TiO}}_{2} +{\mathrm{h}}^{+}+{\mathrm{e}}^{-}$$
(1)

In photocatalytic reactions, there are both reduction and oxidation reactions. The oxidation reaction of H2O and reduction reaction of O2 are shown in Eqs. 2 and 3, 4, respectively (Shafiq et al. 2021a, b, c, d). The production of both reactions is OH radicals which can react with ammonia and generate less hazardous products (Shavisi et al. 2014a, b ;Shafiq 2021). Oxidizing agents such as ozone, molecular oxygen, and tert-butyl hydroperoxide have been used in photocatalytic reactions (Shafiq et al. 2021a, b, c, d).

According to the previous studies, products of ammonia oxidation can be N2 (Eqs. 6 and 8), NO2, or NO3 (Eq. 8). Moreover, nitrite (NO2) and nitrate (NO3) can be reduced and produce N2 which is a safe product (Liu et al. 2017; Luo et al. 2015) (Eqs. 10 and 11).

Photocatalytic oxidation:

$${\mathrm{H}}_{2}\mathrm{O}+{\mathrm{h}}^{+}\to {\mathrm{H}}^{+}+{\mathrm{OH}}^{-}\to {\mathrm{OH}}^{-}+{\mathrm{h}}^{+}\to {\mathrm{HO}}^{\bullet }$$
(2)

Photocatalytic reduction:

$${\mathrm{O}}_{2}+{\mathrm{e}}^{-}\to {{\mathrm{O}}_{2}}^{\bullet -}$$
(3)
$${{\mathrm{O}}_{2}}^{\bullet -}+{\mathrm{H}}_{2}\mathrm{O}\to {\mathrm{H}}_{2}{\mathrm{O}}_{2}\to {\mathrm{ OH}}^{\bullet }$$
(4)

Ammonia reactions:

$${\mathrm{NH}}_{4}\mathrm{OH}+{\mathrm{H}}_{2}\mathrm{O }\to {{\mathrm{NH}}_{4}}^{+}+{\mathrm{OH}}^{-}+{\mathrm{H}}_{2}\mathrm{O }\to {\mathrm{NH}}_{3}+2{\mathrm{H}}_{2}\mathrm{O}$$
(5)
$${{\mathrm{NH}}_{4}}^{+}+{\mathrm{OH}}^{-}\to {\mathrm{NH}}_{3}+{\mathrm{H}}_{2}\mathrm{O}$$
(6)
$${\mathrm{NH}}_{3} \stackrel{{\mathrm{OH}}^{\bullet }}{\to } {\mathrm{NH}}_{2}+{\mathrm{H}}_{2}\mathrm{O }\stackrel{{\mathrm{OH}}^{\bullet }}{\to }\mathrm{ NH}+{\mathrm{H}}_{2}\mathrm{O }\stackrel{{\mathrm{OH}}^{\bullet }}{\to }{\mathrm{N}}_{2}+{\mathrm{H}}_{2}\mathrm{O}$$
(7)
$${\mathrm{NH}}_{3}\stackrel{{\mathrm{OH}}^{\bullet }}{\to }{\mathrm{HONH}}_{2}{\stackrel{{\mathrm{OH}}^{\bullet }}{\to }\mathrm{NO}}_{2}\stackrel{{\mathrm{OH}}^{\bullet }}{\to }{{\mathrm{NO}}_{2}}^{-}\stackrel{{\mathrm{OH}}^{\bullet }}{\to }{{\mathrm{NO}}_{3}}^{-}$$
(8)

Oxidize ammonia:

$${2\mathrm{NH}}_{3}+6{\mathrm{h}}^{+}\to {\mathrm{N}}_{2}+6{\mathrm{H}}^{+}$$
(9)

Reduce nitrate:

$${{2\mathrm{NO}}_{3}}^{-}+{12\mathrm{H}}^{+}+10{\mathrm{e}}^{-}\to {\mathrm{N}}_{2}+{6\mathrm{H}}_{2}\mathrm{O}$$
(10)

Reduce nitrite:

$${{2\mathrm{NO}}_{2}}^{-}+{8\mathrm{H}}^{+}+ 6{\mathrm{e}}^{-}\to {\mathrm{N}}_{2}+{4\mathrm{H}}_{2}\mathrm{O}$$
(11)

The photocatalytic process is displayed in Fig. 1.

Fig. 1
figure 1

The photocatalytic process

Owing to the decomposition of water, radicals are produced that oxidize ammonia pollutants (Eqs. 12 and 13) (Zendehzaban et al. 2013):

$${\mathrm{H}}_{2}\mathrm{O}+{\mathrm{h}}^{+}\to {\mathrm{H}}^{+}+{\mathrm{OH}}^{-}$$
(12)
$${\mathrm{OH}}^{-}+{\mathrm{h}}^{+}\to {\mathrm{HO}}^{\bullet }$$
(13)

TiO2 as a catalyst is used in too many chemical experiments. For instance, the performance of DBT under visible light was investigated by Kaveh Kalantari et al. (Shafiq 2021).

TiO2 was employed as a photocatalyst in some research carried out by Toyoda et al. to eliminate dye. Toyoda et al. studied the removal of methylene blue (Toyoda et al. 2004). Li et al. investigated the degradation of methyl orange (MO), rhodamine B (Rho B), and methylene blue (MB) (Li et al. 2019). Mohammadi et al. eliminated methylene blue (Mohammadi et al. 2017), and in the other work, Malligavathy et al. evaluated the removal of Congo red dye (Malligavathy et al. 2016).

Recently, several scholars employed various metal oxides as a photocatalyst in photocatalytic degradation. The photocatalytic degradation of ammonia is studied by some researchers. Zendehzaban et al. investigated the photocatalytic removal of ammonia by TiO2/Leca, and they found that by using this substance in the initial concentration of ammonia of 0.01 M and 30 g of photocatalyst and pH = 11 and the duration of 300 min UV irradiation, more than 85% of ammonia contaminants have been removed (Zendehzaban et al. 2013). Sharifnia et al. studied the photocatalytic removal of ammonia from wastewater by using the zinc oxide particles stabilized on the Leca base (ZnO/Leca). The results of their experiments have shown that within 150 min of UV light, 57% of ammonia was removed (Sharifnia et al. 2013). Mohammadi et al. investigated the removal of ammonia by a photocatalyst TiO2/ZnO immobilized on the Leca base (TiO2/Leca ZnO). It has been observed that in pH = 11, the initial concentration of 400 mg/l, contact time of 3 h, and catalyst dose of 25 g/l under UV irradiation equal to 92.5% have been achieved (Mohammadi et al. 2016). In another work, Shavisi et. al used TiO2/l for the removal of ammonia (Shavisi et al. 2014a, b). Their experimental tests could be compared with the ones in this study. In that work (Shavisi et. al), the initial concentration of ammonia is 170 mg/l while in this work, the initial concentration of ammonia is much higher (1500 mg/l); the amount of catalyst is 11.7 g while the amount of catalyst in this study is 0.3 g/l; and ammonia removal is 68% after a 3-h UV irradiation time while in this study a dramatical removal equal to 96.96% is achieved. The results of these studies are presented in “Results and discussion” (Table 5). In this study, their tests are expanded by the changes in the amount of some parameters.

There are some studies that are focused on photocatalytic ammonia removal. In this study, there are several differences compared with the other studies. Design-Expert software is used for finding the various parameters’ effect on the optimum removal of ammonia and reducing the number of experiments while other studies did not use it. This study is carried out in a very high range of concentrations of ammonia (250–1500 mg/l), and in the highest concentration (1500 mg/l), ammonia removal is dramatically significant compared with other studies. The optimum amount of catalyst dose is 0.3 g/l (synthesized titania Nps) which is very slight. The reuse ability of Nps has been investigated. After four times of use, the removal rate was 65% which indicated that the catalyst is economical to use. It is mentioned that the titania NPs were synthesized by the sol–gel method and characterized by XRD, FTIR, DLS, EDX, FE-SEM, and TEM analyses. The effect of various parameters such as pH, ammonia concentration, catalyst dosage, and contact time, the intensity of UV and visible light irradiation, and aeration was investigated on the ammonia elimination, and the parameters were optimized.

Materials and method

Materials

Products tetraisopropoxide (Ti (OCH(CH3)2)4, TTIP), nitric acid (HNO3, 65%), ethanol (C2H5OH, 99.9%), ammonium hydroxide (NH4OH, 25%), and hydrochloric acid (HCl, 37%) were provided from Merck company. Moreover, sodium hydroxide (NaOH) was purchased from the Sinochem company. Deionized water (DW) was manufactured by the Zolal company. Ammonia reagent was prepared by the Hach company (USA) (contains Nessler’s reagent, mineral stabilizer, and polyvinyl alcohol).

Synthesis of titania NPs

The sol–gel method was used for synthesizing the titania NPs: A mixture of TTIP (5 ml) and ethanol (20 ml) was produced using a vigorous magnetic stirrer after 20 min at ambient temperature. After that, the solution was mixed with dilute nitric acid for 5–10 min at ambient temperature, and allowed to form sol and gel. The gel was dried at ambient temperature. At the final step, the powder was calcinated in a reactor at 400 °C for 4 h (Morgani et al. 2017).

Characterization of NPs

The dried nano-powder was characterized by XRD, FTIR, DLS, EDX, FE-SEM, and TEM analyses. The crystal structure of the sample was characterized by using an X-ray diffractometer and systematic X’Pert Pro XRD (λ = 0.178 90 nm) in the range of 400–4000 cm−1 with KBr as the reference sample. A PerkinElmer FTIR (model: spectrum RXI), a TESCAN FE-SEM (model: MIRA III), and a Philips TEM (model: EM 208S) were used to characterize the NPs.

FTIR analysis is employed for organic compounds, but the peak of some other compounds such as metal oxides (TiO2, ZnO, CuO, etc.) can also be seen in FTIR. Figure 2 shows an FTIR analysis of the prepared TiO2 NPs. The broad band of 2500–3600 cm−1 (3445 cm−1) and the peak at 1644 cm−1 belong to an O–H functional group due to the asymmetrical stretching vibration in H2O molecules. The band of carbonate groups was in the range of 1400 to 1540 cm−1 (1516 cm−1), which is due to the absorption of CO2 from the atmosphere into the ethanol solution. In the range of 500–1000 cm−1, the Ti–O and Ti–O–Ti bonds have appeared. The FTIR spectrum confirms the stretching vibration peak of Ti–O at 677 cm−1 (Morgani et al. 2017; Sidane et al. 2017).

Fig. 2
figure 2

FTIR pattern of the TiO2 nanoparticles

Figure 3 demonstrates the XRD pattern of the TiO2 NPs. The peaks of the anatase TiO2 NPs are 2θ = 25.5, 37.5, 48, 53, 55, and 62. The planes of (101), (004), (200), (211), and (204) of the synthesized TiO2 catalyst coincide with anatase TiO2 standard JCPDS Card no. 21–1272 (Zhang et al. 2018; Sadeghalvand and Sabbaghi 2015). Some weak peaks of the rutile phase are also observed in Fig. 3 which presents peaks at 2θ = 27, 36, and 55 corresponding to (110), (101), and (211) planes in rutile TiO2, respectively (standard JCPDS Card no. 88–1175). According to the XRD patterns, there are mixture peaks of anatase and rutile in the synthesized titania NPs. The anatase phase is dramatically higher than the rutile phase which is better for photocatalytic reactions (Thamaphat et al. 2008).

Fig. 3
figure 3

XRD pattern of the TiO2 nanoparticles

The average particle size of synthesized titania nanoparticles was determined using DLS analysis (Fig. 4). The particle size distribution of titania nanoparticles is narrow, with an average particle size of 60 nm, according to the findings.

Fig. 4
figure 4

Particle size distribution of TiO2 nanoparticles

The elemental composition of the TiO2 NPs was determined using energy-dispersive X-ray spectroscopy (EDX, TESCAN VEGA 3). Figure 5 shows the EDX analysis of the TiO2 nanoparticles. The EDX analysis revealed that these particles contain O and Ti elements. The peaks of the Ti and O elements and weight percentage of Ti and O atoms is shown in Fig. 5.

Fig. 5
figure 5

EDX analysis of the TiO2 nanoparticles

The field emission scanning electron microscopy (FE-SEM) and (TEM) micrographs of TiO2 NPs are shown in Figs. 6 and 7, respectively.

Fig. 6
figure 6

FE-SEM image of the TiO2 nanoparticles

Fig. 7
figure 7

TEM image of TiO2

The size and morphology of TiO2 NPs were analyzed by FE-SEM measurements. Figure 6a shows that the prepared TiO2 has a spherical morphology, and the particle sizes of NPs are less than 60 nm. Figure 6b shows that the mean size of TiO2 nanoparticles is about 60 nm.

The TEM analysis was used for a better view of the TiO2 NPs. The NPs have a spherical morphology with an average diameter about of 60 nm, which is in good agreement with the XRD and DLS analyses. TEM/EDX analyses confirmed the results obtained by XRD.

Investigation of the adsorption activity of TiO 2 NPs

The adsorption activity of nano-TiO2 in the removal of ammonia from aqueous solution was investigated at the different ammonia concentrations, adsorbent concentration (nano-TiO2 as an adsorbent), contact time, and pH. To determine the removal efficiency of ammonia, a specific amount of adsorbent was added to ammonia solution at a known pH and then was mixed at the known contact time at ambient conditions. After 120 min, 10 ml of sample was centrifuged. Eventually, the ammonia concentration was determined with UV–vis Spectrophotometer Jusco V-730 by adding Nessler’s reagent to the sample. The measured absorbance was at the wavelength of 425 nm which is considerable (Niedzielski et al. 2006). The removal percentage of ammonia was calculated by Eq. 14:

$$\mathrm{Ammina removal }\left(\mathrm{\%}\right)=\frac{{C}_{0}-{C}_{t}}{{C}_{0}}\times 100$$
(14)

Based on the above equation, the ammonia concentration in solution is shown with C0 and Ct (mg/L) at t = 0 and at a contact time. The method of all experiments is based on the same system. Those were performed in a photocatalytic cylindrical reactor (Fig. 8). The light source is changed between two types, UV (T5, 8 W) and visible lamp (Xenon, 55 W) that is located in the center of the reactor, and the light is reflected in all directions. In the cooling chamber, water is used as a coolant and the temperature was kept at ambient temperature. An aeration pump was employed to create a uniform mixture (Shavisi et al. 2014a, b).

Fig. 8
figure 8

Schematic of the reactor system

Experimental design

Design-Expert software, version 10, Response Surface Methodology (RSM) (I-optimal), is used to find the effect of various parameters on the optimum condition of ammonia elimination and also to reduce the number of experiments. The effective parameters for degrading ammonia consist of pH, initial concentration of ammonia, NP concentration, contact time, and type of light (UV and visible) (Mohammadifard et al. 2019). The number and the values of each level are presented in Table 1.

Table 1 Levels for each parameter

Results and discussion

Designing the experiment and statistical investigations

Design-Expert software suggested 19 some experiments with the different parameters’ values. The experiments were designed, and the results for photocatalytic removal of ammonia are shown in Table 2. In statistical analysis of responses, the second-order polynomial equation is used to predict responses based on the considered parameters (Eq. 15). The analysis of variance (ANOVA) was used to check the accuracy of the model. F-value (773.34), P-value (< 0.0001), and R2 (0.99) showed that the model has high accuracy. The amount of P-value for all parameters is shown in Table 3 and indicated that all parameters are effective in photocatalytic removal of ammonia (Niedzielski et al. 2006).

Table 2 Response surface methodology for photocatalytic removal of ammonia
Table 3 Analysis of variance (ANOVA) photocatalytic removal of ammonia
$$\mathrm{Ammonia removal \%}=+37.86+\left(22.21\times A\right)+\left(9.38\times B\right)+\left(3.35\times C\right)+\left(12.79\times D\right)+\left(4.31\times AD\right)+\left(6.22\times {B}^{2}\right)-\left(6.66\times {C}^{2}\right)+(6.06{\times D}^{2})$$
(15)

Investigation of the effects of studied factors

The effect of initial ammonia concentration, pH, contact time, photocatalyst dosage, and contact time was investigated on the removal of ammonia by using analysis of variance (ANOVA).

The pH of a solution is the most effective parameter (based on the F-value) in the removal of ammonia by the photocatalytic method. The effect of pH on the removal of ammonia from the solution is shown in Fig. 9. It is obvious that the removal of ammonia enhances from 40% to about 97% with increasing pH value from 8 to 12. pH influences the surface charge nanoparticles and also the adsorption of ammonia on the photocatalyst surface and thus the rate of pollutant removal (Zhang et al. 2009).

Fig. 9
figure 9

Effect of pH on ammonia removal at initial ammonia concentration = 1500 mg/l, nanoparticle concentration = 0.3 g/l, and contact time = 120 min

According to the following Eqs. (16 and 17), in the presence of H+ (acidic ambient) and OH (alkaline ambient), the surface of TiO2 can be protonated and deprotonated, respectively. Since the charge of ammonia is positive and the surface of TiO2 particles at alkali media get a negative charge and cationic types can be easily adsorbed, therefore photodegradation is done better at alkali conditions.

$${\mathrm{TiO}}_{2}+{\mathrm{H}}^{+}\rightleftarrows {\mathrm{TiOH}}^{2+}$$
(16)
$$\mathrm{TiOH}+{\mathrm{OH}}^{-}\rightleftarrows {\mathrm{TiO}}^{-}+{\mathrm{H}}_{2}\mathrm{O}$$
(17)
$${\mathrm{TiO}}^{-}+{\mathrm{H}}^{+}\to \mathrm{TiOH}+{\mathrm{h}}^{+}\to {\mathrm{TiOH}}^{\bullet }$$
(18)

\({\mathrm{TiOH}}^{\bullet }\) is a source of hydroxyl radicals (•OH) to react with ammonia.

$${\mathrm{NH}}_{4}\mathrm{OH}+{\mathrm{H}}_{2}\mathrm{O }\to {{\mathrm{NH}}_{4}}^{+}+{\mathrm{OH}}^{-}+{\mathrm{H}}_{2}\mathrm{O}$$
(19)
(20)
$${\mathrm{NH}}_{3} \stackrel{{\mathrm{OH}}^{\bullet }}{\to } {\mathrm{NH}}_{2}+{\mathrm{H}}_{2}\mathrm{O }\stackrel{{\mathrm{OH}}^{\bullet }}{\to }\mathrm{ NH}+{\mathrm{H}}_{2}\mathrm{O }\stackrel{{\mathrm{OH}}^{\bullet }}{\to }{\mathrm{N}}_{2}+{\mathrm{H}}_{2}\mathrm{O}$$
(21)

The point of zero charges (PZC) of TiO2 NPs is about 6.3–6.8 (Shavisi et al. 2014a, b; Gong et al. 2015; Jamil and Sharaf El-Deen 2016). The point of zero charges is the pH at which the surface of the adsorbent is globally neutral. The zeta potential of TiO2 NPs in the range of 4–12 is shown in Table 4 and Fig. 10. The relationship between zeta potential and the pH values is illustrated in Fig. 10. It is obvious that in pH = 6.3, the zeta potential of the catalyst is zero (in the Smoluchowski model in pH = 6.8, the zeta potential of the catalyst is zero). Below this value, the surface is positively charged; beyond this value, it is negatively charged. So normally, it is always easier to adsorb a cation on a negatively charged surface, and an anion on a positively charged surface (Zawawi et al. 2017). Therefore, at pH < pHzpc, the surface charge of the catalyst is positive and at pH > pHzpc it is negative (Shavisi et al. 2014a, b). According to Table 5, with increasing pH, the surface of the catalyst has become more negative and the interaction between the catalyst surface with the available ammonium ions leads to strong absorption and eventually more pollutants are removed (Shavisi et al. 2014a, b). Also, with increasing pH, the number of hydroxyl ions (OH) gradually increased and as a result, more hydroxyl radicals (•OH) are produced which increases the removal efficiency [8]. The ammonia interaction with the photocatalyst surface at pH = 12 was optimized and the ammonium ions are adsorbed at the highest surface. Under these conditions, the electron absorption by ammonium ions has resulted in a significant increase in the removal efficiency (Shavisi et al. 2016).

Table 4 Zeta potential values of the TiO2
Fig. 10
figure 10

Zeta potentials versus pH of the TiO2 nanoparticles

Table 5 Comparison of ammonia removal efficiency (%) using various photocatalysts

The effect of UV irradiation time on the photocatalytic removal of ammonia contaminant by using TiO2 as photocatalyst is shown in Fig. 11. Experimental results showed that with the increase in contact time from 20 to 120 min, the removal rate increased from 60 to 96.96%. Residual ammonia decreased with UV irradiation time, and it is due to the fact that with the UV irradiation time increment, more hydroxyl radicals (•OH) are produced which causes the performance of removal to enhance (Ghenaatgar et al. 2019). It is noteworthy that in all experiments, the reactor was placed in the dark for 30 min and then exposed to UV light irradiation for 120 min. The observed results are shown that the concentration of remaining ammonia in dark conditions was about 856 mg/l (42.87%). This amount of ammonia which was removed from the solution occurred via the adsorption process (Shavisi et al. 2014a, b). By using the titania photocatalyst, 96.96% of ammonia is removed from the solution after 120 min UV light irradiation (the maximum concentration of ammonia in the final solution was about 45 mg/l).

Fig. 11
figure 11

Effect of contact time on removal of ammonia at pH = 12, initial ammonia concentration = 1500 mg/l, and nanoparticle concentration = 0.3 g/l

Another factor that influences ammonia removal is the initial concentration of ammonia. The effect of the initial concentration on the removal is shown in Fig. 12. Results showed that by increasing the initial concentration of ammonia, the removal efficiency increases due to the oxidation of OH anions and the generation of •OH radicals. In the concentration of more than 1000 (mg/l), the removal rate rapidly enhances with increasing initial concentration, because the ammonia pollutant molecules can occupy all active sites of the photocatalyst (Mohsenzadeh et al. 2019).

Fig. 12
figure 12

Effect of initial concentration of ammonia on removal at pH = 12, nanoparticle concentration = 0.3 g/l, and contact time = 120 min

An investigation was done on the evaluation of the effect of catalyst dose on the removal of ammonia, and results indicated that catalyst dose is a crucial factor in the photocatalytic removal of ammonia. In order to remove the ammonia, the effect of catalyst dose from 0.1 to 0.7 g/l was investigated. Figure 13 shows the effect of catalyst dose on the degradation efficiency. It is obvious that by increasing the catalyst dosage to 0.3 g/l, the number of active sites on the catalyst surface enhances, and this increase causes the interaction between the photocatalyst and the ammonia contaminant, and eventually, the removal rate enhances (Shavisi et al. 2014a, b). Also, the amount of absorbed photon increases and thus increases ammonia removal. Concentrations above 0.3 g/l may be due to inactivation of the active sites; with the decrease in the light intensity to the catalyst surface and limited hydroxyl radical (OH) production, the removal rate decreased (Song et al. 2013; Zhang et al. 2009). When the photocatalyst dosage is beyond its optimum amount, the solution becomes turbid and due to agglomeration of the photocatalyst as well as the lack of light penetrating deep into the solution, the efficiency of removal decreased (Dariani et al. 2016; Koe et al. 2020). Therefore, the optimum value of the catalyst dose is 0.3 g/l.

Fig. 13
figure 13

Effect of catalyst dose on removal of ammonia at pH = 12, initial ammonia concentration = 1500 mg/l, and contact time = 120 min

Investigation of the interactive effects of studied variables

One of the most advantages of RSM is that it studies the interaction between parameters and their effect on the removal of ammonia. Figure 14 shows the interaction between contact time and pH (AD) on ammonia removal. This figure shows that the removal rate of ammonia will increase with increasing contact time and pH. According to the analysis of variance (ANOVA) (Table 4), there is no interaction between pH and ammonia concentration, so they can be regarded as independent parameters.

Fig. 14
figure 14

Effect of interaction between pH and contact time on ammonia removal

Optimum condition of ammonia removal

To investigate, the optimum condition for ammonia removal, initial concentration of ammonia, nanoparticle concentration, contact time, and pH were considered in the specific ranges (Table 1). The initial concentration of ammonia was 1500 mg/l, and the removal rate was set to maximum. The results of ammonia removal in the optimum condition shown in Fig. 15. At the optimum condition, the highest ammonia removal was 96.96% and the highest desirability was 1.000. This optimum condition was repeated three times in the laboratory, and the removal efficiency was about 95.94%.

Fig. 15
figure 15

Optimum condition for ammonia removal by TiO2 nanoparticle. (a) pH = 12. (b) Initial concentration of ammonia (ppm) = 1500. (c) Catalyst dose (g/l) = 0.3. (d) Contact time (min) = 120. (e) Removal % = 96.9691

Effects of UV and visible light irradiation

Figure 16 shows the effect of two types of UV and visible light on the photocatalytic removal of ammonia by the TiO2 photocatalyst. According to the outcomes, the optimum conditions (Fig. 15) under UV and visible light irradiation removal rates were 96.96% and 90.18%, respectively. This indicates that the rate of ammonia removal in the presence of UV light is higher than under the visible light, which is mainly due to the catalytic band gap. The band gap of photocatalyst is 3.2 eV showing that the UV light performs better than the visible light and the lower the band gap the performance is better in the presence of the visible light (Anandan et al. 2010). Figure 17(a) shows the UV–Vis diffuse reflectance spectra of calcined TiO2 at 400 °C for 4 h. The synthesized photocatalyst absorbed light at a wavelength of 369 nm. As can be seen, the TiO2 absorbance level increases at first and gradually decreases. In addition, according to the UV–Vis analysis and Eqs. 22 and 23, the TiO2 Tauc plot is provided in Fig. 17(b).

Fig. 16
figure 16

Effect of two types of UV and visible light on removal of ammonia at pH = 12, initial ammonia concentration = 1500 mg/l, nanoparticle concentration = 0.3 g/l, and contact time = 120 min

Fig. 17
figure 17

UV–Vis DRS spectra for TiO2 (a) and Tauc plot for band gap determination of TiO2 nanoparticle (b)

$$E(h\nu )=\frac{hc}{\lambda }=\frac{1239.95}{\lambda }$$
(22)
$$\alpha =2.303\times d$$
(23)
$${(\alpha h\nu )}^\frac{1}{n}=A(h\nu -{E}_{g})$$
(24)

In Fig. 17(a), wavelength and absorbance are shown in horizontal and vertical parts, respectively. In Eq. 22, the band gap energy is shown by E (eV). In addition, h, c, and λ are Planck’s constant, the light velocity (m/s), and the light wavelength (nm), respectively (Hussain et al. 2010, 2011). In Eq. 23, the absorption coefficient and absorbance are shown by α and d, respectively. In Eq. 24, A is a proportionality constant and the amount of n for direct and indirect transition equals 1/2 and 2, respectively. Figure 17(b) shows the Tauc plot of TiO2 nanoparticles. This figure (Fig. 17(b)) is plotted \({(\alpha h\nu )}^{2}\) versus \(h\nu\) (Wang et al. 2011; Viezbicke et al. 2015). In the photocatalytic process, a metal oxide is activated with UV light, visible light, or sunlight. According to the previous studies, a metal oxide that has a higher bandgap (Eg) that can absorb over a large region of UV light as compared to visible light which is because of large excitation binding energy. In many studies, a band gap of rutile and anatase phase is reported to be about 3.0 and 3.2 eV, respectively. The band gap of the synthesized photocatalyst is 3.2 eV, which shows that the anatase phase is dramatically higher than the rutile phase. The anatase phase has the highest photocatalytic activity because of an indirect band gap of the anatase phase (Phromma et al. 2020).

Effect of aeration

Figure 18 shows the effect of aeration on the photocatalytic removal of ammonia under optimum conditions (pH = 12, catalyst dose = 0.3 g/l, contact time = 120 min, initial ammonia concentration = 1500 mg/l, and UV–visible light).

Fig. 18
figure 18

Effect of aeration on removal of ammonia at pH = 12, initial ammonia concentration = 1500 mg/l, nanoparticle concentration = 0.3 g/l and contact time = 120 min

The hydroxyl produced from the reduction of O2 is shown in Eqs. 3 and 4 (Kolinko and Kozlov 2009). In the aeration condition and also in the absence of air, the removal efficiencies were about 96.96% and 89.86%. It is obvious that oxygen has not a strong effect on the photocatalytic removal of ammonia in an aqueous solution.

Reusability of TiO 2 nanoparticles in the ammonia photocatalytic degradation process

The reusability of the photocatalyst is an important issue and has therefore been considered an essential issue. By using photocatalyst for a long time, its activity decreases, and ammonia molecules may block out some active sites which cover the surface of photocatalyst (Khan et al. 2015).

The reusability and stability of titania NPs at the initial ammonia concentration of 1500 mg/l, the NP concentration of 0.3 g/L, pH of 12, and contact time of 120 min are investigated. Centrifugation of the sample solution was carried out at 7000 rpm after 120 min of photocatalytic reaction, and the nanoparticles were separated. Then, the separated titania nanoparticles were reused for the next three times. Figure 19 shows the reusability of TiO2 NPs for the removal of ammonia at the optimum condition. It is obvious that after four-times usage of the NPs, the rate of removal by the photocatalyst reduced and the removal rate decreased from 96.96% to 65% which indicates that the catalyst is economical to use.

Fig. 19
figure 19

Reusability of the TiO2 nanoparticle for ammonia removal after each cycle in optimum condition

Ammonia removal efficiency is compared with that in some previous study, and the removal condition is shown in Table 5. Results demonstrated that ammonia removes under UV or visible light with a higher catalyst amount and irradiation time. However, in the present work, TiO2 removes 96.96% of ammonia using 0.3 g/l of the catalyst under a 2-h UV irradiation. To compare with other studies, the initial concentration of ammonia is much higher, and the amount of catalyst and irradiation time is lower than that in other studies; nevertheless, the removal efficiency is high.

Conclusion

The photocatalytic process has been regarded as a low-cost process for the purification of pollutants in water and wastewater. Also, the photocatalytic process is one of the most promising processes for efficient, economical, and environmentally friendly water and waste water treatment. The products are often less harmful, and environmentally friendly. In this study, synthesizing the titania nanoparticles was carried out by the sol–gel method, and the NPs were characterized by the XRD, FTIR, DLS, EDX, FE-SEM, and TEM analyses. The photocatalytic performance of synthesized titania NPs on ammonia removal under UV light was studied by Design-Expert software (using the I-Optimal method). Also, the effect of factors such as NP concentration, contact time, pH, and initial ammonia concentration on the removal of ammonia from solution was investigated and determined the optimum conditions. According to the results, when it comes to the removal of ammonia by titania, pH is the most effective parameter. The removal rate increased with increasing pH from 8 to 12 and the highest removal rate was obtained at pH = 12. By increasing the catalyst dosage from 0.1 to 0.3 g/l, the removal rate augmented, and the highest efficiency of removal was achieved in the catalyst concentration of 0.3 g/l. The removal rate increased as a result of the contact time enhancement from 30 to 120 min, and initial ammonia concentration from 250 to 1500 mg/l. After 120 min, the removal rate was fixed. A reduction occurred in the removal efficiency of 96.96 to 65% after four times of reuse.