Recall & Review
beginner
What does PWM stand for and what is its basic function?
PWM stands for Pulse Width Modulation. It controls the amount of power delivered to a device by switching it on and off very quickly, changing the width of the 'on' pulses.
Click to reveal answer
beginner
Why can't Raspberry Pi output true analog voltage directly?
Raspberry Pi GPIO pins can only output digital signals: either ON (3.3V) or OFF (0V). They cannot produce a smooth range of voltages like an analog signal.
Click to reveal answer
beginner
How does PWM create an analog-like effect using digital signals?
By changing the ratio of ON time to OFF time (duty cycle), PWM makes devices behave as if they receive different voltage levels, even though the signal is digital.
Click to reveal answer
beginner
Give a real-life example of PWM controlling brightness.
A lamp connected to a PWM signal will appear dimmer or brighter depending on how long the signal stays ON versus OFF in each cycle, similar to turning a dimmer switch.
Click to reveal answer
beginner
What is the advantage of using PWM over a simple ON/OFF switch for controlling devices?
PWM allows smooth control of power, making devices like motors or LEDs run at different speeds or brightness levels instead of just fully ON or OFF.
Click to reveal answer
What does PWM control to simulate analog output?
✗ Incorrect
PWM changes the duty cycle, which is the ratio of ON time to OFF time, to simulate different power levels.
Why can't Raspberry Pi GPIO pins output true analog voltage?
✗ Incorrect
GPIO pins can only be ON (3.3V) or OFF (0V), so they cannot produce a smooth range of voltages.
What happens if the PWM duty cycle is 100%?
✗ Incorrect
A 100% duty cycle means the signal is ON all the time, so the device receives full power.
How does PWM help control the brightness of an LED?
✗ Incorrect
PWM adjusts the ON time in each cycle, making the LED appear dimmer or brighter.
Which of these is NOT a benefit of PWM?
✗ Incorrect
PWM does not output true analog voltage; it simulates it by switching digital signals.
Explain why PWM is used on Raspberry Pi to control devices like motors or LEDs instead of just turning them ON or OFF.
Think about how PWM changes the time the signal is ON versus OFF.
You got /4 concepts.
Describe how changing the duty cycle in PWM affects the behavior of a connected device.
Consider what happens when the ON time is longer or shorter.
You got /4 concepts.