How to Use Rotary Encoders on the Arduino - Ultimate Guide to the Arduino #25
Вставка
- Опубліковано 5 вер 2024
- Rotary encoders are commonly used as dials for volume control, menu navigation, and more. Learn how they work, how to connect them with switch de-bouncing, and how to program them with interrupts on the Arduino.
This is tutorial #25 in the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our UA-cam channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
www.sunfounder...
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get a rotary encoder from SunFounder here:
www.sunfounder...
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
www.circuitbas...
And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
www.circuitbas...
Facebook: / circuitbasic
Twitter: / circuitbasics
Instagram: / circuitbasics
this work really well BUT just for anti clockwise, for closkwise debounce not much effect
Thank you for this tutorial. I have a rotary encoder based speed control that operates open loop; I.E. there is no way to tell what the setting is except from the motor it is driving. I intend to sniff the encoder signals and monitor them with a counter for feedback on the speed setting. This tutorial will help me get stated. An FYI; you could possibly damage the Schmitt trigger (CMOS IC) if too large a capacitor is connected to the inputs; upon power-down the caps will discharge into internal protection diodes because they become forward biased (VCC becomes GND). Check the data sheet on the part.
A very well done, useful video. Thank you.
cool project! Makes me want to dig out my box of electronics and start making things again. lol
Thank you, I have question, I want to use a 4 relay using 4 hall effect sensors to activate them individually, it's for fuel injection system, I'm just finding it hard to find anything on this, your help would be very much appreciated, I'm a newbie to all of this, kind regards
Nice
Nice and very usefull!