LabWired The easy way to build hardware
board I/O module

Rotary Encoder

The Rotary Encoder is a board I/O module in the LabWired part catalog. Its catalog type is rotary-encoder. It connects to the MCU over GPIO. It has 5 pins. A device model in the simulation engine, reached through a dedicated dispatch path rather than the peripheral registry.

From the catalog: CLK/DT compile to a real quadrature device that walks the Gray sequence onto the two input pins (driven by the standard "position" stimulus); SW is a plain board_io button. Implemented by the generic GPIO device descriptor.

Key facts

CategoryBoard I/O modules
Catalog typerotary-encoder
InterfaceGPIO
Pins5

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

Rotary Encoder pinout

PinElectrical typeFunction
CLK Output GPIO
DT Output GPIO
SW Output GPIO
VCC Power input Supply
GND Power input Supply

How to simulate the Rotary Encoder in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the Rotary Encoder (catalog type rotary-encoder).
  3. Connect VCC and GND to the supply and ground of the board.
  4. Connect CLK, DT and SW to free GPIO pins.
  5. Run the firmware. It drives and reads the pins of the part, and the device model responds on those pins.

Related Board I/O modules

All Board I/O modules · All parts

No manufacturer datasheet is indexed for this part yet, so none is linked here.