Rotary Encoder Module Schematic. A schematic for this module is provided below. If you treat the pins as binary you can read them as 00 01 10 or 11 sequence the encoder outputs while spinning clockwise is 00 01 11 10.
Below is the pinout diagram. An encoder can be installed directly on the motor shaft or made as a module. However in this circuit we will only use 3 of the pins.
Tutorial of rotary encoder with arduino.
In them four pins are compulsory for using the module. The low is generated by placing a ground at pin c and passing it to the clk and dt pins when switches are closed. An atmega328p based arduino such as the uno pro mini or nano. Rotary encoder module is five pin device as shown in the m274 pinout.