0
0
Power Electronicsknowledge~10 mins

Digital control implementation basics in Power Electronics - 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 sampling period in a digital control system.

Power Electronics
sampling_period = 1 / [1]
Drag options to blanks, or click blank then click option'
Afrequency
Bcurrent
Csampling_rate
Dvoltage
Attempts:
3 left
💡 Hint
Common Mistakes
Using voltage or current instead of sampling rate.
Confusing frequency with sampling rate.
2fill in blank
medium

Complete the code to convert an analog signal to digital using an ADC function.

Power Electronics
digital_value = ADC([1])
Drag options to blanks, or click blank then click option'
Aanalog_signal
Bdigital_signal
Csampling_rate
Dcontrol_output
Attempts:
3 left
💡 Hint
Common Mistakes
Passing digital signals to ADC.
Using sampling rate as input.
3fill in blank
hard

Fix the error in the control loop update by completing the missing term.

Power Electronics
control_output = previous_output + [1] * error
Drag options to blanks, or click blank then click option'
Again
Bsampling_period
Cvoltage
Dfrequency
Attempts:
3 left
💡 Hint
Common Mistakes
Using sampling period instead of gain.
Using unrelated terms like voltage or frequency.
4fill in blank
hard

Fill both blanks to implement a discrete integrator step in the control algorithm.

Power Electronics
integral = previous_integral + [1] * [2]
Drag options to blanks, or click blank then click option'
Asampling_period
Berror
Cgain
Dvoltage
Attempts:
3 left
💡 Hint
Common Mistakes
Using gain or voltage instead of error.
Mixing up sampling period with gain.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps sensor names to their digital values if the value is above zero.

Power Electronics
sensor_data = { [1]: [2] for [1], [2] in sensors.items() if [2] > 0 }
Drag options to blanks, or click blank then click option'
Aname
Bvalue
Dsensor
Attempts:
3 left
💡 Hint
Common Mistakes
Using inconsistent variable names.
Not filtering values correctly.