Environmental concerns and the depletion of fossil fuel supplies are driving the rapid integration of photovoltaic (PV) systems into the electrical grid and electric vehicles (EVs) into the transportation sector. Issues like unpredictable power outages and shifts in demand require a cost-benefit analysis and efficient scheduling. In order to optimize PV power consumption and EV charging while taking seasonal variations into consideration, this study offers a novel solar-based grid-tied charging station with an improved scheduling technique. The existing charging station connected to the grid and solar promises not only reduced grid demand and cost savings, but also energy independence and environmental benefits. In the actual case in Rajshahi, Bangladesh, it is carried out using a Homer Grid case study. Bangladesh may promote environmental sustainability and resource conservation with this technology.