The structure formed by cobalt phthalocyanine (CoPc) and cobalt octaethylporphyrin (CoOEP) with electron-acceptor tetracyano-π-quinodimethane (TCNQ), was studied by Density Functional Theory (DFT) methods. According to theoretical calculations, both cobalt systems can establish dispersion forces related to TCNQ and also in both cases the link between them is built by means of hydrogen bonds. Based on the results of these DFT calculations, we developed experimental work: the organic semiconductors were doped, and the thermal evaporation technique was used to prepare semiconductor thin films of such compounds. The structure of the films was studied by FTIR and Raman spectroscopy. The optical properties of the CoPc-TCNQ and CoOEP-TCNQ films were investigated by means of UV-Vis measurements. The results obtained were used to estimate the type of transitions and the optical bandgap. The results were compared to the previously calculated theoretical bandgap. The CoOEP-TCNQ film presented the smallest theoretical and experimental bandgap. Finally, the electrical properties of the organic semiconductors were evaluated from a PET (polyethylene terephthalate)/indium tin oxide (ITO)/cobalt macrocycle-TCNQ/silver (Ag) device we prepared. The CoOEP-TCNQ-based device showed an ohmic behavior. The device manufactured from CoPc-TCNQ also showed an ohmic behavior at low voltages, but significantly changed to SCLC (space-charge limited conductivity) at high voltage values.