Niksa Zupcic / RotaryEncoder

Homepage

Rotary Encoder

Incremental Rotary Encoder based on KY-040 datasheet from Handson Technology: http://www.handsontec.com/dataspecs/switches/Rotary%20Encoder.pdf

https://os.mbed.com/media/uploads/nikizg/ky-40.png

Data:

  • Operating voltage: 3.3V (changed to suit Mbed)
  • Pulses/360° Rotation: 20
  • Output: 2-bit gray code
  • With built in push button

Connection guide

  • DT - Pin A (Digital input with Interrupt)
  • CLK - Pin B (Digital input)
  • SW - Pin SW(Digital input)
  • + - 3.3V DC
  • GND - GND

All wikipages