Check out Part 1 of this tutorial from Mark Williams on how to build a digital compass using the Raspberry Pi: This will be a multipart series on how to use a digital compass(magnetometer) with your Raspberry Pi. The magnetometer used in these tutorials is a LSM303D which is on...