This Application Note presents a low-cost, digital 3-axis magnetic compass based on the Honeywell HMC1053 magnetoresistive sensor. A dual-axis accelerometer is used to provide tilt sensing for heading correction. Several full-featured and simplified design versions are also described.