Robust Rotary Encoder

Hi,

Has anybody got details/sketch for using the following type of rotary encoder?

http://www.ebay.co.uk/itm/Encoder-400P-R-Incremental-Rotary-Encoder-360p-r-AB-phase-6mm-Shaft-coupling-/171936471073?hash=item2808365821:g:zUIAAOSwsB9V-bVK

TIA
Peter

It appears that the seller is confused

400P/R Incremental Rotary Encoder 360p/r

but it is a standard AB quadrature encoder, with open collector outputs.

Use INPUT_PULLUP on the pins connected to the A and B outputs, and any of the several Arduino quadrature encoder programs on this forum or the web. Don't forget to connect the Arduino and encoder grounds.

Thanks for info, trouble with some sellers on eBay.
Want something robust.