VMA435 DIGITAL ROTARY ENCODER MODULE USER MANUAL
VMA435 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
VMA435 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) + Gnd 7.
VMA435 *** CODE BEGIN *** int pinA = 3; // Connected to CLK int pinB = 4; // Connected to DT int encoderPosCount = 0; int pinALast; int aVal; boolean bCW; void setup() { pinMode (pinA,INPUT); pinMode (pinB,INPUT); /* Read Pin A Whatever state it's in will reflect the last position */ pinALast = digitalRead(pinA); Serial.
VMA435 8. More Information Please refer to the VMA435 product page on www.velleman.eu for more information. Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or injury resulting from (incorrect) use of this device. For more info concerning this product and the latest version of this manual, please visit our website www.velleman.eu. The information in this manual is subject to change without prior notice.
Velleman® Service and Quality Warranty Since its foundation in 1972, Velleman® acquired extensive experience in the electronics world and currently distributes its products in over 85 countries. All our products fulfil strict quality requirements and legal stipulations in the EU. In order to ensure the quality, our products regularly go through an extra quality check, both by an internal quality department and by specialized external organisations.