The encoder determines the degree of accuracy of the measurement unit and electrical pulses generated by the encoder stars. There is a unique signal called the (Z) or zero channel that provided the absolute encoder zero, this signal is a square wave accord with the center line of the channel (A) square wave.Īccuracy depends on mechanical and electrical factors, these issues are indexing errors, disc eccentricity, bearing eccentric, electronic device errors and inaccuracies introduced by optical parts. The rotational speed of a channel related information is given, while the two channel signal by comparing the sequence detail obtained in the rotation direction. Incremental encoder provides two phase square wave, these phase difference are 90 degree, usually called A and B channel. The diagram below demonstrates the right and left rotation pulse. Pin 4 usually placed in ground and the Pin 3 and Pin 5 are first connected to pull up resistor and then wired to the microcontroller.
![jivelite raspberry pi rotary encoder pro jivelite raspberry pi rotary encoder pro](https://pcbwayfile.s3-us-west-2.amazonaws.com/project/20/05/09/0031346531138.png)
Pin 1 and Pin 2 are switch wiring terminals used to press. Most rotary encoder has a 5 pins with 3 functions or tuning left, right and pressing down. With a simple bit of logic you can work out the direction of the rotation. If the internal contact were originally HIGH after a single click they would now both in LOW state breaking the circuit. As you turn the knob you will hear a sound from the knob indicating that one position has been rotated.
![jivelite raspberry pi rotary encoder pro jivelite raspberry pi rotary encoder pro](https://shop.max2play.com/media/catalog/product/cache/90545561e815ada799eff7681525ced9/t/o/touch_bundle_iq_04komp.jpg)
They act as sensors for detecting angle, speed, length, position and acceleration in automation field.
![jivelite raspberry pi rotary encoder pro jivelite raspberry pi rotary encoder pro](https://www.max2play.com/wp-content/uploads/2017/01/weissbauer-picture-3-top-inner.jpg)
Rotary encoder are usually used at the side which is perpendicular to the shaft. Rotary encoder is an electro mechanical device that convert the angular position or a motion of a shaft or axle to analog or digital code. Another illustration that demonstrate using rotary encoder.