0
0
Embedded Cprogramming~5 mins

Duty cycle control for motor/LED in Embedded C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a duty cycle in the context of controlling a motor or LED?
Duty cycle is the percentage of time a signal is ON compared to the total time of one cycle. It controls how much power the motor or LED receives.
Click to reveal answer
beginner
How does changing the duty cycle affect an LED's brightness?
Increasing the duty cycle makes the LED brighter because it is ON for a longer time in each cycle. Decreasing it makes the LED dimmer.
Click to reveal answer
intermediate
What is PWM and why is it used for motor and LED control?
PWM (Pulse Width Modulation) is a technique that switches power ON and OFF rapidly. It controls power by adjusting the duty cycle, allowing smooth speed or brightness control.
Click to reveal answer
intermediate
In embedded C, which hardware feature is commonly used to generate PWM signals?
Timers or timer modules in microcontrollers are used to generate PWM signals by toggling output pins at set intervals.
Click to reveal answer
intermediate
Why is it better to use PWM for motor speed control instead of just changing voltage?
PWM efficiently controls motor speed without wasting power as heat, unlike changing voltage which can cause energy loss and unstable motor behavior.
Click to reveal answer
What does a 50% duty cycle mean for an LED?
ALED is ON half the time and OFF half the time
BLED is always ON
CLED is always OFF
DLED blinks twice as fast
Which embedded C feature is typically used to create PWM signals?
ATimers
BInterrupts
CSerial communication
DADC (Analog to Digital Converter)
What happens to motor speed if you increase the PWM duty cycle?
AMotor speed decreases
BMotor speed increases
CMotor stops
DMotor speed stays the same
Why is PWM preferred over varying voltage for LED brightness control?
AVarying voltage is faster
BVarying voltage is easier and better
CPWM is more energy efficient and provides smooth control
DPWM damages LEDs
If a PWM signal has a period of 10 ms and the ON time is 2 ms, what is the duty cycle?
A50%
B2%
C80%
D20%
Explain how PWM controls the brightness of an LED or the speed of a motor using duty cycle.
Think about how turning power ON and OFF quickly changes the average power.
You got /4 concepts.
    Describe how you would implement duty cycle control for a motor in embedded C using a timer.
    Consider how timers toggle output pins and how changing ON time affects the motor.
    You got /4 concepts.