Learn Backend Development Part-Time, Online
Power BI Fundamentals - Create visualizations and dashboards from scratch
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