DIY Rotary Encoder

Built it at http://www.mci.supsi.ch/senseable-art to detect (wheel) motion in any direction.

Here's a video https://www.flickr.com/photos/tamberg/31681948905

Wiring of LED, LDR, see e.g. this tutorial p. 19, 26

Material