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.

