The KY-040 rotary encoder (also called rotary encoder) is an electronic component used to measure the rotary motion of machines or devices. It is an optical encoder that consists of a static part (the encoder wheel) and a rotating part (the encoder spindle). The encoder spindle has a series of holes that are sensed by a photodiode as the encoder rotates. The photodiode then sends signals to a microcontroller, which counts the number of holes detected by the photodiode and thus measures the rotary motion of the encoder.
The KY-040 encoder is widely used in industrial applications, such as controlling machinery or monitoring processes. It can also be used in control systems for DIY projects or to create user interfaces in electronics projects.
The digital potentiometer for your project: with our KY-040 rotary encoder you can navigate through your self-created menu items or even control speeds. Unlike analog potentiometers, the angle of rotation is not limited. In practical modular design. With additional switching contact!
Pin assignment Raspberry Pi:
Pin assignment Arduino: