Research Article

# Guest-Host Interactions in Symmetrical Carboxy Heptamethine Cyanine Dyes-Titanium Dioxide Systems: Synthesis, Theoretical Calculations, Aggregation Properties, and Application in Dye-Sensitized Solar Cells

Rodrigo da Costa Duarte<sup>1</sup>,<sup>Matheus</sup> Costa de Oliveira,<sup>2</sup> Josene Maria Toldo<sup>3,4</sup>

Paulo Fernando Bruno Gonçalves<sup>3</sup>,<sup>Marcos</sup> José Leite Santos<sup>3,4</sup>

and Fabiano Severo Rodembusch<sup>1</sup>

Correspondence should be addressed to Marcos José Leite Santos; mjls@ufrgs.br and Fabiano Severo Rodembusch; roembusch@iq.ufrgs.br

Received 11 September 2020; Revised 8 December 2020; Accepted 9 January 2021; Published 27 January 2021

Academic Editor: Takuya Fujimura

Copyright © 2021 Rodrigo da Costa Duarte et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

In this work, the role of deoxycholic acid (DCA) as a coadsorbent was investigated in the sensitization of mesoporous TiO₂ layers (host) with symmetrical carboxy heptamethine cyanine dyes (guest). Different approaches have been tested, aimed at reducing the H-aggregation and minimizing the competition between cyanine molecules and DCA for active sites of the host, thus improving solar cell efficiency. Heptamethine cyanines containing carboxylic anchoring groups were obtained with good yields. The cyanines present UV-Vis absorption in methanol and dimethylformamide solutions ascribed to fully allowed electronic transitions (¹ππ*), as well as fluorescence emission in the NIR region, with any evidence of aggregations in both ground and excited states. TD-DFT calculations were also performed in order to study the geometry and charge distribution of these compounds in their ground and excited electronic states. Solid-state photophysics indicates that the cyanines showed excellent adsorption on TiO₂, which can be justified by the presence of the -COOH moieties in the structure. Photophysical measurements have revealed the best concentrations of dye and DCA, which resulted in efficient inhibition of cyanine H-aggregates on the TiO₂ surface in addition to allow large dye loading. HOMO and LUMO energy levels of the dyes were identified by cyclic voltammetry, showing oxidation and reduction potentials within acceptable limits for application as a photosensitizer in dye-sensitized solar cells (DSSCs) based on a TiO₂ mesoporous photoanode. Assembled DSSCs have shown a large improvement of the electrical parameters and efficiency when a balance between dye aggregation and the competition to the host active sites was reached.

<footnote n="1"><sup>1</sup>Grupo de Pesquisa em Fotoquímica Orgânica Aplicada (GPFOA), Instituto de Química, Universidade Federal do Rio Grande do Sul, Av. Bento Gonçalves 9500 CEP 91501-970 Porto Alegre RS, Brazil</footnote>

<footnote n="2"><sup>2</sup>Laboratório de Materiais Aplicados e Interfaces (LAMAI), Instituto de Química, Universidade Federal do Rio Grande do Sul, Av. Bento Gonçalves 9500 CEP 91501-970 Porto Alegre RS, Brazil</footnote>

<footnote n="3"><sup>3</sup>Grupo de Química Teórica e Computacional, Universidade Federal do Rio Grande do Sul-Instituto de Química, Avenida Bento Gonçalves, 9500, CP 15003, CEP 91501-970 Porto Alegre RS, Brazil</footnote>

<footnote n="4"><sup>4</sup>Aix Marseille University, CNRS, ICR, Marseille, France</footnote>
# 1. Introduction

Heptamethine cyanines are organic cationic or neutral compounds, structurally constituted by two heterocyclic nitrogenous portions interconnected by a polymetallic chain [1]. This structural configuration gives these compounds bands of absorption and fluorescence emission that vary from 700 to 1000 nm and can be modulated according to the number of vinyl groups present in the unsaturated chain [1]. Due to their photophysical properties in the near-infrared, this class of dyes has been explored in many technological applications, such as in hybrid solar cells [2] and nonlinear absorbing materials [3, 4], and in bioanalysis, such as enzymatic assays, immunoassays, cancer detection, diagnosis modalities, identification of metallic ions, and pH studies, and as a drug carrier [5-10]. Yet, special attention has been given to heptamethine cyanines in dye-sensitized solar cell applications [11-17]. These metal-free sensitizers can present some advantages over ruthenium-based complexes, commonly used for sensitization: they are much cheaper and have higher molar extinction coefficients, in addition to present absorption at longer wavelengths [18], and their molecular design—and consequently their obtention—can be easily customized. Nevertheless, the well-known easy formation of aggregates in heptamethine cyanines [19, 20] is a major drawback in the particular for applications in DSSC, resulting in decreased solar cell performance [2, 21].

To reduce the formation of aggregates on the photoanode, some compounds known as coadsorbers can be applied as additives in the sensitizing dye solution [2, 21], such as chenodeoxycholic acid (CDCA) and deoxycholic acid (DCA). Previous works have shown that a lower concentration of the coadsorbent already plays a significant role in solar cell efficiency, while by increasing the concentration, the contribution of H-aggregates is reduced and the solar cell efficiency increases [20, 22]. In the case of heptamethine cyanines (guest) adsorbed on TiO₂ mesoporous film (host), as presented by Ziółek et al., the gain in efficiency can be explained by taking the excited state dynamics of the components into account.

In this paper, we study the effect of aggregation of heptamethine cyanine symmetrical dyes (guest) on TiO₂ nanoparticles (host), applying deoxycholic acid (DCA) as a coadsorbent to evaluate the suppression capacity of the dye aggregation. Also, the experimental and theoretical photo-physical characterizations of these compounds are presented and discussed, and sensitized solar cells were assembled with an optimized dye:coadsorbent ratio.

# 2. Experimental

## 2.1. Material and Methods
p-Aminobenzoic acid, 3-methyl-2-butanone, sodium acetate, and SnCl₂·2H₂O were purchased from Sigma-Aldrich. NaNO₂, HCl, MeOH, and CH₃COOH were acquired from Synth. POCl₃ and iodonmethane were acquired from Sigma. 4-Methylcyclohexanone, 4-ethylcyclohexanone, and 4-tert-butylcyclohexanone were acquired from Alfa Aesar. Thin layer chromatography was performed using Silica Gel 60 F254. Column chromatography

was performed using Silica Gel 60 Å (70-230 mesh). Infrared spectra were obtained with a Shimadzu-IR PRESTIGE-21 spectrometer in the NaCl window. The acquisition was made at room temperature with 20 scans and 4.0 cm⁻¹ resolution. ¹H and ¹³C NMR analyses were performed with a Bruker Scientific apparatus operating at 400 MHz for ¹H and 100 MHz for ¹³C or a Varian VNMRS 300 MHz spectrometer operating at 300 MHz for ¹H and 75 MHz for ¹³C using deuterated dimethylsulfoxide (DMSO-d₆) or chloroform (CDCl₃). Chemical shifts (δ) were measured in ppm, and coupling constants (J) in Hz. ¹H NMR spectra were expressed regarding their multiplicity (s, singlet; d, doublet; m, multiplet), coupling constant, and relative number of hydrogens. UV-Vis absorption spectra were obtained with a Shimadzu UV-2450 spectrophotometer in a 10⁻⁶ M solution at a spectral resolution of 0.1 nm. Solid-state measurements were obtained on a Shimadzu UV-2450 spectrophotometer using an ISR-2200 Integrating Sphere Attachment. The baseline was obtained using BaSO₄ (Wako Pure Chemical Industries, Ltd.). In these experiments, the samples were treated as powder. All measurements were carried out at 25°C. Steady-state fluorescence spectra were obtained using a Shimadzu RF-5301PC spectrofluorometer. The maximum absorption wavelength was set as the excitation radiation for emission measurements. Cyclic voltammetry (CV) was performed on a PalmSens3 potentiostat/galvanostat, using a solution of tetra-N-butylammonium hexafluorophosphate (TBAPF₆) in CH₂Cl₂ (0.1 M) as the supporting electrolyte. A three-electrode cell was used comprised of a glassy carbon electrode as the working electrode, a platinum wire as the counter electrode, and an Ag/Ag⁺ reference electrode. The cell was deoxygenated by purging with argon before each measurement. Ferrocene/ferricenium (Fc/Fc⁺) redox couple was used as the internal reference. The performance of the DSSCs was evaluated by current versus potential measurements, carried out using a 300 W xenon arc lamp and an AM1.5 filter. The power of the simulated light was calibrated to 100 mW·cm⁻² and recorded by a picoamperimeter Keithley, model 2400.

## 2.2. Synthesis

### 2.2.1. 2,3,3-Trimethyl-3H-indole-5-carboxylic Acid (3)
In a round-bottom flask were added 4-hydrazinylbenzoic acid (1) (1.0 g, 6.5 mmol), 3-methylbutan-2-one (2) (2.8 g, 32 mmol), and 40 ml of glacial acetic acid, and the reaction was maintained under reflux for 12 h. After this period, the reaction mixture was concentrated under vacuum, and dichloromethane (50 ml) was added to the flask. Then, this solution was treated with NaHCO₃ saturated solution (1 × 50 ml). The aqueous phase was extracted with dichloromethane (2 × 50 ml). The combined organic layers were dried using MgSO₄ and concentrated under vacuum. The product was obtained in 58% of yield and used in the next step without purification.

**Red solid:** yield: 58%. ¹H NMR (CDCl₃, 300 MHz): δ (ppm) 10.54 (s, 1H, *J* = 8.0 Hz), 8.16 (d, 1H, *J* = 9.0 Hz), 8.09 (s, 1H), 7.70 (d, 1H, *J* = 9.0 Hz), 2.41 (s, 3H), and 1.38 (s, 6H). ¹³C NMR (CDCl₃, 75 MHz): δ (ppm) 192.7, 171.0, 157.0, 145.5, 130.9, 127.5, 123.3, 119.7, 54.0, 23.0, and 15.6.
2.2.2. 5-Carboxy-1,2,3,3-tetramethyl-3H-indol-1-ium (5). In a round-bottom flask were added 3 (0.50 g, 2.4 mmol), iodo-methane (4) (1.70 g, 12 mmol), and acetonitrile (20 ml). The reaction was maintained under 56°C for 12 h. After this period, ethyl acetate (40 ml) was added, and the mixture was cooled at room temperature and maintained under agitation for 30 min. Then, the resulting solid was filtered and dried under vacuum. The product was obtained in 65% of yield and used in the next step without purification.

Pink solid: yield: 65%. M.p.: 251-253°C. ¹H NMR (CDCl₃, 400 MHz): δ (ppm) 8.36 (s, 1H), 8.17 (d, 1H, *J* = 9.0 Hz), 8.03 (d, 1H, *J* = 9.0 Hz), 4.01 (s, 3H), 2.84 (s, 3H), and 1.57 (s, 6H). ¹³C NMR (CDCl₃, 100 MHz): δ (ppm) 199.4, 166.9, 145.7, 142.3, 131.9, 130.7, 124.6, 115.8, 54.7, 35.6, 21.9, and 15.2.

2.2.3. *Pentamethinic Salts* (11a-c). In a round-bottom flask cooled to 0° C, 2.4 ml of DMF (2.26 g, 31 mmol) and 2 ml of POCl₃ (3.37 g, 22mmol) were added dropwise, and this mixture was stirred for 30 minutes. After 1.13 ml of cyclohexanone 6 (1.07 g, 9.6 mmol) was added, the reaction mixture was kept under stirring and reflux for 2 h. After this period, the reaction temperature was reduced to room temperature and a mixture of aniline (10) and ethanol [1:1 (v/v), 3.3 ml] was added and kept under stirring for 1 h. After this period, the reaction crude was poured into a mixture of ice and concentrated HCl (10:1, 20 ml) for 12 h. After this period, the resulting solid was filtered and washed as H₂O, recrystallized from toluene, filtered with filter paper, and dried under vacuum. A similar procedure was performed for obtaining the compounds 11b and 11c using cyclohexanones 7 and 8, respectively.

N-((E)-((E)-2-Chloro-5-methyl-3-((phenylamino)methylene)cyclohex-1-en-1-yl)methylene)benzenaminium chloride (11a): violet solid. Yield: 70% (2.50 g). M.p.: 221°C. FTIR (cm⁻¹): 3042, 2946, 2868, 1607, 1565, 1465, and 1297. ¹H NMR (DMSO-d₆, 400 MHz): δ (ppm) 11.22 (s, 2H), 8.53 (s, 2H), 7.58 (m, 4H), 7.44 (m, 4H), 7.25 (m, 2H), 3.02 (m, 2H), 2.22 (m, 2H), 1.92 (m, 1H), and 1.14 (d, 3H, *J* = 4.0 Hz).

N-((E)-((E)-2-Chloro-5-ethyl-3-((phenylamino)methylene)-cyclohex-1-en-1-yl)methylene)benzenaminium chloride (11b): violet solid. Yield: 58% (2.15 g). M.p.: 219-222°C. FTIR (cm⁻¹): 3090, 2958, 2855, 1607, 1565, 1453, and 1261. ¹H NMR (DMSO-d₆, 300 MHz): δ (ppm) 11.34 (s, 2H), 8.51 (s, 2H), 7.60 (m, 4H), 7.44 (m, 4H), 7.25 (m, 2H), 3.09 (m, 2H), 2.18 (m, 2H), 1.65 (m, 1H), 1.47 (q, 2H, *J* = 7.2 Hz), and 1.05 (t, 3H, *J* = 7.2 Hz).

N-((E)-((E)-5-(tert-Butyl)-2-chloro-3-((phenylamino)methylene)cyclohex-1-en-1-yl)methylene)benzenaminium chloride (11c): violet solid. Yield: 75% (2.99 g). M.p.: 217-219°C; FTIR (cm⁻¹): 3060, 2952, 2874, 1607, 1571, 1469, and 1267. ¹H NMR (DMSO-d₆, 400 MHz): δ (ppm) 11.40 (s, 2H), 8.52 (s, 2H), 7.58 (m, 4H), 7.46 (m, 4H), 7.27 (m, 2H), 3.06 (m, 2H), 2.14 (m, 2H), 1.47 (m, 1H), and 1.05 (m, 9H).

2.2.4. *Carboxy Heptamethine Cyanines* (12-14). In a round-bottomed monotubulated amber flask, 20 ml of isopropanol was added and subsequently closed with a septum. Then, *N*₂ was bubbled through the isopropanol for 15 min. After bubbling with nitrogen, compound 11a (0.18 g, 0.5 mmol),

CH₃COONa (0.12 g, 1.5 mmol), and indole 5 (0.51 g, 1.5 mmol) were added. The reaction mixture was kept at reflux, under *N*₂ atmosphere for 18 h. At the end of the reaction, the solvent was evaporated under reduced pressure. The obtained solid was purified by washing with 150 ml of dichloromethane, carried out in an ultrasound bath for 30 min. After 12 hours, this washing process was repeated 4 times. The obtained solid was filtered through filter paper and washed with 40 ml distilled water followed by 15 ml ethyl ether. Then, the obtained solid was filtered through filter paper and dried under vacuum. A similar procedure was performed for obtaining the compounds 13 and 14 using the intermediates 11b and 11c, respectively.

5-Carboxy-2-((E)-2-((E)-3-(2-((E)-5-carboxy-1,3,3-trimethylindolin-2-ylidene)ethylidene)-2-chloro-5-methylcyclohex-1-en-1-yl)vinyl)-1,3,3-trimethyl-3H-indol-1-ium iodide (12): green solid. Yield: 52% (0.18 g). M.p.: 257-259°C. FTIR (cm⁻¹): 3423, 3052, 2966, 2878, 1704, and 1548. ¹H NMR (DMSO-d₆, 400 MHz): δ (ppm) 8.27 (d, 2H, *J* = 16.0 Hz), 8.14 (s, 1H), 8.02 (d, 2H, *J* = 12.0 Hz), 7.52 (d, 2H, *J* = 12.0 Hz), 6.37 (d, 2H, *J* = 12.0 Hz), 3.71 (s, 6H), 2.96 (m, 2H), 2.20 (m, 2H), 1.93 (m, 1H), and 1.69 (s, 12H), 1.16 (d, 3H, *J* = 8.0 Hz). ¹³C NMR (DMSO-d₆, 100 MHz): δ (ppm) 173.9, 167.3, 148.9, 146.9, 143.8, 141.6, 131.0, 127.7, 127.6, 123.7, 111.7, 103.5, 49.1, 34.0, 32.4, 27.7, 27.6, and 21.3.

5-Carboxy-2-((E)-2-((E)-3-(2-((E)-5-carboxy-1,3,3-trimethylindolin-2-ylidene)ethylidene)-2-chloro-5-ethylcyclohex-1-en-1-yl)vinyl)-1,3,3-trimethyl-3H-indol-1-ium iodide (13): green solid. Yield: 57% (0.20 g). M.p.: 251-254°C. FTIR (cm⁻¹): 3423, 3052, 2966, 2869, 1704, and 1557. ¹H NMR (DMSO-d₆, 400 MHz): δ (ppm) 8.27 (d, 2H, *J* = 12.0 Hz), 8.13 (s, 1H), 8.01 (d, 2H, *J* = 8.0 Hz), 7.51 (d, 2H, *J* = 8.0 Hz), 6.39 (d, 2H, *J* = 12.0 Hz), 3.71 (s, 6H), 2.97 (m, 2H), 2.21 (m, 2H), 1.68 (s, 12H), 1.49 (m, 2H), and 1.04 (t, 3H, *J* = 8.0 Hz). ¹³C NMR (DMSO-d₆, 100 MHz): δ (ppm) 173.9, 167.3, 149.0, 146.9, 143.9, 141.6, 131.0, 127.7, 127.6, 123.7, 111.7, 103.4, 49.1, 33.8, 32.3, 31.9, 28.2, 27.6 (2C), and 11.9.

2-((E)-2-((E)-5-(tert-Butyl)-3-(2-((E)-5-carboxy-1,3,3-trimethylindolin-2-ylidene)ethylidene)-2-chlorocyclohex-1-en-1-yl)vinyl)-5-carboxy-1,3,3-trimethyl-3H-indol-1-ium iodide (14): green solid. Yield: 53% (0.20 g). M.p.: 260-265°C. FTIR (cm⁻¹): 3432, 3034, 2966, 2878, 1695, and 1557. ¹H NMR (DMSO-d₆, 400 MHz): δ (ppm) 8.28 (d, 2H, *J* = 12.0 Hz), 8.12 (s, 1H), 8.01 (d, 2H, *J* = 12.0 Hz), 7.50 (d, 2H, *J* = 6.0 Hz), 6.39 (d, 2H, *J* = 12.0 Hz), 3.72 (s, 6H), 2.96 (m, 2H), 2.19 (m, 2H), 1.69 (s, 12H), 1.49 (m, 1H), and 1.05 (s, 9H). ¹³C NMR (DMSO-d₆, 100 MHz): δ (ppm) 173.9, 167.3, 149.0, 146.9, 143.9, 141.6, 131.0, 128.4, 127.5, 123.7, 111.7, 103.2, 49.2, 32.7, 32.3, 29.9, 27.7, and 27.6.

2.3. *Theoretical Calculations*. Theoretical calculations were done using Density Functional Theory (DFT) and Time-Dependent Density Functional Theory (TD-DFT) with Gaussian 16 RevA.03 [23] program. The structures of the ground (S₀) and first excited singlet (S₁) states were optimized using the M06-2X functional [24] and 6-31G(d,p) basis set [25]. This functional was selected after a benchmarking against the experimental values of absorption and emission maxima wavelengths. Yet, previous works have
<table><caption>TABLE 1: Experimental conditions for the study of coadsorption of deoxycholic acid (DCA) and cyanine 13 as a model in methanol solutions on TiO₂ mesoporous layer.</caption><thead><tr><th>Methodology</th><th>Type</th><th>Conditions</th></tr></thead><tbody><tr><td>#1</td><td></td><td>Dye concentration: 5.0 mM; DCA concentrations: 2, 6, 20, and 40 mM; TiO<sub>2</sub> temperature: 80°C; adsorption time: 24 h</td></tr><tr><td>#2</td><td rowspan="2">One-step adsorption</td><td>Dye concentration: 5.0 mM; DCA concentrations: 2, 6, 20, and 40 mM; TiO<sub>2</sub> temperature: 22°C; adsorption time: 24 h</td></tr><tr><td>#3</td><td>Dye concentration: 5.0 mM; DCA concentrations: 2, 6, 20, and 40 mM; TiO<sub>2</sub> temperature: 22°C; adsorption time: 1 h</td></tr><tr><td>#4</td><td></td><td>Dye concentration: 0.1 mM. DCA concentrations: 2, 6, and 20 mM; TiO<sub>2</sub> temperature: 22°C; adsorption time: 1 h</td></tr><tr><td>#5</td><td>Two-step adsorption</td><td>First step: DCA concentrations—2, 6, and 20 mM; Second step: dye concentration—0.1 mM; TiO<sub>2</sub> temperature: 22°C; adsorption time: 1 h</td></tr></tbody></table>

pointed out the efficiency of hybrid functionals with ~50% of the Hartree-Fock exchange to simulate the electronic spectra of cyanine dyes, with average errors of 0.29 eV for the M06-2X functional [26-28]. The minimum energies structures were verified by vibrational analysis. Vertical absorption and emission energies were computed at the M06-2X/6-311+G(d,p) level of theory. The solvent effects were included by applying the integral equation formalism of the polarizable continuum model (IEF-PCM) [29-31] using methanol and N,N,N-dimethylformamide (DMF) as solvents. To analyze the character of the excitations, natural transition orbitals (NTOs) [32] were obtained at the same level of theory using the Gaussian 16 program. For insights on the power conversion efficiency of DSSC devices, we also calculated the HOMO-LUMO band gaps, ESP (electrostatic surface potential) analysis using charges derived from potential (ChelpG), and light harvesting efficiency (LHE) from DFT/TD-DFT calculations.

## 2.4. DSSC Preparation.
The TiO₂ paste was screenprinted on the transparent conductive substrate (fluorine-doped tin oxide, FTO) previously soaked in a 40 mM TiCl₄ aqueous solution at 60°C for 30 minutes. The substrate was heated on a hot plate at 125°C for 20 min and at 450°C for 30 min in a tubular oven. The mesoporous TiO₂ electrode was immersed in 0.1 mM of 13 and kept at room temperature 24 h (see Section 2.6). The counterelectrodes were prepared by coating the FTO surface with 30 µl of 1 mM hexachloroplatinic acid and heated at 500°C. The mediator, responsible for the regeneration of the dye, was placed in between the dye-sensitized photoanode and the counterelectrode. The device was sealed using a polymeric film of low melting temperature (Meltonix). The electrolyte was a 0.6 M BMII, 0.03 M I₂, 0.10 M guanidinium thiocyanate, and 4-tert-butylpyridine (0.5 M) in a mixture of acetonitrile and valeronitrile. Additional information for the anode and cathode preparation can be found as supplementary material.

## 2.5. Coadsorption Study.
Five different methodologies of adsorption on the mesoporous TiO₂ films were proposed and evaluated (1-5) using compound 13 as a model (Table 1). In this study, the aggregation effect was evaluated taking the intensity of the H-aggregate absorption band located at around 700 nm into account (Figure 1).

## 2.6. Electrical Characterization of the Assembled Devices.
Electrical current versus electrical potential curves (I-V) were acquired within the range of -0.2 V to +1.1 V with several different voltage levels (mean interval of 75 mV) to characterize the DSSCs. The experiments were carried out using a xenon lamp of 300 W, with an incident light intensity of 100 mW·cm⁻², fed by a source model 66485 using a filter AM1.5 and a picoammeter Keithley model 2410-c. Light intensity was measured by using a photodiode model 71648-71608.

# 3. Results and Discussion

## 3.1. Synthesis.
The carboxy heptamethine cyanine dyes 12-14 were prepared as presented in Scheme 1. The heterocyclic compound 3 was prepared according to the literature [33]. Initially, 4-hydratinobenzoic acid (1) reacted with 3-methylbutan-2-one (2) under reflux to obtain the intermediate compound 2,3,3-trimethyl-3H-indole-5-carboxylic acid (3) by Fischer cyclization [34]. Then, 3 was alkylated with iodo-methane (4) in a nitrogen atmosphere to obtain the quaternized indole 5.

Pentamethinic salts 11a-c were synthesized from an adapted methodology already described in the literature [35]. The methodology consists of two steps, employing a formylating system containing the respective hexanones 6-8 and POCl₃/DMF/PhNH₃⁺Cl⁻. In the first step, there is the formation of the Vilsmeier-Haack reagent through the slow addition of POCl₃ in DMF under an ice bath, which generated a reddish solution evidencing the formation of chlorine ion. Then, the respective cyclohexanone was added under an ice bath. In the second step, an alcoholic solution of aniline was added to the reaction mixture at room temperature and left under stirring in an acidic medium. The compounds 11a-c were obtained with crude yields between 58 and 75%.

The synthetic method for obtaining the desired compounds 12-14 occurs similar to the Knoevenagel condensation, but in this case, the condensation reactions take place between the bis iminic pentamethine salts 11a-c with compound 5 using sodium acetate as the base and isopropyl alcohol (HPLC grade) as the solvent under reflux (Scheme 1). To minimize the photooxidation processes that can be prejudicial to the stability of these structures [36], the synthesis was performed in the dark with the use of amber glassware
<figure><img src="image_1.png" /><figcaption>FIGURE 1: Continued.</figcaption></figure>
<figure><img src="image_2.png" /><figcaption>FIGURE 1: Normalized solid-state absorption spectra (DRUV) of cyanine 13 in TiO₂ film obtained from different adsorption methodologies (a) #1, (b) #2, (c) #3, (d) #4, and (e) #5. The image of the TiO₂ film sensitized under the proposed conditions of methodology #4, with 20 mM DCA (left) and 40 mM DCA (right) is also presented for comparison.</figcaption></figure>

<figure><img src="image_3.png" /><figcaption>SCHEME 1: Synthesis of heptamethine cyanines 12-14, where (i) CH₃COOH/reflux; (ii) CH₃CN/56°C, (iii) 1: DMF, 0-110°C, 2: aniline/EtOH, 0°C; (iv) dark, N₂, i-PrOH, CH₃COONa/reflux.</figcaption></figure>

and under N₂ atmosphere. The final compounds were purified by precipitation and obtained in moderate yields (~50%). The spectroscopic characterization was performed for all intermediates and final compounds and is presented as supplementary material.

### 3.2. Photophysical Characterization.
The UV-Vis absorption spectra of the heptamethine dyes 12-14 in the solution are shown in Figure 2. The relevant data from the photophysical characterization are summarized in Table 2. The compounds 12-14 present absorption maxima located in the NIR region, between 784 and 797 nm. The molar absorptivity coefficient values ($ε$ ~ 105 cm⁻¹·M⁻¹) indicate allowed electronic transitions, which could be related to ¹ππ* transitions. For conjugated systems, these transitions are associated with a small optical band gap ($E_g^{opt}$ ~ 1.4 eV) between the HOMO and LUMO orbitals compared to chromophores that absorb in the Vis-NIR region.

The shape of the absorption bands in Figure 2 indicates an influence of vibrational and intermolecular interactions. The decrease of vibrational interactions leads to a narrowing of the absorption band, while the increase of intermolecular interactions leads to an enlargement of the absorption band. A less intense absorption band was observed around 720 nm. Although, according to the literature, this peak could be related to the formation of H-type aggregates [16, 20, 22, 37], its intensity suggests that, in this case, this band seems to be related to S₀→S₂ electronic transitions. In fact, the formation of these aggregates in solution could be related to the lower solubility of these compounds in more polar solvents, leading to the formation of self-organized structures allowed
<figure><img src="image_4.png" /><figcaption>FIGURE 2: Normalized (a–c) Vis-NIR and (d–f) fluorescence emission spectra in solution (10⁻⁶ M) of the carboxy heptamethine dyes 12-14.</figcaption></figure>

<table><caption>TABLE 2: Photophysical data of compounds 12-14 in solution, where $\lambda_{abs}$ and $\lambda_{em}$ are the absorption and emission wavelengths, respectively; $\varepsilon$ (×10⁵) is the molar absorptivity coefficient, $\Delta\lambda_{ST}$ is the Stokes shift; and $E_g^{opt}$ is the optical bandgap.</caption><thead><tr><th>Dye</th><th>Solvent</th><th>λ<sub>abs</sub> (nm)</th><th>ε (M<sup>-1</sup>·cm<sup>-1</sup>)</th><th>λ<sub>em</sub> (nm)</th><th>Δλ<sub>ST</sub> (nm/cm<sup>-1</sup>)</th><th>E<sub>g</sub><sup>opt</sup> (eV)</th></tr></thead><tbody><tr><td rowspan="2">12</td><td>DMF</td><td>797</td><td>1.13</td><td>805</td><td>8/125</td><td>1.45</td></tr><tr><td>CH<sub>3</sub>OH</td><td>787</td><td>2.46</td><td>793</td><td>6/96</td><td>1.48</td></tr><tr><td rowspan="2">13</td><td>DMF</td><td>796</td><td>1.09</td><td>800</td><td>4/63</td><td>1.45</td></tr><tr><td>CH<sub>3</sub>OH</td><td>785</td><td>3.16</td><td>794</td><td>9/144</td><td>1.48</td></tr><tr><td rowspan="2">14</td><td>DMF</td><td>797</td><td>1.39</td><td>805</td><td>8/125</td><td>1.48</td></tr><tr><td>CH<sub>3</sub>OH</td><td>784</td><td>3.22</td><td>793</td><td>9/145</td><td>1.45</td></tr></tbody></table>

by van der Waals interactions, hydrogen bonds, or hydrophobic interactions [16, 19].

In order to better characterize their photophysics, emission spectra were obtained from both absorption bands (~720 nm and ~800 nm) indicating similar location with different intensities, as expected by Kasha's rule (Figures S28-S30). In addition, the respective excitation spectra (Figures S31-S33) also presented a similar shape and location if compared to the UV-Vis spectra, which corroborates with the expected $S_0 \rightarrow S_2$ for the absorption band around 720 nm.

The fluorescence emission spectra of compounds 12-14 present emission maxima located between 793 and 805 nm. As expected, very small Stokes shifts were computed for these compounds (below 10 nm experimentally; 25 nm theoretically) due to their symmetrical nature and rigidity. These small Stokes shifts are supported by the very small change in the molecular geometries going from the ground to the first excited state and by the localized character of this $^1pp *$ transition.

The photophysical behavior of compounds 12-14 was also evaluated in the solid state by absorption and fluorescence emission spectra (Figure 3), for the dyes adsorbed on the TiO₂ mesoporous films (guest-host system). This investigation is of great importance to evaluate the potential of these

compounds for application in dye-sensitized solar cells. The studied compounds showed outstanding adsorption on TiO₂, which can be justified by the presence of carboxyl moieties, known as good anchoring groups [38]. A very broad absorption band with maxima located in the near-infrared region is observed between 794 and 804 nm. This absorption band presents the full width at half maximum (FWHM) around 180 nm (213 nm (12), 185 nm (13), and 167 nm (14)) when compared to the results in methanol (53 nm (12), 51 nm (13), and 50 nm (14)) or DMF (112 nm (12), 105 nm (13), and 119 nm (14)) solution. Additionally, an intense blue-shifted band was found between 724 and 731 nm, different than what was observed in the solution and probably related to the formation of type H-aggregates, favored by a large number of molecules on the surface of TiO₂. It is worth mentioning that the formation of H-aggregates can be a major disadvantage when the application to solar cells is envisaged. The strong aggregation of these molecules can lead to a drastic decrease of electron injection in the TiO₂ conduction band, reducing the conversion efficiency of solar cells [20]. However, despite the presence of such aggregates, the broad absorption band in the solid-state is very important for sensitization of semiconductors and subsequent application in solar cells sensitized by
<figure><img src="image_5.png" /><figcaption>FIGURE 3: (a) Normalized UV-Vis spectra in the solid state of compounds 12-14 adsorbed on TiO₂ (powder) and (b) transmittance spectra of TiO₂ film adsorbed with compound 13. The inset presents the fluorescence emission (λ<sub>exc</sub> = 794 nm) investigation of these samples.</figcaption></figure>
organic dyes, since a broader absorption range results in an optimized photon collection and, consequently, in a greater generation of electron-hole pairs and higher efficiency in converting light into electrical current. Additionally, the emission spectra of compounds 12-14 show a complete fluorescence quenching (Figure 3, insert).

The transmittance spectra of TiO₂ films sensitized by compounds 12-14 are also presented in Figure 3, where it is possible to observe the very low transmittance (~12%) in the region between 540 and 895 nm, followed by the increase of the transmittance (up to 80%) between 485 and 535 nm, which can be related once again to the significant adsorption of these compounds on TiO₂. Based on the solid-state results presented so far, it can be observed that the H-aggregates are present, which can impair the efficiency of solar cells prepared with these compounds. To minimize the formation of H-aggregates of compounds 12-14 on the surface of TiO₂, a coadsorption study was performed with deoxycholic acid (DCA). DCA is sterically bulky, and for this reason, it is expected to hinder the H-aggregation formation [20]. In this way, five different methodologies of adsorption on the mesoporous TiO₂ films were proposed and evaluated using compound 13 as a model (Table 1). In this study, the aggregation effect was evaluated taking the intensity of the H-aggregate absorption band located around 700 nm into account (Figure 1). It is worth mentioning that, based on the original data (not shown, see supplementary material Figures S34), signal saturation was discarded in Figures 1(a) and Figures 1(b) (2 and 6 mM DCA) and Figure 1(c) (2 mM DCA). This result clearly indicates that aggregation influences the shape and intensity of the solid-state UV-Vis spectra of these compounds. Additionally, based on the absorbance intensities, a higher dye loading could be obtained at 20 mM DCA for #1, #2, #4, and #5 and 6 mM DCA for #3.

DRUV spectra obtained from the first used methodology (#1) show that a small concentration of coadsorber (2 mM) results in the formation of an absorption band located at higher energy, attributed to H-aggregates, which present the same intensity of the absorption band related to the monomeric form related to the cyanine dye (Figure 1(a)). A similar result was observed using 6 mM DCA. At higher DCA concentrations (20 mM and 40 mM), a significant decrease in the intensity of the absorption band related to H-aggregates is observed, indicating more efficient aggregation suppression. Due to the strong interaction between these cyanine dyes, probably by π-stacking, the total suppression of the aggregation was not observed at the studied DCA concentrations. By comparing Figures 1(a) and 1(b), the evolution of absorption spectra along with the increase in DCA concentration is similar for methods #1 and #2, and changes in the TiO₂ temperature during adsorption is found to not play a significant role in the aggregation suppression. Based on these results, the adsorption temperature was fixed at 22°C to the next methodologies. In methodology #3, the influence of the adsorption time on the formation of aggregates is clearly observed by the significant decrease in the absorption band at 724 nm (Figure 1(c)). Based on studies described in the literature about the formation of H-

aggregates in heptamethine cyanines [16, 20, 22], the concentration of 13 was fixed at 0.1 mM. Due to the low dye loading on TiO₂ when using the reduced concentration of cyanine (0.1 mM) and 40 mM of DCA, for methodologies #4 and #5, only solutions containing 2, 6, and 20 mM DCA were studied. Figure 1(d) shows this unlike what was earlier observed for #1, #2, and 3# when using methodology #4. DCA concentration plays a very important role in the formation of H-aggregates, where the lowest aggregate formation was observed using 20 mM DCA. To reduce the competition between the cyanine dye and DCA molecules for active sites in the TiO₂ surface, a fifth methodology was proposed. As one can observe, the DRUV spectra from #5 using 2 and 6 mM of DCA are similar. However, at higher concentrations of DCA (20 mM), the decrease in absorption band related to the H-aggregates is very significant. These results show that a good compromise between the lowest proportion of the H-aggregate and the best homogeneity of sensitization was obtained using one hour of adsorption, 0.1 mM dye concentration, and 20 mM DCA concentration (Figure 4).

### 3.3. Theoretical Calculations

#### 3.3.1. *Natural Transition Orbitals and Structural Parameters.*
From the theoretical calculations, it was possible to confirm

<figure><img src="image_6.png" /><figcaption>**FIGURE 4:** Normalized solid-state absorption spectra of dye 13 obtained from the different adsorption methodologies (#1-#5), where #1: dye concentration—5.0 mM, DCA concentrations—20 or 40 mM, TiO₂ temperature—80°C, and adsorption time—24 h; #2: dye concentration—5.0 mM, DCA concentration—40 mM, TiO₂ temperature—22°C, and adsorption time—24 h; #3: dye concentration—5.0 mM, DCA concentration—40 mM, TiO₂ temperature—22°C, and adsorption time—1 h; #4: dye concentration—0.1 mM, DCA concentration—20 mM, TiO₂ temperature—22°C, and adsorption time—1 h; #5: first step: DCA concentration—20 mM and second step: dye concentration—0.1 mM, TiO₂ temperature—22°C, and adsorption time—1 h.</figcaption></figure>
<figure><img src="image_7.png" /><figcaption>FIGURE 5: Natural transition orbitals for the vertical transitions S₀→S₁ and S₁→S₀ involving the ground and first excited states of cyanine 12 in PCM/methanol.</figcaption></figure>

that the lowest-energy electronic transition S₀→S₁ is dominated by HOMO to LUMO and has a ¹ππ* character, as depicted in Figure 5 for cyanine 12. The natural transition orbitals, NTOs, associated to this transition show that the pair hole/particle, which, in this case, is identical to HOMO (hole) and LUMO (particle), is mainly delocalized in the central part of the molecule, comprised between the two heterocyclic rings. Similar behavior was observed for the other studied cyanines (Figures S24-S25). A large oscillator strength (Table S1) and strong overlap between the frontier orbitals involved in this transition were also observed, suggesting an electronic excitation of localized character. Table S1 also shows absorption and emission maxima wavelength obtained with TD-DFT. No significant differences on these values were observed by changing the alkyl group attached to the central ring, in accordance with the experimental results. This result is expected since the change in the R groups does not have a significant impact in the molecular geometry and the R group is not directly involved in the lowest-energy electronic transition. Yet, no significant change in the vertical electronic transitions was observed by changing the solvent from methanol to DMF, which was expected since both solvents have similar dielectric constants and the PCM model is not able to describe the effect of hydrogen interactions. In fact, the experimental results confirmed that the protic solvent has a very small effect on the UV-Vis spectra in the liquid phase. It is worth mentioning that the vertical transitions obtained with M06-2X functional are within the average margin of error obtained for cyanine dyes computed with TD-DFT [26]. For the studied cyanines, an average error of 0.13 eV and 0.08 eV was found for the S₀ and S₁, respectively, when compared to the experimental values.

As can be seen in Figure 6 using compound 13 as a model, S₀ and S₁ optimized geometries are planar and symmetrical. For the other cyanines studied, see Figures S26-S27. Although very small, the main differences between the S₀ and S₁ are observed in the alternated single-double bond lengths, due to the character of the electronic transition. Since this transition does not involve the carbonyl group, the C-O bond length is preserved. The very mild difference

between these two states is also reflected in the subtle change in the dipole moment (Table S1), supporting the localized character of the transition and the lack of solvent effect on the lowest electronic transitions.

The structural parameters for dyes 12-14 are listed in Table S3. Apart from <C10C9C20C21, which involves a sp³ carbon atom, all the remaining dihedral angles listed in the table are nearly 180 degrees, meaning that the molecules present a high degree of planarity in both S₀ and S₁ states. Yet, the molecules present a high degree of delocalization through its π system, as evidenced by the bond length pattern in the conjugated system. Thus, the donor, acceptor groups, π-bridge, and anchor groups (-COOH) are coplanar, which would enhance the delocalization of π electrons and, thus, the intramolecular electron transfer through it. As can be seen from the frontier molecular orbital plots and confirmed by the ESP maps (Figure 7), the S₀ to S₁ excitation has a local character (which is reflected in the bond length pattern change), without any evidence of charge transfer.

### 3.3.2. Energy Levels and Charge Separation.
The calculated energy levels of HOMO, LUMO, and band gap are presented in Table S2. The energy level diagram is presented in Figure 8. It is worth noticing that the calculated HOMO and LUMO energy levels are very sensitive to the method (basis set and functional) and can be very inaccurate due to the electron self-interaction error in DFT, providing LUMO energies with nonphysical meaning. A more accurate way to obtain HOMO-LUMO energies is using the vertical ionization potential (IP) and electron affinity (EA). This procedure is known as the ΔSCF approach [39]. In this approach, the HOMO and LUMO energies are obtained using the electronic energies of the neutral (M), cation (M⁺), and anion (M⁻) according to the following [40]:

$$IP = E(M^{+}) - E(M), \qquad (1)$$

$$EA = E(M) - E(M^{-}). \qquad (2)$$
<figure><img src="image_8.png" /><figcaption>FIGURE 6: Optimized geometries for the (a) ground and (b) first excited states of cyanine 13 in PCM/methanol. A merged view (S₀ and S₁) was presented for comparison.</figcaption></figure>
<figure><img src="image_9.png" /><figcaption>FIGURE 7: Electrostatic potential surfaces computed at M06-2X/6-311+G(d,p)//M06-2X/6-31G(d,p) in PCM/methanol for the dyes 12-14 in the ground and excited states.</figcaption></figure>

<figure><img src="image_10.png" /><figcaption>FIGURE 8: Energy level diagram. ΔSCF HOMO and LUMO energies (in eV) computed at M06-2X/6-311+G(d,p)//M06-2X/6-31G(d,p) in PCM/methanol.</figcaption></figure>

Thus, the IP and EA are directly related to HOMO and LUMO energies by Koopmanns' theorem through the relations $IP = -E_{HOMO}$ and $EA = -E_{LUMO}$. Due to the

<table><caption>TABLE 3: Electrochemical properties of compounds 12-14, where $E_{onset}$ is the onset potential of oxidation, $E_{red}$ is the onset potential of reduction, IP (HOMO) is the ionization potential, EA (LUMO) is the electron affinity, and $E_{gap}$ is the electrochemical bandgap.</caption><thead><tr><th></th><th>12</th><th>13</th><th>14</th></tr></thead><tbody><tr><td>$E_{onset}$ (V)</td><td>0.360</td><td>0.350</td><td>0.480</td></tr><tr><td>$E_{red}$ (V)</td><td>-0.51</td><td>-0.55</td><td>-0.54</td></tr><tr><td>IP (HOMO) (eV)<sup>a</sup></td><td>-4.80</td><td>-4.79</td><td>-4.92</td></tr><tr><td>EA (LUMO) (eV)<sup>b</sup></td><td>-3.93</td><td>-3.89</td><td>-3.90</td></tr><tr><td>$E_{gap}^{ele}$ (eV)</td><td>0.87</td><td>0.90</td><td>1.02</td></tr></tbody></table>

approximations in the exchange-correlation functionals, this theorem can be no longer valid at the DFT level, i.e., the IP and EA are not truly equivalent to the HOMO and LUMO Kohn-Sham orbital energies, respectively. Therefore, in this work, the band gap is calculated taking the difference between EA and IP. Using this procedure, we have obtained a very good agreement with the optical gap ($\Delta_{opt}$), i.e., the lowest vertical excitation calculated by TD-DFT. On the other hand, the energy gap is overestimated when determined directly from HOMO and LUMO energies provided by DFT calculations (Kohn-Sham gap). This discrepancy suggests that a simple estimate of the

<footnote><sup>a</sup>Calculated using Equation (1); <sup>b</sup>calculated using Equation (2).</footnote>
<figure><img src="image_11.png" /><figcaption>FIGURE 9: (a) Cyclic voltammogram of a glassy carbon electrode in 0.1 TBAPF₆/CH₂Cl₂ at 100 mV·s⁻¹ of cyanine dyes 12-14. Inset: voltammogram of ferrocene. (b) Energy diagram of TiO₂, cyanine 13, and the electrolyte 1̅/I₃⁻.</figcaption></figure>

excited state energy using the Kohn-Sham eigenvalues for HOMO and LUMO is not appropriate for dyes 12-14.

Another way to obtain the energy levels is by computing the excited state (corresponding to the LUMO energy) as a sum between the ground state energy (HOMO energy) and the optical gap (Δopt) according to the following expression [41, 42]:

$$E_{\text{dye*}} = E_{\text{dye}} + \Delta_{\text{opt}}. \qquad (3)$$

For dyes 12-14, the optical gap is equal to 1.70 eV. Thus, following the expression above, the calculated LUMO energy is -4.76 eV (see Table S2). Although the calculated energy gaps are bigger than the experimental values provided in Table 3, a very good agreement is observed for the EA energies. These LUMO energies are slightly above the experimental anatase conduction band (CB) minimum (-4.00 eV) [43]. This would lead to the electron injection from excited dye molecules into the TiO₂ CB. The calculated and experimental values obtained for the IP (HOMO energies) are more negative than the 1̅/I₃⁻ redox potential (-4.6 eV) [44]. Thus, theoretically the relative position of HOMO and LUMO energy level in the dyes 12-14 would ensure an injection of the electrons in the TiO₂ CB and efficient dye regeneration. The similar energy gaps and HOMO-LUMO energies indicates a similar electron-injection and regeneration for the three dyes considered in this work.

### 3.3.3. Light Harvesting Efficiency (LHE).
Light harvesting efficiency (LHE) is another important factor that determines the efficiency of a DSSC. It can be determined by [45]

$$\text{LHE} = 1 - 10^{-A} = 1 - 10^{-f}, \qquad (4)$$

where f is the oscillator strength corresponding to the absorption energy of the dye. From this relation, it is clear that higher oscillator strength implies larger LHE values and higher photocurrent. The LHE values obtained from TD-DFT calculation are presented in Table S2. As a consequence of the larger oscillator strengths, LHE values are very close to the unity, indicating an efficient photocurrent.

### 3.4. Electrochemical Characterization.
To determine experimentally the relative position of the energy levels of the studied cyanine dyes 12-14, cyclic voltammeters were performed in the solution (Figure 9). The relevant data from this investigation are summarized in Table 3. The HOMO and LUMO energy levels of 12-14 were determined by the ionization potential (IP) and electron affinity (EA), respectively, which could be correlated with electrochemical processes accessed by CV, where the potentials were standardized with a Fc/Fc⁺ couple. The IP and EA values were calculated using the following empirical equations [46]:

$$ \begin{aligned} \text{IP} &= -(E_{\text{oxi}}^{\text{onset}} + 4.44) \text{ eV}, \\ \text{EA} &= -(E_{\text{red}}^{\text{onset}} + 4.44) \text{ eV}, \end{aligned} \qquad (5) $$

where $E_{\text{oxi}}^{\text{onset}}$ and $E_{\text{red}}^{\text{onset}}$ are the oxidation and reduction onset potentials, respectively.

Through the comparative analysis of the voltammograms (Figure 7(a)) and the data presented in Table 3, it is possible to observe that these results are not satisfactory since, considering the small difference between the averaged values of their reduction potential (~-0.53 V) and the edge value of the TiO₂ conduction band (0.5 V), recombination processes can be favored. Based on the oxidation potential values obtained for compounds 12-14, it can be observed that they are not favorable for an efficient process of dye regeneration
<figure><img src="image_12.png" /><figcaption>FIGURE 10: *J* vs. *V* curves from DSSCs sensitized with cyanines 12-14. The inset shows the *J* vs *V* curve from the device assembled with 13 without the coadsorption of DCA.</figcaption></figure>

by the electrolyte when composed of an $I^3-/I^-$ (0.4 V) redox pair (Figure 9(b)).

**3.5. Photoelectrochemical Characterization.** Photophysical studies presented in Figure 5 have shown that method #5 was the most efficient approach allowing high dye loading and low H-aggregation; hence, DSSCs were assembled using this method to absorb compounds 12, 13, and 14 and to coadsorb DCA (Figure 10). For comparison, a DSSC using compound 13 was assembled without DCA (Figure 10, insert). One can observe that the compounds 12, 13, and 14 result in DSSCs with similar electrical behaviour and efficiency (Table 4), which is expected once the compounds present very similar structures (Scheme 1). The results also show that the methyl, ethyl, and tert-butyl groups present on the cycloalkene do not affect significantly either dye loading or dye aggregation. Indeed, the presence of DCA as a coadsorber has efficiently affected the electrical parameters and the efficiency of the DSSCs. The short circuit current density (Jsc) (0.28 mA·cm⁻²) and conversion efficiency (η) (0.07%) values, although low, show a significant improvement if compared to those obtained for the devices assembled without the coadsorber (0.0072 mA·cm⁻²). The gain in DSSC performance is related to the decreased formation of H-aggregates, by the simultaneous use of deoxycholic acid as a coadditive, as observed in Figure 5 [16, 20, 22].

The low values of Jsc and η can be attributed to two main factors: (i) low dye concentration on the TiO₂ surface and (ii) the similar oxidation potential values of compounds 12-14 obtained for the edge of the TiO₂ conduction band, this latter being a facilitator for recombination processes. As one can observe, the introduction of DCA dramatically decreases

<table><caption>TABLE 4: Electrical parameters and efficiency of solar cells sensitized with compounds 12-14, where Jsc is the short circuit current density (mA·cm²), Voc is the open circuit voltage (V), FF is the fill factor (%), and η is the conversion efficiency (%). The measurements were carried out under one sun (100 mW·cm⁻²) using AM1.5 filter.</caption><thead><tr><th>Device</th><th>Compound</th><th>Jsc</th><th>Voc</th><th>FF</th><th>η</th></tr></thead><tbody><tr><td>1</td><td>12</td><td>0.28</td><td>0.41</td><td>64</td><td>0.07</td></tr><tr><td>2</td><td>13</td><td>0.28</td><td>0.41</td><td>64</td><td>0.07</td></tr><tr><td>3</td><td>14</td><td>0.29</td><td>0.41</td><td>62</td><td>0.07</td></tr><tr><td>4<sup>a</sup></td><td>13</td><td>7.2 × 10<sup>-3</sup></td><td>0.17</td><td>32</td><td>0.02 × 10<sup>-3</sup></td></tr></tbody></table>

<sup>a</sup>Without DCA.

<figure><img src="image_13.png" /><figcaption>FIGURE 11: Plot *J* vs *V* of devices at different TiO₂ film thicknesses (black) 5 µm (1 layer), (red) 12 µm (2 layers), and (green) 16 µm (3 layers) prepared by methodology #5.</figcaption></figure>

resistance in series and increases resistance in parallel, which is an important finding for the present system once both R<sub>S</sub> and R<sub>P</sub> contribute to fill factor degradation [47].

The influence of the TiO₂ film thickness on the efficiency of the devices was also evaluated. To carry out this study, devices with TiO₂ films with different thicknesses (5, 12, and 16 micrometers) were assembled. The scanning electron microscopy images show that the average thickness of the films already sintered was about 5 µm for 1 layer, 12 µm for 2 layers, and 16 µm for 3 applied layers of colloidal solution of TiO₂ nanoparticles (Figures S35). Figure 11 shows the current vs. potential curves for devices assembled with 1 up to 3 layers of TiO₂ nanoparticle colloid solution with 5-6 micrometers each and by applying the methodology #5 for sensitization.

The performance of devices assembled with 1 and 3 layers shows that the FF and Voc values are affected by the thickness of the films (Table 5), while the Isc values seem
<table><caption>TABLE 5: Electrical and efficiency parameters of solar cells with different thicknesses of the TiO₂ films, where Isc is the short circuit current density (mA·cm²), Voc is the open circuit voltage (V), FF is the fill factor (%), and η is the conversion efficiency (%). The measurements were carried out under one sun (100 mW·cm⁻²) on masked cells (active area 0.19 cm²).</caption><thead><tr><th>TiO<sub>2</sub> thickness (μm)</th><th>Isc</th><th>Voc</th><th>FF</th><th>η</th></tr></thead><tbody><tr><td>5</td><td>0.21</td><td>0.35</td><td>32</td><td>0.02</td></tr><tr><td>12</td><td>0.28</td><td>0.41</td><td>64</td><td>0.07</td></tr><tr><td>16</td><td>0.29</td><td>0.34</td><td>31</td><td>0.01</td></tr></tbody></table>

not to be affected by the TiO₂ thickness. Moreover, the device with a 5 µm layer seems to indicate a higher resistance in parallel, generated by an existing recombination mechanism. In addition, the shape of the curves and the decrease in the FF and Voc values obtained for devices with 1 and 3 layers indicate that their thickness makes devices subject to higher resistance in series.

## 4. Conclusions

In this study, cationic carboxy heptamethine cyanines were synthesized with good yields. The photophysical characterization in methanol and DMF was performed in both ground and excited states using UV-Vis absorption and fluorescence emission spectroscopies and TD-DFT/PCM calculations. The obtained compounds showed absorption and emission in the Vis-NIR regions in the solution. The photophysical characterization in the solid state indicated that these compounds presented excellent adsorption on TiO₂, which can be justified by the presence of the carboxylic groups. The decrease of H-aggregate formation was observed by the addition of deoxycholic acid as a coadsorbent. The systematic study carried out to suppress aggregation of these dyes in the solid state allowed us to obtain an optimized methodology for sensitizing TiO₂ with the lowest number of H-aggregates. Cyclic voltammetry indicates that the LUMO values of the obtained cyanines are close to the edge of the TiO₂ conduction band. However, the HOMO and LUMO of the cyanines respect the relative positions of the energy levels for allowing charge electrotransfer to occur. Finally, the application of the studied compounds as sensitizers for TiO₂ in DSSCs showed their ability to contribute to the conversion of light into electrical energy. Additionally, when DSSCs were made by applying deoxycholic acid with compound 13 simultaneously, in the sensitization of TiO₂ films, there was a considerable increase in the conversion efficiency, short circuit current density, open circuit voltage, and fill factor values.

## Data Availability

The original data supporting this study are available in the supplementary files and also from the corresponding author upon request.

## Conflicts of Interest

The authors declare that they have no conflicts of interest.

## Acknowledgments

We are grateful to the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES)—Finance Code 001, CNPq (409855/2018-9 and 305954/2019-9), and FAPERGS (17/2551-0000968-1) for the financial support.

## Supplementary Materials

spectroscopic characterization. Additional data for DSSC preparation. Theoretical calculations. Additional photophysical data. SEM images. (Supplementary Materials)

## References

[1] J. L. Bricks, A. D. Kachkovskii, Y. L. Slominskii, A. O. Gerasov, and S. V. Popov, "Molecular design of near infrared poly-methine dyes: a review," *Dyes and Pigments*, vol. 121, pp. 238-255, 2015.

[2] J. Yum, P. Walter, S. Huber et al., "Efficient far red sensitization of nanocrystalline TiO₂ films by an unsymmetrical squaraine dye," *Journal of the American Chemical Society*, vol. 129, no. 34, pp. 10320-10321, 2007.

[3] L. Beverina, J. Fu, A. Leclercq et al., "Two-photon absorption at telecommunications wavelengths in a dipolar chromophore with a pyrrole auxiliary donor and thiazole auxiliary acceptor," *Journal of the American Chemical Society*, vol. 127, no. 20, pp. 7282-7283, 2005.

[4] P. A. Bouit, G. Wetzel, G. Berginc et al., "Near IR nonlinear absorbing chromophores with optical limiting properties at telecommunication wavelengths," *Chemistry of Materials*, vol. 19, no. 22, pp. 5325-5335, 2007.

[5] K. B. Male and J. H. T. Luong, "An improved enzymatic assay for glucose determination in blood serum using a 1,1'-dimethylferricinium dye," *Applied Biochemistry and Biotechnology*, vol. 61, no. 3, pp. 267-276, 1996.

[6] C. Q. Zhu, H. Zheng, D. H. Li, S. H. Li, and J. G. Xu, "Near-infrared hydrophobic probes as molecular light switch for cmc determination of triton X-100 solution," *Chinese Journal of Chemistry*, vol. 22, no. 11, pp. 1319-1324, 2004.

[7] L. Tarazi, N. Narayanan, and G. Patonay, "Investigation of the spectral properties of a squarylium near-infrared dye and its complexation with Fe(III) and Co(II) ions," *Microchemical Journal*, vol. 64, no. 3, pp. 247-256, 2000.

[8] M. I. Daneshvar, J. M. Peralta, G. A. Casay et al., "Detection of biomolecules in the near-infrared spectral region via a fiber-optic immunosensor," *Journal of Immunological Methods*, vol. 226, no. 1-2, pp. 119-128, 1999.

[9] J. Sowell, J. C. Mason, L. Strekowski, and G. Patonay, "Binding constant determination of drugs toward subdomain IIIA of human serum albumin by near-infrared dye-displacement capillary electrophoresis," *Electrophoresis*, vol. 22, no. 12, pp. 2512-2517, 2001.

[10] X. Yang, C. Shi, R. Tong et al., "Near IR heptamethine cyanine dye-mediated cancer imaging," *Clinical Cancer Research*, vol. 16, no. 10, pp. 2833-2844, 2010.
[11] T. Geiger, I. Schoger, D. Rentsch et al., "Unsymmetrical hepta-methine dyes for NIR dye-sensitized solar cells," *International Journal of Photoenergy*, vol. 2014, Article ID 258984, 10 pages, 2014.

[12] M. Matsui, Y. Hashimoto, K. Funabiki, J. Y. Jin, T. Yoshida, and H. Minoura, "Application of near-infrared absorbing hep-tamethine cyanine dyes as sensitizers for zinc oxide solar cell," *Synthetic Metals*, vol. 148, no. 2, pp. 147-153, 2005.

[13] T. Geiger, H. Benmansour, B. Fan, R. Hany, and F. Nüesch, "Low-band gap polymeric cyanine dyes absorbing in the NIR region," *Macromolecular Rapid Communications*, vol. 29, no. 8, pp. 651-658, 2008.

[14] W. Ghann, H. Kang, E. Emerson et al., "Photophysical proper-ties of near-IR cyanine dyes and their application as photosen-sitizers in dye sensitized solar cells," *Inorganica Chimica Acta*, vol. 467, pp. 123-131, 2017.

[15] H. Zhang, G. Wicht, C. Gretener et al., "Semitransparent organic photovoltaics using a near-infrared absorbing cyanine dye," *Solar Energy Materials & Solar Cells*, vol. 118, pp. 157-164, 2013.

[16] T. Ono, T. Yamaguchi, and H. Arakawa, "Study on dye-sensitized solar cell using novel infrared dye," *Solar Energy Materials & Solar Cells*, vol. 93, no. 6-7, pp. 831-835, 2009.

[17] K. Funabiki, H. Mase, A. Hibino et al., "Synthesis of a novel heptamethine-cyanine dye for use in near-infrared active dye-sensitized solar cells with porous zinc oxide prepared at low temperature," *Energy & Environmental Science*, vol. 4, no. 6, pp. 2186-2192, 2011.

[18] G. Chen, D. Yokoyama, H. Sasabe, Z. R. Hong, Y. Yang, and J. Kido, "Optical and electrical properties of a squaraine dye in photovoltaic cells," *Applied Physics Letters*, vol. 101, no. 8, article 083904, 2012.

[19] M. Ziółek, J. Karolczak, M. Zalas, Y. Hao, H. Tian, and A. Douhal, "Aggregation and electrolyte composition effects on the efficiency of dye-sensitized solar cells. A case of a near-infrared absorbing dye for tandem cells," *The Journal of Physical Chemistry C*, vol. 118, no. 1, pp. 194-205, 2013.

[20] K. Pydzińska and M. Ziółek, "Solar cells sensitized with near-infrared absorbing dye: problems with sunlight conversion efficiency revealed in ultrafast laser spectroscopy studies," *Dyes and Pigments*, vol. 122, pp. 272-279, 2015.

[21] J. H. Yum, S. J. Moon, R. Humphry-Baker et al., "Effect of coadsorbent on the photovoltaic per-formance of squaraine sensitized nanocrystalline solar cells," *Nanotechnology*, vol. 19, no. 42, article 424005, 2008.

[22] C. H. Lee, H. J. Yun, M. R. Jung, J. G. Lee, S. H. Kim, and J. H. Kim, "Preparation and characterization of squaraine dyes con-taining mono-and bis-anchoring groups as the light absorber in dye sensitized solar cells," *Electrochimica Acta*, vol. 138, pp. 148-154, 2014.

[23] M. J. Frisch, G. W. Trucks, H. B. Schlegel et al., *Gaussian 16, Revision A.03*, Gaussian, Inc., Wallingford CT, 2016.

[24] Y. Zhao and D. G. Truhlar, "The M06 suite of density func-tionals for main group thermochemistry, thermochemical kinetics, noncovalent interactions, excited states, and transi-tion elements: two new functionals and systematic testing of four M06-class functionals and 12 other functionals," *Theoretical Chemistry Accounts*, vol. 120, pp. 215-241, 2008.

[25] S. Grimme, J. Antony, S. Ehrlich, and H. Krieg, "A consistent and accurate ab initio parametrization of density functional dispersion correction (DFT-D) for the 94 elements H-Pu,"

*Journal of Chemical Physics*, vol. 132, no. 15, pp. 154104-154119, 2010.

[26] N. Minezawa, "Vertical excitation energies of linear cyanine dyes by spin-flip time-dependent density functional theory," *Chemical Physics Letters*, vol. 662, no. 16, pp. 115-119, 2015.

[27] D. Jacquemin, Y. Zhao, R. Valero, C. Adamo, I. Ciofini, and D. G. Truhlar, "Verdict: time-dependent density functional theory "not guilty" of large errors for cyanines," *Journal of Chemical Theory and Computation*, vol. 8, no. 4, pp. 1255-1259, 2012.

[28] B. Le Guennic and D. Jacquemin, "Taking up the cyanine challenge with quantum tools," *Accounts of Chemical Research*, vol. 48, no. 3, pp. 530-537, 2015.

[29] B. Mennucci, E. Cancès, and J. Tomasi, "Evaluation of solvent effects in isotropic and anisotropic dielectrics and in ionic solutions with a unified integral equation method: theoretical bases, computational implementation, and numerical applications," *The Journal of Physical Chemistry B*, vol. 101, no. 49, pp. 10506-10517, 1997.

[30] E. Cancès, B. Mennucci, and J. Tomasi, "A new integral equation formalism for the polarizable continuum model: theoretical background and applications to isotropic and anisotropic dielectrics," *Journal of Chemical Physics*, vol. 107, no. 8, pp. 3032-3041, 1997.

[31] E. Cancès and B. Mennucci, "New applications of integral equations methods for solvation continuum models: ionic solutions and liquid crystals," *Journal of Mathematical Chemistry*, vol. 23, no. 3/4, pp. 309-326, 1998.

[32] R. L. Martin, "Natural transition orbitals," *The Journal of Chemical Physics*, vol. 118, no. 11, pp. 4775-4777, 2003.

[33] R. C. Duarte, F. S. Santos, B. Bercini et al., "Synthesis of a 5-carboxy indole-based spiropyran fluorophore: thermal, electrochemical, photophysical and bovine serum albumin interaction investigations," *Chemosensors*, vol. 8, no. 2, pp. 2-17, 2020.

[34] C. F. H. Allen and C. V. Wilson, "The use of N15 as a tracer element in chemical reactions. The mechanism of the Fischer indole synthesis," *Journal of the American Chemical Society*, vol. 65, no. 4, pp. 611-612, 1943.

[35] G. O. Menéndez, M. E. Pichel, C. C. Spagnuolo, and E. A. Jares-Erijman, "NIR fluorescent biotinylated cyanine dye: optical properties and combination with quantum dots as a potential sensing device," *Photochemical & Photobiological Sciences*, vol. 12, no. 2, pp. 236-240, 2013.

[36] A. Owens, N. Bruschi, J. G. Tawney, and M. Henary, "A microwave-assisted and environmentally benign approach to the synthesis of near-infrared fluorescent pentamethine cyanine dyes," *Dyes and Pigments*, vol. 113, pp. 27-37, 2015.

[37] H. Lee, C. Mason, and S. Achilefu, "Synthesis and spectral properties of near-infrared aminophenyl-, hydroxyphenyl-, and phenyl-substituted heptamethine cyanines," *Journal of Organic Chemistry*, vol. 73, no. 2, pp. 723-725, 2008.

[38] P. Qui and G. J. Meyer, "Proton-controlled electron injection from molecular excited states to the empty states in nanocrystalline TiO₂," *Langmuir*, vol. 17, no. 21, pp. 6720-6728, 2001.

[39] J. R. De Lile, S. G. Kang, Y. A. Son, and S. G. Lee, "Do HOMO-LUMO energy levels and band gaps provide sufficient understanding of dye-sensitizer activity trends for water purification?," *ACS Omega*, vol. 5, no. 25, pp. 15052-15062, 2020.

[40] C. G. Zhan, J. A. Nichols, and D. A. Dixon, "Ionization potential, electron affinity, electronegativity, hardness, and electron
excitation energy: molecular properties from density func-
tional theory orbital energies,” *The Journal of Physical Chemis-
try A*, vol. 107, no. 20, pp. 4184–4195, 2003.

[41] F. De Angelis, S. Fantacci, and A. Selloni, “Alignment of the dye’s molecular levels with the TiO2band edges in dye-sensitized solar cells: a DFT-TDDFT study,” *Nanotechnology*, vol. 19, no. 42, article 424002, 2008.

[42] C. I. Oprea, P. Panait, Z. M. Essam, R. M. Abd El-Aal, and M. A. Girțu, “Photoexcitation processes in oligomethine cyanine dyes for dye-sensitized solar cells-synthesis and computational study,” *Nanomaterials*, vol. 10, no. 4, p. 662, 2020.

[43] M. Gratzel, “Photoelectrochemical cells,” *Nature*, vol. 414, no. 6861, pp. 338–344, 2001.

[44] X. Jin, D. Li, L. Sun, C. L. Wang, and F. Q. Bai, “Theoretical design of porphyrin sensitizers with different acceptors for application in dye-sensitized solar cells,” *RSC Advances*, vol. 8, no. 35, pp. 19804–19810, 2018.

[45] C. Y. Qin and A. E. Clark, “DFT characterization of the optical and redox properties of natural pigments relevant to dye-sensitized solar cells,” *Chemical Physics Letters*, vol. 438, no. 1-3, pp. 26–30, 2007.

[46] C. M. Cardona, W. Li, A. E. Kaifer, D. Stockdale, and G. C. Bazan, “Electrochemical considerations for determining absolute frontier orbital energy levels of conjugated polymers for solar cell applications,” *Advanced Materials*, vol. 23, no. 20, pp. 2367–2371, 2011.

[47] R. Guliania, A. Jainb, and A. Kapoora, “Exact analytical analysis of dye-sensitized solar cell: improved method and comparative study,” *The Open Renewable Energy Journal*, vol. 5, no. 1, pp. 49–60, 2012.