This proposes a comprehensive methodology for the design of a controllable electric vehicle charger with PV system has capable of making the most of the interaction with an autonomous smart energy management system (EMS) in a residential setting. Autonomous EMSs aim is achieving the potential benefits associated with energy exchanges between consumers and the grid, using bidirectional and power controllable electric vehicle chargers. A suitable design for a controllable charger is presented, including the sizing of passive elements and controllers. The increase in the electric vehicle mobility has encouraged the growth of vehicle to grid technology. The vehicle to grid technology allows bidirectional power flow between the battery of electric vehicle and grid. This allows peak load sharing, load levelling voltage regulation and improvement of power system stability. In this we developed on-board bidirectional battery charger for electric vehicles (EVs) targeting Grid-to-Vehicle (G2V), Vehicle-to-Grid (V2G), and Vehicle-to-home (V2H) technologies.