Electricals Vehicle

Vehicle-to-Grid Energy Management System Using a Bidirectional Converter

Awadhut B. Chougale1, Diksha Daulat Kanase2, Omkar Mansing Jadhav2, Anushka Sanjay Kolawale2, Sahil Ravindra Patil2

1Guide, Department of Electrical Engineering, Dr. D. Y. Patil Pratishthan’s College of Engineering, Salokhenagar, Kolhapur, Maharashtra, India

2Department of Electrical Engineering, Dr. D. Y. Patil Pratishthan’s College of Engineering, Salokhenagar, Kolhapur, Maharashtra, India

Published December 2026

Abstract

This paper describes a vehicle-to-grid (V2G) energy management system in which a bidirectional converter lets an electric vehicle (EV) battery draw power from the grid or return stored energy to it. The converter chain has a grid-side stage, a DC link, and a battery-side bidirectional stage. A controller reads battery voltage, current, temperature, and state of charge (SOC), together with grid voltage and current, and generates pulse-width-modulated (PWM) gating signals that select charging or discharging. The strategy is to charge during low-demand periods and discharge during peak periods while holding SOC inside set limits. The design was modeled in MATLAB/Simulink and driven from a 230 V, 50 Hz single-phase supply (325.27 V peak) over a 10 s run. The recorded waveforms show a steadily falling SOC trace, a sinusoidal grid voltage and grid current with a peak of up to 21.21 A, and a DC- link voltage that moves from an energization transient into an underdamped rise. The work is a simulation-level demonstration of an integrated architecture. It makes no claim of superiority over published controllers, and hardware validation remains future work.

Keywords: vehicle-to-grid; bidirectional converter; energy management; state of charge; smart grid; battery management

1Introduction

The increasing adoption of electric vehicles (EVs) is having a significant impact on electricity networks, as vehicle charging introduces additional demand on the power grid. However, Vehicle-to-Grid (V2G) technology offers a way to turn this challenge into an opportunity. Through V2G operation, a parked EV can supply stored electrical energy back to the grid whenever additional power is required, allowing its battery to function as a distributed energy storage system [1], [2].

To enable this bidirectional transfer of energy, a bidirectional DC-DC converter is used as an interface between the EV battery and the electrical grid. It supports two operating modes: Grid-to-Vehicle (G2V), in which electrical energy flows from the grid to charge the battery, and Vehicle-

to-Grid (V2G), in which stored battery energy is delivered back to the grid [2].

In the proposed system, a control unit is responsible for monitoring and managing the operation of the converter. It continuously monitors important battery parameters, including voltage, current, temperature, and state of charge (SOC), along with relevant grid-side parameters. Based on these measurements, the controller generates appropriate pulse-width modulation (PWM) signals to control the converter switches. Suitable operating limits are also incorporated to protect the battery and converter from unsafe operating conditions.

The main objective of this work is to reduce peak power demand, improve energy utilization, contribute to grid stability, and demonstrate the potential of EV batteries as distributed energy storage units. The proposed system architecture, its mathematical modelling, and governing equations are presented, followed by simulation results obtained using MATLAB/Simulink.

2Objectives

The objectives are to:

  1. 1. Build a V2G energy management system.
  2. 2. Enable bidirectional power flow between the EV and the grid.
  3. 3. Manage battery charging and discharging.
  4. 4. Monitor battery SOC, Current and Voltage.
  5. 5. Lower peak electrical demand.

3Literature review

Several

researchers have studied different converter

topologies used in V2G systems. Panchanathan et al. [3] discussed isolated and non-isolated bidirectional converter topologies and compared their performance based on efficiency, voltage regulation, and power quality. Jaman et al.

focused on integrated on-board charger and traction system designs. Their study covered different converter topologies, control techniques, charging standards, and power density. Similarly, Rana et al. [4] reviewed various charger topologies and the control methods used during G2V and V2G operations.

Apart from converter design, some researchers have focused on grid integration and battery performance. Adegbohun et al. [4] studied how bidirectional EV charging can support the electrical grid. They also highlighted the possibility of battery degradation due to repeated charging and discharging cycles. Comi et al. [5] conducted a systematic review of existing studies to understand the relationship between EV charging patterns, grid integration, and V2G applications. Munusamy and Vairavasundaram [1] explored the use of artificial intelligence and machine learning techniques in power converters, EV charging systems, and V2G energy management. In addition, Mittal et al. [6] demonstrated the operation of an electric vehicle in both G2V and V2G modes using a Second Order Generalized Integrator (SOGI) controller.

Research gap and project contribution: From the above studies, it can be observed that researchers have mainly focused on reviewing advanced converter topologies and developing individual control techniques. However, the present project focuses on a simulated system that brings together bidirectional power conversion, battery parameter monitoring, and both G2V and V2G operating modes in a single MATLAB/Simulink model. The project aims to demonstrate the working of this integrated system through simulation. It does not claim better performance than the existing converter or control techniques.

Block diagram of the V2G system with a bidirectional converter.
Figure 1. Block diagram of the V2G system with a bidirectional converter.

Table 1 collects these studies by focus.

Table 1. Summary of the reviewed studies.
Ref. Authors Focus
[3] Panchanathan et al. Isolated and non-isolated bidirectional converter topologies
[2] Jaman et al. Integrated on-board charger and traction systems
[4] Rana et al. Charger topologies and G2V/V2G control methods
[5] Adegbohun et al. Grid support and battery degradation
[6] Comi et al. EV charging behaviour and grid integration
[1] Munusamy and Vairavasundaram AI and machine learning in converters and V2G energy management
[7] Mittal et al. SOGI control in G2V and V2G modes

4Methodology

The power transfer between the EV battery and the electrical grid takes place through two converter stages connected by a DC-link capacitor, as shown in Figure 1. The first stage is a bidirectional DC–DC converter, which is connected to the battery, while the second stage is a bidirectional DC–AC converter connected to the grid through an L-filter. Voltage and current sensors continuously monitor the system parameters and send the measured values to a microcontroller, such as an ESP32 or STM32. The Battery Management System (BMS) also provides important battery information, including voltage, current, temperature, and State of Charge (SOC). Based on these measurements, the microcontroller generates PWM signals to control the switching devices in both converter stages.

The system operates in two modes: Grid-to-Vehicle (G2V) and Vehicle-to-Grid (V2G). In G2V mode, power is taken from the AC grid, converted into DC, and supplied to charge the EV battery. In V2G mode, the stored energy in the battery is converted back into AC power and supplied to the grid in synchronization with the grid voltage and frequency. An energy management system controls the selection of these two operating modes and decides the power level based on the battery SOC, grid power demand, and predefined operating limits.

5Proposed system architecture

The system consists of the following components.

5.1EV battery

The battery is the energy store. It absorbs energy in G2V mode and supplies it in V2G mode. Its instantaneous power is the product of terminal voltage and current:

P b = V b × I b (1)

where Pb is battery power in watts, Vb is terminal voltage in volts, and Ib is battery current in amperes.

5.2Bidirectional DC–DC converter

The bidirectional DC–DC converter controls the flow of DC power between the EV battery and the DC link. During G2V operation, it adjusts the DC-link voltage to provide the suitable voltage and current required for battery charging. During V2G operation, it increases the battery voltage to the required DC-link level, allowing power to flow from the battery towards the grid. It also helps maintain a controlled charging and discharging process.

5.3DC link

The DC link consists of a capacitor connected between the DC–DC converter and the inverter. Its main function is to maintain a nearly constant DC voltage and reduce voltage variations during operation. It also helps provide a stable DC supply to the inverter, ensuring smooth power transfer between the EV battery and the electrical grid.

5.4Bidirectional AC-DC

The bidirectional AC-DC is responsible for converting power between AC and DC forms. During G2V operation, it functions as a rectifier by converting the AC supply from the grid into DC power for battery charging. In V2G operation, it works as an inverter and converts DC power from the battery into AC power. The output is synchronized with the grid before power is supplied back to it.

5.5L filter

The L filter uses a single inductor connected between the inverter and the electrical grid. It helps reduce unwanted harmonics and current fluctuations generated during inverter switching. This makes the current waveform smoother and closer to a sinusoidal shape. It also improves power quality and supports smooth power transfer between the EV battery and the grid during both G2V and V2G operations.

5.6Bidirectional energy meter

The bidirectional energy meter measures the electrical energy transferred in both directions between the EV charging system and the grid. During G2V operation, it records the energy consumed from the grid for battery charging. During V2G operation, it measures the energy supplied back to the grid. These readings are useful for energy monitoring, billing, and calculating the total power exchanged.

5.7Electrical grid

The electrical grid is the main AC power network connected to the EV charging system. It supplies electrical energy to charge the EV battery during G2V operation. During V2G operation, it receives the stored energy from the EV battery. This bidirectional power exchange helps reduce peak demand and improves the overall performance of the power system.

5.8DC-side sensors

DC-side sensors are used to measure the voltage and current on the battery and DC–DC converter side. They continuously provide measurement signals to the controller. Based on these signals, the controller regulates the charging and discharging process, maintains the required voltage and current levels, and helps protect the battery and converter from abnormal operating conditions.

5.9Grid-side sensors

Grid-side sensors measure the voltage and current on the electrical grid side. The measured values are provided to the controller for monitoring grid conditions. These feedback signals help synchronize the inverter with the grid and control the power flow between the EV battery and the electrical network.

6Working principle

Once the EV is connected to the bidirectional charger, the energy management system monitors SOC, grid demand, and energy availability, and selects one of the modes below.

6.1G2V mode

The grid-side converter acts as an active rectifier, passing power from the AC grid through the filter to the DC link. The DC–DC converter then runs in buck direction and moves energy from the link to the battery while regulating the commanded charging current or voltage. The controller enforces battery current and voltage limits and supervises SOC and temperature. The grid-current reference is chosen to deliver the desired active power and, where required, near unity power factor.

6.2V2G mode

The battery discharges through the DC–DC converter in boost direction to support the DC link, and the grid-side converter injects controlled current into the AC grid as an inverter. The injected current must be synchronized with grid voltage, and its magnitude and phase set the active and reactive power exchanged. Discharge limits, DC-link regulation, anti-islanding protection, and applicable grid code constraints must all be respected.

Table 2 contrasts the two modes, the complementary switching intervals and the resulting rise and fall of inductor current in buck and boost modes.

Table 2. Operating modes of the proposed system.
Item G2V mode V2G mode
Power flow Grid to battery Battery to grid
Grid-side stage Active rectifier Inverter
DC–DC stage Buck direction Boost direction
Grid current In phase with voltage 180° out of phase with voltage
Meter reading Energy drawn Energy returned
Main limits Battery current, voltage, SOC, temperature Discharge limit, DC-link regulation, anti-islanding, grid code

7Energy management model

The energy management system sets power flow from grid

demand and battery condition. The SOC update over one time step is

S O C ( t + 1 ) = S O C ( t ) + η c h P c h Δ t E b − P d i s Δ t η d i s E b (4)

where SOC is state of charge, Pch and Pdis are charging and discharging power, ηch and ηdis are the corresponding efficiencies, Eb is battery capacity, and Δt is the time step. Grid power follows from the balance

P g r i d = P l o a d + P c h − P d i s − P r e (5)

where Pload is load demand and Pre is renewable generation. The system keeps SOC inside specified limits to protect battery life and keep energy available.

Mode selection: The controller applies a simple rule set. It charges the battery when grid demand is low and SOC is below its upper limit. It discharges to the grid when demand is at its peak and SOC is above its lower limit. In every other case it holds the battery idle, so that the SOC window set by the designer is never crossed. The charge and discharge power commands are then passed to the current loops as references.

7.1DC–DC stage conversion ratios

The stage transfers energy between a low-voltage battery port and the higher-voltage DC-link port. For an ideal non-isolated buck converter in continuous conduction, the steady-state conversion ratio is

V o V i = D (2)

where Vo is the output voltage, Vi is the input voltage, and D is the duty ratio. For an ideal boost converter,

V o = V i 1 − D (3)

These ideal relations give a first estimate of duty cycle. A

practical design must also allow for semiconductor voltage drops, inductor resistance, switching losses, ripple, and controller limits. The PSO-tuned converter study [8] describes

8Simulation model

The system was modelled in MATLAB/Simulink (Figure 2). On the grid side the model has a single-phase source, an

(3) inductive filter, and a full-bridge converter. A DC-link capacitor joins it to a half-bridge bidirectional DC–DC stage

connected to a battery block. Three control loops generate the PWM signals: current and power-factor control for the grid converter, DC-link voltage control, and battery current control.

Simulink model of the V2G and G2V management system using a bidirectional converter.
Figure 2. Simulink model of the V2G and G2V management system using a bidirectional converter.

Figure 2. Simulink model of the V2G and G2V management system using Bidirectional Converter.

9Results

9.1Battery SOC, voltage, and current

The given waveform represents the dynamic response of a system over time and consists of three different curves: blue, red, and purple. The blue waveform shows a gradually decreasing response from its initial high value, indicating a continuous reduction in the corresponding parameter with time. The red waveform starts from a low value and increases rapidly during the initial stage. As time progresses, its rate of increase becomes slower, and it eventually reaches an almost constant value, indicating that the system is approaching a

steady-state condition. The purple waveform starts at a high

value and decreases rapidly at the beginning, followed by a slower reduction until it approaches zero. This behavior represents an exponential decay response, in which the initial transient gradually disappears. Overall, the three waveforms illustrate the changing behavior of different system parameters with respect to time, showing the transient response and the approach towards steady-state operation. These curves help us understand how the system responds initially and how its parameters stabilize over time.

SOC, battery voltage and battery current.
Figure 3. SOC, battery voltage and battery current.

9.2Grid voltage and current

Figure 4 illustrates the grid voltage and current waveforms during the simulation, while Table 3 summarizes their corresponding values. The grid voltage is a single-phase sinusoidal waveform with a frequency of 50 Hz and an RMS value of 230 V, corresponding to a peak voltage of approximately 325.27 V. The grid current also follows a sinusoidal pattern, with its RMS value generally ranging from 5 A to 15 A and its peak value reaching approximately

21.21 A.

During G2V (Grid-to-Vehicle) operation, the current remains in phase with the grid voltage, indicating that power flows from the grid to the battery. In contrast, during V2G (Vehicle-to-Grid) operation, the current shifts by 180°, indicating that power is transferred from the battery back to the grid.

Table 3. Grid-side quantities from the simulation.
Quantity Reported value
Grid voltage (RMS) 230 V
Grid voltage (peak) 325.27 V
Grid frequency 50 Hz
Grid current (RMS) 5–15 A (typical)
Grid current (peak) Up to 21.21 A
Simulation length 10 s
Grid voltage (top) and grid current (bottom).
Figure 4. Grid voltage (top) and grid current (bottom).

9.3DC-link voltage

Figure 5 shows the variation in DC-link voltage during the simulation. At the beginning, the voltage experiences a sudden spike due to the initial energization of the system. This is followed by a short period of high-frequency fluctuations as the converter switching begins. After this initial transient, the DC-link voltage gradually increases with some oscillations as the capacitor charges. Eventually, the voltage moves towards its steady-state value, indicating that the DC-link is becoming stable.

DC-link voltage during start-up.
Figure 5. DC-link voltage during start-up.

Scope and Limitations: The results presented in this study are based on a single simulation run using one converter configuration. Although the simulation provides an overview of the system's performance, some important parameters, such as grid current harmonics, converter efficiency, and thermal behavior, have not been evaluated. Therefore, the effectiveness of the filter in meeting the limits specified in reference [7] cannot yet be fully confirmed. Furthermore, the simulation uses an ideal power source and battery model, which does not fully represent practical operating conditions such as cable impedance, grid disturbances, and battery aging. These factors should be considered in future work to obtain a more realistic assessment of the system's performance.

10Advantages

Since the system allows power to flow in both directions, it offers several practical benefits. It can help reduce peak power demand, make better use of available energy, and support the integration of renewable energy sources. It also provides flexibility in managing EV charging, improves load balancing, and creates opportunities for future smart-grid applications.

11Applications

A bidirectional V2G energy management system makes it possible for electric vehicles to both draw power and push it back when the grid needs help. When demand spikes, parked EVs can ease the load by discharging stored energy, and they can recharge during quieter hours when power is cheaper and less strained. They can also soak up extra solar or wind energy when generation is high and send it back when the sun goes down or the wind dies down. Around campuses, offices, and local microgrids, this helps keep voltage steady and local loads balanced, while giving critical equipment a temporary power cushion during an outage. Over time, smart charging hubs and fleet operators can time charging and discharging around battery state of charge and electricity rates to get more value out of every cycle.

12Challenges and future research

There are still several challenges that need to be addressed before bidirectional EV charging can be widely implemented. These include battery degradation due to frequent charging and discharging cycles [5], the high cost of bidirectional charging equipment, and the need for reliable communication and control systems. Other important concerns include maintaining power quality, proper grid synchronization, the availability of EVs for grid support, and meeting electrical safety and grid interconnection requirements. In future work, these challenges could be addressed by introducing AI-based energy management techniques [1], improving smart charging methods, and using IoT technology for remote monitoring.

Further improvements in battery management systems, renewable energy-based V2G applications, and the development of low-cost bidirectional converters could also help make the system more efficient, reliable, and suitable for practical applications.

13Conclusion

This paper presented a Vehicle-to-Grid (V2G) energy management system based on a bidirectional converter and a control strategy that manages battery charging and discharging according to grid demand, battery State of Charge (SOC), and available energy. The system was modelled and simulated using MATLAB/Simulink. The simulation results showed sinusoidal grid voltage and current waveforms at 230 V RMS and 50 Hz, a gradual decrease in battery SOC, and a DC-link voltage that increased with some oscillations before approaching its steady-state value.

These results demonstrate that the proposed system can perform bidirectional power flow under simulated conditions. However, the actual benefits of peak shaving and its performance compared with other control methods have not yet been verified. Further work will focus on measuring peak-

shaving performance, conducting practical hardware experiments, and studying the effects of battery aging to evaluate the system under real-world operating conditions.

Acknowledgement

The authors would like to express their sincere gratitude to the Department of Electrical Engineering at Dr. D. Y. Patil Pratishthan’s College of Engineering for providing the necessary laboratory facilities, software resources, and support throughout this work. Their assistance and encouragement played an important role in completing this study.

References

  1. [1]N. Munusamy and I. Vairavasundaram, “AI and Machine Learning in V2G Technology: A Review of Bi-Directional Converters, Charging Systems, and Control Strategies for Smart Grid Integration,” e-Prime – Advances in Electrical Engineering, Electronics and Energy, vol. 10, Art. no. 100856, Dec. 2024, doi: 10.1016/j.prime.2024.100856.
  2. [2]S. Jaman, S. Chakraborty, D.-D. Tran, T. Geury, M. El Baghdadi, and O. Hegazy, “Review on Integrated On-Board Charger-Traction Systems: V2G Topologies, Control Approaches, Standards and Power Density State-of-the-Art for Electric Vehicle,” Energies, vol. 15, no. 15, Art. no. 5376, 2022, doi: 10.3390/en15155376.
  3. [3]S. Panchanathan, P. Vishnuram, N. Rajamanickam, M. Bajaj, V. Blazek, L. Prokop, and S. Misak, “A Comprehensive Review of the Bidirectional Converter Topologies for the Vehicle-to-Grid System,” Energies, vol. 16, no. 5, Art. no. 2503, 2023, doi: 10.3390/en16052503.
  4. [4]F. Adegbohun, A. von Jouanne, E. Agamloh, and A. Yokochi, “A Review of Bidirectional Charging Grid Support Applications and Battery Degradation Considerations,” Energies, vol. 17, no. 6, Art. no. 1320, 2024, doi: 10.3390/en17061320.
  5. [5]A. Comi, U. Crisalli, and S. Sportiello, “Forecasting the Vehicle Energy Potential to Support the Needs of Electricity Grid: A Floating Car Data-Based Methodology,” Frontiers in Future Transportation, vol. 5, Art. no. 1500224, 2024, doi: 10.3389/ffutr.2024.1500224.
  6. [6]S. Mittal, A. Singh, and P. Chittora, “EV Control in G2V and V2G Modes Using SOGI Controller,” in Proc. 2022 IEEE 3rd Global Conference for Advancement in Technology (GCAT), Bangalore, India, Oct. 7–9, 2022, pp. 1–6, doi: 10.1109/GCAT55367.2022.9972182.
  7. [7]IEEE Standard for Harmonic Control in Electric Power Systems, IEEE Std 519-2022, Aug. 5, 2022