Skip to content

Latest commit

 

History

History
101 lines (54 loc) · 4.2 KB

README.md

File metadata and controls

101 lines (54 loc) · 4.2 KB

STEVAL-MKBOXPRO-Examples

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)

STEVAL_MKBOXPRO_Python_Wave_Serial_Encoder

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.

  1. Install STEVAL-MKBOXPRO-Audio library (if you haven't done yet)

  2. Compile and Flash the STEVAL_MKBOXPRO_Python_Wave_Serial_Encoder sketch you find in examples/ folder (using Arduino IDE, for instance)

  3. Connect the STEVAL-MKBOXPRO board to serial port

  4. Launch Python-Wave-Serial-Encoder GUI

  5. Select the serial port and click Connect

  6. Click Save and select the WAV file where you're going to record the audio

  7. Click Start to start capturing audio

  8. Click Stop when you finished

  9. Listen the WAV file with your preferred audio player

STEVAL_MKBOXPRO_MEMS_HelloWorld

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.

STEVAL_MKBOXPRO_ST25DV_HelloWorld

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.

STEVAL_MKBOXPRO_MEMS_6D_Orientation

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.

STEVAL_MKBOXPRO_MEMS_Double_Tap_Detection

The STEVAL_MKBOXPRO_MEMS_Double_Tap_Detection This application shows how to detect the double tap event using the LSM6DSV16X accelerometer.

STEVAL_MKBOXPRO_MEMS_FIFO_Polling

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.

STEVAL_MKBOXPRO_MEMS_FIFO_Interrupt

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.

STEVAL_MKBOXPRO_MEMS_Free_Fall_Detection

The STEVAL_MKBOXPRO_MEMS_Free_Fall_Detection This application shows how to detect the free fall event using the LSM6DSV16X accelerometer.

STEVAL_MKBOXPRO_MEMS_Pedometer

The STEVAL_MKBOXPRO_MEMS_Pedometer This application shows how to use LSM6DSV16X accelerometer to count steps.

STEVAL_MKBOXPRO_MEMS_Qvar_Polling

The STEVAL_MKBOXPRO_MEMS_Qvar_Polling This application shows how to use LSM6DSV16X Qvar features in polling mode.

STEVAL_MKBOXPRO_MEMS_Single_Tap_Detection

The STEVAL_MKBOXPRO_MEMS_Single_Tap_Detection This application shows how to detect the single tap event using the LSM6DSV16X accelerometer.

STEVAL_MKBOXPRO_MEMS_Tilt_Detection

The STEVAL_MKBOXPRO_MEMS_Tilt_Detection This application shows how to detect the tilt event using the LSM6DSV16X accelerometer.

STEVAL_MKBOXPRO_MEMS_Wake_Up_Detection

The STEVAL_MEMS_Wake_Up_Detection This application shows how to detect the wake-up event using the LSM6DSV16X accelerometer.

Dependencies

The examples in this repository requires the following STM32duino libraries: