A rotary encoder is a useful type of switch but what exactly does it do and how do you implement it?
And how do you use an Interrupt routine to reliably detect the pulses?
Here I explain what it's all about and why it's such a useful (and cheap) building block for your Arduino project.
It is amazingly easy to implement with just a few lines of code and will doubtless be of use in your next Arduino project!
The final code used in this example can be found here: https://github.com/RalphBacon/RotaryEncoderUpdate (Note this contains more sketches for another Rotary Encoder video - you need the sketch called "RotaryEncoderInterrrupts.ino")
As always, Thanks For Watching.
My channel and blog are here: ------------------------------------------------------------------ https://www.youtube.com/RalphBacon https://ralphbacon.blog ------------------------------------------------------------------