5/27/2023 0 Comments Rotary encoder arduino![]() Once switch connects pin A(1) to pin C(2) and the other switch connects pin B(3) to C(1). Inside the encoder there are two switches. In the case of the KY-040, they are oriented as shown. They are normally referred to as A(1), B(3) and C(2). On one side of the switch there are three pins. The Keyes module KY-040 that I have has thirty of these positions. Rotary Encoder BasicsĪ rotary encoder has a fixed number of positions per revolution (PPR). It gives only one pulse in one revolution. ![]() Z is available on industrial grade encoders. ![]() A and B are used to determine direction of rotation and counting the number of pulses will give the rotational position. Rotary encoders have two or three outputs A,B and Z. Industrial encoders come from 1200PPR to 10000PPR (Pulse per revolution). They come in all kinds of resolutions, from maybe 16 to at least 1024 steps per revolution. Some of them are also equipped with a pushbutton when you press on the axis (like the ones used for navigation on many music controllers). It is used to precisely measure rotation of motors or to create wheel controllers (knobs) that can turn infinitely (with no end stop like a potentiometer has). Rotary Position MeasurementĪ rotary or “shaft” encoder is an angular measuring device. You could also use it to control devices like digital potentiometers. It’s a great device for stepper and servo motor control. ![]() The Keyes KY-040 rotary encoder is a rotary input device ( as in knob) that provides an indication of how much the knob has been rotated AND what direction it is rotating in.
0 Comments
Leave a Reply. |