Thursday, July 30, 2020

Fuzzy Rules

     The first input variable is the peak current in Amps (A). The input is calculated with an array of values entering if/else function in Arduino to find maximum current value during the acceleration. The second input variable is the current slope measured in Amps per millisecond (A/ms). The current slope is the rate in which the current value decreases after founding peak current during acceleration. The algorithm takes the change in the current rating over 200 milliseconds and calculates the current slope.

    The output of the fuzzy controller is the current prediction, which will be used with voltage to predict power. Rules were developed with the empirical evaluation of the DC motor current profile.





Monday, July 27, 2020

Sunday, July 26, 2020

Fuzzy Raw Code MATLAB

 [System]

Name='poweroutput'

Type='mamdani'

Version=2.0

NumInputs=2

NumOutputs=1

NumRules=25

AndMethod='min'

OrMethod='max'

ImpMethod='min'

AggMethod='max'

DefuzzMethod='centroid'


[Input1]

Name='Peak_Power'

Range=[50 100]

NumMFs=5

MF1='VLPP':'gaussmf',[5.308 50]

MF2='LPP':'gaussmf',[5.308 62.5]

MF3='MPP':'gaussmf',[5.308 75]

MF4='HPP':'gaussmf',[5.308 87.5]

MF5='VHPP':'gaussmf',[5.308 100]


[Input2]

Name='Power_Slope'

Range=[10 80]

NumMFs=5

MF1='VLPS':'gaussmf',[7.434 10]

MF2='LPS':'gaussmf',[7.434 27.5]

MF3='MPS':'gaussmf',[7.434 45]

MF4='HPS':'gaussmf',[7.434 62.5]

MF5='VHPS':'gaussmf',[7.434 80]


[Output1]

Name='Power_Rating'

Range=[20 60]

NumMFs=5

MF1='VL':'trimf',[10 20 30]

MF2='L':'trimf',[20 30 40]

MF3='M':'trimf',[30 40 50]

MF4='H':'trimf',[40 50 60]

MF5='VH':'trimf',[50 60 70]


[Rules]

5 5, 2 (1) : 1

1 1, 2 (1) : 1

3 3, 3 (1) : 1

5 1, 5 (1) : 1

4 1, 5 (1) : 1

4 2, 4 (1) : 1

4 5, 2 (1) : 1

5 4, 3 (1) : 1

5 3, 4 (1) : 1

5 2, 5 (1) : 1

5 1, 5 (1) : 1

3 3, 3 (1) : 1

3 2, 4 (1) : 1

3 4, 3 (1) : 1

3 5, 2 (1) : 1

1 5, 1 (1) : 1

1 4, 1 (1) : 1

1 3, 2 (1) : 1

1 2, 3 (1) : 1

1 1, 3 (1) : 1

2 5, 2 (1) : 1

2 4, 2 (1) : 1

2 3, 3 (1) : 1

2 2, 4 (1) : 1

2 1, 4 (1) : 1


Wednesday, July 15, 2020

Fuzzy Build

     The vehicle power rating is dynamic due to vehicle weight and must be calculated during acceleration. To predict I vehicle, the fuzzy logic rule-based algorithm is used. Based on the peak current rating and the current slope, the algorithm will determine the current threshold. The general rule of the fuzzy logic is shown below.

1.    Heavier vehicles consist of higher peak current.

2.    Faster accelerations result in higher peak current.

3.    Faster accelerations result in higher current slope.   

     The reason why current threshold values cannot be determined from the peak current itself is due to the acceleration profile. In comparison, a lighter vehicle with faster acceleration can have the same peak current as a heavy vehicle with lower acceleration. By introducing the current slope, which looks at the difference in the current value over a certain period of time, the fuzzy logic value will be closer to the average vehicle current rating.



Tuesday, July 14, 2020

MATLAB Simulation

     The algorithm will focus on vehicle acceleration from this point because the regenerative braking method is simple: power from the motor goes to the supercapacitor based on the supercapacitor SoC status. Also, comprehensive SoC status-based concepts have already been well established. However, because the powertrain in this research deals with vehicles with varying weight loads, the power and current profiles are different for different load weights. Therefore, the algorithm cannot rely on the same power threshold variables used in previous equations during the vehicle acceleration.

     MATLAB Simulink simulation of a 24 V electric vehicle powertrain with DC permanent motor was performed to contrast the vehicle speed and power during different load. A vehicle with no load weighs and a vehicle with additional load. The vehicle system was designed to match the vehicle for the driving test. Included are the battery pack subsystem, PWM, gearbox, differential, and vehicle body with appropriate variables. 




        A vehicle with no load achieves desiring speed in 1.4 seconds while the vehicle with load takes 5.7 seconds. The peak current and driving current for the loaded vehicle is higher with 285 A and 167 A respectively while vehicle with no load shows 247 A and 89 A for peak current and driving current, respectively.

     Graphs show vehicles with different loads take different acceleration time and current ratings. Higher load vehicle takes longer time to reach full speed (lower slope in power profile) and start with higher current ratings. The algorithm must take account of the changing vehicle current rating and acceleration time for the supercapacitor to successfully perform optimal discharge during vehicle acceleration.



Wednesday, July 8, 2020

Power Control Strats

     General logic of the powertrain follows, if the supercapacitor has a voltage rating above the minimum operating value, it will be activated during the acceleration of high-power demand. The supercapacitor will handle regenerative braking unless the voltage rating is above the maximum voltage value. If the SoC reaches the lower value or during the normal driving period, the battery will activate to power the vehicle. During this time, the supercapacitor will be charged to the maximum level. This concept is similar to a parallel hybrid on petrol and battery power system. The vehicle cycle is divided into acceleration state, regenerative braking, and coasting state. For the control strategy to function, all power source requirements for driving phases are seen in equation 1.

                     P battery + P SC = P acceleration + P vehicle

A.    Coasting State

     The average vehicle power is in the range of coasting power consumption as power peaks are minimal. As a result, the supercapacitor is not in use as the battery can cover the traction load power. This means P acceleration and P SC are null. The battery pack that covers the power need is seen with equation 2.

                                     P battery = P vehicle

B.    Acceleration State

     During acceleration state, the power demand from the vehicle is high. This means the supercapacitor will be used to power the vehicle during acceleration unless the supercapacitor voltage is below its minimal threshold value. This is seen with equation 3.

              P SC = P acceleration + P vehicle, ∀ V SC ⩾ V SC Min

C.    Regenerative Braking State

     The supercapacitor will receive all power from the braking. The supercapacitor will handle regenerative braking unless the supercapacitor voltage is above its maximal threshold value. The power profile is seen with equation 4.

                        P vehicle = P SC, ∀ V SC ⩽ V SC Max

     The supercapacitor will charge during braking unless the voltage reaches the maximum SC operating voltage. During this scenario, the supercapacitor voltage will match its maximum rating and the power will transfer to the battery pack, which is shown in equation 5.

                         P vehicle = P bat, ∀ V SC = V SC Max

2nd Generation EV

     A Control board was developed for testing the power load draw of the vehicle. The basic component of the board consists of a motor cont...