Case File: The Timer That Was Off by Two Percent
A microcontroller timer counts clock ticks, divides them with a prescaler and starts again at a top value. Choose the prescaler and top value that give the closest frequency to a target, report the error, work out the average voltage of a PWM output, and convert servo pulse widths into angles, holding them at the ends of the range. Run it on requests that you cannot see, including an exact frequency and pulses just outside the range. The requests are generated for you alone.
Case File: The Timer That Was Off by Two Percent
A microcontroller timer counts clock ticks, divides them with a prescaler and starts again at a top value. Choose the prescaler and top value that give the closest frequency to a target, report the error, work out the average voltage of a PWM output, and convert servo pulse widths into angles, holding them at the ends of the range. Run it on requests that you cannot see, including an exact frequency and pulses just outside the range. The requests are generated for you alone.
In this lesson:
- timer
- pwm
- servo
- microcontroller
- python
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans