top of page

๐…๐ฎ๐ณ๐ณ๐ฒ ๐‹๐จ๐ ๐ข๐œ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐Ÿ ๐•๐Ÿ๐† ๐š๐ง๐ ๐†๐Ÿ๐• ๐ข๐ง ๐’๐ข๐ง๐ ๐ฅ๐ž ๐๐ก๐š๐ฌ๐ž ๐†๐ซ๐ข๐ ๐ข๐ง ๐Œ๐€๐“๐‹๐€๐

๐…๐ฎ๐ณ๐ณ๐ฒ ๐‹๐จ๐ ๐ข๐œ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐Ÿ ๐•๐Ÿ๐† ๐š๐ง๐ ๐†๐Ÿ๐• ๐ข๐ง ๐’๐ข๐ง๐ ๐ฅ๐ž ๐๐ก๐š๐ฌ๐ž ๐†๐ซ๐ข๐ ๐ข๐ง ๐Œ๐€๐“๐‹๐€๐

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.


๐…๐ฎ๐ณ๐ณ๐ฒ ๐‹๐จ๐ ๐ข๐œ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐จ๐Ÿ ๐•๐Ÿ๐† ๐š๐ง๐ ๐†๐Ÿ๐• ๐ข๐ง ๐’๐ข๐ง๐ ๐ฅ๐ž ๐๐ก๐š๐ฌ๐ž ๐†๐ซ๐ข๐ ๐ข๐ง ๐Œ๐€๐“๐‹๐€๐
Fuzzy Logic control of V2G and G2V in Single Phase Grid in MATLAB
โ‚น8,000.00โ‚น4,000.00
Buy Now

๐–๐ก๐š๐ญ ๐ข๐ฌ ๐•๐Ÿ๐† ๐š๐ง๐ ๐†๐Ÿ๐•?

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


bottom of page