15,477 views
The Rotary Encoder is a component that has a rotating shaft and has two pulsed signals as output, which tell us the direction and speed at which the shaft is being rotated. It has a similar size and shape to a Potentiometer, but the similarity is only visual; internally, they are very different components. The Rotary Encoder has no rotation limit; you can rotate it indefinitely in both directions, clockwise and counterclockwise. Internally, there are contacts that are opening and closing as the shaft rotates. In other words, they are switches that generate the pulse that must be read to know the speed (how many pulses) and the direction (the sequence of pulses). It is possible to identify the direction of rotation of the Rotary Encoder by analyzing its two output pulses. In the video, I explain the technique. It is very simple and can be implemented in Arduino, for example. In the video, I show an example of a program where we have a pulse counter incrementing or decrementing according to the speed and direction of rotation of the Rotary Encoder. The result of this is displayed on an LCD Display. Buy your microcontroller: Arduino Mega 2560: https://s.click.aliexpress.com/e/_9IdUB2 Arduino Uno: https://amzn.to/2ZATs0b Arduino Uno + ESP8266: https://s.click.aliexpress.com/e/_9GZtlc NodeMCU ESP8266: https://amzn.to/3erEWAd Don't forget to subscribe to the channel so you don't miss any classes and future projects! Be sure to follow me on other social networks: Instagram: / cleber.funbots Facebook: / cleber.funbots Telegram: https://t.me/cleberfunbots Hugs! 🤓 Prof. Cleber Borges __________