https://github.com/stm32duino/steval-mkboxpro-examples
Examples for STEVAL-MKBOXPRO board
https://github.com/stm32duino/steval-mkboxpro-examples
Last synced: 20 days ago
JSON representation
Examples for STEVAL-MKBOXPRO board
- Host: GitHub
- URL: https://github.com/stm32duino/steval-mkboxpro-examples
- Owner: stm32duino
- License: bsd-3-clause
- Created: 2022-10-07T05:30:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T14:04:05.000Z (over 2 years ago)
- Last Synced: 2025-06-01T02:55:05.666Z (9 months ago)
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STEVAL-MKBOXPRO-Examples
[This repository](https://github.com/stm32duino/STEVAL-MKBOXPRO-Examples) 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](https://github.com/stm32duino/Python-Wave-Serial-Encoder) application to record PCM audio to a WAV file on desktop, by using serial connection to the board.
1. Install [STEVAL-MKBOXPRO-Audio](https://github.com/stm32duino/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](https://github.com/stm32duino/Python-Wave-Serial-Encoder)
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](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:
- 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