CH <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sub> NH <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sub> PbI <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sub> (MAPI) thin films were prepared by co-evaporation of their precursors (lead iodide and methylammonium iodide). Evaporation process was automatically controlled with a virtual instrumentation system, which uses PID and PWM algorithms to control temperature and deposition rate. Using X-ray diffraction we were able to establish that MAPI samples grow with cubic structure. Also there was studied the influence of deposition parameters on optical, structural and morphological properties through spectral transmittance measurements and scanning electron microscopy. It was found that implemented method allows preparing MAPI thin films with appropriate properties to be used as active layer in hybrid solar cells. The applicability of the prepared MAPI films in photovoltaic devices has been demonstrated by using them in the fabrication of solar cells with structure FTO/ZnO/MAPI/P3HT/Au.