In this paper, an optimal controller for a batteryless grid-connected photovoltaic system to power water supply system for irrigation purposes was developed. Whether it's a single microgrid for a remote facility or a portfolio of systems across multiple sites, our solutions are. The shift toward solar-powered automated irrigation systems allows farmers to optimize water usage, reduce dependence on grid electricity, and enhance overall sustainability. Engineered by means of Huijue Group in collaboration with. Founded in 2016, Senta Energy Co., located in Wuxi, Jiangsu, is a high-tech enterprise mainly engaged in new energy photovoltaic power generation and energy storage business, new building prefabricated houses and new agricultural distributed planting business.