WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Devantech CMPS03 Compass

The CMPS03 compass sensor.
cmps3pin2.jpg
The compass can be used either via the I2C pins 2 and 3 or by measuring the pulse length output on 'Pin 4 - PWM' of the board. Note that Project Designer lists both of these options so choose the appropriate one. The preferred method is to use I2C whenever possible. The default I2C address is 0xC0 but Project Designer lists the other possible addresses. Note that you will need to read the data sheet to find out how to modify the device to use one of the alternative I2C addresses.
The device requires a 5V regulated supply.
You may also need to calibrate the compass depending upon where you are on the earth and this is also explained in the data sheet.
Function Summary

Valid XHTML 1.0 Transitional