๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐ ๐๐๐ ๐๐ง๐ ๐๐๐ ๐ข๐ง ๐๐ข๐ง๐ ๐ฅ๐ ๐๐ก๐๐ฌ๐ ๐๐ซ๐ข๐ ๐ข๐ง ๐๐๐๐๐๐
- lms editor
- 3 hours ago
- 4 min read
๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐ ๐๐๐ ๐๐ง๐ ๐๐๐ ๐ข๐ง ๐๐ข๐ง๐ ๐ฅ๐ ๐๐ก๐๐ฌ๐ ๐๐ซ๐ข๐ ๐ข๐ง ๐๐๐๐๐๐
This blog explains a ๐๐๐๐๐๐/๐๐ข๐ฆ๐ฎ๐ฅ๐ข๐ง๐ค model for ๐๐๐ก๐ข๐๐ฅ๐-๐ญ๐จ-๐๐ซ๐ข๐ and ๐๐ซ๐ข๐-๐ญ๐จ-๐๐๐ก๐ข๐๐ฅ๐ operation in a ๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐ ๐๐๐ ๐๐ง๐ ๐๐๐ ๐ข๐ง ๐๐ข๐ง๐ ๐ฅ๐ ๐๐ก๐๐ฌ๐ ๐๐ซ๐ข๐ ๐ข๐ง ๐๐๐๐๐๐ .
The model uses ๐๐ฎ๐ณ๐ณ๐ฒ ๐ฅ๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ to regulate battery current and manage bidirectional power flow between the electric vehicle battery and the grid.

๐๐ก๐๐ญ ๐ข๐ฌ ๐๐๐ ๐๐ง๐ ๐๐๐?
Mode | Power Flow | Battery Condition |
๐๐๐ | Battery to grid | Discharging |
๐๐๐ | Grid to battery | Charging |
๐๐๐ข๐ง ๐๐๐๐ ๐จ๐ ๐ญ๐ก๐ข๐ฌ ๐๐จ๐๐๐ฅ
โข The system is designed for ๐ฌ๐ข๐ง๐ ๐ฅ๐-๐ฉ๐ก๐๐ฌ๐ ๐ ๐ซ๐ข๐ operation.
โข The grid can charge the vehicle battery in ๐๐๐ mode.
โข The vehicle battery can send power back to the grid in ๐๐๐ mode.
โข The battery current direction is controlled using ๐๐ฎ๐ณ๐ณ๐ฒ ๐ฅ๐จ๐ ๐ข๐.
โข The DC link voltage is regulated around ๐C ๐ฅ๐ข๐ง๐ค ๐ซ๐๐๐๐ซ๐๐ง๐๐ ๐ฏ๐จ๐ฅ๐ญ๐๐ ๐ of 380 V.
๐๐ฒ๐ฌ๐ญ๐๐ฆ ๐๐จ๐ง๐๐ข๐ ๐ฎ๐ซ๐๐ญ๐ข๐จ๐ง
Parameter | Value / Description |
Simulation platform | MATLAB/Simulink |
Grid type | Single-phase grid |
Grid peak voltage | 325 V |
Grid frequency | 50 Hz |
Source-side inductance | 2.3 mH |
DC link reference voltage | 380 V |
Battery type | Lithium-ion battery |
Battery nominal voltage | 220 V |
Battery capacity | 48 Ah |
Initial battery SOC | 50% |
Control methods | Converter control + fuzzy logic control |
๐๐๐ฃ๐จ๐ซ ๐๐จ๐ฐ๐๐ซ ๐๐ข๐ซ๐๐ฎ๐ข๐ญ ๐๐ฅ๐จ๐๐ค๐ฌ
Block | Purpose |
Single-phase grid | Supplies or receives power |
Series inductance | Supports current smoothing |
Single-phase converter | Converts AC to DC and DC to AC |
DC link capacitor | Maintains stable DC link voltage |
Bidirectional converter | Controls battery charging and discharging |
LC filter | Reduces switching ripple |
Battery | Stores and supplies energy |
๐๐ข๐ง๐ ๐ฅ๐-๐๐ก๐๐ฌ๐ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ
The single-phase converter operates in both directions.
Operation | Converter Action |
During ๐๐๐ | Converts AC power from grid to DC |
During ๐๐๐ | Converts DC power from battery side to AC |
Main role | Controls grid-side current and power flow |
๐๐ข๐๐ข๐ซ๐๐๐ญ๐ข๐จ๐ง๐๐ฅ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ
The bidirectional converter is connected between the DC link and the battery.
It includes:
โข ๐๐ฐ๐จ ๐๐๐๐ ๐ฌ๐ฐ๐ข๐ญ๐๐ก๐๐ฌ
โข ๐๐ ๐๐ข๐ฅ๐ญ๐๐ซ
โข ๐๐๐ ๐ฉ๐ฎ๐ฅ๐ฌ๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ
โข ๐ ๐ฎ๐ณ๐ณ๐ฒ ๐ฅ๐จ๐ ๐ข๐ ๐๐ฎ๐ญ๐ฒ ๐๐ฒ๐๐ฅ๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ
๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐๐ซ๐จ๐๐๐ฌ๐ฌ
The fuzzy logic controller controls the battery current.
๐๐ง๐ฉ๐ฎ๐ญ๐ฌ ๐ญ๐จ ๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ
Input | Meaning |
Error | Difference between reference current and actual battery current |
Change in error | Rate of change of battery current error |
๐๐ฎ๐ญ๐ฉ๐ฎ๐ญ ๐จ๐ ๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ
Output | Purpose |
Duty cycle | Controls bidirectional converter switching |
๐ ๐ฎ๐ณ๐ณ๐ฒ ๐๐ฎ๐ฅ๐ ๐๐๐ญ๐๐ข๐ฅ๐ฌ
Item | Details |
Input 1 | Error |
Input 2 | Change in error |
Output | Duty cycle |
Error membership functions | 5 |
Change in error membership functions | 5 |
Duty cycle membership functions | 5 |
Total fuzzy rules | 25 |
๐๐จ๐๐ ๐๐๐ฅ๐๐๐ญ๐ข๐จ๐ง ๐๐ฌ๐ข๐ง๐ ๐๐๐๐๐ซ๐๐ง๐๐ ๐๐ฎ๐ซ๐ซ๐๐ง๐ญ
Reference Current | Operating Mode | Battery Action |
Positive current | ๐๐๐ | Battery discharges |
Negative current | ๐๐๐ | Battery charges |
๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐๐จ๐ ๐ข๐
The converter control is used to maintain the DC link voltage and control the grid-side current.
๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐๐ญ๐๐ฉ๐ฌ
โข Measure the ๐๐ ๐ฅ๐ข๐ง๐ค ๐ฏ๐จ๐ฅ๐ญ๐๐ ๐.
โข Compare it with the reference voltage of 380 V.
โข Process the voltage error through a ๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ.
โข Generate the peak current reference.
โข Measure grid voltage and process it through ๐๐๐.
โข Generate sinusoidal current reference.
โข Compare reference current with source current.
โข Generate modulating signal using another ๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ.
โข Produce switching pulses using ๐ฌ๐ข๐ง๐ฎ๐ฌ๐จ๐ข๐๐๐ฅ ๐๐๐.
๐๐ข๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐จ๐ง ๐๐๐ฌ๐ญ ๐๐๐ฌ๐๐ฌ
Time | Reference Current | Mode | Battery Status |
0 to 1 s | +10 A | V2G | Discharging |
After 1 s | โ10 A | G2V | Charging |
The model can also be tested in reverse order:
Time | Reference Current | Mode | Battery Status |
0 to 1 s | โ10 A | G2V | Charging |
After 1 s | +10 A | V2G | Discharging |
๐๐๐ ๐๐ฉ๐๐ซ๐๐ญ๐ข๐จ๐ง ๐๐๐ฌ๐ฎ๐ฅ๐ญ๐ฌ
During ๐๐๐ mode:
โข Battery current is maintained at ๐ฉ๐จ๐ฌ๐ข๐ญ๐ข๐ฏ๐ 10 A.
โข Battery SOC starts decreasing from 50%.
โข Battery operates in ๐๐ข๐ฌ๐๐ก๐๐ซ๐ ๐ข๐ง๐ ๐ฆ๐จ๐๐.
โข Battery supplies power to the grid.
โข Source voltage and source current have 180ยฐ phase difference.
โข DC link voltage is maintained around 380 V.
๐๐๐ ๐๐ฉ๐๐ซ๐๐ญ๐ข๐จ๐ง ๐๐๐ฌ๐ฎ๐ฅ๐ญ๐ฌ
During ๐๐๐ mode:
โข Battery current changes to ๐ง๐๐ ๐๐ญ๐ข๐ฏ๐ 10 A.
โข Battery SOC starts increasing.
โข Battery operates in ๐๐ก๐๐ซ๐ ๐ข๐ง๐ ๐ฆ๐จ๐๐.
โข Grid supplies power to the battery.
โข Source voltage and source current are in phase.
โข The system maintains unity power factor operation.
๐๐ ๐๐ข๐ง๐ค ๐๐จ๐ฅ๐ญ๐๐ ๐ ๐๐๐ฌ๐ฉ๐จ๐ง๐ฌ๐
Condition | Observation |
Steady operation | DC link voltage remains near 380 V |
Mode change | Small transient occurs |
Settling response | Voltage settles around 380 V |
Reason for transient | Change from V2G to G2V or G2V to V2G |
๐๐ข๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐จ๐ง ๐๐ฎ๐ญ๐ฉ๐ฎ๐ญ๐ฌ ๐๐๐ฌ๐๐ซ๐ฏ๐๐
Output | Purpose |
Source voltage | Checks grid voltage waveform |
Source current | Checks current phase and waveform |
Battery SOC | Shows charging or discharging |
Battery current | Confirms V2G or G2V mode |
Battery voltage | Monitors battery terminal voltage |
DC link voltage | Verifies DC bus regulation |
๐๐๐ฒ ๐ ๐๐๐ญ๐ฎ๐ซ๐๐ฌ
โข ๐๐๐๐๐๐/๐๐ข๐ฆ๐ฎ๐ฅ๐ข๐ง๐ค based V2G and G2V model
โข Single-phase grid operation
โข Fuzzy logic based battery current control
โข Bidirectional power flow between grid and battery
โข DC link voltage regulation around 380 V
โข Lithium-ion battery charging and discharging analysis
โข Source current control using converter control logic
โข Sinusoidal PWM based converter switching
โข Unity power factor operation during grid interaction
๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง๐ฌ
โข Electric vehicle charging research
โข Vehicle-to-grid system analysis
โข Grid-to-vehicle charging control
โข Smart grid energy management
โข Battery current control studies
โข Fuzzy logic controller design
โข Power electronics converter simulation
โข MATLAB/Simulink academic projects
๐๐ฏ๐๐ซ๐๐ฅ๐ฅ ๐๐จ๐ซ๐ค๐ข๐ง๐ ๐๐ฎ๐ฆ๐ฆ๐๐ซ๐ฒ
Stage | Description |
Step 1 | Select reference current |
Step 2 | Decide V2G or G2V operation |
Step 3 | Measure actual battery current |
Step 4 | Calculate error and change in error |
Step 5 | Generate duty cycle using fuzzy logic |
Step 6 | Produce PWM pulses for bidirectional converter |
Step 7 | Maintain DC link voltage using converter control |
Step 8 | Analyze battery SOC, current, voltage, and grid response |
๐๐จ๐ง๐๐ฅ๐ฎ๐ฌ๐ข๐จ๐ง
This MATLAB/Simulink model clearly demonstrates ๐๐ฎ๐ณ๐ณ๐ฒ ๐ฅ๐จ๐ ๐ข๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐ ๐๐๐ ๐๐ง๐ ๐๐๐ in a single-phase grid.
The model shows how positive and negative battery current references are used to change the operating mode.
The fuzzy logic controller regulates the battery current, while the converter control maintains DC link voltage and grid-side current quality.
This model is useful for students, researchers, and engineers working on ๐๐ ๐๐ก๐๐ซ๐ ๐ข๐ง๐ , ๐๐ข๐๐ข๐ซ๐๐๐ญ๐ข๐จ๐ง๐๐ฅ ๐ฉ๐จ๐ฐ๐๐ซ ๐๐ฅ๐จ๐ฐ, ๐ฌ๐ฆ๐๐ซ๐ญ ๐ ๐ซ๐ข๐, and ๐๐๐๐๐๐/๐๐ข๐ฆ๐ฎ๐ฅ๐ข๐ง๐ค control applications.
Comments