Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

LSM303AGR eCompass - Building a Digital Compass with Accelerometer and Magnetometer

DroneBot Workshop via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to work with the LSM303AGR multifunction eCompass sensor that combines an accelerometer and magnetometer in a single device. Explore the technical specifications and capabilities of this STMicroelectronics sensor available through Adafruit, understanding how both MEMS (Micro-Electro-Mechanical-System) components function independently yet work together for sensing direction, speed, and motion. Master the hookup process and discover how to program each sensor separately using dedicated Adafruit libraries. Practice using the accelerometer to detect motion and orientation changes, then dive into magnetometer functionality for directional sensing. Develop essential calibration skills to improve magnetometer accuracy and reliability in real-world applications. Work through sample sketches to verify proper sensor operation and troubleshoot common issues. Apply your knowledge by building two practical compass projects: first create a simple compass application, then advance to constructing a more sophisticated eCompass with an OLED display for visual direction indication. Gain hands-on experience with sensor integration techniques perfect for robotic navigation systems, autonomous vehicles, and orientation-dependent projects.

Syllabus

00:00 - Introduction
01:23 - LSM303AGR Module
04:48 - LSM303AGR Hookup
05:34 - Using the Accelerometer
11:34 - Introducing the Magnetometer
15:14 - Calibrating the Magnetometer
22:20 - Using the Magnetometer
25:17 - Simple Compass
27:42 - OLED Compass
34:22 - Conclusion

Taught by

DroneBot Workshop

Reviews

Start your review of LSM303AGR eCompass - Building a Digital Compass with Accelerometer and Magnetometer

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.