STM32F4 firmware solution to control the Adafruit LSM303AGR: read data and calibration.
Project details
STM32F4 referenced boards : Nucleo-64 STM32F411 or STM32F410.
Gyroscope and Magnetometer board: Adafruit LSM303AGR.
Using one of 2 above Nucleo boards, connected to the Adafruit LSM303AGR via I2C bus, develop the firmware in the STM32F4 chip for…
1) Read Gyroscope and Magnetometer data from a serial connection with a host PC. This will be done using an ASCII protocol from a simple application like YAT (serial COM 115200@8N1).
1.1) Read data from the Gyroscope
1.2) Read data from the Magnetometer
1.3) Every N seconds print the Gyroscope data. And command to stop this loop.
1.4) Every N seconds print the Magnetometer data. And command to stop this loop.
2) Perform the Gyroscope and Magnetometer calibrations.
The Gyroscope and Magnetometer calibrations could be done following the Adafruit instructions and using the relative external suggested apps.
No problems if you have different solutions for the calibrations, if yours will work fine.
The LSM303AGR interrupt pins are not required. Only the I2C communication.
The STM32F4 Fw project must be done using the STM32CubeMX (API-library and project generation) and STM32CubeIDE.
Awarded to:
Muhammed Cihad O.
(4.7)
Awarded to:
Muhammed Cihad O.
(4.7)
Project details
Gyroscope and Magnetometer board: Adafruit LSM303AGR.
Using one of 2 above Nucleo boards, connected to the Adafruit LSM303AGR via I2C bus, develop the firmware in the STM32F4 chip for…
1) Read Gyroscope and Magnetometer data from a serial connection with a host PC. This will be done using an ASCII protocol from a simple application like YAT (serial COM 115200@8N1).
1.1) Read data from the Gyroscope
1.2) Read data from the Magnetometer
1.3) Every N seconds print the Gyroscope data. And command to stop this loop.
1.4) Every N seconds print the Magnetometer data. And command to stop this loop.
2) Perform the Gyroscope and Magnetometer calibrations.
The Gyroscope and Magnetometer calibrations could be done following the Adafruit instructions and using the relative external suggested apps.
No problems if you have different solutions for the calibrations, if yours will work fine.
The LSM303AGR interrupt pins are not required. Only the I2C communication.
The STM32F4 Fw project must be done using the STM32CubeMX (API-library and project generation) and STM32CubeIDE.