You are viewing an older revision! See the latest version
Program2_SensorReader
This is a simple "hello world" style program for the X-NUCLEO-IKS01A1 MEMS Inertial & Environmental Sensor Nucleo Expansion Board. This firmware package includes Components Device Drivers, Board Support Package and example applications for X-NUCLEO-IKS01A.
The outputs information retrieved from the Expansion Board over UART. You can launch a terminal application (e.g.: PuTTY on Windows, Minicom on Linux) and set the UART port to 9600 bps, 8 bit, No Parity, 1 stop bit.
The expansion board is basically featuring four IPs:
- a HTS221 Relative Humidity and Temperature Sensor,
- a LIS3MDL 3-Axis Magnetometer,
- a LPS25H MEMS Pressure Sensor, and
- a LSM6DS0 3D Accelerometer and 3D Gyroscope
Setup¶
First, attach the X-NUCLEO-IKS01A1 to the STM32 Nucleo platform as shown here:
Here are the steps.
- Import Program2_SensorReader to your online compiler.
- Press Compile. A file downloads (Sensors_Reader_NUCLEO_F429ZI.bin).
- Drag the file to the 'NODE_F429ZI' disk. The LED on the board will flash.
- After flashing, hit the 'Reset' button to start the program.
- Now you should see the sensor values from the sensor on the terminal window!