sexybeast:
Can someone post a sample code for a magnetic rotary encoder.Would I place channel A & B into the digital, or analogue pins. and why are there two channels? don't you just need one? :~
The outputs behave just exactly like an encoder knob. You connect these to any pins on the Arduino (except the pin0 and 1) and read them as digital pins.
http://playground.arduino.cc/Main/RotaryEncoders#.Uz3gIOeSwa4
// Per.