EasyManua.ls Logo

ST X-CUBE-MEMS1 - MotionFX Sample Application; Sample Application Guide

ST X-CUBE-MEMS1
24 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Figure 4. STM32 Nucleo: LEDs, button, jumper
The above figure shows the user button B1 and the three LEDs of the NUCLEO-F401RE board. Once the board
is powered, LED LD3 (PWR) turns ON.
Note:
After powering the board, LED LD2 blinks once indicating the application is ready.
Initially, the magnetometer calibration data are loaded from the MCU internal flash memory and checked for data
validation and good calibration quality.
If the data are valid and the calibration quality is good the LED2 is switched ON, if not the magnetometer needs
calibration and LED2 is turned OFF; in this case the calibration routine is initialized (only for NUCLEO-F401RE,
NUCLEO-L476RG, NUCLEO-L152RE).
To calibrate the magnetometer, perform the figure 8 calibration movement.
Note: You can calibrate the magnetometer only when the sensor fusion is activated.
When user button B1 is pressed, the system clears old magnetometer calibration data stored in the flash memory
and starts the calibration routine again.
As soon as the magnetometer calibration finishes, after acquiring enough data, LED2 turns ON indicating that the
calibration quality is good and calibration data are stored in the flash memory.
2.3.1 Unicleo-GUI application
The sample application uses the Windows Unicleo-GUI utility
, which can be downloaded from www.st.com.
Step 1. Ensure that the necessary drivers are installed and the STM32 Nucleo board with appropriate
expansion board is connected to the PC.
UM2220
Sample application
UM2220 - Rev 7
page 15/24

Other manuals for ST X-CUBE-MEMS1

Related product manuals