HW Interview
EM-08 · Chapter 8 · Low-Speed Interfaces & Embedded Hardware

Direction from a rotary knob

A volume knob uses a mechanical rotary encoder with two contact outputs, A and B, 90° apart. Design a circuit that outputs 1 when the knob turns clockwise and 0 when it turns counter-clockwise.

Level●● onsite technical
TrackEmbedded & wearables
Really testingQuadrature decoding — plus contact bounce.
Full worked answer: in the book, page 216 — what to say first, how to explain it, the numbers worth quoting and the follow-ups. About the book →

Going deeper

Extra explanation that is not in the book: worked numbers, where people go wrong, and how to say it in the room.

Going deeper for this question is coming.

Errata

No corrections known for this question. All errata

Ask about this question

Stuck on a step, or think something is wrong? Send it with EM-08 in the subject. Good questions get answered on this page, and corrections go into the next printing.

Ask about EM-08

Related

← EM-07 MCU peripheralsEM-09 Elevator-door state machine →