Proteus Design Suite

Development of Digital Compass Based on AVR Microcontroller and MEMS Accelerometer- Magnetometer Module LSM303DLHC

In the paper, the digital compass based on AVR  microcontroller has been developed using MEMS accelerometer-magnetometer LSM303DLHC. The structure and hardware of the digital compass have been developed. The calibration algorithms of the accelerometer and magnetometer of the LSM303DLHC module have been described. The calculation algorithm of the pitch and roll angles has been described. The heading calculation algorithm of the digital compass without tilt compensation and with tilt compensation has been described.