Case File: Counting the Clicks of a Knob
A rotary knob gives two signals that change one at a time, in the Gray code order 0, 1, 3, 2 in one direction and in the opposite order in the other. Decode a recording of the two pins into a position, count the double steps that show that a state was missed because the pins were read too slowly, track the highest and the lowest position, count the direction changes and turn the position into revolutions. Run it on recordings that you cannot see. The recording is generated for you alone.
Case File: Counting the Clicks of a Knob
A rotary knob gives two signals that change one at a time, in the Gray code order 0, 1, 3, 2 in one direction and in the opposite order in the other. Decode a recording of the two pins into a position, count the double steps that show that a state was missed because the pins were read too slowly, track the highest and the lowest position, count the direction changes and turn the position into revolutions. Run it on recordings that you cannot see. The recording is generated for you alone.
In this lesson:
- encoder
- quadrature
- gray code
- interrupts
- 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