With the enormous stress of energy lack and air pollution, renewable energy sources such as photovoltaic sources become an effective solution to solve these problems. The penetration of inertia-less photovoltaic sources into power system has adverse effects on the overall system inertia which threatens system stability. As a solution for this problem, virtual inertia technique can be used as a system controller in order to enhance the system performance and maintain its stability. In this paper, an adaptive virtual synchronous generator (VSG) controller based on the oscillation motion of the synchronous machine is introduced. Then, a proposed VSG with adaptive neuro-fuzzy inference system (ANFIS) is presented as an inverter controller. The system response is investigated and compared with other control methods under different operating scenarios. To verify the effectiveness of the proposed adaptive VSG, an experimental setup is presented with real-time implementation for the system using dSPACE DS1104 interfacing with MATLAB software, and the system response is investigated under different operating scenarios. Upon the presented results, there is an enhancement in the system response when the proposed adaptive VSG with ANFIS controller is used, and this emphasizes the superiority of using such controller in PV systems over other techniques.