0
0
Simulinkdata~10 mins

Solar panel model with MPPT in Simulink - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the solar panel's open-circuit voltage variable.

Simulink
Voc = [1];  % Open-circuit voltage in volts
Drag options to blanks, or click blank then click option'
A21.0
B5.0
C15.0
D30.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using a current value instead of voltage.
Choosing a voltage too low for open-circuit condition.
2fill in blank
medium

Complete the code to calculate the solar panel current using the diode equation.

Simulink
Iph = [1];  % Photocurrent in amperes
I = Iph - I0 * (exp((V + I*Rs) / (nVt)) - 1) - (V + I*Rs) / Rsh;
Drag options to blanks, or click blank then click option'
A0.5
B5.0
C3.5
D10.0
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing photocurrent with saturation current.
Using a value too high for typical solar panels.
3fill in blank
hard

Fix the error in the MPPT algorithm update step.

Simulink
dV = V - V_prev;
dP = P - P_prev;
if dP [1] 0:
    if dV > 0:
        V_ref = V_ref + deltaV;
    else:
        V_ref = V_ref - deltaV;
Drag options to blanks, or click blank then click option'
A==
B<=
C>=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using equality or less than instead of greater than.
Not comparing dP correctly causing wrong voltage updates.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps voltage to power for voltages above 10V.

Simulink
power_map = {V: V[1]I for V, I in measurements.items() if V [2] 10}
Drag options to blanks, or click blank then click option'
A*
B+
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition instead of multiplication for power.
Filtering voltages less than 10 instead of greater.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that stores power for voltages above 15V and currents below 5A.

Simulink
filtered_power = {V[1]I: I[2]V for V, I in data.items() if V [3] 15 and I < 5}
Drag options to blanks, or click blank then click option'
A*
B+
C>
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication instead of subtraction or addition.
Incorrect voltage filtering condition.