1 Introduction

Ecological pollution is one of the most important problems for the health of human beings, especially industrial facilities unload above 300 million tons of heavy metal, chemical wastes, and toxic wastes year after year [1]. These chemicals which are phenols, detergents, and synthetic dyes deliver to the wastewater stream [2]. To eliminate these pollutants, photocatalysis with solar irradiation is an encouraging approach. Semiconducting materials, such as TiO2, ZnO, and SnO2 have a great future as photocatalyst materials [3, 4]. Between these oxides, ZnO is an efficient semiconductor for photocatalytic application to compare with TiO2, ZnO has higher electron mobility, has higher oxidation rate, and is cheaper [5]. ZnO is an inorganic composite composing of transitional element. Although the solubility of ZnO is limited in water it is great in acids and bases. ZnO has a large bandgap of 3.2 eV as a semiconductor, which is suitable for photocatalysis reaction beneath ultraviolet (UV) source [6]. The higher surface area/defects are essential physical factors to determine the photocatalytic action of oxides. In the current photo-degradation process, the transition metal oxides are utilized as catalysts [7].

Methylene blue (MB) is a very common dye that is widely used in many industries. Notwithstanding, their release into the ecosystem results in water pollution [8,9,10]. The degradation process of MB by photocatalysis depends on light-sensitive semiconductors, in a viable improving selection, has become a very favored field for wastewater treatment, especially when using a sustainable energy source because of their efficiency and lack of minor pollution [11,12,13,14,15].

In the photocatalytic process, the semiconductors go through photoexcitation by visible (Vis) or near infrared light. The sensing system of these semiconductors depends on the propagation of photo-induced electron/hole (e, h+) couple upon irradiation by adequate light energy. These e–h+ couple generate greatly reactive species, which then react with dye particles ravage their initial frame [16,17,18,19,20]. The most extensively used photocatalytic substance containing zinc oxide and titanium oxide are wide-bandgap semiconductors, which are incapable of absorbing visible lights directly [21,22,23,24]. Therefore, unchanged semiconductors are not convenient for the photocatalytic process. ZnO nanoparticles with different designs and features have drawn interest for photocatalytic operations in many fields such as nature and power areas. Up to the present, over 2500 papers have been pressed about the photocatalytic activity of ZnO nanoparticles. These researches studied the effect of different parameters, such as production technique, composition, and morphology.

There are many synthesizing methods for nanoscale ZnO including anodization [25,26,27,28,29,30,31], sol–gel method [32,33,34], template method [35,36,37], hydrothermal method [38,39,40,41,42,43,44,45,46], microwave irradiation [47, 48], and alkaline synthesis [49]. Among all these methods anodization is cheaper, environmentally friendly, and has a long-life span. Scientists reported that electrochemically synthesized ZnO has shown great photocatalytic activity on dye degradation [50, 51].

In this research, ZnO nanostructures have been grown by the anodization method. Different parameters were used to achieve the desired structure. Three different solutions for anodization were prepared. These solutions consisted of Potassium bicarbonate (KHCO3), Sodium carbonate–Sodium bicarbonate (Na2CO3–NaHCO3), and ethanol–sulfuric acid (C2H5OH–H2SO4). Produced ZnO structures were characterized by XRD, SEM, and UV–Vis spectrophotometer. The photocatalytic activity of ZnO structures was analyzed by using the methylene blue (MB) degradation as common dyes under UV–Vis light illumination.

2 Experimental details

2.1 Materials

Bulk zinc (99% purity) was purchased from the metal industry. KHCO3 (99.7%), absolute C2H5OH (≥ 99.9), acetone (C3H6O, 99.9%), H2SO4 (95–97%), Na2CO3 (≥ 99.9%), and NaHCO3 (≥ 99%) were supplied by Merck.

2.2 Synthesis of ZnO nanostructures

Before anodization, a large portion of bulk Zn was cut off into 6 pieces with dimensions 3 × 3 cm2. These samples were sanded up to #180, #250, and #400 (# refers to grit number of the final sandpaper used and sample code designation using SiC emery papers (EAC-SiC supraflex paper). Samples were then sonicated in C2H5OH, C3H6O, and deionized water in an ultrasonic bath for 10 min separately. The anodic oxidation experiments were executed using a scheme (Fig. 1) including sanded zinc plates, platinum electrode, and various solutions as the anode, cathode and electrolyte, respectively. The distance between the electrodes was 15 cm. The anodic oxidation process was performed according to anodization parameters (Table 1) at room temperature. Produced ZnO samples were heat-treated at 300 °C for 1 h with a heating rate of 5 °C/min. The active surface area of electrodes was kept at 9 cm2 for the purpose of electrochemical anodization.

Fig. 1
figure 1

Schematic diagram of the electrochemical anodic oxidation (1) anode (2) cathode (3) electrolyte (4) anode holder (5) hot plate (6) power supply

Table 1 Parameters of anodic oxidation process

2.3 Materials characterization

The crystallographic structure of the samples was examined by an X-ray diffractometer (Thermo Scientific ARL X’TRA, XRD) with a Cu-Kα (1.54185 Å) irradiation. Diffraction patterns were collected at the scan rate of 2°/min in the 2θ range 5°–90° at room temperature. Scanning electron microscopy (SEM, Carl Zeiss 300VP) was operated to monitor the morphology and microstructure of the samples. The optical properties of ZnO NWs were investigated with diffuse reflectance spectroscopy (DRS, Thermo Scientific Evolution600).

2.4 Photocatalytic measurements

10–5 M (3.2 mg/L) MB dye was arranged to observe the photocatalytic performance of the ZnO nanostructures. The photocatalytic degradation of MB was studied under a UV–Vis light source which was 300 W Osram Ultra-Vitalux E27 (4.3% UVA, 1% UVB, 94.47% Vis). ZnO nanostructures which were considered as a catalyst were put into beakers that contained 40 ml of MB dye with the help of a tweezer. Additionally, a catalyst-free sample was investigated to contrast with the outcome acquired from catalyzed samples. The distance between the UV–Vis light source and beakers was kept as 20 cm for all samples to adjust the light intensity to 0.55 W/cm2. The reduction of absorbance intensity of the MB dye was observed utilizing the UV–Vis spectrophotometer (Shimadzu UV 1240 spectrophotometer) at 664 nm which matches the characteristic peak of MB [52]. In the experiment, 3 ml of liquid from the beakers was extracted transitorily at 60th, 180th, 270th, 390th, 510th, 630th, and 750th min. The observed absorbance values were transformed to concentration values usage utilizing Beer–Lambert’s law interrelationship obtained in our former publication [53, 54]. The degradation efficiency of ZnO nanostructures were determined based on the formula [(C0 − C)/C0] × 100 (C0 initial concentration, C final concentration).

3 Results and discussions

3.1 Structural analysis

In the XRD pattern of the produced ZnO samples on the Zn plates shown in Fig. 2, it can be said that the produced ZnO nanostructures show strong, sharp, and intense diffraction peaks. Having strong, sharp and intense diffraction peaks is an indication of the presence of highly crystalline phases, which means the increased crystallinity of the fabricated ZnO nanostructures. XRD peak intensities differ from each other in terms of surface morphologies and oxide layer thicknesses, which vary due to different anodizing parameters. The peaks were observed at 31°, 34°, 36°, 47°, 56° and 63° belonging to the (100), (002), (101), (102), (110) and (103) planes of polycrystalline ZnO [55]. It has been observed that peaks in all produced films belong to the hexagonal wurtzite structure of ZnO (ICDD 36-1451) [56]. In addition, peaks of the zinc substrate were observed in the XRD patterns of some samples. These peaks corresponding to the hexagonal structure of the Zinc metal with ICDD card numbers 87-0713 [57]. Based on the diffraction spectrum of the ZnO nanostructures prepared in Fig. 2, it is worth noting that there is no notable change in the produced ZnO nanostructures when the anodizing parameters are changed. XRD patterns of all produced anodic films are in general agreement with the results obtained previously by some researchers [58,59,60].

Fig. 2
figure 2

XRD patterns of the ZnO nanostructures produced with different parameters

3.2 Morphological analysis

In the first step of electrochemical anodization, Zn2+ ions are originated from zinc foil owing to dissolution forming minor and separated pits over its surface. The reason for the observation of the maximum current value is the low resistance value of the zinc foil and the current decreases rapidly due to the oxide layer formation. When monitoring via SEM, due to the high concentration of Zn2+ ions, nanostructures grow near or within the small holes of the surface. The reaction mechanism of nanostructures is as follows:

$$\begin{gathered} {\text{At anode}}:\quad {\text{Zn}} \to {\text{Zn}}^{{2 + }} + {\text{ 2e}}^{ - } \hfill \\ \quad \quad \quad \quad \quad {\text{Zn}}^{{2 + }} + {\text{ 2OH}}^{ - } \to {\text{Zn}}\left( {{\text{OH}}} \right)_{{2}} \hfill \\ \quad \quad \quad \quad \quad {\text{Zn}}\left( {{\text{OH}}} \right)_{{2}} \to {\text{ZnO }} + {\text{ H}}_{{2}} {\text{O}} \hfill \\ {\text{At cathode}}:\quad {\text{2H}}^{ + } + {\text{ 2e}}^{ - } \to {\text{H}}_{{2}} \hfill \\ {\text{Dissolution}}:\quad {\text{ZnO }} + {\text{ H}}A \to {\text{Zn}}A + {\text{ H}}_{{2}} {\text{O}} \hfill \\ \end{gathered}$$

where ‘A’ refers to the HCO3 ions from the bicarbonate solution in the dissolution process.

ZnO nanostructures were grown by the anodization method is shown in Fig. 3. According to Fig. 3a, the needle-like ZnO nanostructures were performed in 0.05 M KHCO3 solution at 20 V for 30 min. When the detailed inset picture is examined, we can state that these needle-like ZnO nanostructures cluster together and their approximate diameter is 250 nm. Figure 3b shows the ZnO nanowires which are produced in 0.05 M KHCO3 solution at 20 V for 60 min by anodizing. It was observed that nanotube-like ZnO structures consisting of a dense and non-unidirectional alignment were formed with a 200 nm diameter. The samples whose morphologies are given in Fig. 3c and d were exposed to the same solution and voltage at different times. As a result of the anodizing process performed at 20 V, locally coexisting nanorods were observed, while the other high voltage (40 V) anodizing process has a more uniform structure. It can be seen from Fig. 3d, fine cotton-like fiber structures with very small diameters were obtained on the surface of S4. In this case, we concluded that the surface area increases significantly. Since the structures produced at 40 V and 60 min seem to be quite uniform, new nano-structures were produced with different electrolytes at these parameters. In Fig. 3e, we observed that a different structure from other morphologies. Dense and small-scale ZnO morphology was grown in 100 ml C2H5OH–0.2 M H2SO4 solution. The surface morphology with dense needle-like ZnO was obtained by the anodization of Zn substrate in Na2CO3–NaHCO3 (0.6–0.6 g/L) solution (Fig. 3f).

Fig. 3
figure 3

SEM micrographs of zinc substrates anodized a in 0.05 M KHCO3 solution at 20 V for 30 min, b in 0.05 M KHCO3 solution at 20 V for 60 min, c 0.05 M KHCO3 solution at 40 V for 30 min, d in 0.05 M KHCO3 solution at 40 V for 60 min, e 100 ml C2H5OH and 0.2 M H2SO4 solution at 40 V for 60 min, f Na2CO3–NaHCO3 (0.6–0.6 g/L) solution at 40 V for 60 min

As a result, as the dissolution rate increases with increasing electron density, selective corrosion in high-energy sites also accelerates. At the same time, since the number of ions in the anodizing bath also affects the anodizing process, different solutions cause variations in the obtained structure. For this reason, the structures with different morphology have been observed depending on the equilibrium between oxidation and dissolution with changing parameters.

The oxide layer thicknesses of the samples were measured with the help of the ImageJ program using SEM images and the obtained values were presented in Fig. 4. According to these results, the film thicknesses formed vary between 7.97 ± 0.48 and 17.26 ± 3.04 µm. This change in the oxide layer thickness, which has a significant effect on the photocatalytic activity, is due to the difference in the anodizing parameters.

Fig.4
figure 4

Oxide layer thickness of the samples

3.3 Optical properties

DRS was used to obtain the wavelength versus reflectance data of the samples and the results are shown in Fig. 5. Using the reflectance data and the Kubelka–Munk function ((F(R))n), the bandgap was calculated. In the Kubelka–Munk function; hʋ is the photon energy; R is the intensity of reflection; n is the value of the exponent indicated the character of the electronic transition, whether direct or indirect. n is ½ for direct bandgap materials, 2 for indirect bandgap materials. ZnO is well known to have a direct bandgap, therefore, n = ½ was selected [61]. The graph of the obtained (F(R))½ versus energy (eV) is shown in Fig. 6. The bandgap values obtained are attached to Table 2. When the reflectance spectrum is examined, it is clear that the anodization time and voltage cause a significant shift in the reflectance value of the sample. These changes in the reflectance data were observed due to the changes in the values in the bandgap which show a red-shift (< ~ 0.4 eV). The obtained eV was smaller than the bandgap of bulk ZnO (3.37 eV) and varying from 2.93 to 3.12 eV. For understanding the changes in the bandgap, many theoretical models, such as quantum confinement effect [62], color centers [63], free-exciton collision [64], surface states [65], and Burstein–Moss effect [66, 67] were developed. The observed declining trend in the bandgap is in good agreement with previous studies describing this behavior as a result of bulk defects that cause displacement of molecular orbitals at the conduction band edge and create deep traps in electronic energy [68, 69].

Fig. 5
figure 5

Diffuse reflectance spectra of ZnO samples

Fig. 6
figure 6

Plots of Kubelka–Munk function versus the incident photon energy of ZnO samples

Table 2 Photocatalytic parameters of ZnO samples

3.4 Photocatalytic activity

The photocatalytic mechanism of ZnO structures with different surface properties is shown in Fig. 7. When stimulated with light, the electrons in the valence band of ZnO are transferred to the conduction band. Thus, while gaps (h+) are formed in the valence band, electrons pass into the (e) conduction band. When oxygen molecules (O2) are excited by light, they are reduced with the O2’s emerging from ZnO and form superoxide radical anions (·O2). These O2 structures break down MB into green compounds such as carbon dioxide (CO2) and water (H2O). The reactions taking place during the decomposition of the MB under the UV–Vis light source can be listed as follows:

$${\text{ZnO }} + \, h\upsilon \to {\text{ZnO }}\left( {{\text{h}}^{ + } + {\text{ e}}^{ - } } \right)$$
(1)
$${\text{O}}_{{2}} + {\text{ e}}^{ - } \to \cdot {\text{O}}_{{2}}^{ - }$$
(2)
$${\text{H}}_{{2}} {\text{O }} + {\text{ h}}^{ + } \to \cdot {\text{OH }} + {\text{ H}}^{ + }$$
(3)
$${\text{h}}^{ + } + \cdot {\text{O}}_{{2}}^{ - } + \cdot {\text{OH }} + {\text{ MB}} \to {\text{CO}}_{{2}} + {\text{ H}}_{{2}} {\text{O}}$$
(4)
Fig. 7
figure 7

The photocatalytic degradation mechanism of MB by ZnO nanostructures

Photocatalytic performances of ZnO samples added into 10–5 M MB were evaluated by measuring the absorbance data of MB at certain time intervals. With the photocatalytic effect, photocatalysts break down MB aqueous solution over time and cause its color to be removed. Concentration data were obtained using the Lambert–Beer law from the absorbance values of the characteristic peak of MB at 664 nm for all samples. The rate constant of the photocatalytic degradation was calculated by using the integrated form of the first-order reaction rate (Eq. 5).

$$\ln \frac{{C_{0} }}{C} = kt.$$
(5)

In this equation, C0 the initial concentration of MB, C it is the concentration of MB at any time t. The rate constant of degradation was shown as k. The photocatalytic degradation rate was calculated by using determined values. When the graph in Fig. 8a showing the change in MB concentration during 750 min is examined, it is seen that the sample that decreased the initial concentration of MB the most was the S4 sample. Adsorption capacity is an important parameter for improved photocatalytic performance. As seen in Fig. 8b, the results from adsorption in the dark medium show that all samples have good levels of adsorption ability. When all samples were examined, the S4 sample showed the best adsorption capacity of approximately 20%. These results showed that the change in the anodizing parameters also affected the adsorption properties of the samples. When the total degradation values as a result of the adsorption and photo-degradation processes were examined, the S4 sample degraded the MB by 89.3%. The variation of the obtained ln(C0/C) values over time was shown in Fig. 8c. When the graphics in Fig. 8 were examined, it was seen that the S4 sample has a maximum decomposition rate. The slope of the graph created in Fig. 8c gives the k value. The k values obtained showed that the photocatalytic degradation of MB correlated with surface morphology and oxide layer thickness. Photocatalytic parameters of all samples are given in Table 2. When the k values obtained in Table 2 were compared with the literature, it shows that the ZnO nanostructures produced within the scope of this study exhibit better photocatalytic performance.

Fig. 8
figure 8

Photocatalytic performances of ZnO samples for different anodization times

The photodegradation curves of all samples at the wavelength range between 400 and 800 nm are given in Fig. 9. The degradation efficiencies of MB by different samples were calculated according to the initial absorbance value of 0.693 at 664 nm. These results were given in the bar chart in Fig. 10. As can be seen from Fig. 10, the S4 sample has the best photocatalytic performance with a degradation efficiency of 89.3% in 750 min where the arbitration sample was 30.9%. As another observation, the photocatalytic performance was affected by changing the anodization time, voltage, and electrolyte. As it is known, there are many factors that affect photocatalytic performance, such as morphology, surface area, crystallinity, phase composition, crystal orientation, and band gap [53]. Although the sample with the lowest bandgap is the S2 sample, the best photocatalyst is the S4 sample, which can be explained as a result of the synergistic effect of many factors such as surface area, oxide layer thickness and bandgap on the photocatalytic activity.

Fig. 9
figure 9

Absorption spectra of MB for all samples anodized at different parameters

Fig. 10
figure 10

Photocatalytic degradation efficiencies of MB by different samples under UV–Vis light irradiation

4 Conclusion

In summary, ZnO nanostructures with different morphologies were successfully prepared by varying anodizing parameters. ZnO growth conditions can be controlled with different solutions, voltages, and time which are important factors that affect the structure, morphology, and shape of ZnO nanostructures. The XRD results confirm that the ZnO coatings were formed on the Zn substrate. It can be seen that the ZnO nanostructures with different diameters and shapes are well distributed in different directions. The photocatalytic experiment indicated that the S4 sample anodized in 0.05 M KHCO3 solution at 40 V for 60 min had superior photocatalytic performance in the degradation of methylene blue under UV–Vis irradiation with the degradation efficiency of 89.3%. These produced ZnO nanostructures have promising potential advantages in photocatalytic applications.