
The author attached a magnet to a reflective encoding disk. Using four infrared photoreflectors he was able to read the position of the disk and thefore the magnet.
For those that aren't so clever as to create your own electric compass, the popular Devantech compass works.







Did you ever face that, your washing m/c already run out the mechanical timer dial? After using for several times, the dial gir may worn out, and than it can not move anyhow.