With these connections, we have all the hardware connections. Below is the pinout diagram.īelow is the graph of the pulses given out from The 3 pins we will use are the 3 pins in front. However, in this circuit we will only use 3 of the pins. The rotary encoder we will use is a 5-pin device. Thus, rotary encoders allow for pretty dynamic intervention. If the encoder is being turned the other way, the angle degrees will start at 0 and go down to -360 degrees and then back to 0 and then to the negative values again. To 360 degrees and back to 0 and then back to positive degrees. So if the rotary encoder is being turned one way, the angle degrees will start at 0 and go up in increments We will calculate the angle degrees that the rotary encoder is in at a given moment. In this circuit, we will control demonstrate the use of a rotary encoder and show how it detects clockwise rotation versus counterclockwise rotation. Therefore, based on which way the user turns the knob, we can know this and perform any circuit action based on the It can know when a user is turning the knob one way versus turning the knob the other way. In this project, we are going to build a circuit which uses a rotary encoder.Ī rotary encoder is a device which allows us to know whether a knob is being turned clockwise orĬounterwise (which is one way or the other).
How to Build a Rotary Encoder Circuit with an Arduino