Головатий, А.Теслюк, В.Колесник, К. К.Табала, В. В.Holovatyy, A.Teslyuk, V.Kolesnyk, K.Tabala, V.2021-01-192021-01-192019-02-282019-02-28Development of digital compass based on AVR microcontroller and MEMS ACCELEROMETER-magnetometer module LSM303DLHC / A. Holovatyy, V. Teslyuk, K. Kolesnyk, V. Tabala // Computer Design Systems. Theory and Practice. — Lviv : Lviv Politechnic Publishing House, 2019. — Vol 1. — No 1. — P. 12–26.https://ena.lpnu.ua/handle/ntb/55843У роботі розроблено цифровий компас на МК AVR з використанням МЕМС – модуля акселерометра – магнітометра LSM303DLHC. Розроблено структуру та спроектовано апаратне забезпечення цифрового компасу. Описано алгоритми калібрування акселерометра та магнітометра 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. The operation algorithm and embedded software of the digital compass have been developed. The model and prototype of the digital compass have been created. The simulation and operation test of the developed digital compass have been performed.12-26enцифровий компасапаратно-програмна платформа Arduino Uno R3МК ATmega328P-PUакселерометрмагнітометрМЕМС модуль LSM303DLHCСАПР Proteus Design Suiteмова програмування Cсередовище програмування Arduino IDE для МК платформи Arduinoвбудоване програмне забезпеченняdigital compassArduino Uno R3AVR microcontroller ATmega328P-PUaccelerometermagnetometerMEMS module LSM303DLHCProteus Design SuiteC programming languageArduino IDEembedded softwareDevelopment of digital compass based on AVR microcontroller and MEMS ACCELEROMETER-magnetometer module LSM303DLHCРозробка цифрового компасу на AVR мікроконтролері та MEMS – модулі АКСЕЛЕРОМЕТРА – магнітометра LSM303DLHCArticle© Національний університет „Львівська політехніка“, 2019© Holovatyy A., Teslyuk V., Kolesnyk K., Tabala V., 201915doi.org/10.23939/cds2019.01.012519.2.4681.5621.382Development of digital compass based on AVR microcontroller and MEMS ACCELEROMETER-magnetometer module LSM303DLHC / A. Holovatyy, V. Teslyuk, K. Kolesnyk, V. Tabala // Computer Design Systems. Theory and Practice. — Lviv : Lviv Politechnic Publishing House, 2019. — Vol 1. — No 1. — P. 12–26.