This repository contains some examples that demonstrate how to use the following sensors on the STEVAL-MKBOXPRO board:
- LIS2DU12 (inertial)
- LSM6DSV16X (inertial)
- LPS22DF (pressure)
- LIS2MDL (magnetic field)
- STTS22H (temperature)
- MP23DB01HP (digital audio)
- ST25DV04K (NFC)
The STEVAL_MKBOXPRO_Python_Wave_Serial_Encoder
sketch can be used together with the Python-Wave-Serial-Encoder GUI application to record PCM audio to a WAV file on desktop, by using serial connection to the board.
-
Install STEVAL-MKBOXPRO-Audio library (if you haven't done yet)
-
Compile and Flash the
STEVAL_MKBOXPRO_Python_Wave_Serial_Encoder
sketch you find inexamples/
folder (using Arduino IDE, for instance) -
Connect the STEVAL-MKBOXPRO board to serial port
-
Select the serial port and click Connect
-
Click Save and select the WAV file where you're going to record the audio
-
Click Start to start capturing audio
-
Click Stop when you finished
-
Listen the WAV file with your preferred audio player
The STEVAL_MKBOXPRO_MEMS_HelloWorld
sketch shows how to get data from LIS2DU12, LSM6DSV16X, LPS22DF, LIS2MDL and STTS22H. Just open the sketch, compile and run. Remember to install the relative sensors libraries.
The STEVAL_MKBOXPRO_ST25DV_HelloWorld
sketch shows how to setup the ST25DV04K NFC to serve the URL http://www.st.com/st25. In order to use it, just open the sketch, install the ST25DV04K library (if not present), then compile and flash it.
The STEVAL_MKBOXPRO_MEMS_6D_Orientation
This application shows how to use LSM6DSV16X accelerometer
to find out the 6D orientation and display data on a hyperterminal.
The STEVAL_MKBOXPRO_MEMS_Double_Tap_Detection
This application shows how to detect the double tap event using the LSM6DSV16X accelerometer.
The STEVAL_MKBOXPRO_MEMS_FIFO_Polling
This application shows how to get accelerometer and gyroscope data from FIFO in pooling mode and print them on terminal.
The STEVAL_MKBOXPRO_MEMS_FIFO_Interrupt
This application shows how to get accelerometer and gyroscope data from FIFO using interrupt and print them on terminal.
The STEVAL_MKBOXPRO_MEMS_Free_Fall_Detection
This application shows how to detect the free fall event using the LSM6DSV16X accelerometer.
The STEVAL_MKBOXPRO_MEMS_Pedometer
This application shows how to use LSM6DSV16X accelerometer to count steps.
The STEVAL_MKBOXPRO_MEMS_Qvar_Polling
This application shows how to use LSM6DSV16X Qvar features in polling mode.
The STEVAL_MKBOXPRO_MEMS_Single_Tap_Detection
This application shows how to detect the single tap event using the LSM6DSV16X accelerometer.
The STEVAL_MKBOXPRO_MEMS_Tilt_Detection
This application shows how to detect the tilt event using the LSM6DSV16X accelerometer.
The STEVAL_MEMS_Wake_Up_Detection
This application shows how to detect the wake-up event using the LSM6DSV16X accelerometer.
The examples in this repository requires the following STM32duino libraries:
-
STM32duino LIS2DU12: https://github.com/stm32duino/LIS2DU12
-
STM32duino LSM6DSV16X: https://github.com/stm32duino/LSM6DSV16X
-
STM32duino LPS22DF: https://github.com/stm32duino/LPS22DF
-
STM32duino LIS2MDL: https://github.com/stm32duino/LIS2MDL
-
STM32duino STTS22H: https://github.com/stm32duino/STTS22H
-
STM32duino MP23DB01HP: https://github.com/stm32duino/STEVAL-MKBOXPRO-Audio
-
STM32duino ST25DV: https://github.com/stm32duino/ST25DV