Video sponsored by PCBWay. Visit PCBWay and get $5 off from your first order:
https://www.pcbway.com/setinvite.aspx?inviteid=81304
Allowing people to interface with your Arduino projects require some form of input device on it. These devices can range from push buttons to keyboards and potentiometers and even go to an extent to use touch screens and gesture controls.
A general rule of thumb is that the input must be simple and straightforward to be used and the best device that matches that description is the rotary encoder.
In this video, I’m explaining what a rotary encoder is, how it works, and how it can be used with Arduino for your projects.
Tools and materials used in the video:
Rotary Encoder Module – https://s.click.aliexpress.com/e/_9ACULH
Arduino Nano – https://s.click.aliexpress.com/e/_9ggYCR
DS1302 Module – https://s.click.aliexpress.com/e/_A2zwdZ
20×4 LCD Screen – https://s.click.aliexpress.com/e/_AVJfTh
Dupont jumper cables – https://s.click.aliexpress.com/e/_APuvJv
Mini breadboard – https://s.click.aliexpress.com/e/_ASSzVd
Alternative links:
Rotary Encoder Module – https://www.banggood.com/custlink/3DDYoOECO5
Arduino Nano – https://www.banggood.com/custlink/3GGyZlAOeL
DS1302 Module – https://www.banggood.com/custlink/KKDyOcm7Uv
20×4 LCD Screen – https://www.banggood.com/custlink/Gvvho8Ewv9
Dupont jumper cables – https://www.banggood.com/custlink/KG3YjJGTqh
Mini breadboard – https://www.banggood.com/custlink/mG3yZasO60
The encoder library can be found at:
https://www.pjrc.com/teensy/td_libs_Encoder.html
The code used in the examples can be downloaded from the Instructable for the project at:
https://www.instructables.com/How-to-Use-Rotary-Encoders-and-Interrupts-With-You/
Support my work on Patreon so I can continue producing free content and tutorials!
https://www.patreon.com/taste_the_code
My recording gear:
Samsung A71 – https://s.click.aliexpress.com/e/_dX26Gm7
SJ400 Action camera – https://s.click.aliexpress.com/e/_ssJRaL
USB Condenser Microphone – https://s.click.aliexpress.com/e/_sMcKML
Tripod – https://s.click.aliexpress.com/e/_stDAGL
Phone tripod mount – https://s.click.aliexpress.com/e/_s9WaiJ
How to use rotary encoders and interrupts with your Arduino projects
#rotaryEncoder #interrupt #arduino #electronics #tastethecode
Main Site and blog: https://www.tastethecode.com
Facebook: https://www.facebook.com/tastethecode/
Instagram: https://www.instagram.com/taste_the_code/
Twitter: http://twitter.com/taste_the_code
Get exclusive Taste The Code t-shirts and merch at
Click on the link below to get two months of free premium access to Skillshare and start learning today!
https://skl.sh/37LnRua
Get $50 off your order on hosting for all of your website needs and learning projects on Dreamhost!
https://www.dreamhost.com/r.cgi?2405711/promo/dreamsavings50/
, https://i.ytimg.com/vi/_PfIrYKwTLo/hqdefault.jpg
source
Good video
Ha, I was trying to think why you used % 2 = 0 and val/2 and I was thinking so hard about it that I almost missed your explanation of it 🙂 Cool vid man