Skip to content

Commit 56b2c56

Browse files
committed
Add Files
1 parent 07c3383 commit 56b2c56

20 files changed

+402
-0
lines changed

.gitattributes

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*.fig binary
2+
*.mat binary
3+
*.mdl binary diff merge=mlAutoMerge
4+
*.mdlp binary
5+
*.mexa64 binary
6+
*.mexw64 binary
7+
*.mexmaci64 binary
8+
*.mlapp binary
9+
*.mldatx binary
10+
*.mlproj binary
11+
*.mlx binary
12+
*.p binary
13+
*.sfx binary
14+
*.sldd binary
15+
*.slreqx binary merge=mlAutoMerge
16+
*.slmx binary merge=mlAutoMerge
17+
*.sltx binary
18+
*.slxc binary
19+
*.slx binary merge=mlAutoMerge
20+
*.slxp binary
21+
22+
## Other common binary file types
23+
*.docx binary
24+
*.exe binary
25+
*.jpg binary
26+
*.pdf binary
27+
*.png binary
28+
*.xlsx binary

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# List of untracked files to ignore
267 KB
Binary file not shown.
63.6 KB
Binary file not shown.
594 KB
Binary file not shown.

01_Models/SinglePhaseInverter.slx

270 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
disp("Run_Accuracy-oriented model");
2+
tic;sim("BuckConverter_accuracy_oriented");toc
3+
disp("Run Simulation Speed-oriented model");
4+
tic;sim("BuckConverter_speed_oriented");toc
5+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
%Copyright 2021 - 2025 The MathWorks, Inc.
2+
%Auther Yuki Kamatani@ MathWorks Japan
3+
4+
%======================================
5+
%PWM Unit Parameters
6+
fsw = 100e3; %Hz
7+
PWM_Resolution = 0.001;
8+
TimerCountMax = 1/ PWM_Resolution;
9+
CarrierSampleTime = 1 / fsw * PWM_Resolution;
10+
DeadTime = 1/fsw*PWM_Resolution;
11+
12+
%Set Duty Limit
13+
MinDuty = 0.02;
14+
MaxDuty = 0.95;
15+
16+
%======================================
17+
%Sensor ADC Quantization bit
18+
ADC_QuantBit = 12;
19+
QuantResolution = 1/(2^ADC_QuantBit);
20+
MaxRange = 50;%[A]
21+
MinRange = -50;%[A]
22+
QuantUnit = (MaxRange - MinRange) * QuantResolution;%[V]
23+
24+
25+
%======================================
26+
%Circuit components Parameters
27+
L = 1500e-6;%[H]
28+
RdsON_FET = 10e-3;%[Ω]
29+
VinDC = 400;%[V]
30+
VoutAC_rms = 100;%[V]
31+
fg = 60;%[Hz]
32+
Initial_M = VoutAC_rms/VinDC;
33+
34+
%======================================
35+
%Control Design
36+
s = tf('s');
37+
38+
%制御対象回路の伝達関数をモデリング
39+
Plant = 1/(L*s + RdsON_FET);
40+
41+
Plant_d = c2d(Plant,1/fsw);
42+
43+
%制御の帯域幅を設定
44+
45+
TargetCntF = 2*pi*1000;%カットオフ周波数(rad)
46+
Tcnt = 1 / TargetCntF;
47+
48+
%内部モデル原理に基づきコントローラーを設計
49+
Controller = 1 / Plant * 1 / (Tcnt * s);
50+
51+
%等価な伝達関数を持つPIパラメータを算出
52+
Ti = 1/TargetCntF/RdsON_FET;
53+
Kp = L/RdsON_FET / Ti;
54+
PICnt = (Kp*Ti*s+1) / Ti/s;
55+

02_Parameters/Param_BidCnv.m

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
%Copyright 2021 - 2025 The MathWorks, Inc.
2+
%Auther Yuki Kamatani@ MathWorks Japan
3+
4+
%======================================
5+
%PWM Unit Parameters
6+
fsw = 100e3; %Hz
7+
PWM_Resolution = 0.001;
8+
TimerCountMax = 1/ PWM_Resolution;
9+
CarrierSampleTime = 1 / fsw * PWM_Resolution;
10+
DeadTime = 1/fsw*PWM_Resolution;
11+
12+
%Set Duty Limit
13+
MinDuty = 0.01;
14+
MaxDuty = 0.95;
15+
16+
%======================================
17+
%Sensor ADC Quantization bit
18+
ADC_QuantBit = 12;
19+
QuantResolution = 1/(2^ADC_QuantBit);
20+
MaxRange = 50;%[A]
21+
MinRange = -50;%[A]
22+
QuantUnit = (MaxRange - MinRange) * QuantResolution;%[V]
23+
24+
25+
%======================================
26+
%Circuit components Parameters
27+
L = 500e-6;%[H]
28+
RdsON_FET = 10e-3;%[Ω]
29+
VinDC = 100;%[V]
30+
VoutDC = 50;%[V]
31+
32+
%======================================
33+
%Control Design
34+
s = tf('s');
35+
36+
%制御対象回路の伝達関数をモデリング
37+
Plant = 1/(L*s + RdsON_FET);
38+
39+
%制御の帯域幅を設定
40+
TargetCntF = 2*pi*500;%カットオフ周波数(rad)
41+
Tcnt = 1 / TargetCntF;
42+
43+
%内部モデル原理に基づきコントローラーを設計
44+
Controller = 1 / Plant * 1 / (Tcnt * s);
45+
46+
%等価な伝達関数を持つPIパラメータを算出
47+
Ti = 1/TargetCntF/RdsON_FET;
48+
Kp = L/RdsON_FET / Ti;
49+
PICnt = (Kp*Ti*s+1) / Ti/s;
50+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
%Copyright 2021 - 2025 The MathWorks, Inc.
2+
%Auther Yuki Kamatani@ MathWorks Japan
3+
4+
%======================================
5+
%PWM Unit Parameters
6+
fsw = 100e3; %Hz
7+
PWM_Resolution = 0.001;
8+
TimerCountMax = 1/ PWM_Resolution;
9+
CarrierSampleTime = 1 / fsw * PWM_Resolution;
10+
DeadTime = 1/fsw*PWM_Resolution;
11+
12+
%Set Duty Limit
13+
MinDuty = 0.01;
14+
MaxDuty = 0.95;
15+
16+
%======================================
17+
%Sensor ADC Quantization bit
18+
ADC_QuantBit = 12;
19+
QuantResolution = 1/(2^ADC_QuantBit);
20+
MaxRange = 50;%[A]
21+
MinRange = -50;%[A]
22+
QuantUnit = (MaxRange - MinRange) * QuantResolution;%[V]
23+
T_junction1 = 404.79;
24+
T_junction2 = 384.83;

0 commit comments

Comments
 (0)