A solar photovoltaic (PV) water pumping system with bidirectional power flow control is proposed in this research. The brushless DC (BLDC) motor-drive without phase current sensors is used to power the pump. The water pump may be operated at full capacity, around-the-clock, and in any weather, thanks to this device's ability to provide electricity to a single-phase utility grid when not in use for pumping water. You can get the most out of your photovoltaic array and your motor-pump, and you can rest assured that your pumping system will work when you need it to. A single-phase voltage source converter (VSC) using a unit vector template (UVT) generating technique is used to regulate bidirectional power flow between the grid and the DC bus of a voltage source inverter (VSI) that supplies a brushless DC motor (BLDC). The VSI's switching loss is minimized when it operates at its fundamental frequency. This method allows for a PV array to operate at its MPP while also correcting power factor and lowering the total harmonic distortion (THD) of the grid. The flexibility and reliability of the MATLAB/Simulink platform have been demonstrated through a variety of simulation findings that have been implemented in hardware.