Rotary Encoders and Microcontrollers (e.g. Arduino) – My Way …

Описание к видео Rotary Encoders and Microcontrollers (e.g. Arduino) – My Way …

… which is not necessarily the best way and surly not the only way …
↓↓↓ Complete description, time index and links below ↓↓↓

… but the way I like to do it. That is using interrupts instead of polling the input pins, doing hardware debouncing instead of debouncing in the software, and not relying on any library. Keep in mind that these are just my personal preferences.

I’ll first have a look at the quadrature encoding of rotary encoders. Then I’ll debounce one using a RC filter, improving on the manufacturer’s suggestion. Finally I’ll write some code for that thing. And then I do the same for its push button.

►Intro
00:00 Intro – the satisfying sound of a rotary encoder with detents
►Rotary Encoder
00:36 Pull-up resistors – have a look into the manufacturer’s datasheet
02:24 Quadrature encoding – not so nice as shown in the pictures
06:36 Debouncing – improving on the manufacturer’s suggestion
12:10 Code – two digital pins, one variable and one interrupt, that’s all
►Push Button
15:56 Debouncing – same as for the rotary encoder
18:11 Code – another digital pin, another variable and another interrupt
►Wrap-up
20:27 Note – on the code about interrupts and overflows
23:20 Personal – preferences of mine regarding rotary encoders

Tutorials:    • Tutorials  

#robertssmorgasbord #tutorials #tutorial #how-to #Arduino #microcontroller #rotary #encoder #interrupts

Комментарии

Информация по комментариям в разработке