VMA435
V. 01 – 13/04/2018
3
©Velleman nv
5.
Overview
VMA435
A rotary encoder is a rotary input device that provides an indication of how much the knob has been rotated
and what direction it is rotating in. It is a great device for stepper and servo motor control.
working voltage: 0-5 V
type: incremental encoder
material: PCB + brass
cycles per revolution (CPR): 20
dimensions: 26 x 19 mm
weight: 10 g
6.
Pin Layout
CLK
encoder A
DT
encoder A
SW
switch (when pressing the encoder)
+
5 VDC power
Gnd
ground
7.
Example
This is a simple sketch that shows how to count the encoder position and how to determine direction of
rotation. It has no switch debounce, nor does it use interrupts. A fully developed application might need to
incorporate these in order to make it robust.