1 Introduction

Carbon dots (CDs) are made by pyrolyzing materials with high carbon content. As a consequence of the significant changes in their physical and chemical characteristics, CDs have a regulated emission wavelength and a high quantum yield. The structure is chaotic due to the differing amounts of carbon to carbon rich conjugated type sp2 in the inner core, dispersed in a gem type sp3 conjugated carbon framework [1,2,3,4]. Typically, the lattice spacing is 0.34 nm, and its semi-spherical shape has a diameter of up to 10 nm and vertical dimensions of less than 5 nm [5, 6]. Apart from the central core, the CD framework consists of two separate sections: the surface state and the molecular state, hydroxylic, carbonic, carboxylic, amino, and sulphide groups are the main heteroatomic binding sites that produce the surface state of CDs. The molecular state's individual chromophores function analogous to organic colours. CDs have better photochemical characteristics and stronger intrinsic photoluminescence when compared to other nanocarbon [7, 8]. The production of multicoloured light-emitting diodes (LEDs), efficient energy transmitters and live storage, in-vivo studies, photocatalytic degradation, drug delivery, and fluorescent sensors are just a few of the novel areas of application that have been discovered as a result of these materials' excellent compatibility, efficient stability towards light, low cytotoxicity, simple surface modification, and inert chemical behaviour [9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]. There are two distinct kinds of carbonaceous raw materials that can potentially be employed for the creation of C-Dots [30]: biological and chemical carbon sources. On the context of sustainability, biomass precursors [31,32,33,34] have the potential to be utilised for the creation of carbon dots owing to their reasonable amount, universal availability, environmental friendliness, as well as their ability to organizing biological waste. Moreover, they provide a large number of spontaneous ingredients, including lignin, cellulose, lignocellulose, carbohydrates, proteins, triglycerides, and naturally occurring elements like iron, phosphorus, zinc, magnesium, and manganese, which serves as powerful self-dopants, for the multipurpose activities and also raised the quantum yield efficiency.

Researchers have been able to improve the electro-catalytic performances of carbonaceous materials by doping heteroatoms such as (N, B, P, S, and so on) into the carbon nano-structure. For example nitrogen-doping into carbon nanomaterials including CNTs, graphene, and GCDS have been researched and have found many advantages over non doped carbon nano materials [35]. In the fields of energy storage, dye photodegradation, and light harvesting, these beneficial qualities are of great interest.

Dye sensitized solar cells (DSSCs) have received a lot of interest as a viable alternative to conventional silicon-based photovoltaic cells [36] owing to their affordable production costs, excellent conversion rate, ecological compatibility, as well as simple fabrication procedures [37,38,39,40]. However, transition-metal oxides (TMOs) such as TiO2 [41], ZnO [42], WO3 [43], and RuO2 [44] have attracted substantial attention owing to their unique layered structure and diverse electronic and optical characteristics, amongst these materials, titanium dioxide (TiO2), exhibited the greatest light absorption behaviour, has drawn significant interest and has been widely used in photovoltaic’s, photo electrochemical cells, photocatalysis, and gas sensing [45,46,47,48,49]. However, because of its smaller surface area, wider bandgap, and rapid electron–hole pair recombination, leads to the overall PCE of just (5–10)%. Therefore, In-situ combinations of TiO2 with nano carbonous materials along with nitrogen and other trace element doping are promising alternatives to address these problems, owing to their viability, direct accessibility, enormous surface area, efficacy in electrochemical environments, creation of adequate active sites, tuning of the TiO2 bandgap, and widening of the charge recombination process has improved the overall photocatalytic properties [50]. However, the use of N-CQDs as a co-active layer in addition to TiO2 also makes it easier to modify the photo-anode's band structure and can reduce recombination between the electrolyte and the photo-anode [51] and also demonstrated improved effectiveness when utilised as co-sensitizers with ion selective quantum dots (ISQDs) [52] or organic dyes [53] because, by utilising the carbon dots as co-sensitizers, spare exploitable light can be used to broaden the absorption zone and enhance the charge extraction process in perovskite solar cells [54,55,56]. While in, CD/TiO2 based DSSCs efficiently harvest the solar spectrum, transferring UV region to the visible region, and shield the photosensitizer from deterioration and provide more stability [57, 58].

In the whole photoelectric conversion process, the counter electrodes (CEs) of the DSSC play a key role for capturing of electrons and lowering of the overall potential for the reduction of I3− to I in the redox electrolyte [59, 60]. They are typically constructed from vacuum-deposited platinum (Pt), which is placed on a conducting glass (FTO), as Pt is one of the most expensive materials, although having good electrical conductivity, stability, and catalytic activity, its non-renewability prevents DSSC’s from becoming widely used. As a result, the primary requirement for a material to replace Pt as a catalyst in a DSSC includes a lower charge-transfer resistance and a high exchange current density for the reduction of the oxidised form of the charge mediator. The nano-sized carbonous material has shown a charge-transfer resistance of 0.74 cm2 [61,62,63,64], which is approximately two times lower than the charge-transfer resistance of a screen-printed Pt CE and achieved a photo-conversion performance of 7.56% and these substances have showed chemical and electrochemical stability in the cell's electrolyte system. In light of these issues, carbonaceous materials have been widely used as Pt substitute catalysts to minimise the expenditures while maintaining the DSSC’s performance [65], for instance GQDs were decorated with PPy on fluorinated tin oxide (FTO) glass as a very effective but low-cost CE for high-performance DSSCs [66, 67] solely due to their greater inherent catalytic activity. In another investigation, CoSe/GN0.50 CE outperformed pure CoSe and platinum in terms of photovoltaic performance [68]. Several groups have also investigated carbon black as a CE for DSSCs [69, 70], which has also demonstrated remarkable long-term electrochemical stability in I3−/I electrolyte [71, 72].

Rapid economic and industrial growth in recent years has led to an increase in the amount of hazardous wastewater into water resources, including groundwater, surface water, and drinking water supplies. Unfortunately, many contaminants are generally long-lasting and can degrade only in harsh environments (high temperature, high alkalinity, ultraviolet (UV)) as well as under certain chemical and physical processes. When wastewater is treated severely, hazardous chemicals are utilised or the byproducts are created which usually are more damaging to the surrounding ecosystem than the original component. Therefore, to eliminate toxins from the environment, current wastewater treatment techniques must be replaced with more effective ones [73]. In order to safely clean wastewater, photocatalytic degradation is a method that is frequently used [74,75,76], using semiconductors as catalysts under irradiation, have been proposed as an environmentally friendly method for treating organic pollutants [77] which employs advanced oxidation processes (AOPs), relied on the production of reactive oxygen species (ROS), such as hydroxyl radicals OH and singlet oxygen species. The most widely used catalyst for photocatalytic degradation is TiO2 nanoparticles, because of low toxicity, chemical inertness, high catalytic effectiveness, and cheap cost [78]. However, TiO2 has certain drawbacks, including quick electron–hole recombination, broad short UV band gap energy, high concentration aggregation, and an insufficient specific surface area, which bounds the effectiveness of its efficiency of photodegradation. As a result, the modification of carbonaceous substances on the surface of TiO2 has been recommended as a remedy for these problems, so that, the photoexcited electrons in TiO2 may be transported to carbonaceous substances, which might serve as the binding centres for electron–hole pairs and prevent electron and hole recombination, hence increasing the photocatalytic efficiency of TiO2 [79,80,81,82]. Numerous investigations have concentrated on creating CQD/TiO2 nanocomposite materials with improved photocatalytic activity for the destruction of organic pollutants, for instance Rhodamine B and cefradine were subjected to UV irradiation by Chen et al. [83] to determine the photocatalytic activity of carbon quantum dots/TiO2. Furthermore, doping light heteroatoms (B, N, P, and S) into CQDs can significantly boost the electrical conductivity and specific surface area [84, 85] hence increased photocatalytic performance. Therefore, it is anticipated that heteroatom-doped CDs will improve the TiO2's photo-catalytic capacity for the removal of hazardous chemicals.

This section provides a comprehensive summary of the most recent review papers, focusing on the developments in the overall study and creation of hetero-atom-doped CDs with an appropriate citing [86,87,88]. These review papers have mainly concentrated on the various synthetic strategies, for the preparation of hetero-atom-doped CDs due to their distinct qualities and potential in a range of applications, They have looked at a number of synthetic strategies, ranging from different raw materials to different synthetic methods and incorporated different doping elements in order to further improve the overall optical, biological, and catalytic properties of hetero-atom-doped CDs and their wide range of applications in nano-probes, optoelectronic devices, catalysis, and biomedicine. Hetero-atom doping is an efficient way to improve the optical, electrical and chemical characteristics of CDs by inserting atomic impurities (nitrogen, boron, sulfur, phosphorus, etc.) into the CD's surface, altered its electronic structure producing n-type or p type CDs hybrid material.

However, we have prepared the N-CDs from biomass derived pumpkin seeds for the first time by microwave irradiation method through green approach and added urea as nitrogen source to achieve the required doping of nitrogen element besides the nitrogen certain elements like sulpher, phosphorus and zinc which are the characteristics of pumpkin seed composition have also been added in the percentage of less than 1 (< 1%) to modify the surface functional groups, surface dislocation and provides enormous active sites for the various application purposes and provided an overall P type character of these prepared N-CDs with their av. size of 8–10 nm. They have shown an enormously good quantum yield (QY) of 65.5% against the previously prepared low quantum yielded N-CD’s, besides that they provided excellent optical properties both in absorption and excitation dependent photoluminescence (PL) properties with an energy band gap of only 2.35 eV against the previously synthesized high bandgap N-CDs. These prepared N-CDs have demonstrated excellent electrochemical activity in both oxidation and reduction perspectives, provided high energy density storage hence can be used in supercapacitors, besides that they have demonstrated antifungal activity and bio imaging of “Cladosporium cladosporioides” responsible for economic loss in food industry [89]. Here, in this work these novel self heteroatom doped N-CDs (5%) were mixed with carbon black and employed as a modified innovative semi-transparent counter electrode annealed at 450 °C assembled with the generated heteroatom nitrogen doped carbon nano dots optimized Weight% of (30%) with TiO2 as a co-active material or novel photoanode for developing a novel DSSC cell, N719 dye as a sensitizer and I3−/I as electrolyte. Upon illumination, the photo-generated electrons transferred to the N-CDs and TiO2 co-active material composite and accumulated holes in the N719 dye's valence band, hence effectively separated the charge carriers and extended the lifetime of the electrons. Most notably, adding these hetero-atom doped NCQDs to TiO2 makes it easier to modify the photo-anode's band structure and therefore, reduces interaction between the I3/I electrolyte with the photo-anode resulting in a Jsc of 22.90 mA, Voc of 0.78 V, and FF of 0.74, providing a total PCE of 13.22% cm−2.

In addition, a composite made of N-CQDs and TiO2 exhibited high photocatalytic activity towards degradation of azo dyes like Methylene blue under short UV light has been demonstrated in this study. For this purpose, an ultrasonic dispersion method was used to decorate the TiO2 particles by these hetero-atom doped N-CQDs, after that under UV light leading to formation of ROS in solvent system, owing to their multiple active sites and defects, resulting in the adsorption and reduction of oxygen on the surface, which prevents the recombination of electrons and holes in the TiO2 and enhanced the photocatalytic efficiency of N-CDs/TiO2 hybrid material from 30 to 85% against degradation of MB in 18 min of short UV irradiation period, while as pure TiO2 film and pure N-CDs as a solo photocatalysts demonstrated only 20% and 30% of degradation towards MB dye.

2 Experimental sections

2.1 Preparation

Our group Abdullah et al. [89] recently published a novel work, detailing the sample preparation as well as all other characterizations with application. This introduction provides a brief explanation of their features and preparation. Starting precursor, pumpkin seeds were used as a carbon source to create self heteroatom doped N-carbon dots and the process of surface passivation, also known as surface state change, is carried out by supplying nitrogen from "urea". After being exposed to microwave pyrolysis, through centrifugation and filtering a light brown fluid was produced. The amount of urea fixing was set at 3 g, and the amounts of pumpkin seeds, microwave power, and reaction time were all gradually changed to get a high fluorescence quantum yield. The QY first increased as the quantity of pumpkin seeds in these CDs increased and then peaked at 3 g. After that, the limit of pumpkin seeds at 3 g with a quantum yield of 65.5% was optimised using a microwave irradiation power of 900 W and 8-min reaction duration. To produce CDs with a high QY, the precursor needs to be properly carbonised, and this can only be done at a temperature and reaction time that are both enough. However, a much higher reaction temperature and a longer reaction time might eliminate the emissive sites, which would reduce QY.

3 Results and discussion

3.1 Characterization and properties of self-hetero atom doped N-carbon dots

Pumpkin seeds shown in Fig. 1a were used for the first time as a carbon source to create self heteroatom doped N-carbon dots, along with "urea" as a nitrogen source for surface passivation or surface modification proceeded with the microwave irradiation reaction for certain minutes, a light brown solid paste was produced followed by filtration, centrifugation and dialysis, a yellow solution was produced as exposed to sunlight, and showed a fluoresced cyan color illuminated under UV light as illustrated in Fig. 1b and c, respectively. Achieving a high fluorescence quantum yield required incremental optimization of the amount of urea (set at 3 g), the number of pumpkin seeds, microwave power, and reaction time. As the pumpkin seed content grew, the quantum yield QY of these CDs initially increased and then decreased until it peaked at 3 g. Then, using a microwave irradiation power of 900 W and an 8-min reaction period, the number of pumpkin seeds at 3 g with a quantum yield of 65.5% was optimized. To create CDs with a high (QY), the precursor must only be suitably carbonized for a suitable amount of time and at a sufficient temperature. However, the QY, has decreased due to eradication of the generated emissive sites by a significantly higher reaction temperature and longer reaction time [89].

Fig. 1
figure 1

a Pumpkin seed precursor b Carbon dots under visible light c carbon dots under UV light

The morphology, size distribution, elemental analysis and optical properties of as prepared N-CDs was previously published by our group Abdullah et al. [89] through Springer publishing company and the results have demonstrated that the N-CDs have uniform size distribution with 5–8 nm average size, besides that the X-ray diffraction pattern clearly showed wide peak at 20°–40° which also denoted the production of tiny nanoparticles. The major peak at 24° revealed graphitic like core structure and an interplaner distance of 0.334 nm and confirmed the (002) lattice planning. Furthermore, the FTIR spectroscopy demonstrated the various surface functional entities such as O–H, N–H, COO–/amide II, C=C/C=N/C=O and C–H that makes the surface active with oxygen reactive species of these N-CDs, and were very effective for application point of view. The EDX analysis suggested that the following weight percentages were present: 48.3% C, 32.6% O, 18% N, 0.2% Mg, 0.2% P, 0.2% S, 0.3% K, and 0.2% Zn mainly because of complex nutritional value of pumpkin seeds.

A wide absorption zone covering a wavelength range of 254–550 nm was established by the optical characteristics. The main peak at 327 nm is due to the n–π* transition of C=N, C=O in the N-doped CDs, while the other tiny absorption peaks at 254 and 278 nm are generated by the π–π* transaction of the C=C interaction. Their excitation wavelength spanned from 380 to 480 nm, while the emission wavelength was red-shifted from 462 to 542 nm. Additionally, the optimal emission and excitation wavelengths for the N-doped CD solution were 462 nm and 380 nm, respectively. The N-doped CD's aqueous solution showed blue, cyan, green, and yellow hues at different stimulated wavelengths. When stimulated at longer wavelengths, the spectra redshifted and showed a typical excitation wavelength dependency. The behavior of N-doped CDs has been attributed to different diameters or different emissive spots on their surfaces. Consequently, it has been suggested that these N-doped CDs have sensing capabilities. Previous articles have also reported the excitation-dependent emission characteristic of carbon dots, further under constant irradiation at 380 nm for 5 h; since, the fluorescence intensity was unchanged without photobleaching, indicating their relatively strong photostability.

Based on the absorption spectroscopy results, the Tauc plot approach was used to determine and confirm the direct bandgap energy of these synthesized N-CDs, which is around 2.35 eV (or 527 nm). The reference standard quinine sulphate, dispersed in 0.1 mol of H2SO4 was used for the determination of the total quantum efficiency of the generated N-CDs and was calculated to be almost 65.50 percent, our group Abdullah et al., has previously published the same [89].

3.2 Structural and morphological properties of TiO 2 /N-CDs and CB/N-CDs composite

The detailed SEM and EDAX of N-CDs are illustrated in our previous work Abdullah et al. [89] as they demonstrated a size range of 5–8 nm, an interplaner distance of 0.34 nm and the doping concentration of 48.3% C, 32.6% O, 18% N, 0.2% Mg, 0.2% P, 0.2% S, 0.3% K, and 0.2% Zn incorporated into the anatase pristine tetragonal structure of TiO2 material. Here we have a proceeded with a full FTIR spectroscopy (500–3500 cm−1) to indentify the surface functional groups and edge states. The FTIR spectroscopy is shown in Fig. 2 and has demonstrated the incorporation of N-CDs into the edge sites of anatase TiO2 Let us begin with the composition of N-CDs as the broad peak at 3360 cm−1 is related to the O–H and N–H stretching while as a small peak at 2950 cm−1 is related to CH2 stretching, while as the peaks at 1642, 1537 and 1393 cm−1 are related to the C=O stretching in amides, N–H deformation in amides and OH bending in carboxylic groups and the small peaks at 1240, 1043 are associated with C-N and starching of C–O bonds, respectively. In addition to that, the small bands under 500 cm−1 showed a fever self heteroatom-doping elemental composition. The FTIR of TiO2 tells us that the broad peak at 3300 cm−1and another at 1628 cm−1 are related to O–H stretching and bending vibrations and a broad band under 1000 cm−1 belongs to the pure characteristic peak of TiO2. However, TiO2/N-CDs composite demonstrated all the peaks of N-CDs and a broad peak extended from 500 to 1000 cm−1 is associated with Ti–O–Ti/Ti–O–C vibrations, while as the narrow band at 2930 cm1 associated with C-H and represents the surface stabilization of carbon dots onto the TiO2 sample.

Fig. 2
figure 2

FTIR spectra of N-CDs, TiO2 and TiO2/N-CDs composite showing strong linking of N-CDs onto the surface of TiO2

Further we have checked the crystal structural morphology of TiO2/N-CDs composite by X-Ray Diffractometer at 0.154 nm wavelength using Cu K(β) radiation and the variation in the structure of TiO2 after doping with N-CDs is shown in Fig. 3. The results showed slight decrement in peaks positioned at 25.3° and 37.8° which are related to (101) and (004) planes of anatase phase clearly demonstrated the prevention of agglomeration of TiO2 particles, otherwise there is no significant effect of these N-CDs on the crystal structure of TiO2. Further the slight increment in the peaks positioned at 48.3°, 54.1°, 55.1° and 62.8° are related to the (200), (105), (211) and (204) planes which demonstrated that the N-CDs are attached at the edge surfaces towards lateral sides. In order to fully understand the structure of TiO2/N-CDs nanocomposite, the crystal structure is demonstrated in Fig. 4, where the N-CDs are attached to the surface of tetragonal structure of pure anatase phase of TiO2 material filling the mesoporous cavities in the TiO2 structure.

Fig. 3
figure 3

XRD spectroscopy of N-CDs, TiO2 and TiO2/N-CDs composite demonstrating successful linking of N-CDs in the lateral sides and in the mesoporous sites

Fig. 4
figure 4

Systematic structure of anatase phase and TiO2/N-CDs nano hybrid phase

However, in case of counter electrode the N-CDs as well as the CB is amorphous in nature therefore upon mixing them there is no significant variation in the nature of structural morphology, however the surface functional groups of N-CDs are added to the CB/N-CDs composite making them photoactive and more productive as charge carrier receiver and mediator catalyst for effective reduction of I/I3 while as, the PVDF binder provides a good adhesion between nanoparticles, carbon black and FTO glass to reduce the charge transfer resistance as well as the internal resistance which in turn provides long term stability of CB/N-CDs composite counter electrode. According to the previous studies the N-CDs are linked to the edges sites of carbon black (CB) and fills the pore sites and therefore enhances the charge carrier mobility and provides the large active surface area as well as the active sites for the efficient reduction of I3/I at the electrolyte/CE interface during the regeneration of dye molecules. Although, agglomerated tridimensional structure of CB/N-CDs composite is shown in Fig. 5.

Fig. 5
figure 5

Agglomerated tridimensional morphology of CB/N-CDs micro composite

3.3 Optical and EIS spectroscopy analysis of TiO 2 /N-CDs and CB/N-CDs composite

We have checked the optical properties of the as prepared TiO2/N-CDs composite material against pure TiO2 and N-CDs and the obtained results demonstrated variation in the UV absorption spectrum is shown in Fig. 6a, we have observed from the UV absorption spectroscopy that the absorption spectra shifted towards longer wavelength or shown an increment in the absorption band edge of hybrid TiO2/N-CDs from pure TiO2 material moving from 380 to 411 nm associated with the bandgap variation from 3.26 to 3.02 eV which is mainly ascribed to the involvement of newly formed Ti–O–C bond. However, we have also checked the fluorescence emission (PL) of TiO2 and TiO2/N-CDs composite at 290 nm excitation wavelength to check the effective electron transport mechanism within the TiO2/N-CDs composite and have found that after incorporating N-CDs onto the TiO2 surface the quenching of photo luminescence occurred, this means effective electron transfer has taken place from N-CDs to TiO2 or defect trapping or surface recombination through non radiative transition/Auger effect/phonon interaction effecting the efficiency of PL emission which is useful for the effective photocatalytic activity towards photocatalytic degradation of environmental toxic dyes proceeded in the current work and the overall quenching of hybrid material can be seen clearly in Fig. 6b.

Fig. 6
figure 6

a UV absorption of TiO2, N-CDs and TiO2/N-CDs. b PL emission of TiO2/N-CDs composite demonstrating non radiative recombination showing effective electron transportation

Further, we have done electrochemical impedance spectroscopy (EIS) to confirm the electron transfer resistance in DSSC’s. Figure 7 demonstrated the electrochemical impedance spectra of various DSSC’s at open circuit voltage illuminated under AM 1 sun light of 100 mW/cm−2 and a frequency range from 0.1 Hz to 100 kHz. Generally, the first gap represents the (Rs) the sheet resistance of FTO glasses and the contact resistance between FTO and TiO2/N-CDs, FTO and CB/N-CDs material. In addition, three semicircles can be seen in the spectra, the first semicircle in the high frequency side (L.H.S) represented the charge transfer resistance at the electrolyte-counter electrode interface (RCE), the second semicircle represents the charge transfer resistance (RCT) at the electrolyte-TiO2/N-CDs/dye interface and the third semicircle in the lower frequency side is associated with the characteristics of diffusion of redox electrolyte’s (I/I3) ionic concentration.

Fig. 7
figure 7

EIS spectroscopy of various prepared DSSC’s

The static resistance RS (Ω), charge transfer resistance at CE and electrolyte interface RCE (Ω) and charge transfer resistance at photoanode and electrolyte interface RCT (Ω) have been summarized in the Table 1 and based on mentioned data it is clear that the simple conventional DSSC system provided a maximum values of RS, RCE and RCT as compared with the other two DSSC’s indicated that the conventional DSSC offers maximum resistance to the current flow and also demonstrates the maximum recombination effect occurred here, hence decrease in Jsc and overall efficiency. However the second one showed almost the same RCE because of same electrolyte and counter electrode, but reduced RCT because of incorporation of N-CDs into the TiO2 sample resulted low resistance at interface and low recombination at photoanode hence increased efficiency of cell. While as in third DSSC the both RCE and RCT gets reduced by a considerable factor due to incorporation of N-CDs in the TiO2 and replace Pt by CB/N-CDs which possess larger active surface area and enormous active sites due to surface defects for the quick reduction of electrolyte at the CE interface and also by moderate charge transfer mechanism while as in photoanode the N-CDs have broadened the recombination time and blocked the dark current resulted a maximum performance of this novel type of DSSC system for long term usage.

Table 1 Table summarizing the various parameters of EIS spectroscopy of DSSC’s

3.4 Photovoltaic study

3.4.1 Modified photo-anode with carbon dots

To ensure proper adhesion between the fluorine doped tin oxide (FTO) glass and the photo anode material and to remove the impurities, the FTO glass slide was first cleaned in a bath sonicator using a soap solution, DI, and Hcl-Ethanol combination (1:10) for 15 min each. Here, the pure TiO2 and as prepared N-carbon dots were mixed together at the weight ratio of 7:3 in 10 ml of vinegar to reduce the surface tension for the max efficiency of DSSC. The mixture was then ultra-sonicated at 40 kHz for 25 min to form well dispersed slurry and then pasted it on FTO glass using doctor blade method to form a thin layer of this active material approximately 50 µm thick. The photoanode was further heated at 120 °C for 15 min and finally annealed at 500° for 25 min at a heating rate of 5°/min to form a well packed structure of the working electrode with 1 cm2 surface area, in order to enhance the absorption of TiO2 in the visible region and effectively separate photogenerated electron–hole pairs. This working electrode was kept in an airtight bag in the dark until further processing.

A simple TiO2 photo-anode was also prepared by using the above technique for comparison with a modified anode.

3.4.2 Electrochemical activity of carbon dot modified counter electrode

The FTO glass slides were cleaned in an ultrasonic water bath with acetone, ethanol, and de-ionized water and dried in an open air. The FTO glass plate was chosen as the electrode substrate, due to its higher stability, retaining (electrical conductivity, surface roughness and transmittance) compared to ITO glass plates after heat treatment of 450 °C (annealing treatment) because ITO glasses degrade after heat treatment above 350 °C. Form a mixture of the prepared carbon nano composite with carbon black and a binder (PVDF) in the Weight% of 90:5:5 and dispersed in solution of 5 ml pure ethanol and DI water in the ratio of (1:1). To create a well-dispersed suspension, the mixture was ultrasonically treated for 30 min. The as-prepared slurry was applied using the doctor blade technique to the pretreated FTO glass substrate, dried at 80 °C for 15 min in a vacuum oven, and then sintered at 450 °C in the open air for 30 min at a heating rate of 5°/min, and will be used as a counter electrode in the fabrication of DSSC with an effective surface area of 1 cm2. After that, it was put in an airtight bag for further processing and comparison purposes. Similarly, platinum paste was applied to the conducting glass substrate (FTO) using the doctor blade technique method where thickness was controlled by the use of scotch tape, for creating the reference Pt electrode. The reference Pt electrode was then dried and sintered in an open air at 450 °C for 30 min.

The electro chemical measurements were performed using a potentiostat in an electrochemical cell with three electrodes immersed in an electrolyte solution. Cyclic voltammetry measurements were used to analyse the prepared CE in a three electrode cell with platinum serving as the counter electrode, Ag/AgCl serving as the reference electrode, and one of the constructed CEs serving as the working electrode in 2 M of KOH at a scan rate of 10 mV/s. The results demonstrated that the substantial electrochemical oxidation and reduction peaks are at 0.36 and 0.25 V and further, the −ve slope in the Mott Schottky curve, suggests the relevance of the P type character of produced N-CDs. CV was done in the dark as well as under visible light irradiation at a same scan rate of 10 mV/s, showing an improvement in the photocurrent by approximately 8–9% and has slightly shifted the oxidation peak towards higher potential and reduction peak towards lower potential. The plots of CV and Mott schottky curves are shown in Fig. 8a and b respectively, indicating that this P type CE undergoes both oxidation and reduction and can be utilized in a DSSC solar cell as a counter electrode to replace expensive Platinum as electrode material. The prepared N-CDOTs have bandgap of 2.35 eV as calculated by Tauc plot method and the corresponding band edges (valance and conduction band) are calculated by cyclic voltammetry data set means by Eonset reduction (0.31 V) and Eonset oxidation (0.32 V) potential. Using formula’s (1 and 2), we can easily calculate the band edges, and the calculated valance and conduction band edges are − 4.98 eV and − 2.63 eV.

$${\text{E}}_{{\text{CB}}} = - \left( {{\text{E}}_{{\text{ONSET}}\,{\text{OX}}} + {4}.{66}} \right)\,{\text{eV}}$$
(1)
$${\text{E}}_{{\text{VB}}} = - \left( {{\text{E}}_{{\text{CB}}} - {\text{E}}_{\text{g}} } \right).$$
(2)
Fig. 8
figure 8

a Cyclic voltagram of N-CDs at 10 mV/s scan rate in dark as well as in visible light irradiation b Mott Schottky curve of the N-CDs/CB on NF, illustrating negative slope which shows the P type character of nanomaterial

3.4.3 Assembling of DSSC

The sintered modified photo anodes were incubated with Di-tetrabutylammoniumcis-bis -(isothiocyanato) bis (2,2′-bipyridyl-4,4′-dicarboxylato) ruthenium(II) (N719) dye in ethanol solution (0.001 M/L-1) for 24 h. Following the dye's adsorption, the film was cleaned with 100% ethanol to remove any remaining dye and unmoistened in hot air furnace for 24 h at 40 °C. The DSSCs were constructed utilising TiO2 and TiO2/N-CDs complex photo-anodes with various counter electrodes (CEs), such as conventional Pt and above mentioned nitrogen doped carbon dot mixed with carbon black CE, independently. The Solaronix thermal polymer spacer (thickness = 100 μm’s) was employed between the electrodes to prevent short-circuit by a hot press at 110 °C. Through two tiny holes that were bored on the CE side, polyethylene glycol based I/I3− redox electrolyte was pumped into the DSSCs. Surlyn strips were finally used to plug the holes and the resultant active area was 1 cm2 and the systematic picture of this device is shown in Fig. 9.

Fig. 9
figure 9

Schematic diagram of a DSSC solar cell tailored with CCQDs as co-active material in photo anode along with N719 dye and hybrid CB/N-CDs as CE

3.4.4 Photovoltaic performance of DSSC

The synthesized heteroatom doped N-CQDs + TiO2 composite was used to prepare dye sensitized solar cells in two different combinations with different counter electrodes (CE): like Platinum and CB + N-CDs, modified CE on FTO glass besides that, another cell with a simple TiO2 based photoanode and Pt as cathode for reference comparison. In a conventional DSSC system, photogenerated electrons are created by solar radiation, and travelled from the sensitizer dye N719 to the conduction band of TiO2, and then percolate through TiO2 to reach the cathode passing through FTO glass electrode. To allow electron flow, the band alignment should be positioned appropriately. In the next two configurations, the NCQDs (30%) was used as a co-active material with pure TiO2 semiconductor material, resulted in a reduced bandgap of photoanode complex from pure TiO2, lead to an extension of the adsorption band width and covering a larger portion of the visible region of the solar spectrum. This results in a quick extraction of photo-emitted electron from sensitizer dye along with a decreased recombination rate and efficient transfer thereby, enhanced the open circuit voltage (Voc) hence gain in overall photo conversion efficiency of the cell. Further, the carboxylic groups on the N-CDs are firmly affixed to the TiO2 surface and improved the electron transport mechanism, therefore enhancing photocurrent density. In addition, the prepared N-CDs exhibited excitation dependent photoluminescence behavior, which acted as a secondary source, and broadened the absorption regions towards the UV portion of sun light which in turn lead to a higher photon to electron injection ratio and the enhanced electron transport mechanism of the DSSC device is shown in Fig. 10. However, at the counter electrode the simple Pt based electrode accepts the electron from the external circuit and transferred to the electrolyte for the effective reduction of I/I3 at the interface during regeneration of sensitizer dye, but the use of CB/N-CDs in counter electrodes works differently, the diffused light inside the cell photo excites the electrons in the valance band of N-CDs and quickly transfers them to the reduction of I/I3 at the interface besides accepting the electrons from the external circuit, thus reduces the over potential at the interface results lower transfer resistance at the electrolyte and counter electrode proceeded with higher power efficiency. Thus N-CDs acted as a generator and mediator of for transport of mobile charge carriers.

Fig. 10
figure 10

Energy level diagram showing the favorable influence of N-CDs/TiO2 as co-active material in the photoanode as well as CB/N-CDs in photocathode and the charge transfer mechanism at both Anode and Cathode

The demonstration of current density versus voltage (J–V) graphs of DSSC shown in Fig. 11, was analyzed during one solar irradiation to assess the cell's photovoltaic abilities, whereas the performance of the fabricated DSSC was measured using a multimeter. It's interesting to note that the N-CDs (acts as a co-active material) combined with TiO2 as photo anode material along with modified (N-CDs + CB) CE showed more efficiency than a DSSC solely made by TiO2 and platinum CE. The photoluminescence (PL) caused blue shifting and a depression in the energy bandgap as the N-CDs demonstrated strong absorbance from C=O and C=N transitions following an increase in the amount of C=O and C=N moieties. This boosts light harvesting processes over a wider range of the visible light and created well-distinct charge carriers, and offered a secondary light source to the active material thus, enhanced the photoconversion efficiencies of 13.05% and 10.96% which are 2.5 and 2 times greater than simple TiO2 based DSSC. Here we have used Eqs. (3) and (4) to compute the devices' fill factors (FF) and photoconversion efficiencies (η) based on the calculated J–V plots.

$${\text{FF }} = \, \left( {{\text{Jmax }} \times {\text{ Vmax}}} \right)/\left( {{\text{Jsc }} \times {\text{ Voc}}} \right)$$
(3)
$$\eta = \left( {{\text{Jmax }} \times {\text{ Vmax}}} \right)/\left( {{\text{Pin }} \times { 1}00} \right)$$
(4)

where Jmax, Vmax, Jsc, Voc and Pin represent the current density, voltage, short-circuit current density, open-circuit voltage and incident light power (100 mW cm−2) respectively.

Fig. 11
figure 11

J–V characteristics of all prepared DSSC’s

A number of recent reports and their findings have been summarized in a table form shown in Table 2, in comparison to our present work about improving the efficiency of DSSC against conventional DSSC system. Various procedures have been tried to improve the conventional DSSC system by modifying the photoanode, like adding superior photoactive nano materials to the existing photoactive semiconductor titanium dioxide (TiO2), in order to harvest maximum portion of sun light into electrical energy and the factors like reducing bandgap, reducing back recombination effect, maximizing absorption band width and recombination time, superior charge generation and transfer mechanism and reducing transfer resistance between the various components of the DSSC system are the key parameters for achieving the desired efficiency of the DSSCs, besides that replacing the conventional platinum (Pt) metal as a cathode material by the carbonous nano materials is also a necessity due to its higher price, rarely found and long term stability issues in the DSSC system for the purpose of achieving maximum potentiality of these solar cells in the long run. According to the previous data, efficiency of DSSC system has been improved after incorporating different photoactive materials to simple base TiO2 material for instance Singh et al. [90] achieved a power efficiency of 8.80% by incorporating modified TiO2-rGO-(150 °C) photoanode against TiO2-pristine GO photo-anode with Pt as cathode with 7.35% power efficiency this is due to the fact of increased photoactive sites, higher effective surface area and better active charge transportation of reduced graphene oxide and titanium dioxide hybrid. In another study, Jahantigh et al. [91] used the single layer graphene quantum dots (SLGQDs)/TiO2 composite in place of pure TiO2 as photoanode and achieved a higher photovoltaic performance of 8.92% against 0.12% of pure TiO2. While as Padmanathan et al. [92] designed and fabricated TiO2/CDs (5%) as photo anode with Pt as cathode in DSSC system which demonstrated almost 9.21% power efficiency with max FF of 69% against 5.64% of conventional TiO2 based DSSC system besides that, recently Samir et al. [93] managed to upgrade the conventional photoanode TiO2 by doping with the nitrogen doped carbon dots and achieved the maximum PCE of 10.87%against the conventional bare DSSC which has provided only a PCE 10.10%, in that paper he has also added N-CDs to the N719 sensitizer dye and achieved a PCE of 12.03%, later he tested the same DSSC in diffused and low intensities and acquired max PCE of 18.59% and 24.22% as this is the maximum efficiency until now. But our work has demonstrated an efficiency of 11.07% under 1 sun with a JSC of 20.00 (mA/cm−2) but a considerable amount of output power filfactor (FF) of 72.4% by adding these novel N-CDs to the photoactive TiO2 sample as photoanode, as this performance is mainly attributed to the higher photoelectron generation with superior charge separation and efficiently transferring them to the conduction band of TiO2, besides that, the deep trap sites in TiO2 structure are filled with these N-CDs which are strongly linked to the edge sites of TiO2 thereby, reducing the band gap, making effective charge transfer process and also reduced the dark current as well. Further the charge transfer resistance has decreased due to the incorporation of these N-CDs in the photoanode, with the electrolyte resulted higher efficiency of this DSSC system.

Table 2 A number of recent reports and their findings have been summarized in a table form in comparison to our present work about improving the efficiency of DSSC against conventional DSSC system

In addition, the counter electrode needs to be replaced by a cheap and long term stable carbonous nano material for instance Yang et al. [94] replaced Pt counter electrode in high performance quantum dot sensitized solar cell by leadsulfide and carbon black composite (PbS/CB) and in another same cell platinum is replaced by only CB as counter electrode deposited on the FTO glass and achieved a total photovoltaic performance of 3.91% and 1.98% against platinum based counter electrode DSSC which showed PCE (photoelectric conversion efficiency) of only 0.18%. In another study Pan et al. [95] replaced platinum counter electrode material with graphene-carbon black (1:3) composite and achieved a total PCE of 5.99% against Pt based counter electrode which also showed comparable result of 6.09% but with lower current density and higher FF than former one. In another study Chang et al. [96] mixed carbon black (8–15%) with PVDF pasted on FTO glass as the counter electrode replaced conventional Pt in N719 based DSSC and achieved a maximum PCE of 8.35% against Pt based DSSC system which demonstrated comparable performance of 8.29%. However, in our work we have also replaced the costly and slowly degradable Pt counter electrode by mixing N-CDs with carbon black and a binder PVDF in the percentage ratio of (90:5:5) fabricated on an FTO glass and achieved a total PCE of 13.22% against the Pt based same DSSC, that has demonstrated a total PCE of only 11.07% therefore an improvement of almost 11% in total conversion efficiency, by replacing Pt as a precious and long term degradable material by these cost effective and vastly available novel N-CDs added with CB carbonous material with utmost long term stability, with the iodide/triiodide electrolyte. This is possible only due the effect of efficient transfer of charge carriers, large active surface area, huge no of active sites, photo emitted electron availability, reduced charge transfer resistance and reduced over potential of redox species at electrolyte interface. All these factors have contributed equally and resulted in the overall performance of this novel DSSC system with long term stability against the conventional long term unstable DSSC system in which TiO2 acted as photo anode and Pt as counter electrode sensitized in N719 dye. Thus we can replace the TiO2/N-CDs as photoanode and N-CDs/CB as photo cathode replacing TiO2 and precious Pt with these carbonous nano materials for enhancing the photovoltaic performance of this novel type DSSC system against the conventional DSSC system.

3.4.5 Advantages and disadvantages of TiO 2 /N-CDs composite as photo anode and N-CDs/CB composite as photo cathode in this novel DSSC

The current research on 3rd generation conventional system technology for dye–sensitized solar cells (DSSC) is going on to improve the power efficiency and the other essential parameters to commercialize the DSSC’s globally which are at its early stage now. The current conventional system employs TiO2 as photo anode and platinum as cathode besides using various other dyes to work as sensitizers. It has been found that the conventional system needs to be replaced by new methods of fabrication technology and by using novel good photo-catalytic materials instead of using only TiO2 as anode and platinum as cathode which owe various potential draw backs such as fast electron recombination or back electron recombination with the electrolyte and significant electron transfer resistance that have enormously degenerated the performance of DSSC and at the cathode the platinum is slowly oxidised in iodide/triiodide electrolyte thereby destroying its long term stability in addition to that of expensive and rear material. Now our work has provided an alternative pathway/remedy by using TiO2/N-CDs composite as photo anode and N-CDs/CB composite as photo cathode in dye-sensitized solar cells (DSSC), so that the back recombination effect and significant transfer resistance should be addressed at both the photo anode and at the cathode, thus we have replaced expensive platinum by novel N-CDs/CB composite to provide the long term stability of the cell as well as lower transfer resistance at cathode junction besides the freely available/cheap material. The slow oxidation of platinum metal in the iodide/triiodide electrolyte interface resulted barrier to long term stability of DSSC cell in accordance with the non metallic behavior of N-CDs/carbon black nano complex carbonous material, which have less tendency to react with the electrolyte system, hence maintains the long term stability and performance of DSSC,s.

The advantages and disadvantages of our novel TiO2/N-CDs composite as photo anode and N-CDs/CB composite as photo cathode in dye-sensitized solar cells (DSSC) is given below:

Advantages:

  1. 1.

    The carbon dots have many enormous merits like intensive quantum yield, low toxicity, simple preparation and easy surface functionalization, so it is economically inexpensive to use these nanomaterials as photoactive materials with various metal oxide materials to increase the photoactive efficiencies of MOS (metal oxide semiconductors). Therefore, the TiO2/N-CDs nano-composite as photo anode provides sufficient number of surface functional groups and surface active trap sites, which has broadened its UV–Vis absorbance band and red shifted emission band resulting increased performance of DSSC cell in harvesting solar energy at both the ends of DSSC.

  2. 2.

    The N-CDs incorporated in the TiO2 structure and also in the carbon black helps in tight packing of photoactive material (TiO2) and carbon black at both the electrode surfaces and also occupy the deep trap sites thus helps in the electron separation and transport mechanism and also avoids the contact between the electrolyte and the FTO glasses at both the ends which causes the corrosion or degradation of FTO glass and also blocks the dark current to flow, results in the overall efficiency of DSSC cell.

  3. 3.

    The heteroatom doping of N-CDs helps in the surface bonding with TiO2 and reduces the flat band gap of TiO2 thus absorbs the maximum portion of visible light therefore, promotes the photo excited charge generation and provide large number of transfer paths for electron transport to conduction band of TiO2 layer and also enhances the forward reduction reaction thereby minimizing the photoluminescence intensity of the composite material as can be seen in the emission spectra of composite material and extends the lifetime of excited electrons which decreases the recombination rate of electron hole pairs and therefore provides the higher short circuit current density, open circuit voltage and thus enhances the corresponding power generating efficiency of DSSC.

  4. 4.

    In both the electrodes the N-CDs acts as charge donor and mediator for quick transfer of charge carriers upon absorbing visible light and reduced the over potential at both the electrode electrolyte interfaces which has decreased the charge transfer resistance as compared to conventional TiO2/Pt based DSSC and hence increase in the efficiency of DSSC. The efficiency of DSSC with this modified photoanode and photo cathode was 13.22% with Voc, Jsc and FF of 0.780 V, 22.90 mA/cm2 and 0.74 values and efficiency of the DSSC based on modified anode TiO2/N-CDs and Pt cathode was 11.07% with Voc, Jsc and FF of 0.765 V, 20 mA/cm2 and 0.724 against the conventional DSSC based on TiO2 as anode and Pt as conventional counter electrode was 5.42% giving open circuit voltage and current density of 0.750 V and 10.10 mA/cm2 while as FF is only 0.715. The results demonstrated that modified photo electrode and Pt based DSSC provides almost 2 times higher performance than simple conventional DSSC as prepared, which is mainly understood by charge generation and extraction due to incorporation of N-CDs into the TiO2 photoanode. However, the DSSC with both the modified electrodes demonstrated almost 2.5 fold increase in power efficiency as compared to conventional DSSC this is because of the fact that upon absorption of photons at counter electrode by nitrogen doped carbon dots thereby, reduces the over potential for reduction of I3 to I at the electrode and electrolyte interface which has also reduced the charge transfer resistance at the interface thus they acted as both generators and donors of charge carriers resulted more efficiency of DSSC.

  5. 5.

    The variation of charge transfer resistance by these N-CDs incorporated in TiO2 as modified photo anode and carbon black as modified cathode are demonstrated by EIS spectroscopy are 75Ω and 38Ω at photo anode and counter electrode with the redox electrolyte against the conventional DSSC showing 104 Ω and 53 Ω.

Disadvantages:

  1. 1.

    The electron density increases as the concentration of redox electrolyte, but as the concentration increases the electrolyte breaks to diiodide radicals by light absorption as the N-CDs are hydrophilic in nature however they provide a blocking layer for back electron recombination but the hydrophilic character of N-CDs does not provide a full blocking of back electron recombination, so to avoid such abnormality the cardon dots should be hydrophobic in nature.

  2. 2.

    The loss of electrolyte by leaking causes the degradation of solar cell and decreases active surface area of DSSC cell hence reduction in efficiency and needs refilling periodically, in order to avoid such a loss the gel type electrolyte should be used.

  3. 3.

    At the cathode the N-CDs/CB deposited on FTO glass acts as modified cathode and works well however the optimal ratio between carbon dots and carbon black can be challenging and affects the electron transport and charge collection efficiency.

  4. 4.

    The carbon dots used as photoanode and as photocathode is at its early stage now, so long term stability issues could be a challenging question towards the long term performance of DSSC’s, to remove that ambiguity a sophisticated method of fabrication of these N-CDs at both the electrode surfaces.

  5. 5.

    The use of TCO glass shall be preferred against ITO and FTO glasses because the former provides both the long term chemical stability and lower sheet resistance (0.5Ω) against harsh operating conditions as compared to the latter two.

  6. 6.

    The use of sealant materials to seal the DSSC cell against leakage as their sealing capability decreases with temperature variation and pressure developed inside. To avoid such an abnormality a sealant should be produced that will be strongly bonded with the glass electrodes.

3.5 Degradation of MB

3.5.1 Preparation of modified self-heteroatom doped N-CDs/TiO 2 hybrid photo-catalyst

Initially, 30 ml of DI water was used to disperse 1 g of TiO2 powder and 500 mg of previously synthesised heteroatom doped carbon dots in the ratio of 2:1. A well-dispersed suspension was then obtained by ultrasonically processing the combination for 30 min at a frequency of 40 kHz in an ultrasonic bath. To acquire the necessary photocatalyst, this solution was transferred to a glass beaker and micro-waved at 900 W for 5 min, then the final product was centrifuged at 5000 rpm, and washed with DI water and ethanol three to four times, further dried at 70 °C in an oven for 24 h. Then, the photocatalyst was sealed in a bag and stored in dark place for further processing.

3.5.2 Photocatalytic activity of heteroatom doped N-CQDs/TiO 2 hybrid nanocomposite

Under UV illumination from a mercury lamp with a wavelength of 254 nm, towards the photocatalytic degradation of Methylene blue by heteroatom doped CDs/TiO2 composite material was carried out, as a consequence of the multi heteroatom doping, enormous active redox sites and good fluorescence performance of the composite. Herein, the highest performance of the amalgam of TiO2 and heteroatom doped N-CDs (TiO2/N-CDs) was explored as a photo-catalyst for the UV degradation of MB. Here we have used 100 mg of the hybrid photocatalyst mixed with 100 mg/L of MB in a glass beaker. The mixture was then dissolved for 10 min before incubating it for 24 h at room temperature, until full adsorption desorption of dye molecules took place. For comparison purposes the hybrid photocatalyst was replaced with N-CDs and the same steps were followed. These solutions were taken individually and kept under UV (254 nm) LED light for approximately 18 min, and 1/3 of the sample was taken every 6 min for photo absorbance measurement and the results are shown in Fig. 12a, b after irradiation take place towards photo-degradation of MB. Only one measurement was performed after 18 min with the reference catalyst N-CDs.

Fig. 12
figure 12

a UV absorbance of MB with short UV irradiation time in presence of N-CDs and hybrid TiO2/N-CDs photocatalyst b discoloration of MB due to photocatalytic activity of N-CDs/TiO2

From the results shown, it is clear that the prepared heteroatom doped carbon dots degraded the MB to only 30%, but, the TiO2-N-CDs nanocomposite showed higher degrading performance of 85% after 18 min of short UV irradiation period, which is approximately 2–3 times higher that of reference N-CDs. TiO2 nanoparticles and NSP-CDs have worked together synergistically to increase the photocatalytic activity of TiO2/N-CDs. In accordance with the electrochemical activity of hetero atom doped N-CDs, the heteroatom contained functional groups in N-CDs resulted in rich edges, high-density redox-active centres, and defects and have the potential to increase overall catalytic activity by transferring the photoexcited electrons from TiO2 to N-CDs henceforth, minimizes the recombination of electrons and holes.

In order to fully understand the photocatalytic capability, the photo-degradation and reaction degradation kinetics are illustrated in Fig. 13a, b, which clearly demonstrate pseudo-first order kinetics: − ln(C/C0) = kt, where k (min−1) is rate constant, and t (min) is the irradiation time. The degrading reaction rate constants k1 and k2, clearly indicated that Pure N-CDs as photocatalyst has a low k1 = (0.020 min−1) as compared with the hybrid N-CDs/TiO2 nanocomposite which showed a maximum of k2 = (0.1068 min−1) and hence demonstrated an outstanding performance rather than pure N-CDs as catalyst.

Fig. 13
figure 13

a Rate of photo-degradation of MB due to N-CDs/TiO2 nanocomposite b photo-degradation kinematics demonstrating first order kinetics with high rate constant of N-CDs/TiO2 nanocomposite as compared to only N-CDs photocatalyst

Heteroatom doped N-CDs, a P-type semiconductor as demonstrated by the electrochemical activity discussed above and the Fermi level of N-CDs is lower than TiO2 which caused the electrons to diffuse from the N-CDs to the TiO2 until the two Fermi levels are balanced as soon as the N-CDs were deposited onto the TiO2 edges, which resulted in the creation of a p–n junction and a built-in electric field E from TiO2 towards the N-CDs and also caused the N-CDs energy band to shift upward thereby reducing the gap difference. The photodegradation process started as soon as the short UV light excited the N-CDs/TiO2 hybrid photoanode. The nanohybrids responded through the creation of photogenerated carriers and the holes collected on the VB of TiO2 continue to migrate towards the VB of the N-CDs, while as the photoinduced electrons in the CB of the N-CDs migrate to the CB of TiO2, driven by the p–n junction's inherent electric field and hence further reduced the energy level difference between the N-CDs and TiO2. Therefore inhibiting direct recombination of the photogenerated electron–hole pairs, while as the electric field efficiently and quickly transferred the photogenerated carriers, leaving the free charges fully engaged in the oxidation process of the dye molecules and hence, accelerating the pollutant degradation. It is a well known fact that photogenerated electrons in the CB have the ability to form ·O2 and the photogenerated holes on the VB can oxidise water to produce ·OH radicals, both of which are essential for the breakdown of dye molecule structures and can be seen in Fig. 14, these active species eventually converted the dye molecules to CO2 and H2O. Thus the complex of N-CDs/TiO2 complex behaves a good photocatalyst for degradation of environmental toxic dyes.

Fig. 14
figure 14

Mechanism of photo degradation of azo dyes

The prepared N-CDs contain various doping agents such as nitrogen, oxygen and carbon in bulk quantity as discussed already but fewer percentage of other elements like phosphorus, sulpher and zinc that have provided rich active sites and surface dislocations that will help in the efficient electron transport for the degradation of toxic dyes. However, various N-CDs systems have been already tested with varying doping percentages of different elements for the degradation of dyes. Table 3 has summarized the efficiencies of different N-CDs in TiO2 photoactive material system for comparison purposes with this present work: the comparative analysis between various carbon dot systems mixed with pure TiO2 showed different degradation rate constants against the various organic compounds and dyes [97,98,99,100,101,102,103]. However, the pure TiO2 thin film as a solo photocatalyst has been recently reported in (2023) with reference number [104] demonstrated photocatalysis of MB and degraded only 20% of methylene blue in 300 min, but our work has demonstrated 85% degradation of MB in only 18 min of irradiation time and the highest degradation rate constant, because of the efficient hydrolysis of water thus, produced reactive oxygen species and H+ ions that have catalyzed the dye molecules more efficiently and deteriorated the dye molecules by the process of efficient transfer between N-CDs and TiO2 due to their varying band positions.

Table 3 This table has summarized the efficiencies of different N-CDs in TiO2 photoactive material system for comparison purposes with our present work

4 Conclusions and future work

This work has examined a general overview of green, microwave irradiated process for production of heteroatom-doped N-carbon dots from pumpkin seeds, which has been recently published by us associated with the variety of characterization techniques, including UV–Vis absorption, fluorescence spectroscopy, X-ray diffraction (XRD), scanning electron microscopy (SEM), Fourier transform infrared spectroscopy (FT-IR), and energy dispersive X-ray spectroscopy (EDX). However, a number of essential benefits have been accessed with this one-step synthesis method: it is straightforward, economical, efficient, fast production and yields amazing fluorescence quantum yield of 65.50%. Herein, the present study of modified TiO2 with N-CDs based photoanode along with the modified CB/N-CDs CE exhibited an overall efficiency of 250% in accordance with the simple TiO2/N719 DSSC under one sun, and will contribute towards development of solar cell technology. Further, under short UV 25 nm illumination, the N-CDs have further enhanced TiO2's photocatalytic activity for the disintegration of methylene blue within only 18 min of exposure time, deteriorated 85% of the MB. Thus this novel nanomaterial has enormous scope towards the future of this planet.

We have assembled the novel DSSC replacing conventional DSSC system in which we have replaced both the photoanode and cathode by photocathode to maximize the power efficiency of this solar cell and we succeeded to do this but the power efficiency is not so enough that it can be used commercially, so it needs future directions and also indentify the challenges in attaining the long term active usage and accessing considerable efficiency in the near future for their promising perspectives.

Future directions for DSSC:

  • Efficiency improvements: Efficiency can be improved by the use of non toxic organic dyes that absorb most part of sun light including the UV and infrared part, besides this, the materials used in photoanode and at counter electrode needs to be optimised for better efficiency of DSSC. In addition to this the architecture needs to be optimised or replaced by new fabrication methods.

  • Stability issues: The DSSC’s needs to be more stable and durable for their long term performance especially in harsh environmental conditions.

  • Scalability and cost reduction: The need for novel manufacturing techniques that allow large scale production of these DSSC’s at lower costs will enable commercial viability.

Challenges facing DSSC’s:

  • Efficiency limitations: The DSSC’s offer several advantages like low cost fabrication and flexibility but their efficiency is lower as compared to that of silicon-based solar cells etc.

  • Stability issues: The DSSC’s have certain issues like electrolyte leakage, dye degradation and electrode corrosion, therefore limiting their long term stability and reliability.

  • Material availability: The DSSC’s system needs some precious and rare materials like ruthenium based dyes and some electrolytes that have certain environmental issues, demanding new alternative materials.

Promising perspectives:

  • The perspectives of DSSC’s are framed by their convenience and ongoing research work. They should be flexible and versatile for their use in wearable devices, portable devices.

  • Low cost fabrication and low light performance for indoor and cloudy environments

  • They should support tuning properties to work in different environmental conditions and are environmentally sustainable.

  • The AI should be used to provide new fabrication techniques and in finding new photoactive stable materials that offer promising development of high performance DSSC’s.