Battery Charging Using Fuzzy Logic Based MPPT Algorithm

Battery Charging Using Fuzzy Logic Based MPPT Algorithm using a Buck Converter
390 Downloads
Updated 14 Apr 2023

View License

Based on Battery Charging using Fuzzy Logic Controller using logic ,simulation is to be done in discrete time mode with sample size of 1 micro second .
[System]
Name='mppttestcopy'
Type='mamdani'
Version=2.0
NumInputs=2
NumOutputs=1
NumRules=25
AndMethod='min'
OrMethod='max'
ImpMethod='min'
AggMethod='max'
DefuzzMethod='centroid'
[Input1]
Name='dPpv'
Range=[-30 30]
NumMFs=5
MF1='NB':'trimf',[-45 -30 -15]
MF2='NS':'trimf',[-30 -15 0]
MF3='ZE':'trimf',[-15 0 15]
MF4='PS':'trimf',[0 15 30]
MF5='PB':'trimf',[15 30 45]
[Input2]
Name='dVpv'
Range=[-16.1 16.1]
NumMFs=5
MF1='NB':'trimf',[-24.15 -16.1 -8.05]
MF2='NS':'trimf',[-16.1 -8.05 0]
MF3='ZE':'trimf',[-8.05 0 8.05]
MF4='PS':'trimf',[0 8.05 16.1]
MF5='PB':'trimf',[8.05 16.1 24.15]
[Output1]
Name='PWM'
Range=[-16.1 16.1]
NumMFs=5
MF1='NB':'trimf',[-24.15 -16.1 -8.05]
MF2='NS':'trimf',[-16.1 -8.05 0]
MF3='ZE':'trimf',[-8.05 0 8.05]
MF4='PS':'trimf',[0 8.05 16.1]
MF5='PB':'trimf',[8.05 16.1 24.15]
[Rules]
1 1, 4 (1) : 1
1 2, 5 (1) : 1
1 3, 1 (1) : 1
1 4, 1 (1) : 1
1 5, 2 (1) : 1
2 1, 4 (1) : 1
2 2, 4 (1) : 1
2 3, 2 (1) : 1
2 4, 2 (1) : 1
2 5, 2 (1) : 1
3 1, 3 (1) : 1
3 2, 3 (1) : 1
3 3, 3 (1) : 1
3 4, 3 (1) : 1
3 5, 3 (1) : 1
4 1, 2 (1) : 1
4 2, 2 (1) : 1
4 3, 4 (1) : 1
4 4, 4 (1) : 1
4 5, 4 (1) : 1
5 1, 2 (1) : 1
5 2, 1 (1) : 1
5 3, 5 (1) : 1
5 4, 5 (1) : 1
5 5, 4 (1) : 1

Cite As

Krishanu Singh (2025). Battery Charging Using Fuzzy Logic Based MPPT Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/127798-battery-charging-using-fuzzy-logic-based-mppt-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0