Recall & Review
beginner
What does PWM stand for and why is it used to control servo motors?
PWM stands for Pulse Width Modulation. It controls servo motors by sending pulses of varying lengths to set the motor's angle.
Click to reveal answer
beginner
How does changing the pulse width affect a servo motor's position?
Changing the pulse width changes the servo's shaft angle. Short pulses move it to one end, longer pulses move it to the other end.
Click to reveal answer
beginner
Which Raspberry Pi library is commonly used for PWM control of servos?
The RPi.GPIO library is commonly used to generate PWM signals to control servo motors on Raspberry Pi.
Click to reveal answer
intermediate
What is the typical PWM frequency used for controlling standard hobby servos?
The typical PWM frequency for hobby servos is about 50 Hz, meaning 20 milliseconds per pulse cycle.
Click to reveal answer
beginner
Why is it important to clean up GPIO settings after controlling a servo on Raspberry Pi?
Cleaning up GPIO settings frees the pins and prevents conflicts or unexpected behavior when running other programs.
Click to reveal answer
What does the pulse width in PWM control for a servo motor?
✗ Incorrect
The pulse width controls the angle of the servo shaft by changing the length of the pulse sent.
What is the typical PWM frequency used to control a hobby servo motor?
✗ Incorrect
Hobby servos usually use a PWM frequency of 50 Hz, which means pulses repeat every 20 milliseconds.
Which Raspberry Pi library is often used to generate PWM signals for servo control?
✗ Incorrect
RPi.GPIO is a common library to control GPIO pins and generate PWM signals on Raspberry Pi.
Why should you call GPIO.cleanup() after running a servo control program?
✗ Incorrect
GPIO.cleanup() resets the pins so other programs can use them without issues.
If you want the servo to move to its maximum angle, what should you do with the PWM pulse width?
✗ Incorrect
The longest pulse width corresponds to the servo's maximum angle position.
Explain how PWM controls the position of a servo motor on a Raspberry Pi.
Think about how changing the length of the pulse changes the servo's angle.
You got /4 concepts.
Describe the steps to safely control a servo motor using PWM on a Raspberry Pi.
Consider the full process from setup to cleanup.
You got /5 concepts.