Back to Browse

Rotary Encoder (KY-040) Debounce Circuit Tutorial

25.9K views
Nov 13, 2021
15:02

In this tutorial we look at how to combat switch bounce when using a rotary encoder with a debounce circuit made up of fairly basic components (see below). We use the KY-040 encoder as the test subject in the video. Below is the parts list from the video and a link to the ForceTronics blog where you can find the Arduino code used for the test application in the video. Parts list: BAS16-HE3-18 (Diode), SN74LVC1G17QDCKRQ1 (Schmitt Trigger), standard 0805 resistors (300ohms and 15kohms), and 4.7uF 0805 ceramic capacitor You can download the PCB design files and the gerber files for the KY-040 Debounce circuit from my Patreon page (just $3 US to join): https://www.patreon.com/posts/ky-040-encoder-93026341 Link to code: https://forcetronic.blogspot.com/2021/11/how-to-build-switch-debounce-circuit.html

Download

1 formats

Video Formats

360pmp420.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Rotary Encoder (KY-040) Debounce Circuit Tutorial | NatokHD