STM32 ICM-20948 IMU Part 2: magnetometer

Опубликовано: 16 Январь 2025
на канале: Steppe School
4,018
67

This video is the second part of the ICM-20948 IMU sensor tutorial. We will access the magnetometer readings and eventually have full data for the attitude estimation of an object. We will use the SPI interface for communication.

Hardware:
STM32 MCU board: STM32F407G-DISC1
SparkFun ICM-20948 board: SEN-15335

Source code:
https://www.patreon.com/user/posts?u=...

Website:
https://www.steppeschool.com

00:00 Introduction
00:16 I2C master introduction
02:07 I2C master enable and configuration
04:22 Reading and writing to the Magnetometer using I2C master
09:26 Magnetometer configuration
10:25 Reading data
12:15 Testing code:
13:12 Plotting magnetometer data using a Python script
16:00 Final words