# KY-040 (Component)
## Description
KY-040 rotary encoder is a device that generates an electrical signal based upon how much the
rotary input device (knob) is rotated and the direction it is rotating in. It is a position sensor with a knob and can be used to control stepper or servo motors with precision. #Module #Rotary-Encoder
## Component Details
- **Owner:** jecstronic
- **Created:** 12/2/2023
- **Last Updated:** 12/5/2023
- **Visibility:** Public
- **Datasheet URL:** https://www.epitran.it/ebayDrive/datasheet/25.pdf
- **License:** https://creativecommons.org/licenses/by/4.0/
- **Datasheet URL:** https://components101.com/sites/default/files/component_datasheet/KY-04-Rotary-Encoder-Datasheet.pdf
- **Part Type:** Module
- **Manufacturer Part Number:** KY-040
- **Used in:** 606 projects
- **Stars:** 2
- **Forks:** 2
- **Part Type:** Modules
- **MPN:** KY-040
- **Mount Type:** Base
- **Package / Case Code:** TO
- **Pin Count:** 5
## Pins
| Pin | Name | Type |
|-----|------|------|
| 1 | CLK | |
| 2 | DT | |
| 3 | SW | |
| 4 | VCC(+) | |
| 5 | GND | |
---
*Generated from [https://www.flux.ai/jecstronic/ky-040~jyk](https://www.flux.ai/jecstronic/ky-040~jyk)*