|
Using a CMPS03 with MAVRIC or MAVRIC-II Mega128 BoardThe Devantech CMPS03 is a magnetic compass that can be queried using the I2C protocol and provides the current compass heading. The CMPS03 can be used to give your project a sense of direction. Using the CMPS03's I2C interface is perfect for use with your MAVRIC or MAVRIC-II Mega128 board which incorporates hardware assisted I2C capabilities. The sample program demonstrates how to read the compass heading from the CMPS03 Compass Module using the 2-wire I2C bus. Sample program is here. See the hookup diagram for wiring information.
|