Logicraft Studios
Offline Arduino, RP2040 & ESP32 simulator
Starting local backend…
Logicraft Studios LogoLogicraft StudiosSTUDIO
ExamplesEditorAboutGitHub
Logicraft Studios / Examples / KY-040 Rotary Encoder
KY-040 Rotary Encoder
BasicsbeginnerArduino Uno

KY-040 Rotary Encoder

Read a KY-040 rotary encoder with an Arduino Uno. Turn the knob to move a counter (CLK/DT quadrature) and press the shaft (SW) to reset it. Open the Serial Monitor to watch the position.

What you'll simulate

  • ✓Real Arduino Uno emulation — cycle-accurate, no hardware needed
  • ✓1 interactive component on the canvas
  • ✓Serial Monitor included — see output in real time
← Back to examples