The piezoelectric nanogenerator has been effectively presented to obtain mechanical energy from the environment over the past few years. The nanocomposite was developed using an electrospinning method to improve the piezoelectric properties of PVDF and ZnO in order to be used in electronic devices. The present study, surveyed the effects of such parameters as voltage, rotational speed of the collector and ZnO nanoparticle concentration on the output voltage of the nanogenerator. The results showed that ZnO nanoparticles in PVDF nanofibers improved piezoelectric properties compared to pure PVDF samples. Also, with increased voltage and rotational speed of the collector, the output voltage of the nanogenerator increased. The electrical output of the composite samples up to 882 mV improved in comparison to the pure sample of 509 mV. The software Design expert 7.0 and Response Surface Method (RSM) were used to analysis the results.