Simulated · Input
Rotary encoder
Rotary encoder: KY-040: quadrature and a press. In Argynix Lab it is fully simulated: wire it to an Arduino, ESP32, STM32 or Raspberry Pi Pico in your browser and run your code against it.
You handle it while the program runs: press, turn or set it on the bench.

Pins
- CLK (A)
- DT (B)
- SW (press, to GND)
- VCC
- GND
Examples with the Rotary encoder
More input
Push buttonHold to close; INPUT_PULLUP ready
Small button6 mm tactile switch
Slide switchJoins 2 to 1 or to 3
DIP switchEight switches in a row
Keypad 4x4Rows and columns, for the Keypad library
Tilt switchOUT goes HIGH when tilted
PotentiometerAn analog voltage for analogRead()
Slide potentiometerA fader for analogRead()