#96 Rotary Encoder Update - Stepless & Software Debounced
A couple of recent comments on a previous video #19 (Rotary Encoders) made me think and ponder. So here's an update that looks at both the original sketch and stepped Rotary Encoder and also at a newer detentless (stepless) one, with the problems it potentially presents. We also consider how best to debounce the signal in software and what happens if you change the way I originally did it with a Real World example of my car radio - yes, really! I've included a link to a GitHub repository with the simple test sketches I used just so you can grab them and play about with them yourself, along with links to the stepless Rotary Encoder (rather more than I'd want to pay but it was supplied by a local supplier rather than a Far Eastern warehouse so would be more, of course). -------------------------------- LINKS LINKS LINKS! -------------------------------- https://github.com/RalphBacon/RotaryE... Bourns Pro Audio Rotary Encoder Spec Sheet (generic) http://www.bourns.com/docs/Product-Da... Example eBay item for stepless rotary encoder http://www.ebay.co.uk/itm/INCREMENTAL... NOTE: The PEC-016 part number convention is that the second digit determines whether it is stepped or not. Eg: PEC16-4020F-N0024 - it's the 4020F that is important - the second digit here (0) means STEPLESS The next part, N0024 determine whether a SWITCH pin is included (N=NO, S=YES) and the 24 shows how many steps per revolution Nick Gammon's web page on Interrupts: https://www.gammon.com.au/forum/bbsho... The sketches used in the demo are in the repository. Just download as a zip file and unzip on your local machine. If you like this video please give it a thumbs up, share it and if you're not already subscribed please do so :) My channel is here: ------------------------------------------------------------------ / ralphbacon ------------------------------------------------------------------ How can I remember this? Memory tip: "See" Ralph Bacon, geddit? [You can also use this link: / ralphbacon ]

#230 The ⭐ULTIMATE⭐ Switch Bounce Eliminator - simple and effective. 🎈

Adventures in Science: How to Use Rotary Encoders

#125 TPL5110 Nano Power Timer (for Arduino)

#226 ROTARY ENCODER with no switch bounce 🤓 - you MUST use this

#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.

#95 Speed Contest! ESP8266, ESP32 and the Uno 328P

Something is jamming GPS over Europe. Here's what we found

How to Connect a Rotary Encoder to FSX, Prepar3d, X-Plane, or FS2020! MobiFlight Tutorial

I Hacked This Temu Router. What I Found Should Be Illegal.

Best code to use with a KY-040 Rotary Encoder? Let's find out!

🇩🇪 German industry JUST died (it’s WORSE than you think)

The Insane Genius of a Formula 1 Gearbox

MC14490 Hex Contact Bounce Eliminator (e.g. Two Rotary Encoders & Arduino)

Integrated SSDs Should Be Illegal, But Why Would They Care!

Rotary Encoder (KY-040) Debounce Circuit Tutorial

#257 Wireless Serial Comms⚡for your Arduino (or other μController)

Do This Before You Solder Anything

I kept coding until an RTOS was inevitable

#82 ATTiny85 + I2C + SPI and more!

